[issue2897] Deprecate structmember.h

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: > Note that structmember.h pollutes global namespace with macros that do not > have conventional Py_ or PY_ prefix. READONLY and RESTRICTED macros seem to > be most likely to conflict with other code. One small enhance would be to add such prefix when

[issue2897] Deprecate structmember.h

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Also, the bare minimum enhancement would be add rename READONLY to PY_READONLY, but keep a deprecated alias READONLY to PY_READONLY, and update CPython code base to use PY_READONLY. (Same for other similar flags.) --

[issue2897] Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Matthias Braun added the comment: > The issue title is misleading, it says "Deprecate structmember.h". Is the > plan still to deprecate it? Or to make it usable in the limited C API? Please > update the title. As far as I understand it: The attached diff, moves the interesting declaration

[issue2897] Deprecate structmember.h

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: > The proposed patch here, would fix this! The issue title is misleading, it says "Deprecate structmember.h". Is the plan still to deprecate it? Or to make it usable in the limited C API? Please update the title. --

[issue2897] Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Change by Matthias Braun : -- components: +C API versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue2897] Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Matthias Braun added the comment: This wasn't mentioned before: Having PyMemberDef part of the structmember.h is a big problem for users of PEP384/limited API, because structmember.h is not part of it. Which results in the odd situation that `Py_tp_members` or `PyDescr_NewMember()` are

[issue2897] Deprecate structmember.h

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I move this issue to master (3.8) -- nosy: +matrixise, vstinner versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue2897] Deprecate structmember.h

2016-10-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: docs@python -> belopolsky stage: patch review -> commit review ___ Python tracker

[issue2897] Deprecate structmember.h

2016-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a proposed doc patch for Python 3.5+. For 2.7 we should probably just add a versionchanged note explaining "restricted mode" has been deprecated in Python 2.3. -- Added file:

[issue2897] Deprecate structmember.h

2016-10-04 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review ___ Python tracker ___

[issue2897] Deprecate structmember.h

2016-10-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Changed the title to reflect the way forward and added affected versions to remember to update the documentation. See #28349 and #24065 for details. -- assignee: -> docs@python components: +Documentation nosy: +docs@python title: include