Boštjan Mejak <bostjan.me...@gmail.com> added the comment:
Yes, I know this issue is closed but I wonder how could your Python
interpreter not error on
>>> calendar.LocaleTextCalendar(locale='fr_FR').formatmonthname(2010,10,10)
Please retry executing the above line of code in Python 2.7.1 interpreter
and tell me if you get an error. I get this:
>>> import calendar
>>> calendar.LocaleTextCalendar(locale='fr_FR').formatmonthname(2010,10,10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\calendar.py", line 522, in formatmonthname
with TimeEncoding(self.locale) as encoding:
File "C:\Python27\lib\calendar.py", line 490, in __enter__
_locale.setlocale(_locale.LC_TIME, self.locale)
File "C:\Python27\lib\locale.py", line 531, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
----------
Added file: http://bugs.python.org/file19894/unnamed
_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10092>
_______________________________________
Yes, I know this issue is closed but I wonder how could your Python interpreter
not error on<div><span class="Apple-style-span" style="font-family: arial,
sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(80, 0, 80);
">>>>
calendar.LocaleTextCalendar(locale='fr_FR').formatmonthname(2010,10,10)</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif;
font-size: 13px; border-collapse: collapse; color: rgb(80, 0, 80);
"><br></span></div><div><span class="Apple-style-span" style="font-family:
arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(80,
0, 80); ">Please retry executing the above line of code in Python 2.7.1
interpreter and tell me if you get an error. I get this:</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif;
font-size: 13px; border-collapse: collapse; color: rgb(80, 0, 80);
"><div>>>> import calendar</div><div>>>>
calendar.LocaleTextCalendar(locale='fr_FR').formatmonthname(2010,10,10)</div>
<div>Traceback (most recent call last):</div><div>Â Â File
"<stdin>", line 1, in <module></div><div>Â Â File
"C:\Python27\lib\calendar.py", line 522, in
formatmonthname</div><div>Â Â Â with TimeEncoding(self.locale) as
encoding:</div>
<div>Â Â File "C:\Python27\lib\calendar.py", line 490, in
__enter__</div><div>Â Â Â _locale.setlocale(_locale.LC_TIME,
self.locale)</div><div>Â Â File "C:\Python27\lib\locale.py", line
531, in setlocale</div>
<div>Â Â Â return _setlocale(category, locale)</div><div>locale.Error:
unsupported locale setting</div></span></div>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com