Message123015
| Author |
Retro |
| Recipients |
JJeffries, Retro, belopolsky, christian.heimes, eric.araujo, georg.brandl, ixokai, r.david.murray, tim.golden, twouters |
| Date |
2010年12月01日.21:21:32 |
| SpamBayes Score |
2.0968992e-06 |
| Marked as misclassified |
No |
| Message-id |
<AANLkTin+Fn=D1bDvcRJ_w+FOBT26CU9OvxJx7s7vpEOQ@mail.gmail.com> |
| In-reply-to |
<1291238171.85.0.949289838058.issue10092@psf.upfronthosting.co.za> |
| Content |
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 |
| Files |
| File name |
Uploaded |
|
unnamed
|
Retro,
2010年12月01日.21:21:32
|
|