[issue41111] Convert a few stdlib extensions to the limited C API (PEP 384)

2020-11-19 Thread STINNER Victor
Change by STINNER Victor : -- title: Convert a few stdlib extensions to the limited C API -> Convert a few stdlib extensions to the limited C API (PEP 384) ___ Python tracker

[issue41111] Convert a few stdlib extensions to the limited C API

2020-11-05 Thread Petr Viktorin
Petr Viktorin added the comment: > Maybe we can do add new members for the 8 missing slots See: https://bugs.python.org/issue41618?#msg380414 -- nosy: +petr.viktorin ___ Python tracker _

[issue41111] Convert a few stdlib extensions to the limited C API

2020-09-07 Thread STINNER Victor
STINNER Victor added the comment: > See also bpo-40077: "Convert static types to PyType_FromSpec()". In bpo-1635741, many extension modules have been ported to the multi-phase initilization API (PEP 489), and many static types have been converted to heap types. -- _

[issue41111] Convert a few stdlib extensions to the limited C API

2020-09-07 Thread STINNER Victor
STINNER Victor added the comment: Some related changes in modules: posix, _hashopenssl, _ast (Python-ast.c), zlib, _struct, tkinter, _curses_panel. commit b3966639d28313809774ca3859a347b9007be8d2 Author: Eddie Elizondo Date: Tue Nov 5 07:16:14 2019 -0800 bpo-35381 Remove all static sta

[issue41111] Convert a few stdlib extensions to the limited C API

2020-07-05 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-28 Thread Gustavo J. A. M. Carneiro
Change by Gustavo J. A. M. Carneiro : -- nosy: +gustavo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file49263/Whatsapp-self-message-delivering-using-python-c55344b7f384e036bbe0fda69918c9eccf146dc1.zip ___ Python tracker _

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread One Digi Print
Change by One Digi Print : Added file: https://bugs.python.org/file49263/Whatsapp-self-message-delivering-using-python-c55344b7f384e036bbe0fda69918c9eccf146dc1.zip ___ Python tracker

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: While this might make for an interesting validation experiment, I don't think the results should be checked in. Code churn is to be avoided when there is no visible user benefit. It risks destabilizing code, introducing errors, and making the code less r

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-29086: "Document C API that is not part of the limited API". -- ___ Python tracker ___ _

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40077: "Convert static types to PyType_FromSpec()". -- ___ Python tracker ___ ___ Py

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: See also ./Tools/scripts/abitype.py script and bpo-10943: "abitype: Need better support to port C extension modules to the stable C API". -- ___ Python tracker

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-41073: "[C API] PyType_GetSlot() should accept static types". -- ___ Python tracker ___

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-16731: "xxlimited/xxmodule docstrings ambiguous". -- ___ Python tracker ___ ___ Pyth

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-23903: "Generate PC/python3.def by scraping headers". Steve Dower suggests to convert macros to functions. I'm not sure which functions are still implemented as macro in the limited C API. -- ___ Pyth

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-39123: "PyThread_xxx() not available when using limited API". -- ___ Python tracker ___

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: PyType_FromSpec() doesn't support 11 slots: * tp_dict * tp_mro * tp_cache * tp_subclasses * tp_weaklist * tp_vectorcall * tp_weaklistoffset (see PyMemberDef) * tp_dictoffset (see PyMemberDef) * tp_vectorcall_offset (see PyMemberDef) * bf_getbuffer * bf_release

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: Other missing features of the limited C API: * bpo-2897: "PyMemberDef missing in limited API / Deprecate structmember.h" * Stefan Behnel wrote: "Some code cannot even be migrated at all, e.g. because the entire buffer protocol is missing from it. Some bugs wer

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-27499 "PY_SSIZE_T_CLEAN conflicts with Py_LIMITED_API". -- ___ Python tracker ___ __

[issue41111] Convert a few stdlib extensions to the limited C API

2020-06-25 Thread STINNER Victor
New submission from STINNER Victor : Python stdlib has around 139 extension modules. Not all of them *need* to use internal C API. I'm interested to try to convert a bunch of them to the limited C API, as part of my work on the PEP 620. IMHO "Eating your own dog food" is a good practice to en