Commit Graph

12139 Commits

Author SHA1 Message Date
Riley Sutton
83880893d5 Enable previously failing tests 2022-12-27 18:06:56 +11:00
Riley Sutton
401ab907f5 Fix unwrap issue causing panic 2022-12-26 14:38:09 +11: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
Jim Fasarakis-Hilliard
8d879a5319 Merge pull request #4327 from harupy/fix-end-location-body
Fix end location of compound statements
2022-12-13 12:30:21 +02:00
Jim Fasarakis-Hilliard
cbf2ec9312 Merge pull request #4330 from charliermarsh/charlie/store
Set `ExprContext::Store` on parenthesized with expressions
2022-12-13 12:21:58 +02:00
Charlie Marsh
75a9b4a352 Set ExprContext::Store on parenthesized with expressions 2022-12-12 09:09:15 -05:00
harupy
7a40d9c876 Refactor 2022-12-12 22:36:34 +09:00
harupy
337b0ead4a Update snapshot 2022-12-12 22:26:03 +09:00
harupy
c906e431be Format 2022-12-12 22:18:26 +09:00
harupy
fbb409b755 Resolve conflict 2022-12-12 22:16:46 +09:00
harupy
05e1a7a0aa Address comments
Signed-off-by: harupy <hkawamura0130@gmail.com>
2022-12-12 22:14:05 +09:00
Jeong YunWon
29391eb7c1 Merge pull request #4329 from andersk/paren-contexts
Parse Python 3.9+ parenthesized context managers
2022-12-12 19:17:57 +09:00
Anders Kaseorg
b7f4ff7283 Parse Python 3.9+ parenthesized context managers
Since the upstream grammar for this is not LR(1), we abuse LALRPOP
macros and the Into/TryInto traits to build a cover grammar that
converts to either tuples or `with` items after additional validation.
It’s annoying and ugly, but something like this is basically our only
option short of switching to a more powerful parser algorithm.

Fixes #4145.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-12 00:47:33 -08:00