Why Python 4.0 won't be like Python 3.0

82 views
Skip to first unread message

Thomas Huang

unread,
Aug 19, 2014, 2:18:08 AM8/19/14
to pyth...@googlegroups.com

Newcomers to python-ideas occasionally make reference to the idea of "Python 4000" when proposing backwards incompatible changes that don't offer a clear migration path from currently legal Python 3 code. After all, we allowed that kind of change for Python 3.0, so why wouldn't we allow it for Python 4.0?

I've heard that question enough times now (including the more concerned phrasing "You made a big backwards compatibility break once, how do I know you won't do it again?"), that I figured I'd record my answer here, so I'd be able to refer people back to it in the future.

--- Nick Coghlan

 

http://www.curiousefficiency.org/posts/2014/08/python-4000.html

sj l

unread,
Aug 19, 2014, 3:41:39 AM8/19/14
to pyth...@googlegroups.com


--
--
邮件来自: `CPyUG`华蟒用户组(中文Python技术邮件列表)
规则: http://code.google.com/p/cpyug/wiki/PythonCn
发言: pyth...@googlegroups.com
详情: http://code.google.com/p/cpyug/wiki/CpyUg
G+: https://plus.google.com/u/0/communities/108786798869709602787
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
---
您收到此邮件是因为您订阅了Google网上论坛中的“python-cn(华蟒用户组,CPyUG 邮件列表)”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到python-cn+...@googlegroups.com
要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/python-cn/664d9f87-620f-4f25-809f-6d1b9ef1af11%40googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

依云

unread,
Aug 19, 2014, 4:47:29 AM8/19/14
to pyth...@googlegroups.com
On Tue, Aug 19, 2014 at 03:41:26PM +0800, sj l wrote:
> 这个帖子更好:http://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-to-see/

赞!我特别喜欢这篇文章。前些天还遇到过一个由于 CPython 的实现导致 PyPy
那边行为不一样的问题呢(也是 slot 造成的):

Python 标准说,凡是有 __getitem__ 属性的对象都可以被迭代。但是 CPython
里通过 C API 定义的类可以不这样。

--
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?
Reply all
Reply to author
Forward
0 new messages