Skip to content

[WIP] bpo-26098: Implement PEP 510, function specialization#2354

Closed
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:func_specialize
Closed

[WIP] bpo-26098: Implement PEP 510, function specialization#2354
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:func_specialize

Conversation

@vstinner

Copy link
Copy Markdown
Member
  • Add PyFuncGuardObject and PySpecializedCode structures

  • Add nb_specialized and specialized fields to the PyFunctionObject
    structure: array of PySpecializedCode

  • Add functions:

    • PyFunction_Specialize()
    • PyFunction_GetSpecializedCodes()
    • PyFunction_RemoveSpecialized()
    • PyFunction_RemoveAllSpecialized()
  • Add PyFuncGuard_Type type

  • Add _testcapi.PyGuard, used for unit tests

  • Add unit tests to test_call

* Add PyFuncGuardObject and PySpecializedCode structures
* Add nb_specialized and specialized fields to the PyFunctionObject
  structure: array of PySpecializedCode
* Add functions:

  - PyFunction_Specialize()
  - PyFunction_GetSpecializedCodes()
  - PyFunction_RemoveSpecialized()
  - PyFunction_RemoveAllSpecialized()

* Add PyFuncGuard_Type type
* Add _testcapi.PyGuard, used for unit tests
* Add unit tests to test_call
@mention-bot

Copy link
Copy Markdown

@Haypo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @serhiy-storchaka and @loewis to be potential reviewers.

@vstinner

Copy link
Copy Markdown
Member Author

I rejected my own PEP, so I abandon this PR.
https://mail.python.org/pipermail/python-dev/2017-October/149901.html

@vstinner vstinner closed this Oct 17, 2017
@vstinner vstinner deleted the func_specialize branch October 17, 2017 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants