[issue41111] Convert a few stdlib extensions to the limited C API
STINNER Victor
report at bugs.python.org
Mon Sep 7 11:37:14 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
Some related changes in modules: posix, _hashopenssl, _ast (Python-ast.c), zlib, _struct, tkinter, _curses_panel.
commit b3966639d28313809774ca3859a347b9007be8d2
Author: Eddie Elizondo <eelizondo at fb.com>
Date: Tue Nov 5 07:16:14 2019 -0800
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
commit df69e75edcc08475bc9a57a5a76df8a45bfc3c34
Author: Christian Heimes <christian at python.org>
Date: Wed Sep 25 23:03:30 2019 +0200
bpo-38142: Updated _hashopenssl.c to be PEP 384 compliant (#16071)
* Updated _hashopenssl.c to be PEP 384 compliant
* Remove refleak test from test_hashlib. The updated type no longer accepts random arguments to __init__.
commit ac46eb4ad6662cf6d771b20d8963658b2186c48c
Author: Dino Viehland <dinoviehland at fb.com>
Date: Wed Sep 11 10:16:34 2019 -0700
bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)
Summary: This mostly migrates Python-ast.c to PEP384 and removes all statics from the whole file. This modifies the generator itself that generates the Python-ast.c. It leaves in the usage of _PyObject_LookupAttr even though it's not fully PEP384 compatible (this could always be shimmed in by anyone who needs it).
commit a1ffad07195b8b976f8c371a92028240946d4e76
Author: Dino Viehland <dinoviehland at gmail.com>
Date: Tue Sep 10 11:27:03 2019 +0100
bpo-38074: Make zlib extension module PEP-384 compatible (GH-15792)
Updated zlibmodule.c to be PEP 384 compliant.
commit 4f384af067d05b16a554bfd976934fca9f87a1cf
Author: Dino Viehland <dinoviehland at gmail.com>
Date: Tue Sep 10 11:18:37 2019 +0100
bpo-38076: Make struct module PEP-384 compatible (#15805)
* PEP-384 _struct
* More PEP-384 fixes for _struct
Summary: Add a couple of more fixes for `_struct` that were previously missed such as removing `tp_*` accessors and using `PyBytesWriter` instead of calling `PyBytes_FromStringAndSize` with `NULL`. Also added a test to confirm that `iter_unpack` type is still uninstantiable.
* 📜🤖 Added by blurb_it.
commit d2217a83d4e2ee9aec1a0bf590820aa77b7ed5e7
Author: Andrew Svetlov <andrew.svetlov at gmail.com>
Date: Tue Oct 30 22:49:16 2012 +0200
Issue #15721: apply PEP 384 Refactoring to tkinter module.
commit bc07cb883e5c03b8c108c2c9d86bc0a158d62c27
Author: Martin v. Löwis <martin at v.loewis.de>
Date: Thu Jun 14 16:01:23 2012 +0200
Issue #14936: curses_panel was converted to PEP 3121 and PEP 384 API.
Patch by Robin Schreiber.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41111>
_______________________________________
More information about the Python-bugs-list
mailing list