真 もわ爛漫

しゃーら、しゃーらしゃーら

Python 3.0

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

1/2 returns a float. Use 1//2 to get the truncating behavior.

Pythonクックブックの話は冗談じゃなかったのか……

#「3.0あたりでは1/2は0じゃない値を返すかもよ」とか書いてある

Also, print and print (x, y) behave differently without warning: the former used to add a newline in 2.x, but does nothing in 3.0; ...
(もわ訳) また、 print と print (x, y) は警告なしに挙動が変わる。2.x のprintは末尾に改行を追加したが、3.0では何もしない。...


おー。