Issue 1335: bytesiterator patch - Python tracker (original) (raw)

Issue1335

Created on 2007-10-26 13:50 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
py3k_bytesiterator.patch christian.heimes,2007-10-26 13:50
Messages (2)
msg56789 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-10-26 13:50
Here is the long promised bytes iterator view. It was much, *much* easier to write it than I have thought. In fact I spent more time fixing the indention than to modify the code from striterator. I haven't written an unit test for it. The other iterators don't have extra tests, too. >>> iter(bytes(b"abc")) <bytesiterator object at 0xb7cc578c> >>> for i in iter(bytes(b"abc")): print(i) ... 97 98 99 >>> for i in bytes(b"abc"): print(i) ... 97 98 99
msg56798 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-10-26 17:40
Committed revision 58674. I added a change to _abcoll.py to remove the registration of bytes as a subclass of Iterable.
History
Date User Action Args
2022-04-11 14:56:27 admin set github: 45676
2007-10-26 17:40:25 gvanrossum set status: open -> closedresolution: acceptedmessages: +
2007-10-26 13:50:39 christian.heimes create