Skip to content

AST-level Constant folding #73655

@methane

Description

@methane
BPO 29469
Nosy @brettcannon, @birkenfeld, @rhettinger, @ncoghlan, @vstinner, @benjaminp, @methane, @serhiy-storchaka, @1st1
PRs
  • bpo-29469: Move constant folding at AST level #2858
  • bpo-29469: Remove unnecessary peephole optimizer #4863
  • bpo-29469: Optimize literal lists and sets iterating on the AST level. #4866
  • bpo-29469: peephole: Remove const_stack #4879
  • Dependencies
  • bpo-29463: Add docstring field to AST nodes
  • Files
  • ast-constant-folding.patch
  • 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 2017-12-14.18:25:10.101>
    created_at = <Date 2017-02-07.04:02:38.365>
    labels = ['interpreter-core', 'type-feature', '3.7']
    title = 'AST-level Constant folding'
    updated_at = <Date 2017-12-18.06:52:57.357>
    user = 'https://github.com/methane'

    bugs.python.org fields:

    activity = <Date 2017-12-18.06:52:57.357>
    actor = 'methane'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-14.18:25:10.101>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2017-02-07.04:02:38.365>
    creator = 'methane'
    dependencies = ['29463']
    files = ['46555']
    hgrepos = []
    issue_num = 29469
    keywords = ['patch']
    message_count = 14.0
    messages = ['287186', '287210', '287214', '287227', '297596', '297599', '308277', '308283', '308296', '308300', '308322', '308327', '308369', '308519']
    nosy_count = 9.0
    nosy_names = ['brett.cannon', 'georg.brandl', 'rhettinger', 'ncoghlan', 'vstinner', 'benjamin.peterson', 'methane', 'serhiy.storchaka', 'yselivanov']
    pr_nums = ['2858', '4863', '4866', '4879']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue29469'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (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