Thoughts on PEP284
Stephen Horne
$$$$$$$$$$$$$$$$$ at $$$$$$$$$$$$$$$$$$$$.co.uk
Tue Sep 23 12:27:13 EDT 2003
On Tue, 23 Sep 2003 10:40:30 -0400, "Sean Ross"
<sross at connectmail.carleton.ca> wrote:
>Here's a quick hack of an int class that supports iteration using the slice
>notation, plus simple iteration on the class itself (for i in int: ...).
>This can certainly be improved, and other issues need to be addressed, but I
>just wanted to see what Stephen's idea would look like in practice. (Not
>bad. Actually, pretty good.)
I like it ;-)
Also, it kind of suggests that maybe a recipe or a library 'xint'
class or C extension module could do the job as well as a language
change.
--
Steve Horne
steve at ninereeds dot fsnet dot co dot uk
More information about the Python-list
mailing list