Home
last modified time | relevance | path

Searched refs:__bytes__ (Results 1 - 15 of 15) sorted by relevance

/third_party/python/Lib/wsgiref/
H A Dheaders.py141 def __bytes__(self): member in Headers
/third_party/python/Lib/test/
H A Dtest_bytes.py1004 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 Dtest_class.py469 __bytes__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
H A Dtest_long.py1528 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 Dtest_format.py328 # 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 Dtest_weakref.py282 def __bytes__(self): member in ReferencesTestCase.test_proxy_unicode.C
285 self.assertIn("__bytes__", dir(weakref.proxy(instance)))
H A Dtest_typing.py3276 def __bytes__(self): member in ProtocolTests.test_supports_bytes.B
/third_party/python/Include/internal/
H A Dpycore_global_strings.h79 STRUCT_FOR_ID(__bytes__)
H A Dpycore_runtime_init.h702 INIT_ID(__bytes__), \
/third_party/python/Lib/email/
H A Dmessage.py191 def __bytes__(self): member in Message
/third_party/python/Objects/
H A Dweakrefobject.c649 WRAP_METHOD(proxy_bytes, __bytes__)
654 {"__bytes__", proxy_bytes, METH_NOARGS},
H A Dbytesobject.c542 /* 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 Dobject.c554 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 Dpathlib.py555 def __bytes__(self): member in PurePath
H A Dtyping.py2797 """An ABC with one abstract method __bytes__."""
2802 def __bytes__(self) -> bytes: member in SupportsBytes

Completed in 37 milliseconds