--- Aahz <aahz@pythoncraft.com> wrote: > > Seems to me that part of my confusion lies in the fact that PEP 296 says > that the bytes object is suitable for implementing arrays, whereas the > discussion surrounding PEP 298 coughed up the issue that pure fixed > buffers without locking were insufficient for arrays. > Theoretically, you could use the bytes object and the struct module to implement something that is functionally equivalent to arrays from arraymodule.c (at least from the Python scripting point of view). Lets call that hypothetical reimplementation "array.py". However, since arrays from arraymodule.c can be resized in place, the pointer is not necessarily constant for the lifetime of the array object. Cheers, -Scott __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com
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