Skip to content

Remove specific constant AST types in favor of ast.Constant #77073

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 32892
Nosy @brettcannon, @nascheme, @ncoghlan, @vstinner, @benjaminp, @jwilk, @njsmith, @serhiy-storchaka, @1st1, @Carreau, @asottile, @hroncok, @thautwarm, @miss-islington
PRs
  • bpo-32892: Use ast.Constant instead of specific constant AST types. #9445
  • bpo-32892: Support subclasses of base types in isinstance checks for AST constants. #9934
  • bpo-32892: Update the documentation for handling constants in AST. #18514
  • [3.8] bpo-32892: Update the documentation for handling constants in AST. (GH-18514) #18534
  • 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-21.07:58:48.572>
    created_at = <Date 2018-02-21.09:16:37.160>
    labels = ['interpreter-core', 'type-feature', '3.8']
    title = 'Remove specific constant AST types in favor of ast.Constant'
    updated_at = <Date 2020-02-17.09:09:53.661>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2020-02-17.09:09:53.661>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-11-21.07:58:48.572>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2018-02-21.09:16:37.160>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32892
    keywords = ['patch']
    message_count = 31.0
    messages = ['312482', '312487', '312490', '312491', '325882', '325884', '325904', '326006', '326030', '326041', '326043', '326078', '326087', '326130', '326209', '326295', '326565', '326566', '326568', '326711', '326712', '326767', '326873', '327902', '327903', '328685', '330179', '340664', '342486', '362121', '362123']
    nosy_count = 14.0
    nosy_names = ['brett.cannon', 'nascheme', 'ncoghlan', 'vstinner', 'benjamin.peterson', 'jwilk', 'njs', 'serhiy.storchaka', 'yselivanov', 'mbussonn', 'Anthony Sottile', 'hroncok', 'thautwarm', 'miss-islington']
    pr_nums = ['9445', '9934', '18514', '18534']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32892'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions