Home
last modified time | relevance | path

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

/external/python/cpython3/Doc/c-api/
Dmemoryview.rst26 *flags* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
/external/python/cpython3/Lib/test/
Dtest_buffer.py873 contig = get_contiguous(result, PyBUF_READ, order)
1240 self.assertRaises(TypeError, get_contiguous, nd, PyBUF_READ, 961)
1241 self.assertRaises(UnicodeEncodeError, get_contiguous, nd, PyBUF_READ,
1243 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'Z')
2449 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'C')
2450 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'F')
2451 self.assertRaises(ValueError, get_contiguous, nd[::-1], PyBUF_READ, 'C')
3935 self.assertRaises(TypeError, get_contiguous, {}, PyBUF_READ, 'F')
3947 m = get_contiguous(nd, PyBUF_READ, order)
3954 m = get_contiguous(nd, PyBUF_READ, order)
[all …]
/external/python/cpython2/Include/
Dobject.h210 #define PyBUF_READ 0x100 macro
/external/python/cpython3/Include/
Dobject.h229 #define PyBUF_READ 0x100 macro
/external/python/cpython3/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()
/external/python/cpython3/Objects/
Dmemoryobject.c726 assert(flags == PyBUF_READ || flags == PyBUF_WRITE); in PyMemoryView_FromMemory()
916 assert(buffertype == PyBUF_READ || buffertype == PyBUF_WRITE); in PyMemoryView_GetContiguous()