Home
last modified time | relevance | path

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

/third_party/python/Modules/
H A 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()
1365 "ND_VAREXPORT flag can only be used during object creation"); 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()
/third_party/python/Lib/test/
H A Dtest_buffer.py1129 ndm = ndarray([9], [1], flags=ND_VAREXPORT)
1209 # ND_VAREXPORT can only be specified during construction.
1210 nd = ndarray([9], [1], flags=ND_VAREXPORT)
1211 self.assertRaises(ValueError, nd.push, [1], [1], flags=ND_VAREXPORT)
1218 # ND_VAREXPORT not set: push/pop fail with exported buffers
1288 nd = ndarray([1,2,3], shape=[3], flags=ND_VAREXPORT)
4210 nd = ndarray([1,2,3], shape=[3], flags=ND_VAREXPORT)

Completed in 13 milliseconds