Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Bare except clauses in PEP 348

Guido van Rossumgvanrossum at gmail.com
Thu Aug 25 17:10:52 CEST 2005


On 8/25/05, Raymond Hettinger <raymond.hettinger at verizon.net> wrote:> It's only an overstatement if Guido didn't mean what he said.  If bare> except clauses are deprecated in 2.x, it WILL affect tons of existing> code and invalidate a portion of almost all Python books.Deprecation means your code will still work I hope every book thatdocuments "except:" also adds "but don't use this except under veryspecial circumstances".I think you're overreacting (again), Raymond. 3.0 will be much moresuccessful if we can introduce many of its features into 2.x. Many ofthose features are in fact improvements of the language even if theybreak old code. We're trying to balance between breaking old code andintroducing new features; deprecation is the accepted way to do this.Regarding the complaint that Python is changing too fast, that reallysounds like FUD to me. With a new release every 18 months Python isabout as stable as it gets barring dead languages. The PHP is in thethrows of the 4->5 conversion which breaks worse than Python 2->3 will(Rasmus ia changing object assignment semantics from copying tosharing).  Maybe they should be warned not to learn Perl because Larryis deconstructing it all for Perl 6? :-)-- --Guido van Rossum (home page:http://www.python.org/~guido/)


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp