summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-10 09:05:29 (GMT)
committerGitHub <noreply@github.com>2020-05-10 09:05:29 (GMT)
commit1c2fa781560608aa4be50c748d4b3f403cfa5035 (patch)
treed9346d8ab7e510f8d296ae37c3401607a2bff4fd /Misc
parentfcb285609a2e55f2dc63dcfbb32e4e2fddf71546 (diff)
downloadcpython-1c2fa781560608aa4be50c748d4b3f403cfa5035.zip
cpython-1c2fa781560608aa4be50c748d4b3f403cfa5035.tar.gz
cpython-1c2fa781560608aa4be50c748d4b3f403cfa5035.tar.bz2
bpo-40549: Convert posixmodule.c to multiphase init (GH-19982)
Convert posixmodule.c ("posix" or "nt" module) to the multiphase initialization (PEP 489). * Create the module using PyModuleDef_Init(). * Create ScandirIteratorType and DirEntryType with the new PyType_FromModuleAndSpec() (PEP 573) * Get the module state from ScandirIteratorType and DirEntryType with the new PyType_GetModule() (PEP 573) * Pass module to functions which access the module state. * convert_sched_param() gets a new module parameter. It is now called directly since Argument Clinic doesn't support passing the module to an argument converter callback. * Remove _posixstate_global macro.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-05-07-20-11-51.bpo-40549.6FiRSV.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-05-07-20-11-51.bpo-40549.6FiRSV.rst b/Misc/NEWS.d/next/Library/2020-05-07-20-11-51.bpo-40549.6FiRSV.rst
new file mode 100644
index 0000000..873ff49
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-05-07-20-11-51.bpo-40549.6FiRSV.rst
@@ -0,0 +1,2 @@
+Convert posixmodule.c ("posix" or "nt" module) to the multiphase
+initialization (PEP 489).