Lines Matching refs:bytes
16 loads(bytes) -> object
51 bytes_types = (bytes, bytearray)
128 SHORT_BINSTRING= b'U' # " " ; " " " " < 256 bytes
168 LONG1 = b'\x8a' # push long from < 256 bytes
175 BINBYTES = b'B' # push bytes; counted binary string argument
176 SHORT_BINBYTES = b'C' # " " ; " " " " < 256 bytes
180 SHORT_BINUNICODE = b'\x8c' # push short string; UTF-8 length < 256 bytes
182 BINBYTES8 = b'\x8e' # push very long bytes string
256 # temporary bytes object.
424 single bytes argument. It can thus be a file object opened for
791 if not obj: # bytes object is empty
792 self.save_reduce(bytes, (), obj=obj)
807 dispatch[bytes] = save_bytes
814 self.save_reduce(bytearray, (bytes(obj),), obj=obj)
1102 write(GLOBAL + bytes(module_name, "utf-8") + b'\n' +
1103 bytes(name, "utf-8") + b'\n')
1113 write(GLOBAL + bytes(module_name, "ascii") + b'\n' +
1114 bytes(name, "ascii") + b'\n')
1148 no arguments. Both methods should return bytes. Thus *file*
1154 requires no arguments. Both methods should return bytes.
1176 'bytes' to read these 8-bit string instances as bytes objects.
1324 # bytes or Unicode strings. This should be used only with the
1326 if self.encoding == "bytes":
1354 "of %d bytes" % maxsize)
1366 "of %d bytes" % maxsize)
1374 "of %d bytes" % maxsize)
1382 "of %d bytes" % maxsize)
1390 "of %d bytes" % maxsize)