Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...hetland.org (Magnus Lie Hetland) Status:Rejected Type:Standards Track Created:11-Feb-2002 Python-Version:2.3 Post-History: Contents Abstract Pronouncement Motivation Specification Alternatives Backwards Compatibility Copyright Abstract This PEP describes yet another way of exposing the loop counter in for-loops. It basically proposes that the functionality of the function indices() from PEP 212 be included in the existing functions range() and xrange(). Pronouncement In commentin...
...Hetland: I think indexed would be a useful and natural built-in function. I would certainly use it a lot. I like indexed() a lot; +1. I'm quite happy to have it make PEP 281 obsolete. Adding a separate module for iterator utilities seems like a good idea. Comments from the Community: The response to the enumerate() proposal has been close to 100% favorable. Almost everyone loves the idea. Author response: Prior to these comments, four built-ins were proposed. After the comments, xmap, xfilter ...
...Hetland An alternative to irange() from PEP 212 (which is in the rejected pile, but doesn't have text explaining why it was rejected). As long as we're going to introduce a notation FOO(sequence) that returns a (lazy or otherwise) version of range(0,len(sequence)), I think using FOO==range is more confusing than anything else. IOW if we have to do this, invent a new name for it. PEP 282 - A Logging System - Mick I asked for this, and haven't even looked at it. But I like it a...
...hetland.org (Magnus Lie Hetland) Discussions-To:python-iterators at lists.sourceforge.net Status:Final Type:Standards Track Requires:234 Created:18-May-2001 Python-Version:2.2 Post-History:14-Jun-2001, 23-Jun-2001 Contents Abstract Motivation Specification: Yield Specification: Return Specification: Generators and Exception Propagation Specification: Try/Except/Finally Example Q & A Why not a new keyword instead of reusing def? Why a new keyword for yield? Why not a builtin...
...Hetland, Magnus Lie magnus at hetland.org Hettinger, Raymond python at rcn.com Hilton-Balfe, James gobot1234yt at gmail.com Hodgson, Neil neilh at scintilla.org Holth, Daniel dholth at gmail.com House, Philip phouse512 at gmail.com Houtven, Laurens Van _ at lvh.cc Hoyt, Ben benhoyt at gmail.com Hrončok, Miro miro at hroncok.cz Hudson, Michael mwh at python.net Hukkinen, Taneli, Shantanu Jain hauntsaninja at gmail.com Hylton, Jeremy jeremy at alum.mit.edu Ingram, Dustin di at python.o...