Home
last modified time | relevance | path

Searched refs:PyBUF_READ (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Doc/c-api/
Dmemoryview.rst26 *flags* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
/third_party/python/Lib/test/
Dtest_buffer.py880 contig = get_contiguous(result, PyBUF_READ, order)
1267 self.assertRaises(TypeError, get_contiguous, nd, PyBUF_READ, 961)
1268 self.assertRaises(UnicodeEncodeError, get_contiguous, nd, PyBUF_READ,
1270 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'Z')
2476 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'C')
2477 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'F')
2478 self.assertRaises(ValueError, get_contiguous, nd[::-1], PyBUF_READ, 'C')
3966 self.assertRaises(TypeError, get_contiguous, {}, PyBUF_READ, 'F')
3978 m = get_contiguous(nd, PyBUF_READ, order)
3985 m = get_contiguous(nd, PyBUF_READ, order)
[all …]
/third_party/python/Include/cpython/
Dobject.h99 #define PyBUF_READ 0x100 macro
/third_party/python/Modules/
D_testbuffer.c585 mview = PyMemoryView_FromMemory(ptr, itemsize, PyBUF_READ); in unpack_single()
2413 if (type != PyBUF_READ && type != PyBUF_WRITE) { in get_contiguous()
2887 PyModule_AddIntMacro(m, PyBUF_READ); in PyInit__testbuffer()
/third_party/python/Objects/
Dmemoryobject.c736 assert(flags == PyBUF_READ || flags == PyBUF_WRITE); in PyMemoryView_FromMemory()
926 assert(buffertype == PyBUF_READ || buffertype == PyBUF_WRITE); in PyMemoryView_GetContiguous()