Content-Length: 252428 | pFad | https://github.com/python/cpython/issues/98522

48 Add a version number to code objects · Issue #98522 · python/cpython · GitHub
Skip to content

Add a version number to code objects #98522

@markshannon

Description

@markshannon

We want to add a version number to code objects, so that all functions that are created from the same code object have the same version number (at least until they are mutated).

Code objects are immutable, so they do not need a version number themselves, it is just to help function objects.
By ensuring that all function objects created from the same code object have the same version number, we can effectively specialize comprehensions and inner functions.

See faster-cpython/ideas#446 for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/98522

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy