On Tue, 3 Aug 1999, Jack Jansen wrote: > > > Why not pass the index to the As*Buffer routines as well and make getsegcount > > > available too? > > > > Simply because multiple segments hasn't been seen. All objects > > supporting the buffer interface have a single segment. > > Hmm. And I went out of my way to include this stupid multi-buffer stuff > because the NumPy folks said they couldn't live without it (and one of the > reasons for the buffer stuff was to allow NumPy arrays, which may be > discontiguous, to be written efficiently). > > Can someone confirm that the Numeric stuff indeed doesn't use this? /usr/LLNLDistribution/Numerical/Include$ grep buffer *.h /usr/LLNLDistribution/Numerical/Include$ Yes. =) See the other thread on low-overhead pickling. But again, *if* multiarrays supported the buffer interface, they'd have to use the multi-segment feature (repeating myself). --david
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4