Commit Graph

12222 Commits

Author SHA1 Message Date
Jim Fasarakis-Hilliard
d5b70b0484 Merge pull request #4389 from harupy/4384-follow-up
Follow-up for #4384
2023-01-01 14:53:54 +02:00
Jim Fasarakis-Hilliard
f07f53b7ee Merge pull request #4396 from harupy/remove-unreachable-code
Remove unreachable code in `compiler/parser/src/string.rs`
2023-01-01 14:38:52 +02:00
Jim Fasarakis-Hilliard
127fa33b0e Merge pull request #4394 from YDX-2147483647/patch-1
Fix the markdown URL in the sample notebook
2023-01-01 10:47:45 +02:00
harupy
663edd22de Remove unreachable code 2023-01-01 17:43:25 +09:00
Y.D.X
8a0e6bbcfb Fix the markdown URL in the sample notebook
URLs without `https://` are relative.
2023-01-01 15:36:28 +08:00
Jeong YunWon
71becd4059 Merge pull request #4391 from harupy/fix-NamedExpr-location
Fix `NamedExpr` location
2023-01-01 15:25:54 +09:00
Jeong YunWon
aff07cf54f Merge pull request #4390 from garychia/islice-reduce
Implement islice.__reduce__
2023-01-01 15:25:21 +09:00
Jeong YunWon
10c9db6ab8 Merge pull request #4392 from yt2b/fix_prefix_format
Prefix format with padding doesn't work correctly.
2023-01-01 15:03:09 +09:00
yt2b
c8c5abe5e4 Add test 2023-01-01 00:21:41 +09:00
yt2b
800d0f9370 Fix prefix format 2023-01-01 00:21:22 +09:00
harupy
49b9f490d9 Fix NamedExpr location 2022-12-31 23:32:08 +09:00
Jeong YunWon
f2bab8005f Merge pull request #4388 from branai/stdin-silent
Fix be silent even with no file using stdin
2022-12-31 22:29:22 +09:00
Chia-Hsiang Cheng
49597bc523 Add tests for islice 2022-12-31 21:23:37 +08:00
Chia-Hsiang Cheng
2c061c095d Implement reduce for islice 2022-12-31 21:23:10 +08:00
harupy
b37a18e0e3 Move tests 2022-12-31 12:15:33 +09:00
Bijan Naimi
4afcf76b62 fixed formatting problems 2022-12-30 18:33:29 -08:00
Jeong YunWon
8cb2b82920 Merge pull request #4386 from yt2b/fix_character_format
Fix character format
2022-12-31 11:31:44 +09:00
Jeong YunWon
cb4bd51489 Merge pull request #4373 from andersk/named
Allow named expression in subscript and set comprehension
2022-12-31 10:58:09 +09:00
Jeong YunWon
dee1337600 Merge pull request #4379 from harupy/refactor-FStringParser
Refactor `FStringParser`
2022-12-31 10:56:52 +09:00
Bijan Naimi
19e5590824 added quiet arg and stdin pipe check 2022-12-30 17:53:20 -08:00
Jeong YunWon
b7eb46abad Merge pull request #4384 from harupy/parse-formatted-value
Fix the location of `FormattedValue`
2022-12-31 10:52:44 +09:00
yt2b
24c2b8842b Remove test 2022-12-31 01:35:09 +09:00
yt2b
3741321b29 Add test 2022-12-31 00:58:18 +09:00
yt2b
e4244d62d8 Fix character format 2022-12-31 00:44:15 +09:00
Jim Fasarakis-Hilliard
2c8af125e3 Merge pull request #4383 from yt2b/fix_hex_prefix
Fix hex prefix
2022-12-30 16:52:27 +02:00
harupy
d39269405b Fix tests 2022-12-30 22:46:31 +09:00
harupy
17f7efedc5 Fix FormattedValue location 2022-12-30 21:39:29 +09:00
yt2b
f07e03cde7 Add test 2022-12-30 20:03:20 +09:00
Jim Fasarakis-Hilliard
bdb9c1dbe4 Merge pull request #4382 from anilbey/duplicate-keyword-arg
arg name to be written upon duplicate kwargs error #4381
2022-12-30 11:40:27 +02:00
yt2b
779d05dc02 Fix hex prefix 2022-12-30 09:34:19 +09:00
anilbey
b76441b35f Update compiler/parser/src/error.rs
Co-authored-by: fanninpm <fanninpm@miamioh.edu>
2022-12-29 22:56:34 +01:00
Anil Tuncel
ce9e64a642 format using cargo fmt 2022-12-29 22:15:44 +01:00
Anil Tuncel
9e2b680090 arg name to be written upon duplicate kwargs error #4381 2022-12-29 22:06:41 +01:00
Jim Fasarakis-Hilliard
3a5716da2a Merge pull request #4380 from nicku12345/lex_error_duplicate_function_args
add lex error for function args
2022-12-29 17:16:54 +02:00
Nick Liu
7e3c59d21d remove expectedFailure decorators 2022-12-29 22:49:26 +08:00
Nick Liu
2d5e044993 format code 2022-12-29 22:49:26 +08:00
Nick Liu
58ff3e8aaf remove expectedFailure decorator in test_argument_handling 2022-12-29 22:49:26 +08:00
Nick Liu
c7c9602ea4 use is_none 2022-12-29 22:49:26 +08:00
Nick Liu
2c09785b7a add arg_name in duplicate argument error msg 2022-12-29 22:49:26 +08:00
Nick Liu
0e66e143fd added check: named arguments must follow bare star 2022-12-29 22:49:26 +08:00
Nick Liu
62fd967cd4 added lex error: DuplicateArguments 2022-12-29 22:49:26 +08:00
Jim Fasarakis-Hilliard
2eb87cac71 Merge pull request #4367 from andersk/star-order
Prohibit starred arguments after double-starred arguments
2022-12-29 16:27:16 +02:00
Jim Fasarakis-Hilliard
27d315c3d1 Merge pull request #4344 from moreal/base64-trailing-bits
Allow trailing bits while decoding base64
2022-12-29 15:06:59 +02:00
Jim Fasarakis-Hilliard
d4c0be20a4 Merge pull request #4378 from yt2b/fix_opecode
`eval` doesn't raise correct exception
2022-12-29 15:03:25 +02:00
Harutaka Kawamura
af4a43d725 Update compiler/parser/src/fstring.rs
Co-authored-by: Zgarbul Andrey <zgarbul.andrey@gmail.com>
2022-12-29 08:10:33 +09:00
Anders Kaseorg
6b12aeef6a Allow named expression in set comprehension: {a := b for c in d}
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-28 09:57:32 -08:00
Anders Kaseorg
71a278c086 Allow named expression in subscript: a[b := c]
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-28 09:57:32 -08:00
yt2b
942dccfaae Use fast_isinstance 2022-12-29 01:44:44 +09:00
harupy
7b20223c48 Rename 2022-12-29 01:01:41 +09:00
harupy
f8da501ba3 Clean up FStringParser 2022-12-29 00:08:59 +09:00