Python2.5/None

文字列化

2010-02-27

Noneの文字列化したものは “None” という文字列・・・いけてない・・・

print str(None) #=> None

Rubyみたいに空文字ならいいのに

p nil.to_s #=> ""