diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-06-23 13:11:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 13:11:12 (GMT) |
commit | f87b85f80853c580b1c8bf78a51b0e9a25f6e1a7 (patch) | |
tree | 8417421b14db403e4df4b264c4e4ec09e7c1f4b9 /Doc | |
parent | a4b091e135ccf345cfafdd8477aef897c5214f82 (diff) | |
download | cpython-f87b85f80853c580b1c8bf78a51b0e9a25f6e1a7.zip cpython-f87b85f80853c580b1c8bf78a51b0e9a25f6e1a7.tar.gz cpython-f87b85f80853c580b1c8bf78a51b0e9a25f6e1a7.tar.bz2 |
bpo-21071: struct.Struct.format type is now str (#845)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/struct.rst | 3 | ||||
-rw-r--r-- | Doc/whatsnew/3.7.rst | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index bb32a65..2d0866c 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -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 diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 8c1636b..580da62 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -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 ------------------------ |