A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-May/004121.html below:

No 1.6! (was Re: A REALLY COOL PYTHON FEATURE:))

[Python-Dev] OOps (was: No 1.6! (was Re: A REALLY COOL PYTHON FEATURE:)) [Python-Dev] OOps (was: No 1.6! (was Re: A REALLY COOL PYTHON FEATURE:))Ka-Ping Yee ping@lfw.org
Wed, 17 May 2000 21:37:42 -0700 (PDT)
On Thu, 18 May 2000, Tim Peters wrote:
> There may be some hope in that the "for/in" protocol is now conflated with
> the __getitem__ protocol, so if Python grows a more general iteration
> protocol, perhaps we could back away from the sequenceness of strings
> without harming "for" iteration over the characters ...

But there's no way we can back away from

    spam = eggs[hack:chop] + ham[slice:dice]

on strings.  It's just too ideal.

Perhaps eventually the answer will be a character type?

Or perhaps no change at all.  I've not had the pleasure of running
into these problems with characters-being-strings before, even though
your survey of the various gotchas now makes that kind of surprising.


-- ?!ng

"Happiness isn't something you experience; it's something you remember."
    -- Oscar Levant




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4