[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