1 / 32
文档名称:

Python 3000.ppt

格式:ppt   页数:32页
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

Python 3000.ppt

上传人:xxj16588 2016/1/8 文件大小:0 KB

下载得到文件列表

Python 3000.ppt

相关文档

文档介绍

文档介绍:Python 3000(PyCon, 24-Feb-02007)Guido van ******@******@24 Feb 02007(c) 2007 Python Software Foundation2What Is Python 3000???The next major Python release–To be released as Python ?The first one in a long time to be patible–But pletely different or unusual?Concept first formed around 2000–Py3k nickname was a play on Windows 2000?Goal: to correct my early design mistakes–Those that would require patibility to fix–Reduce cognitive load for first-time learners?Work and thinking started for real last year24 Feb 02007(c) 2007 Python Software Foundation3Activity Since Last Year?Lots of design discussions–(too many, if you ask me :-)?Some PEPs were written–(but not enough…)?Lots of code was written–(just the right amount!)–(but we're not done yet!!)24 Feb 02007(c) 2007 Python Software Foundation4Python Timeline?PEPs to pleted: April 2007??: June 2007? final: June 2008?parison, the timeline:?: December 2007? final: April 2008There will also be a timeline24 Feb 02007(c) 2007 Python Software Foundation5Rest of the Talk?Highlight some of the most visible changes–print function, dict views, comparisons, unicode, …?How to convert to code?Notational convention:*= pletely implemented**= not yet implemented24 Feb 02007(c) 2007 Python Software Foundation6No More Classic Classes?In … :–class C:# classic class ( … )–class C(object):# new-style class (old now :-)?In :–both are new-style classes (just say "classes")?Differences are subtle, few of you will notice24 Feb 02007(c) 2007 Python Software Foundation7Print is a Function?print x, y-> print(x, y)?print x,-> print(x, end=" ")?print >>f, x-> print(x, file=f)?Automatic translation is 98% correct?Fails for cases involving softspace cleverness:–print "x\n", "y" doesn 't insert a space before y–print("x\n", "y") does–ditto for print "x\t", "y"24 Feb 02007(c) 2007 Python Software Foundation8Dictionary Views?Inspired by Java Collections Framework?Remove .iterkeys(), .iteritems(),