Commit Graph

12115 Commits

Author SHA1 Message Date
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
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
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
Anders Kaseorg
78ca48cd79 Split and simplify some LALRPOP rules
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-11 22:02:08 -08:00
harupy
7e315c16c6 Use method chaining 2022-12-12 10:24:00 +09:00
harupy
4080b020cf Remove expectedFailure decorator 2022-12-12 09:40:29 +09:00
harupy
91f1fc73ab Fix other compound statements 2022-12-12 01:10:42 +09:00
harupy
9f9ba0286e Fix end location of nodes containing body 2022-12-11 12:35:28 +09:00
Jim Fasarakis-Hilliard
2edd0d264c Merge pull request #4325 from harupy/4324-follow-up
A follow-up for #4324
2022-12-10 20:09:25 +02:00
harupy
6a0f13eb4f Refactor 2022-12-10 22:01:42 +09:00
Jim Fasarakis-Hilliard
0723271a36 Merge pull request #4324 from harupy/fix-end-location-of-concatenated-string
Fix the end location of an implicitly-concatenated string
2022-12-10 14:11:52 +02:00
harupy
d3ba7e0d8a Remove expectedFailure decorator 2022-12-10 19:45:34 +09:00
harupy
d6d50d4635 Fix 2022-12-10 18:45:36 +09:00
harupy
991c8299f8 Fix plain string 2022-12-10 18:09:26 +09:00
harupy
93f3433e77 Fix the end location of an implicitly-concatenated string 2022-12-10 17:49:57 +09:00
Jim Fasarakis-Hilliard
77e5d0c8ed Merge pull request #4311 from notJoon/typo-pyserde
fix typo in `py_serde`
2022-12-08 15:38:26 +02:00
not_joon
16804297ab fix typo py_serde 2022-12-08 12:36:45 +09:00
yt2b
f70b8bfdf9 Refactor ExecutingFrame (#4308)
* Add jump_if function

* Add jump_if_or_pop function
2022-12-06 17:07:31 +02:00
Jeong YunWon
5fed6a35af Merge pull request #4310 from youknowone/fix-clippy
Fix nightly clippy warnings
2022-12-05 12:57:01 +09:00
Jeong YunWon
388e32587b Merge pull request #4309 from DimitrisJim/openssl_update
Bump openssl
2022-12-05 12:19:14 +09:00
Jeong YunWon
d935fbc445 Fix nightly clippy warnings 2022-12-05 12:18:16 +09:00
Dimitris Fasarakis Hilliard
a6bb9da6fe Bump openssl 2022-12-05 03:15:35 +02:00
Jim Fasarakis-Hilliard
28f9f65ccc Merge pull request #4306 from harupy/fix-boolop-location
Fix `ExprKind::BoolOp` location
2022-12-05 02:41:19 +02:00
harupy
18293dc80c Remove decorator on test_boolop 2022-12-05 08:23:07 +09:00
harupy
5c63109f4a add tests 2022-12-04 05:59:51 +09:00
harupy
adec9e94fa Fix location 2022-12-04 05:45:15 +09:00
Jeong YunWon
39bed0df51 Merge pull request #4304 from yt2b/fix_dev
Fix `DEVELOPMENT.md`
2022-12-04 00:02:34 +09:00