Python 3.0

http://docs.python.org/dev/3.0/whatsnew/3.0.html

影響が大きそうな変更

  • 文字列型は全てUnicodeに。従来のbytestringはbyte型になる。
  • print文はprint関数で置換される。
  • raise Exception, args の構文は raise Exception(args)に変更。
  • classic classは完全に無くなる。今後はnew classのみ。
  • long型がなくなる。以降はint型に統一。

その他にも色々。
こりゃ2.Xと3.Xのコードは完全に分けるしかないな。


| | 2007-09-14 23:56

Comment

Commenting is closed for this article.