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

[Python-Dev] other "magic strings" issues

[Python-Dev] other "magic strings" issues [Python-Dev] other "magic strings" issuesRaymond Hettinger python at rcn.com
Fri Nov 7 14:04:51 EST 2003
> Ah gotcha.  I'd definitely want to retain ascii_letters, probably
> ascii_lowercase and ascii_uppercase, digits, hexdigits, octdigits,
> punctuation, printable, and whitespace

Other than possibly upper and lower, the rest should be skipped and left
for tests like isdigit().  The tests are faster than the usual linear
search style of:   if char in str.letters.


Raymond


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