Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ed559a

Browse files
committed
merge 3.2 (#13259)
2 parents b4d8e91 + 1fafc1a commit 3ed559a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,14 @@ Basic customization
11571157
.. XXX what about subclasses of string?
11581158
11591159
1160+
.. method:: object.__bytes__(self)
1161+
1162+
.. index:: builtin: bytes
1163+
1164+
Called by :func:`bytes` to compute a byte-string representation of an
1165+
object. This should return a ``bytes`` object.
1166+
1167+
11601168
.. method:: object.__format__(self, format_spec)
11611169

11621170
.. index::

0 commit comments

Comments
 (0)