bpo-21071: struct.Struct.format type is now str (#845)

This commit is contained in:
Victor Stinner 2017-06-23 15:11:12 +02:00 committed by GitHub
parent a4b091e135
commit f87b85f808
5 changed files with 19 additions and 2 deletions

View file

@ -443,6 +443,9 @@ The :mod:`struct` module also defines the following type:
The format string used to construct this Struct object.
.. versionchanged:: 3.7
The format string type is now :class:`str` instead of :class:`bytes`.
.. attribute:: size
The calculated size of the struct (and hence of the bytes object produced

View file

@ -429,6 +429,9 @@ Changes in the Python API
``makedirs()``.
(Contributed by Serhiy Storchaka in :issue:`19930`.)
* The :attr:`struct.Struct.format` type is now :class:`str` instead of
:class:`bytes`. (Contributed by Victor Stinner in :issue:`21071`.)
CPython bytecode changes
------------------------