Commit Graph

12178 Commits

Author SHA1 Message Date
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
yt2b
942dccfaae Use fast_isinstance 2022-12-29 01:44:44 +09:00
yt2b
42e6eecf7f Remove the decorator 2022-12-28 22:18:21 +09:00
yt2b
03eb2dd11b Fix LoadNameAny opecode 2022-12-28 22:14:22 +09:00
Jim Fasarakis-Hilliard
b1db1be031 Merge pull request #4377 from andersk/duplicate-from
Remove duplicate declaration of "from" token
2022-12-28 11:19:54 +02:00
Jim Fasarakis-Hilliard
73cbfb2ede Merge pull request #4376 from fanninpm/test-named-expressions-3.11
Update test_named_expressions.py to CPython 3.11
2022-12-28 11:11:58 +02:00
Jim Fasarakis-Hilliard
f97a80ef07 Merge pull request #4372 from harupy/refactor-parse_formatted_value
Refactor `FStringParser.parse_formatted_value`
2022-12-28 11:11:02 +02:00
Anders Kaseorg
b44a660e4b Remove duplicate declaration of "from" token
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-27 18:56:24 -08:00
Padraic Fanning
3d903efdef Mark failing tests 2022-12-27 21:28:14 -05:00
Padraic Fanning
4ed49e360e Comment out crashing tests (SyntaxError) 2022-12-27 21:26:14 -05:00
Padraic Fanning
67b9300f74 Update test_named_expressions.py to CPython 3.11 2022-12-27 21:13:20 -05:00
Anders Kaseorg
52ce437951 Prohibit starred arguments after double-starred arguments
CPython prohibits ‘f(**kwargs, *args)’; we should too.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-27 12:49:50 -08:00
Moreal
dc9e958bb3 Unmark fixed tests on test_binascii 2022-12-28 05:26:12 +09:00
Moreal
04537b1993 Mark failed tests on test_binascii yet 2022-12-28 05:25:23 +09:00
Moreal
9e9c409644 Update test_binascii.py to CPython 3.11 2022-12-28 05:22:06 +09:00
Moreal
a3b1d25768 Complement binascii extra_tests 2022-12-28 05:19:06 +09:00
Moreal
d41f40879c Allow trailing bits while decoding base64 2022-12-28 05:19:06 +09:00
Jim Fasarakis-Hilliard
1d8269fb72 Merge pull request #4366 from branai/eval-whitespaces
Fix eval doesn't work correctly
2022-12-27 20:23:03 +02:00
Bijan Naimi
63b982bd38 removing decorators for passing tests 2022-12-27 09:03:14 -08:00
harupy
f3a9d34884 Refactor parse_formatted_value 2022-12-28 00:23:25 +09:00
Jeong YunWon
68d26955b3 Merge pull request #4369 from harupy/fix-make_tokenizer_located
Fix `make_tokenizer_located`
2022-12-27 23:26:56 +09:00
harupy
70ce090476 Fix make_tokenizer_located 2022-12-27 21:54:18 +09:00
Jim Fasarakis-Hilliard
64a14ec297 Merge pull request #4362 from rileysu/main
Fix unwrap issue causing panic
2022-12-27 14:10:35 +02:00
Riley Sutton
83880893d5 Enable previously failing tests 2022-12-27 18:06:56 +11:00
Bijan Naimi
4528889ae3 simpler fix for eval whitespaces 2022-12-26 19:03:45 -08:00
Bijan Naimi
2fc285f5bc removing preceding whitespaces, tabs, and newlines for evals only 2022-12-26 17:27:05 -08:00
Jim Fasarakis-Hilliard
d7e1322ef9 Merge pull request #4360 from jan-krecke/jan-krecke/unraisablehook_fix
Fix assertion error at unraisable exception
2022-12-26 14:30:07 +02:00
Jeong YunWon
247e815880 Merge pull request #4359 from yt2b/check_bom
Add BOM check
2022-12-26 16:03:51 +09:00
Jeong YunWon
06a815f8c7 Merge pull request #4358 from harupy/fix-slice-location
Fix `Slice` location
2022-12-26 16:03:09 +09:00
Jeong YunWon
647d542d38 Merge pull request #4356 from andersk/with-tuple-named
Fix parsing of tuple with named expression as context manager
2022-12-26 16:02:17 +09:00
Riley Sutton
401ab907f5 Fix unwrap issue causing panic 2022-12-26 14:38:09 +11:00
yt2b
452e3a3b36 Fix comment 2022-12-26 09:30:12 +09:00
Jan Krecke
a442056e24 changed unraisable exception type to base exception
- print exception type to screen to match cpython behaviour
- included sample script to illustrate behaviour at sys.exit()
2022-12-25 13:58:15 +09:00
yt2b
253fcfb6c4 Remove the decorators 2022-12-25 13:29:33 +09:00
yt2b
7b830dc004 Add BOM check 2022-12-25 11:15:29 +09:00
harupy
d7f7fd2e21 Fix slice location 2022-12-25 09:37:07 +09:00
Anders Kaseorg
c7d03d9cb4 Fix parsing of tuple with named expression as context manager
Because the ‘with’ item grammar disallows named expressions, CPython
parses ‘with (a := 0, b := 1):’ as a tuple rather than two ‘with’
items.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-24 13:15:53 -08:00
Jeong YunWon
d1811c72e7 Merge pull request #4354 from harupy/fix-IfExp-locations
Fix `IfExp` location
2022-12-25 03:56:56 +09:00
Jeong YunWon
38a80071dc Merge pull request #4355 from yt2b/fix_pysymbol
make `test_globals` pass
2022-12-25 02:10:39 +09:00
harupy
1589072680 Fix IfExp location 2022-12-25 00:33:02 +09:00
Jeong YunWon
9acfef85a9 Merge pull request #4352 from andersk/simplify-paren-contexts
Simplify parenthesized context manager parsing with LALRPOP conditions
2022-12-25 00:24:36 +09:00
Anders Kaseorg
5c543445c3 Simplify parenthesized context manager parsing with LALRPOP conditions
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-24 23:13:10 +09:00
Jeong YunWon
31b89fc124 Merge pull request #4347 from qingshi163/refactor-number
Refactor Number Protocol &PyNumber -> PyNumber
2022-12-24 22:30:37 +09:00
Kangzhi Shi
f16a48df39 Refactor Number Protocol 2022-12-24 15:42:06 +09:00
yt2b
f3eb95271e Remove the decorator 2022-12-24 14:38:44 +09:00
yt2b
464d92a192 Fix PySymbol 2022-12-24 14:29:48 +09:00