/third_party/python/Lib/wsgiref/ |
H A D | headers.py | 141 def __bytes__(self): member in Headers
|
/third_party/python/Lib/test/ |
H A D | test_bytes.py | 1004 self.assertEqual(foo.__bytes__(), foo) 1005 self.assertEqual(type(foo.__bytes__()), self.type2test) 1011 self.assertEqual(bar.__bytes__(), bar) 1012 self.assertEqual(type(bar.__bytes__()), self.type2test) 1027 def __bytes__(self): member in BytesTest.test_custom.A 1033 def __bytes__(self): member in BytesTest.test_custom.A 1037 def __bytes__(self): member in BytesTest.test_custom.A 1044 def __bytes__(self): member in BytesTest.test_custom.A 1050 def __bytes__(self): member in BytesTest.test_custom.A 1174 __bytes__ variable in BytesTest.test_bytes_blocking.IterationBlocked 1183 __bytes__ = None global() variable in BytesTest.test_bytes_blocking.IntBlocked 1192 __bytes__ = None global() variable in BytesTest.test_bytes_blocking.BytesSubclassBlocked 1197 __bytes__ = None global() variable in BytesTest.test_bytes_blocking.BufferBlocked [all...] |
H A D | test_class.py | 469 __bytes__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
|
H A D | test_long.py | 1528 def __bytes__(self): member in LongTest.test_from_bytes.ValidBytes 1531 def __bytes__(self): member in LongTest.test_from_bytes.InvalidBytes 1535 def __bytes__(self): member in LongTest.test_from_bytes.RaisingBytes
|
H A D | test_format.py | 328 # the Py_buffer protocol, or something that has a __bytes__ method 330 def __bytes__(self): member in FormatTest.test_bytes_and_bytearray_format.FakeBytes 379 "or an object that implements __bytes__, not 'str'") 382 "or an object that implements __bytes__, not 'str'")
|
H A D | test_weakref.py | 282 def __bytes__(self): member in ReferencesTestCase.test_proxy_unicode.C 285 self.assertIn("__bytes__", dir(weakref.proxy(instance)))
|
H A D | test_typing.py | 3276 def __bytes__(self): member in ProtocolTests.test_supports_bytes.B
|
/third_party/python/Include/internal/ |
H A D | pycore_global_strings.h | 79 STRUCT_FOR_ID(__bytes__)
|
H A D | pycore_runtime_init.h | 702 INIT_ID(__bytes__), \
|
/third_party/python/Lib/email/ |
H A D | message.py | 191 def __bytes__(self): member in Message
|
/third_party/python/Objects/ |
H A D | weakrefobject.c | 649 WRAP_METHOD(proxy_bytes, __bytes__) 654 {"__bytes__", proxy_bytes, METH_NOARGS},
|
H A D | bytesobject.c | 542 /* does it support __bytes__? */ in format_obj() 543 func = _PyObject_LookupSpecial(v, &_Py_ID(__bytes__)); in format_obj() 551 "__bytes__ returned non-bytes (type %.200s)", in format_obj() 572 "or an object that implements __bytes__, not '%.100s'", in format_obj() 1692 bytes.__bytes__ 2625 else if ((func = _PyObject_LookupSpecial(x, &_Py_ID(__bytes__))) != NULL) { in bytes_new_impl() 2632 "__bytes__ returned non-bytes (type %.200s)", in bytes_new_impl()
|
H A D | object.c | 554 func = _PyObject_LookupSpecial(v, &_Py_ID(__bytes__)); in PyObject_Bytes() 562 "__bytes__ returned non-bytes (type %.200s)", in PyObject_Bytes()
|
/third_party/python/Lib/ |
H A D | pathlib.py | 555 def __bytes__(self): member in PurePath
|
H A D | typing.py | 2797 """An ABC with one abstract method __bytes__.""" 2802 def __bytes__(self) -> bytes: member in SupportsBytes
|