◐ Shell
clean mode source ↗

bpo-27494: Fix a 2to3 parser bug (trailing comma) by jstasiak · Pull Request #60 · python/cpython

stuarteberg

akruis pushed a commit to akruis/cpython that referenced this pull request

Sep 9, 2017
This commit adds a test case to trigger an assertion failure during shutdown and
fixes the bug. The assertion was added by my first attempt to fix issue python#60.
Thanks to Masamitsu Murase for reporting the bug and for providing the fix.
(grafted from 655f2a2292a237636849b4a82fb0a2dde1ee9847 and 109d5d067b14)
…ession

While this is a valid Python 2 and Python 3 syntax lib2to3 would choke
on it:

    set(x for x in [],)

This patch changes the grammar definition used by lib2to3 so that the
actual Python syntax is supported now and backwards compatibility is
preserved.

Mr3x33 added a commit to Mr3x33/cpython that referenced this pull request

Sep 17, 2021

colesbury referenced this pull request in colesbury/nogil

Oct 6, 2021

jaraco pushed a commit that referenced this pull request

Dec 2, 2022

jaraco added a commit to jaraco/cpython that referenced this pull request

Feb 17, 2023
* Update .coveragerc

* Keep whitespace consistent.

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

isidentical pushed a commit to isidentical/cpython that referenced this pull request

Mar 28, 2023

oraluben pushed a commit to oraluben/cpython that referenced this pull request

Jul 12, 2023
* Fix: Correct target_bb_id in jump array

* Doc: Updated doc for add_metadata_to_jump_2d_array

This was referenced

Feb 11, 2025

AA-Turner pushed a commit to AA-Turner/cpython that referenced this pull request

Apr 10, 2025