On Fri, Sep 3, 2010 at 8:56 PM, Antoine Pitrou <solipsis at pitrou.net> wrote: > On Fri, 3 Sep 2010 20:44:01 +1000 Nick Coghlan <ncoghlan at gmail.com> wrote: > That's an interesting idea. I was planning to return a memoryview > object (in order to hide the intermediate object, and make it really > minimal), so perhaps the context protocol should be enabled on > memoryviews? > > (__enter__ would be a no-op, and __exit__ would release the internal > buffer and render it invalid, a bit like closing a file) Yep, sounds good (with "no-op" in this case meaning "just return self"). Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
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