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/2006-August/068477.html below:

[Python-Dev] Removing anachronisms from logging module

[Python-Dev] Removing anachronisms from logging module [Python-Dev] Removing anachronisms from logging moduleFredrik Lundh fredrik at pythonware.com
Sat Aug 26 00:16:38 CEST 2006
Guido van Rossum wrote:

> (*) I found an example of code testing "if string.find(s, t) != 0",
> thinking it was a bug attempting to write "if t in s", but which Vinay
> identified as a 1.5.2 idiom for "if not s.startswith(t)"...

and as noted on the py3k list, not a very good one, given that the usual 
way to write that under 1.5.2 is a lot faster (*).

</F>

*) even faster than "startswith", in many cases.

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