]> granicus.if.org Git - python/commit
bpo-38076: Make struct module PEP-384 compatible (#15805)
authorDino Viehland <dinoviehland@gmail.com>
Tue, 10 Sep 2019 10:18:37 +0000 (11:18 +0100)
committerT. Wouters <thomas@python.org>
Tue, 10 Sep 2019 10:18:37 +0000 (03:18 -0700)
commit4f384af067d05b16a554bfd976934fca9f87a1cf
tree6ec350c55c6f0bfdd95bf6c70febdbd612e35d16
parent43c9731334470573209464b7f67914d386457efc
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.
Lib/test/test_struct.py
Misc/NEWS.d/next/Core and Builtins/2019-09-09-16-36-37.bpo-38076.C5dVBl.rst [new file with mode: 0644]
Modules/_struct.c