]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35381 Remove all static state from posixmodule (GH-15892)
authorEddie Elizondo <eelizondo@fb.com>
Tue, 5 Nov 2019 15:16:14 +0000 (07:16 -0800)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 5 Nov 2019 15:16:14 +0000 (07:16 -0800)
commitb3966639d28313809774ca3859a347b9007be8d2
tree9724c4c0efe096bb5a58fa7eabbf176deb656d90
parent5e01a6542a1beb552a17e16b71dc0ba9fc6adcfb
bpo-35381 Remove all static state from posixmodule (GH-15892)

After #9665, this moves the remaining types in posixmodule to be heap-allocated to make it compatible with PEP384 as well as modifying all the type accessors to fully make the type opaque.

The original PR that got messed up a rebase: https://github.com/python/cpython/pull/10854. All the issues in that commit have now been addressed since https://github.com/python/cpython/pull/11661 got committed.

This change also removes any state from the data segment and onto the module state itself.

https://bugs.python.org/issue35381

Automerge-Triggered-By: @encukou
Lib/test/test_os.py
Misc/NEWS.d/next/C API/2019-01-18-17-05-26.bpo-35381.9CbeW3.rst [new file with mode: 0644]
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c