~ubuntu-branches/debian/sid/python2.7/sid

« back to all changes in this revision

Viewing changes to Doc/c-api/buffer.rst

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2015-05-10 23:40:03 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20150510234003-8tohs1y1swc56hwf
Tags: 2.7.10~rc1-1
* Python 2.7.10 release candidate 1.
* Re-enable running the tests, re-enable the pgo/lto build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
      suboffset value that it negative indicates that no de-referencing should
99
99
      occur (striding in a contiguous memory block).
100
100
 
 
101
      If all suboffsets are negative (i.e. no de-referencing is needed, then
 
102
      this field must be NULL (the default value).
 
103
 
101
104
      Here is a function that returns a pointer to the element in an N-D array
102
 
      pointed to by an N-dimesional index when there are both non-NULL strides
 
105
      pointed to by an N-dimensional index when there are both non-NULL strides
103
106
      and suboffsets::
104
107
 
105
108
          void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,