Home
last modified time | relevance | path

Searched refs:ND_WRITABLE (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_buffer.py628 offset=offset, flags=ND_WRITABLE|flags)
887 ro = 0 if readonly else ND_WRITABLE
1054 0, ND_WRITABLE, ND_FORTRAN, ND_FORTRAN|ND_WRITABLE,
1055 ND_PIL, ND_PIL|ND_WRITABLE
1117 ex = ndarray(items, shape=shape, flags=order|ND_WRITABLE)
1403 nd = ndarray([1], shape=[1], flags=ND_WRITABLE)
1410 nd = ndarray([1], shape=[1], flags=ND_WRITABLE)
1420 nd = ndarray(items, shape=[len(items)], format="B", flags=ND_WRITABLE)
1429 nd = ndarray(items, shape=[len(items)], format="LQ", flags=ND_WRITABLE)
1435 nd = ndarray(1, shape=(), flags=ND_WRITABLE)
[all …]
Dpickletester.py306 else _testbuffer.ND_WRITABLE)}
2696 for flags in (0, _testbuffer.ND_WRITABLE):
/external/python/cpython3/Lib/ctypes/test/
Dtest_frombuffer.py56 flags = _testbuffer.ND_WRITABLE | _testbuffer.ND_FORTRAN
/external/python/cpython3/Modules/
D_testbuffer.c53 #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()