[Patches] [ python-Patches-552167 ] Tuple iterator type
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 04 May 2002 16:19:34 -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.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2002-05-04 23:19
Message:
Logged In: YES
user_id=80475
Done. Added GC to tp_flags, tupleiter_new(), and
tupleiter_dealloc(). Copied from iterobject.c ver 1.8.
Please double check -- my understanding of GC is shallow.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-05-04 13:36
Message:
Logged In: YES
user_id=21627
I think this object needs to participate in GC.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=552167&group_id=5470