Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
H A Dtest_buffer.py1056 ND_PIL, ND_PIL|ND_WRITABLE
1071 if not shape and (flags&ND_PIL):
1148 # ND_PIL flag is only valid with ndim > 0.
1149 self.assertRaises(TypeError, c, [1], shape=[], flags=ND_PIL)
1316 for flags in (0, ND_PIL):
1336 for flags in (0, ND_PIL):
1359 for flags in (0, ND_PIL):
1360 if ndim == 0 and flags == ND_PIL:
1570 for flags in (0, ND_PIL)
[all...]
/third_party/python/Modules/
H A D_testbuffer.c56 #define ND_PIL 0x010 /* convert to PIL-style array (suboffsets) */ macro
270 ndbuf->flags |= ND_PIL; in init_flags()
1127 if (ndbuf->flags & ND_PIL) { in init_structure()
1129 "ndim = 0 cannot be used in conjunction with ND_PIL"); in init_structure()
1168 if (ndbuf->flags & ND_PIL) { in init_structure()
1484 if (!REQ_INDIRECT(flags) && (baseflags & ND_PIL)) { in ndarray_getbuf()
2864 PyModule_AddIntMacro(m, ND_PIL); in PyInit__testbuffer()

Completed in 6 milliseconds