Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[FIOC] PYTHON 3.0 RELEASED

Name: Anonymous 2008-12-03 21:32

We are pleased to announce the release of Python 3.0 (final), a new production-ready release of the award-winning FIOC-oriented programming language, on December 3rd, 2008.

New features include significantly reduced faggotry and a print function.

Get yours today at http://www.python.org/download/releases/3.0/

Name: Anonymous 2008-12-03 22:10

>>2
map() and filter() return iterators. If you really need a list, a quick fix is e.g. list(map(...)), but a better fix is often to use a list comprehension (especially when the original code uses lambda), or rewriting the code so it doesn’t need a list at all. Particularly tricky is map() invoked for the side effects of the function; the correct transformation is to use a regular for loop (since creating a list would just be wasteful).
Removed reduce(). Use functools.reduce() if you really need it; however, 99 percent of the time an explicit for loop is more readable.
Terrible

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List