Searched defs:__bytes__ (Results 1 - 16 of 16) sorted by relevance

/external/python/cpython3/Lib/test/
H A Dtest_format.py310 # the Py_buffer protocol, or something that has a __bytes__ method
312 def __bytes__(self): member in class:FormatTest.test_bytes_and_bytearray_format.FakeBytes
380 "%b requires bytes, or an object that implements __bytes__, not 'str'")
382 "%b requires bytes, or an object that implements __bytes__, not 'str'")
H A Dtest_class.py469 __bytes__ = __int__ variable in class:ClassTests.testBadTypeReturned.BadTypeClass
H A Dtest_bytes.py752 def __bytes__(self): member in class:BytesTest.test_custom.A
758 def __bytes__(self): member in class:BytesTest.test_custom.A
762 def __bytes__(self): member in class:BytesTest.test_custom.A
769 def __bytes__(self): member in class:BytesTest.test_custom.A
775 def __bytes__(self): member in class:BytesTest.test_custom.A
892 __bytes__ = None variable in class:BytesTest.test_bytes_blocking.IterationBlocked
901 __bytes__ = None variable in class:BytesTest.test_bytes_blocking.IntBlocked
910 __bytes__ = None variable in class:BytesTest.test_bytes_blocking.BytesSubclassBlocked
915 __bytes__ = None variable in class:BytesTest.test_bytes_blocking.BufferBlocked
H A Dtest_weakref.py261 def __bytes__(self): member in class:ReferencesTestCase.test_proxy_unicode.C
264 self.assertIn("__bytes__", dir(weakref.proxy(instance)))
H A Dtest_typing.py520 # Note: bytes itself doesn't have __bytes__.
522 def __bytes__(self): member in class:ProtocolTests.test_supports_bytes.B
/external/python/cpython3/Lib/wsgiref/
H A Dheaders.py141 def __bytes__(self): member in class:Headers
/external/scapy/scapy/layers/tls/
H A Dsession.py868 return super(_GenericTLSSessionInheritance, self).__bytes__()
873 def __bytes__(self): member in class:_GenericTLSSessionInheritance
875 The __bytes__ call has to leave the connection states unchanged.
894 built_packet = super(_GenericTLSSessionInheritance, self).__bytes__()
902 __str__ = __bytes__
/external/python/cpython3/Lib/email/
H A Dmessage.py163 def __bytes__(self):
161 def __bytes__(self): member in class:Message
/external/scapy/scapy/
H A Dvolatile.py88 def __bytes__(self): member in class:VolatileValue
268 def __bytes__(self): member in class:RandTermString
653 def __bytes__(self): member in class:RandSingString
H A Dpacket.py40 def __bytes__(self): member in class:RawVal
337 def __bytes__(self): member in class:Packet
368 return len(self.__bytes__())
1263 def __bytes__(self): member in class:NoPayload
H A Dutils.py604 def __bytes__(self): member in class:EnumElement
/external/python/cpython3/Objects/
H A Dobject.c12 _Py_IDENTIFIER(__bytes__); variable
605 "__bytes__ returned non-bytes (type %.200s)",
/external/scapy/scapy/asn1/
H A Dasn1.py205 def __bytes__(self): member in class:ASN1_Object
338 def __bytes__(self): member in class:ASN1_BIT_STRING
/external/scapy/scapy/contrib/
H A Dhttp2.py639 def __bytes__(self): member in class:HPackStringsInterface
2142 def __bytes__(self): member in class:HPackHdrEntry
/external/python/cpython3/Lib/
H A Dpathlib.py711 def __bytes__(self): member in class:PurePath
H A Dtyping.py1759 def __bytes__(self) -> bytes: member in class:SupportsBytes

Completed in 1214 milliseconds