A constant folding optimization pass for the AST · Issue #42545 · python/cpython · GitHub
Skip to content

A constant folding optimization pass for the AST #42545

Description

@titanstar
mannequin
BPO 1346238
Nosy @rhettinger, @terryjreedy, @pfalcon, @abalkin, @vstinner, @benjaminp, @alex, @methane, @davidmalcolm, @serhiy-storchaka
Superseder
  • bpo-29469: AST-level Constant folding
  • Files
  • constant_fold.zip: patch for AST constant folding
  • py3k-ast-optimization-2010-11-05-001.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.13:12:04.894>
    created_at = <Date 2005-11-02.18:49:15.000>
    labels = ['interpreter-core', 'performance']
    title = 'A constant folding optimization pass for the AST'
    updated_at = <Date 2017-12-14.13:12:04.882>
    user = 'https://bugs.python.org/titanstar'

    bugs.python.org fields:

    activity = <Date 2017-12-14.13:12:04.882>
    actor = 'serhiy.storchaka'
    assignee = 'nnorwitz'
    closed = True
    closed_date = <Date 2017-12-14.13:12:04.894>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2005-11-02.18:49:15.000>
    creator = 'titanstar'
    dependencies = []
    files = ['6850', '19513']
    hgrepos = []
    issue_num = 1346238
    keywords = ['patch']
    message_count = 21.0
    messages = ['48953', '48954', '48955', '48956', '48957', '48958', '48959', '48960', '48961', '64646', '66388', '120516', '120541', '120562', '120563', '120566', '131393', '207130', '207202', '286389', '308295']
    nosy_count = 15.0
    nosy_names = ['jhylton', 'nnorwitz', 'rhettinger', 'terry.reedy', 'pfalcon', 'belopolsky', 'sdahlbac', 'titanstar', 'vstinner', 'thomaslee', 'benjamin.peterson', 'alex', 'methane', 'dmalcolm', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '29469'
    type = 'performance'
    url = 'https://bugs.python.org/issue1346238'
    versions = ['Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage
      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