[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: out of date -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-14 Thread miss-islington
miss-islington added the comment: New changeset 20bc40ef44b820733848d5838e803b5fe4350b93 by Miss Islington (bot) in branch '3.9': bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759) https://github.com/python/cpython/commit/20bc40ef44b820733848d5838e803b5fe4350b93

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-14 Thread miss-islington
miss-islington added the comment: New changeset 06bfd033e847bedb6e123d131dcf46393a4555df by Miss Islington (bot) in branch '3.8': bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759) https://github.com/python/cpython/commit/06bfd033e847bedb6e123d131dcf46393a4555df

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +22625 pull_request: https://github.com/python/cpython/pull/23769 ___ Python tracker ___ __

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +22624 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/23768 ___ Python tracker ___ __

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 42c9f0fd0a5e67d4ae0022bfd7370cb9725a5b01 by Gregory P. Smith in branch 'master': bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759) https://github.com/python/cpython/commit/42c9f0fd0a5e67d4ae0022bfd7370cb9725a5b01 ---

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: While I said i didn't care... and don't really want to... I found a reason to at least not omit pep-570 positional only arg parsing support give things like yapf still use it rather than forking their own copy. PR testing. -- assignee: -> gregory

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +22615 pull_request: https://github.com/python/cpython/pull/23759 ___ Python tracker ___

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Parsing support for `f(**mapping)` support is indeed still missing. > > as lib2to3 is pending deprecation at this point, i'm not going to work on > this. anyone is welcome to pick it up. modifying the lib2to3 grammar, and > any related code, and adding a

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Every piece of code that uses either lib2to3 or a parser derived from it > (including parso and LibCST) will eventually not be able to upgrade the > parser because PEG can handle grammars that LL(k) can't. Since these projects are external, depending on t

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-06 Thread Peter Ludemann
Peter Ludemann added the comment: Every piece of code that uses either lib2to3 or a parser derived from it (including parso and LibCST) will eventually not be able to upgrade the parser because PEG can handle grammars that LL(k) can't. That's why I proposed adding some functionality to ast.p

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I don't see the point of augmenting the ast.parse, since we already have variants of proper CST implementations outside the core python. Such as github.com/davidhalter/parso/ or LibCST. Also for basic refactorings, it is so easy to use tokens for the refac

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-04 Thread Peter Ludemann
Peter Ludemann added the comment: I made a suggestion for augmenting ast.parse with some of lib2to3's features; but nobody seemed interested. RIP lib2to3. Like many pieces of software, it was used for far more than for what it was originally intended. https://mail.python.org/archives/list/

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Parsing support for `f(**mapping)` support is indeed still missing. as lib2to3 is pending deprecation at this point, i'm not going to work on this. anyone is welcome to pick it up. modifying the lib2to3 grammar, and any related code, and adding a test is

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-04-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Support for `:=` is in, are we still lacking `f(**not x)` support? -- ___ Python tracker ___ __

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-04-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: master/3.9 changeset: https://github.com/python/cpython/commit/3c3aa4516c70753de06bb142b6793d01330fcf0f 3.8 changeset: https://github.com/python/cpython/commit/1098671e4e5ec1513247f05598158eaa3428c5be -- ___ Pyt

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-04-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 96c5f5a3a3fabf43e8114d0dbc30bed409da1ba6 by Tim Hatch in branch '3.7': [3.7] bpo-36541: lib2to3: Support named assignment expressions (GH-12702) (GH-19317) https://github.com/python/cpython/commit/96c5f5a3a3fabf43e8114d0dbc30bed409da1ba6 --

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-04-02 Thread Tim Hatch
Change by Tim Hatch : -- pull_requests: +18682 pull_request: https://github.com/python/cpython/pull/19317 ___ Python tracker ___ ___

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-04-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +18680 pull_request: https://github.com/python/cpython/pull/19315 ___ Python tracker

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-04-01 Thread fireattack
Change by fireattack : -- nosy: +fireattack ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2019-10-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: Make lib2to3 grammar more closely match Python -> Make lib2to3 grammar better match Python, support the := walrus ___ Python tracker ___