Searched refs:ND_WRITABLE (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_buffer.py | 621 offset=offset, flags=ND_WRITABLE|flags) 881 ro = 0 if readonly else ND_WRITABLE 1028 0, ND_WRITABLE, ND_FORTRAN, ND_FORTRAN|ND_WRITABLE, 1029 ND_PIL, ND_PIL|ND_WRITABLE 1091 ex = ndarray(items, shape=shape, flags=order|ND_WRITABLE) 1377 nd = ndarray([1], shape=[1], flags=ND_WRITABLE) 1384 nd = ndarray([1], shape=[1], flags=ND_WRITABLE) 1394 nd = ndarray(items, shape=[len(items)], format="B", flags=ND_WRITABLE) 1403 nd = ndarray(items, shape=[len(items)], format="LQ", flags=ND_WRITABLE) 1409 nd = ndarray(1, shape=(), flags=ND_WRITABLE) [all …]
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_frombuffer.py | 56 flags = _testbuffer.ND_WRITABLE | _testbuffer.ND_FORTRAN
|
/external/python/cpython3/Modules/ |
D | _testbuffer.c | 53 #define ND_WRITABLE 0x002 /* mark base buffer as writable */ macro 258 nd->head->flags = base->readonly ? 0 : ND_WRITABLE; in ndarray_init_staticbuf() 838 base->readonly = !(ndbuf->flags & ND_WRITABLE); in init_simple() 2861 PyModule_AddIntMacro(m, ND_WRITABLE); in PyInit__testbuffer()
|