python.org — Python 3000 (a.k.a. "Py3k", and released as Python 3.0) is a new version of the language that is incompatible with the 2.x line of releases. The language is mostly the same, but many details, especially how built-in objects like dictionaries and strings work, have changed considerably, and a lot of deprecated features have finally been removed.
Aug 31, 2007 View in Crawl 4
zenmasterjgSep 1, 2007
Pretty trivial thing to be pissed about.Lots of good reasons to make print a function, not all that many to keep it as a statement.
mikemcgSep 1, 2007
Like what? What else can I accomplish by making braces a requirement?
ghaisSep 1, 2007Submitter
I like the fact that dict.keys(), views() and values() now return a view instead of a list.
gnuvinceSep 1, 2007
my_print = functools.partial(print, seq='_', end=' ~n')my_print('foo', 'bar') # => foo_bar ~with open('foo.txt', 'w') as fd: print("Hello world", file=fd) # More readable than print >>fd, "Hello world"my_logger.log(func=print)