[Patches] [ python-Patches-549975 ] block support for builtin iter()

noreply@sourceforge.net noreply@sourceforge.net
Sun, 28 Apr 2002 18:30:27 -0700


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

Category: Core (C code)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Hye-Shik Chang (perky)
Assigned to: Nobody/Anonymous (nobody)
Summary: block support for builtin iter()

Initial Comment:
>>> import xiter
>>> for i in xiter.iter(range(40), blocksize=12):
...     print i
...
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
[12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]
[24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35]
[36, 37, 38, 39]


(attached simple patch as extension module with
 unittest and demonstration script)


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

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