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/2003-November/040141.html below:

[Python-Dev] other "magic strings" issues

[Python-Dev] other "magic strings" issues [Python-Dev] other "magic strings" issuesAlex Martelli aleaxit at yahoo.com
Mon Nov 10 03:18:15 EST 2003
On Sunday 09 November 2003 11:54 pm, Delaney, Timothy C (Timothy) wrote:
   ...
> ascii_letters = sets.Set(ascii_letters)
>
> Hmm - we'd have the iterability, individual characters and speed, but lose
> iterating in order. I'm sure there's things out there that rely on
> iterating over ascii_letters in order ... ;)

Yes, that's my main use case -- presenting results to the user, so they need
to be in alphabetic order (ascii_lowercase actually, but it's much the same).

Anyway, Guido has already pronounced on such enhancements as "Too
Clever", so we have to keep ascii_lowercase &c as plain strings without any
enhancements and keep the "false positives" &c on 'in' checks.


Alex


More information about the Python-Dev mailing list

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