[Patches] [ python-Patches-549975 ] block support for builtin iter()
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 07 May 2002 05:31:44 -0700
Patches item #549975, was opened at 2002-04-28 21: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: Closed
>Resolution: Rejected
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)
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-05-07 08:31
Message:
Logged In: YES
user_id=6380
I'm rejecting this idea for now; it seems to esoteric and
arbitrary for the standard library.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-05-02 13:45
Message:
Logged In: YES
user_id=21627
As this is already a distutils package, I suggest that you
distribute the code to users first, before suggesting it to
be included into Python. It might be best to put it on your
home page, and add a link in the Vaults of Parnassus.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=549975&group_id=5470