Python2.5 beta1 发布

xyzxyz1111 2006-04-06 02:04:01
可以到http://www.python.org 上下载

What's New in Python 2.5

A.M. Kuchling

amk@amk.ca


* Contents
* 1 PEP 308: Conditional Expressions
* 2 PEP 309: Partial Function Application
* 3 PEP 314: Metadata for Python Software Packages v1.1
* 4 PEP 328: Absolute and Relative Imports
* 5 PEP 338: Executing Modules as Scripts
* 6 PEP 341: Unified try/except/finally
* 7 PEP 342: New Generator Features
* 8 PEP 343: The 'with' statement
o 8.1 Writing Context Managers
* 9 PEP 352: Exceptions as New-Style Classes
* 10 PEP 353: Using ssize_t as the index type
* 11 PEP 357: The '__index__' method
* 12 Other Language Changes
o 12.1 Interactive Interpreter Changes
o 12.2 Optimizations
* 13 New, Improved, and Deprecated Modules
o 13.1 The ctypes package
o 13.2 The ElementTree package
o 13.3 The hashlib package
o 13.4 The sqlite3 package
* 14 Build and C API Changes
* 15 Other Changes and Fixes
* 16 Porting to Python 2.5
* 17 Acknowledgements
* About this document ...
...全文
638 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiangding 2006-04-12
  • 打赏
  • 举报
回复
好东东,等着2.5正式版出来
ccat 2006-04-11
  • 打赏
  • 举报
回复
现在还是Alpha 1吧……
shhgs 2006-04-11
  • 打赏
  • 举报
回复
with对类库的编写和使用会产生非常深远的影响

yield的coroutine也是一件很有力的工具。但是coroutine是一把双刃剑。用得好当然很好,用得不好,简直是另一个goto。
shhgs 2006-04-10
  • 打赏
  • 举报
回复
Python的变化真是大。回顾各个版本的升级,给我印象最深的是:

2.0 --> 2.1 list comprehension
2.1 --> 2.2 new classes
2.2 --> 2.3 generator
2.3 --> 2.4 method decorator

现在2.5来了,这个最重要的变化是什么呢?

with还是yield?

limodou 2006-04-10
  • 打赏
  • 举报
回复
我想是with吧
xyzxyz1111 2006-04-06
  • 打赏
  • 举报
回复
主要区别就是What's New 里面说的
详细的可以去看
http://docs.python.org/dev/whatsnew/whatsnew25.html
ChumpKlutz 2006-04-06
  • 打赏
  • 举报
回复
那问一下这个2.5跟2.4.2又有些什么不同呢
michael_g_hu 2006-04-06
  • 打赏
  • 举报
回复
hao
xyzxyz1111 2006-04-06
  • 打赏
  • 举报
回复
Sorry ,是alpha 1, 不是beta 1

37,719

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧