[Patches] [ python-Patches-552167 ] Tuple iterator type

noreply@sourceforge.net noreply@sourceforge.net
Fri, 03 May 2002 20:54:28 -0700


Patches item #552167, was opened at 2002-05-04 03:54
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=552167&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tuple iterator type

Initial Comment:
Created a tuple iterator type modelled after the 
dictionary iterator type.  Added the new type to the 
tp_iter slot of tuple.

Optimizes list conversion and looping access by 19% 
over the current method of tapping the sq_item slot 
with an iterobject.

External interface unchanged.  No doc changes needed.  
Tests okay with Lib/tests/test_builtin.py.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=552167&group_id=5470