You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After bpo-34784, there are still two more cases of statically allocated types (DirEntryType & ScandirIteratorType). These should also be heap allocated to make posixmodule fully compatible with PEP-384.
changed the title [-]Heap-allocated posixmodule types[/-][+]posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types[/+]on Jan 7, 2019
Just curious... how is PEP-384 relevant to modules insides CPython itself? I thought that this only mattered for external packages. Do you expect people to use a 3.7-compiled posixmodule.c on Python 3.8?
New changeset b396663 by Miss Islington (bot) (Eddie Elizondo) in branch 'master': bpo-35381 Remove all static state from posixmodule (GH-15892) b396663
Activity
eduardo-elizondo commentedon Dec 3, 2018
After bpo-34784, there are still two more cases of statically allocated types (DirEntryType & ScandirIteratorType). These should also be heap allocated to make posixmodule fully compatible with PEP-384.
[-]Heap-allocated Posixmodule[/-][+]Heap-allocated Posixmodule types[/+][-]Heap-allocated Posixmodule types[/-][+]Heap-allocated posixmodule types[/+][-]Heap-allocated posixmodule types[/-][+]posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types[/+]jdemeyer commentedon Apr 9, 2019
Just curious... how is PEP-384 relevant to modules insides CPython itself? I thought that this only mattered for external packages. Do you expect people to use a 3.7-compiled posixmodule.c on Python 3.8?
ericsnowcurrently commentedon Sep 11, 2019
@jeroen, see Dino's expalantion in https://bugs.python.org/issue38075#msg351627 (relative to the "random" module).
miss-islington commentedon Nov 5, 2019
New changeset b396663 by Miss Islington (bot) (Eddie Elizondo) in branch 'master':
bpo-35381 Remove all static state from posixmodule (GH-15892)
b396663
encukou commentedon Nov 6, 2019
The module still uses tp_new directly, so it's not limited to only stable ABI, but that's for another issue.
Thanks for the contribution!
vstinner commentedon Nov 14, 2019
This change introduced a reference leak: bpo-38803 "test_wait3 and test_wait4 leaked references on x86 Gentoo Refleaks 3.x".
eduardo-elizondo commentedon Nov 15, 2019
Woops! I'll get to it before the end of the weekend!
eduardo-elizondo commentedon Nov 25, 2019
PR with fix is out.
vstinner commentedon Jan 20, 2020
This issue introduced a regression: bpo-39395 "The os module should unset() environment variable at exit".