/external/python/cpython3/Lib/test/ |
test_compile.py | 474 for filename in bytearray(b'file.py'), memoryview(b'file.py'): 566 compile(memoryview(b"123\x00"), "<dummy>", "eval") 567 code = compile(memoryview(b"123\x00")[1:-1], "<dummy>", "eval") 569 code = compile(memoryview(b"1234")[1:-1], "<dummy>", "eval") 571 code = compile(memoryview(b"$23$")[1:-1], "<dummy>", "eval") 575 self.assertEqual(eval(memoryview(b"1234")[1:-1]), 23) 577 exec(memoryview(b"ax = 123")[1:-1], namespace) [all...] |
test_hash.py | 88 unaligned = memoryview(b)[i:128+j] 306 repr_ = "memoryview(b'abc')" 307 repr_long = "memoryview(b'abcdefghijk')" 311 self.assertEqual(hash(memoryview(b"")), 0)
|
test_bytes.py | 416 self.assertEqual(memoryview(b"\x1a\x2b\x30").hex(), '1a2b30') 428 self.assertEqual(dot_join([memoryview(b"ab"), b"cd"]), b"ab.:cd") 429 self.assertEqual(dot_join([b"ab", memoryview(b"cd")]), b"ab.:cd") 442 dot_join([memoryview(b"ab"), "cd", b"ef"]) 690 self.assertEqual(self.type2test(b'abc').strip(memoryview(b'ac')), b'b') 691 self.assertEqual(self.type2test(b'abc').lstrip(memoryview(b'ac')), b'bc') 692 self.assertEqual(self.type2test(b'abc').rstrip(memoryview(b'ac')), b'ab') [all...] |
test_float.py | 101 memoryview, 118 self.assertEqual(float(memoryview(b'12.3')[1:4]), 2.3) 119 self.assertEqual(float(memoryview(b'12.3\x00')[1:4]), 2.3) 120 self.assertEqual(float(memoryview(b'12.3 ')[1:4]), 2.3) 121 self.assertEqual(float(memoryview(b'12.3A')[1:4]), 2.3) 122 self.assertEqual(float(memoryview(b'12.34')[1:4]), 2.3) [all...] |
test_format.py | 335 testcommon(b"%b", memoryview(b"abc"), b"abc") 340 testcommon(b"%s", memoryview(b"abc"), b"abc")
|
test_symtable.py | 178 symtable.symtable("pass", memoryview(b"spam"), "exec")
|
/external/python/cpython3/Lib/ |
_compression.py | 67 with memoryview(b) as view, view.cast("B") as byte_view:
|
base64.py | 43 return memoryview(s).tobytes() 154 s = memoryview(s).tobytes() 282 b = memoryview(b).tobytes() 510 m = memoryview(s)
|
asynchat.py | 193 if not isinstance(data, (bytes, bytearray, memoryview)):
|
/external/python/cpython3/Lib/sqlite3/test/ |
userfunctions.py | 54 return isinstance(v, (bytes, memoryview)) 262 cur.execute("select isblob(?)", (memoryview(b"blob"),)) 293 ("foo", 5, 3.14, None, memoryview(b"blob"),)) 379 cur.execute("select checkType('blob', ?)", (memoryview(b"blob"),))
|
types.py | 71 val = memoryview(sample) 200 val = memoryview(sample) 355 result = self.con.execute('select ? as "x [bin]"', (memoryview(zlib.compress(testdata)),)).fetchone()[0]
|
/external/python/cpython3/Lib/test/test_asyncio/ |
test_transports.py | 30 memoryview(b'line3')])
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/preprocessing/ |
text.py | 111 # For Python3 defined buffer as memoryview. 112 buffer_or_memoryview = memoryview
|
/external/chromium-trace/catapult/third_party/pyserial/serial/ |
serialutil.py | 49 # ``memoryview`` was introduced in Python 2.7 and ``bytes(some_memoryview)`` 51 # cases and test for it. Ensure that there is a ``memoryview`` object for older 55 memoryview 59 class memoryview: class in inherits: 71 elif isinstance(seq, memoryview):
|
/external/python/cpython3/Lib/http/ |
client.py | 448 return memoryview(b)[:n].tobytes() 486 b = memoryview(b)[0:self.length] 573 mvb = memoryview(b) 620 mvb = memoryview(b) 817 mv = memoryview(body) [all...] |
/external/python/cpython2/Lib/test/ |
test_struct.py | 470 self.test_pack_into(cls=lambda b: memoryview(bytearray(b)), 471 tobytes=memoryview.tobytes) 510 data1 = memoryview('\x12\x34\x56\x78') 514 self.test_unpack_from(cls=memoryview)
|
test_gzip.py | 35 b_data = memoryview(data).tobytes() 77 self.write_and_read_back(memoryview(data1 * 50))
|
test_StringIO.py | 213 constructor = memoryview
|
/external/python/cpython3/Lib/encodings/ |
punycode.py | 185 if isinstance(text, memoryview):
|
/external/python/cpython2/Misc/Vim/ |
python.vim | 73 syn keyword pythonBuiltin locals long map max memoryview min next object
|
/external/python/cpython3/Lib/asyncio/ |
sslproto.py | 257 view = memoryview(data) 383 if not isinstance(data, (bytes, bytearray, memoryview)):
|
/external/python/cpython3/Lib/test/eintrdata/ |
eintr_tester.py | 180 written += os.write(wr, memoryview(data)[written:]) 259 ' n += rd.recv_into(memoryview(received_data)[n:])', 272 sent = send_func(wr, memoryview(data)[written:])
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_binascii.py | 226 type2test = memoryview
|
/external/python/cpython3/Lib/multiprocessing/ |
heap.py | 269 return memoryview(arena.buffer)[start:start+size]
|
connection.py | 185 m = memoryview(buf) 188 m = memoryview(bytes(m)) 228 with memoryview(buf) as m:
|