This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: block support for builtin iter()
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, hyeshik.chang, loewis
Priority: normal Keywords: patch

Created on 2002-04-29 01:30 by hyeshik.chang, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
xiter-1.0.tar.gz hyeshik.chang, 2002-04-29 01:30 patch sample as extension module
Messages (3)
msg39743 - (view) Author: Hyeshik Chang (hyeshik.chang) * (Python committer) Date: 2002-04-29 01:30
>>> 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)
msg39744 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-05-02 17:45
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.
msg39745 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-05-07 12:31
Logged In: YES 
user_id=6380

I'm rejecting this idea for now; it seems to esoteric and
arbitrary for the standard library.
History
Date User Action Args
2022-04-10 16:05:16adminsetgithub: 36517
2002-04-29 01:30:27hyeshik.changcreate