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
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
Jeong YunWon
1b6cb170e9
Merge pull request #4345 from coolreader18/tidy-derive
...
Clean up derive impl a bit
2022-12-24 10:15:30 +09:00
Jeong YunWon
5042230e10
Merge pull request #4342 from qingshi163/current-vm
...
Store Current VirtualMachine Pointer in LocalKey
2022-12-24 09:44:58 +09:00
Jeong YunWon
d1af6b5085
Merge pull request #4341 from evilpie/jit-tuple
...
Support variable exchange (aka basic tuple support)
2022-12-24 09:23:49 +09:00
Jeong YunWon
54764c8438
Merge pull request #4339 from DimitrisJim/ssl_android
...
Fix build error for ssl on android.
2022-12-24 09:10:02 +09:00
Jeong YunWon
3dd786fb0d
Merge pull request #4348 from harupy/fix-binop-location
...
Fix the location of `BinOp`
2022-12-24 09:09:24 +09:00
Jeong YunWon
ac9be9feb4
Merge pull request #4351 from yt2b/fix_pysymbol
...
make `test_local` pass
2022-12-24 09:08:33 +09:00
yt2b
59c6c6f7f1
Remove the decorator
2022-12-22 23:31:23 +09:00
yt2b
9c81ce646a
Fix is_local
2022-12-22 23:27:36 +09:00
yt2b
85f65740c0
Add member in PySymbol
2022-12-22 23:17:52 +09:00
harupy
083191db47
Fix the location of BinOp
2022-12-21 22:05:05 +09:00
Noa
185dd4a795
Split derive-impl and derive
2022-12-19 18:48:17 -06:00
Noa
38a735af3b
Tidy up -derive, make use of let-else
2022-12-19 18:48:17 -06:00
Kangzhi Shi
8ad7ce5475
add with_current_vm
2022-12-18 21:30:17 +02:00
Tom Schuster
85233920e5
Support variable exchange (aka basic tuple support)
2022-12-18 17:56:40 +01:00
Jim Fasarakis-Hilliard
c01f014b12
Merge pull request #4340 from harupy/fix-locations-of-parethesized-expressions
...
Fix the start and end locations of `Tuple`
2022-12-18 15:17:40 +02:00
harupy
1bebc78cf7
Remove expectedFailure decorators
2022-12-18 21:27:53 +09:00
harupy
fdbfe156ca
Fix locations of parethesized expressions
2022-12-18 20:53:30 +09:00
Dimitris Fasarakis Hilliard
29eaab0abf
Fix build error for ssl on android.
2022-12-18 11:45:40 +02:00
Jim Fasarakis-Hilliard
b4b74a873c
Merge pull request #4338 from yt2b/fix_symbol_scope
...
Fix panic about warlus operator inside mutiple comprehensions.
2022-12-18 11:39:35 +02:00
yt2b
65d2aca88f
Add test in syntax_comprehension.py
2022-12-18 10:03:41 +09:00
yt2b
0719231bb9
Fix symbol scope
2022-12-18 09:48:35 +09:00
fanninpm
154b72c4e2
Merge pull request #4334 from fanninpm/clippy-1.66
2022-12-17 13:42:18 -05:00
Padraic Fanning
1b5133350b
Fix macOS compilation error (v1.66)
2022-12-17 13:12:12 -05:00
Padraic Fanning
268bbd8414
Fix new (v1.66) Clippy warnings on Windows
2022-12-17 13:12:12 -05:00
Padraic Fanning
5701061e63
Fix new (v1.66) Clippy warnings
2022-12-17 13:12:11 -05:00
Jim Fasarakis-Hilliard
ee4a51c512
Merge pull request #4328 from andersk/asdl-box
...
Remove unnecessary boxing of ASDL product children
2022-12-14 21:54:54 +02:00
Anders Kaseorg
316c4858e2
Remove unnecessary boxing of ASDL product children
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2022-12-14 02:30:02 -08:00
Jim Fasarakis-Hilliard
c48c2290f4
Merge pull request #4331 from DimitrisJim/fix_locations_with
...
Fix end location in with statements.
2022-12-13 19:44:56 +02:00
Dimitris Fasarakis Hilliard
609ac2754c
Fix end location in with statements.
2022-12-13 13:28:17 +02:00