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