Movatterモバイル変換
[0]ホーム
[Python-Dev] Add a new "locale" codec?
Simon Crosshodgestar+pythondev at gmail.com
Wed Feb 8 10:28:55 CET 2012
I think I'm -1 on a "locale" encoding because it refers to differentactual encodings depending on where and when it's run, which seemssurprising, and there's already a more explicit way to achieve thesame effect.The documentation on .getpreferredencoding() says some scary thingsabout needing to call .setlocale() sometimes but doesn't really saywhen or why. Could any of those cases make "locale" do weird thingsbecause it doesn't call setlocale()?
More information about the Python-Devmailing list
[8]ページ先頭