Home
last modified time | relevance | path

Searched refs:__bytes__ (Results 1 – 24 of 24) sorted by relevance

/third_party/python/Lib/wsgiref/
Dheaders.py141 def __bytes__(self): member in Headers
/third_party/python/Lib/test/
Dtest_bytes.py997 def __bytes__(self): member in BytesTest.test_custom.A
1003 def __bytes__(self): member in BytesTest.test_custom.A
1007 def __bytes__(self): member in BytesTest.test_custom.A
1014 def __bytes__(self): member in BytesTest.test_custom.A
1020 def __bytes__(self): member in BytesTest.test_custom.A
1144 __bytes__ = None variable in BytesTest.test_bytes_blocking.IterationBlocked
1153 __bytes__ = None variable in BytesTest.test_bytes_blocking.IntBlocked
1162 __bytes__ = None variable in BytesTest.test_bytes_blocking.BytesSubclassBlocked
1167 __bytes__ = None variable in BytesTest.test_bytes_blocking.BufferBlocked
Dtest_class.py469 __bytes__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
Dtest_format.py330 def __bytes__(self): member in FormatTest.test_bytes_and_bytearray_format.FakeBytes
Dtest_weakref.py269 def __bytes__(self): member in ReferencesTestCase.test_proxy_unicode.C
Dtest_typing.py1544 def __bytes__(self): member in ProtocolTests.test_supports_bytes.B
/third_party/python/Objects/
Dweakrefobject.c673 WRAP_METHOD(proxy_bytes, __bytes__)
Dobject.c31 _Py_IDENTIFIER(__bytes__);
Dbytesobject.c23 _Py_IDENTIFIER(__bytes__);
/third_party/python/Lib/email/
Dmessage.py161 def __bytes__(self): member in Message
/third_party/python/Tools/c-analyzer/
DTODO341 Objects/bytesobject.c:bytes_new():PyId___bytes__ _Py_IDENTIFIER(__bytes__)
342 Objects/bytesobject.c:format_obj():PyId___bytes__ _Py_IDENTIFIER(__bytes__)
398 Objects/object.c:PyId___bytes__ _Py_IDENTIFIER(__bytes__)
471 Objects/weakrefobject.c:proxy_bytes():PyId___bytes__ _Py_IDENTIFIER(__bytes__)
/third_party/python/Doc/library/
Demail.generator.rst132 :meth:`~email.message.EmailMessage.__bytes__`), which simplify the generation of
Demail.message.rst125 .. method:: __bytes__()
Demail.compat32-message.rst143 .. method:: __bytes__()
Dtyping.rst1898 An ABC with one abstract method ``__bytes__``.
Dstdtypes.rst3583 | | :meth:`__bytes__`). | |
/third_party/python/Lib/
Dpathlib.py638 def __bytes__(self): member in PurePath
Dtyping.py2191 def __bytes__(self) -> bytes: member in SupportsBytes
/third_party/python/Misc/NEWS.d/
D3.5.2rc1.rst274 Special method __bytes__() now works in str subclasses.
321 Fixed crash on converting objects with special methods __bytes__, __trunc__,
D3.6.0a1.rst479 Special method __bytes__() now works in str subclasses.
536 Fixed crash on converting objects with special methods __bytes__, __trunc__,
/third_party/python/Doc/whatsnew/
D3.5.rst387 TypeError: %b requires bytes, or an object that implements __bytes__, not 'str'
D3.4.rst806 :class:`~email.message.Message` :meth:`~email.message.Message.__bytes__` method
/third_party/python/Doc/reference/
Ddatamodel.rst1375 .. method:: object.__bytes__(self)
/third_party/python/Misc/
DHISTORY152 __bytes__, __trunc__, and __float__ returning instances of subclasses of
4225 and as_bytes and __bytes__ methods to Message.
4567 - Issue #16722: In the bytes() constructor, try to call __bytes__ on the
13922 - Issue #5037: Proxy the __bytes__ special method instead to __bytes__ instead
16333 - bytes(o) now tries to use o.__bytes__() before using fallbacks.