This commit is contained in:
Benjamin Peterson 2011-10-25 00:04:10 -04:00
commit 3ed559a3c7
1 changed files with 8 additions and 0 deletions

View File

@ -1157,6 +1157,14 @@ Basic customization
.. XXX what about subclasses of string?
.. method:: object.__bytes__(self)
.. index:: builtin: bytes
Called by :func:`bytes` to compute a byte-string representation of an
object. This should return a ``bytes`` object.
.. method:: object.__format__(self, format_spec)
.. index::