Skip to content

ast.unparse produces: 'FunctionDef' object has no attribute 'lineno' for valid module #90231

@TheRobotCarlson

Description

@TheRobotCarlson
BPO 46073
Nosy @isidentical, @sobolevn, @TheRobotCarlson
Superseder
  • bpo-44896: AttributeError in ast.unparse
  • Files
  • test.py: test file showing the ast failure
  • 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 2022-03-19.15:01:30.742>
    created_at = <Date 2021-12-14.16:38:50.128>
    labels = ['3.10', 'library', '3.9', 'type-crash', '3.11']
    title = "ast.unparse produces: 'FunctionDef' object has no attribute 'lineno' for valid module"
    updated_at = <Date 2022-03-19.15:01:30.742>
    user = 'https://github.com/TheRobotCarlson'

    bugs.python.org fields:

    activity = <Date 2022-03-19.15:01:30.742>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-03-19.15:01:30.742>
    closer = 'iritkatriel'
    components = ['Library (Lib)']
    creation = <Date 2021-12-14.16:38:50.128>
    creator = 'TheRobotCarlson'
    dependencies = []
    files = ['50490']
    hgrepos = []
    issue_num = 46073
    keywords = []
    message_count = 7.0
    messages = ['408546', '408561', '408563', '408565', '408566', '408567', '408574']
    nosy_count = 3.0
    nosy_names = ['BTaskaya', 'sobolevn', 'TheRobotCarlson']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '44896'
    type = 'crash'
    url = 'https://bugs.python.org/issue46073'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions