mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-21071: struct.Struct.format type is now str (#845)
This commit is contained in:
parent
a4b091e135
commit
f87b85f808
5 changed files with 19 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue