New submission from dauerbaustelle <jo...@lophus.org>: The locale.D_* and locale.T_* attributes are ints with weird values instead of strings (see documentation[1]).
Example: >>> import locale >>> locale.setlocale(locale.LC_ALL, 'en_US.utf8') 'en_US.utf8' >>> locale.D_T_FMT 131112 >>> locale.D_FMT 131113 >>> locale.T_FMT 131114 >>> locale.T_FMT_AMPM 131115 It seems like the .DAY_* stuff is also broken: >>> locale.DAY_1 131079 >>> locale.DAY_2 131080 >>> locale.DAY_7 131085 And many other variables: >>> locale.THOUSEP 65537 The documentation says that every of these variables should be strings. Regards, db [1]http://docs.python.org/library/locale.html#locale.D_T_FMT ---------- components: Library (Lib) messages: 90384 nosy: dauerbaustelle severity: normal status: open title: locale.D_* and .T_* are int, not string type: behavior versions: Python 2.5, Python 2.6, Python 3.0, Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6456> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com