[issue19341] locale.getdefaultencoding() returns wrong locale and encoding for ca_ES@valencia

2013-10-22 Thread David Planella
New submission from David Planella: It seems getdefaultlocale does not return the correct encoding when the locale is set to ca_ES@valencia: >>> import locale >>> locale.setlocale(locale.LC_ALL, "") 'LC_CTYPE=ca_ES.UTF-8@valencia;LC_NUMERIC=ca_ES.UTF-8;LC_TIME

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-13 Thread David Planella
David Planella added the comment: It would be nice that %-formatting had the same functionality as in C when it comes to discarding unnamed arguments, but from the comments I understand that being deprecated no changes in functionality are contemplated. However, before recommending using