Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lineno and col_offset are wrong on function definitions with decorators #77392

Copy link
Copy link
@gforcada

Description

@gforcada
mannequin
Issue body actions
BPO 33211
Nosy @ericvsmith, @serhiy-storchaka, @ilevkivskyi, @ethanhs, @nitishch, @gforcada
PRs
  • bpo-33211: Add def_lineno and class_lineno attributes to FunctionDef and ClassDef #6410
  • bpo-33211: Change line number of decorated nodes back to def #6460
  • bpo-34876: Change the lineno of the AST for decorated function and class. #9731
  • 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 2018-11-23.02:24:00.523>
    created_at = <Date 2018-04-03.05:13:29.303>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'lineno and col_offset are wrong on function definitions with decorators'
    updated_at = <Date 2018-11-23.02:24:00.522>
    user = 'https://github.com/gforcada'

    bugs.python.org fields:

    activity = <Date 2018-11-23.02:24:00.522>
    actor = 'levkivskyi'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-11-23.02:24:00.523>
    closer = 'levkivskyi'
    components = ['Library (Lib)']
    creation = <Date 2018-04-03.05:13:29.303>
    creator = 'gforcada'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33211
    keywords = ['patch']
    message_count = 8.0
    messages = ['314861', '314864', '314906', '315008', '315046', '315074', '330181', '330291']
    nosy_count = 6.0
    nosy_names = ['eric.smith', 'serhiy.storchaka', 'levkivskyi', 'ethan smith', 'nitishch', 'gforcada']
    pr_nums = ['6410', '6460', '9731']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue33211'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8']

    Reactions are currently unavailable

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of lifestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        Morty Proxy This is a proxified and sanitized view of the page, visit original site.