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: bytesiterator patch
Type: enhancement Stage:
Components: Interpreter Core Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, gvanrossum
Priority: normal Keywords:

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:27adminsetgithub: 45676
2007-10-26 17:40:25gvanrossumsetstatus: open -> closed
resolution: accepted
messages: + msg56798
2007-10-26 13:50:39christian.heimescreate