Why is str(None) == 'None' and not an empty string?

Piotr Dobrogost p at google-groups-2013.dobrogost.net
Wed Aug 28 04:57:16 EDT 2013


Hi!

Having repr(None) == 'None' is sure the right thing but why does str(None) == 'None'? Wouldn't it be more correct if it was an empty string?

Regards
Piotr Dobrogost



More information about the Python-list mailing list