A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-March/034110.html below:

[Python-Dev] PyObject_GenericGetIter()

[Python-Dev] PyObject_GenericGetIter() [Python-Dev] PyObject_GenericGetIter()Raymond Hettinger python@rcn.com
Mon, 17 Mar 2003 09:02:02 -0500
> Where was this agreed upon?  

Perhaps I overstepped.  It's been on my todo list for a 
couple of months and didn't seem to be even slightly
controversial.


> __iter__ returning self doesn't sound very generic to me, 
> so at the very least the name should be changed IMO.  

Thomas suggested PyObject_GetSelfIter, PyObject_GenericSelfIter,
or PyObject_SelfIter.  Consistent with the other tp_slot fillers, I 
suggest PyObject_GenericIter. 


> Also, adding a standard API for a helper function this
> trivial doesn't really make sense to me.

This identical code was duplicated in a dozen different
modules in the same context.  It comes up when writing
most iterators and needed to be factored out.


Raymond Hettinge



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