What's new in Python 2.6
Posted Sep 3, 2008 11:43 UTC (Wed) by
MiguelAtWork (guest, #53380)
In reply to:
What's new in Python 2.6 by jamesh
Parent article:
What's new in Python 2.6
I hadn't read PEP 8 before and I found it interesting, but it doesn't seem to help much with consistency in the use of underscores. New functions in 2.6 include such names as namedtuple, isgeneratorfunction or methodcaller on the no-underscores front, and ignore_patterns or create_connection on the other side. This still seems fairly random to me.
As for the comment about "next", I was thinking of code like this:
def old_function():
global next
next = "Hi!"
# ... 1000 lines of code here ...
def new_function(it):
value = next(it)
I believe this would fail.
(
Log in to post comments)