19 Apr
2010
19 Apr
'10
8:53 p.m.
Antoine Pitrou wrote:
Victor Stinner <victor.stinner <at> haypocalc.com> writes:
It's a choice, I didn't want to patch Windows because I know that Windows use unicode internally. I consider that developers using Python3 should use unicode on Windows, and byte or unicode+surrogates on other OS.
I think both possibilities should be available on all OSes, so as to make it easier to write cross-platform code. Having to switch being bytes and unicode depending on the OS means developers will have to deal with encoding issues themselves, which is suboptimal from a language usability's point of view.
Indeed, you shouldn't be switching. Instead, you should be using Unicode strings all the time. Regards, Martin