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/040153.html below:

[Python-Dev] other "magic strings" issues

[Python-Dev] other "magic strings" issues [Python-Dev] other "magic strings" issuesSkip Montanaro skip at pobox.com
Mon Nov 10 12:16:34 EST 2003
    Tim> # inside string.py or equivalent ...

    Tim> import sets

    Tim> ascii_letters = sets.Set(ascii_letters)

    Tim> Hmm - we'd have the iterability, individual characters and speed,
    Tim> but lose iterating in order. I'm sure there's things out there that
    Tim> rely on iterating over ascii_letters in order ... ;)

Actually, I suspect that in most cases you wouldn't have speed unless
sets.Set() is rewritten in C.  See my previous post with the timeit.py
results.

Skip

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