Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser module failure on valid try/except/finally blocks #48779

Closed
kaiw mannequin opened this issue Dec 4, 2008 · 2 comments
Closed

parser module failure on valid try/except/finally blocks #48779

kaiw mannequin opened this issue Dec 4, 2008 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@kaiw
Copy link
Mannequin

kaiw mannequin commented Dec 4, 2008

BPO 4529
Nosy @birkenfeld
Files
  • parser-testcase.py: Testcase
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-12-05.12:09:56.444>
    created_at = <Date 2008-12-04.17:22:09.145>
    labels = ['type-bug']
    title = 'parser module failure on valid try/except/finally blocks'
    updated_at = <Date 2008-12-05.12:09:56.442>
    user = 'https://bugs.python.org/kaiw'

    bugs.python.org fields:

    activity = <Date 2008-12-05.12:09:56.442>
    actor = 'georg.brandl'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-12-05.12:09:56.444>
    closer = 'georg.brandl'
    components = []
    creation = <Date 2008-12-04.17:22:09.145>
    creator = 'kaiw'
    dependencies = []
    files = ['12221']
    hgrepos = []
    issue_num = 4529
    keywords = []
    message_count = 2.0
    messages = ['76900', '77008']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'kaiw']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4529'
    versions = ['Python 2.5']

    @kaiw
    Copy link
    Mannequin Author

    kaiw mannequin commented Dec 4, 2008

    Using the parser module to create a parse tree succeeds, but a
    subsequent tuple2ast fails, when parsing valid try/except/finally (and
    try/except/else/finally) blocks. parser.tuple2ast fails with:
    parser.ParserError: Illegal number of children for try/finally node.

    @kaiw kaiw mannequin added the type-bug An unexpected behavior, bug, or error label Dec 4, 2008
    @birkenfeld
    Copy link
    Member

    Fixed in r67576, will be ported to all branches.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant