http://www.python.org/ftp/python/2.6/Python-2.6.tar.bz2作者: lvDbing 时间: 2008-10-02 19:17
:wink:
We are pleased to announce the release of Python 2.6 (final), a new production-ready release, on October 1st, 2008.作者: jjj137 时间: 2008-10-02 20:11
是不是意味着2.5被淘汰了?作者: wangyouqi 时间: 2008-10-02 20:20
原帖由 jjj137 于 2008-10-2 20:11 发表
是不是意味着2.5被淘汰了?
非也非也。。
2.6是2.x与3.x的过度版
基本是2.5的修正版,同时会注名3.x已经放弃的函数或特性作者: 2gua 时间: 2008-10-02 20:31
恭喜恭喜。 作者: 23号 时间: 2008-10-02 21:42
from 张沈鹏 <zsp007@gmail.com>
reply-to python-cn@googlegroups.com
to python-cn@googlegroups.com
date Thu, Oct 2, 2008 at 05:36
subject [CPyUG:67058] Python2.6正式发布,枚举一下我比较感兴趣的新特性
mailing list <python-cn.googlegroups.com> Filter messages from this mailing list
mailed-by googlegroups.com
signed-by googlegroups.com
db_connection = DatabaseConnection()
with db_connection as cursor:
cursor.execute('insert into ...')
cursor.execute('delete from ...')
# ... more operations ...
应该也可以这样
with xxx.profile() as p:
p.xxx=111
p.update_xxx(111)
#结束时刷新缓存