Home
last modified time | relevance | path

Searched refs:ND_VAREXPORT (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Modules/
D_testbuffer.c51 #define ND_VAREXPORT 0x001 /* change layout while buffers are exported */ macro
1335 if (flags & ND_VAREXPORT) { in ndarray_init()
1336 nd->flags |= ND_VAREXPORT; in ndarray_init()
1337 flags &= ~ND_VAREXPORT; in ndarray_init()
1363 if (flags & ND_VAREXPORT) { in ndarray_push()
1373 if (!(nd->flags&ND_VAREXPORT) && nd->head->exports > 0) { in ndarray_push()
2860 PyModule_AddIntMacro(m, ND_VAREXPORT); in PyInit__testbuffer()
/external/python/cpython3/Lib/test/
Dtest_buffer.py1128 ndm = ndarray([9], [1], flags=ND_VAREXPORT)
1209 nd = ndarray([9], [1], flags=ND_VAREXPORT)
1210 self.assertRaises(ValueError, nd.push, [1], [1], flags=ND_VAREXPORT)
1287 nd = ndarray([1,2,3], shape=[3], flags=ND_VAREXPORT)
4209 nd = ndarray([1,2,3], shape=[3], flags=ND_VAREXPORT)