[New-bugs-announce] [issue15422] Get rid of PyCFunction_New macro
Andrew Svetlov
report at bugs.python.org
Sun Jul 22 16:33:03 CEST 2012
New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:
For now (3.3 beta) PyCFunction_New defined as macro calling PyCFunction_NewEx.
To be compatible with PEP 384 (Defining a Stable ABI) Objects/methodobject.c has trampoline function named PyCFunction_New which calls PyCFunction_NewEx.
This is only single usage of this idiom in CPython code.
For sake of uniformity we need to:
- remove PyCFunction_New macro from Include/methodobject.h
- declare PyCFunction_New as function in Include/methodobject.h
- replace all calls of PyCFunction_New to PyCFunction_NewEx in code (about 8 occurrences).
----------
assignee: asvetlov
components: Interpreter Core
messages: 166138
nosy: asvetlov, loewis
priority: normal
severity: normal
stage: needs patch
status: open
title: Get rid of PyCFunction_New macro
type: enhancement
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15422>
_______________________________________
More information about the New-bugs-announce
mailing list