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

[Python-Dev] Why did Fredrik leave the party?

[Python-Dev] Why did Fredrik leave the party? [Python-Dev] Why did Fredrik leave the party?David Ascher DavidA@ActiveState.com
Wed, 05 Feb 2003 10:49:34 -0800
Barry A. Warsaw wrote:
>>>>>>"RH" == Raymond Hettinger <python@rcn.com> writes:
> 
> 
>     RH> * how to override __getitem__ and throw away the index to
>     RH> simulate iteration * to add 1L to their factorial function
>     RH> which worked fine for small parameters but crashed with larger
>     RH> ones * to clutter code with x=x, y=y, etc to simulate nested
>     RH> scope * funky code contortions to simulate lockstep iteration
>     RH> * use of the lineinput module to read files line-by-line
> 
> Don't forget ugly and unique
> 
>     foo = foo + 1
> 

Or my favorite wart fixed in 2.3

	bigstring.index(smallstring) != -1

(or was that bigstring.find(smallstring) != -1 ? :-)

--david





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