Message145864
> Thanks for clarification! I see the problem now. So if I get this
> correctly we should change the _build_localename to raise TypeError?
Yes, that's what I'm proposing.
> If the given locale is in wrong format, we'll get TypeError, but if
> it's valid type but otherwise invalid locale (like 'en'), we'll get
> ValueError (or more specifically locale.Error).
Ideally, yes. Notice that it will be difficult to produce a TypeError
for u"en", unless you explicitly test for Unicode objects. |
|
Date |
User |
Action |
Args |
2011-10-18 19:53:14 | loewis | set | recipients:
+ loewis, lemburg, terry.reedy, vstinner, ezio.melotti, eric.araujo, vincent.chute, skrah, nailor, python-dev |
2011-10-18 19:53:13 | loewis | link | issue3067 messages |
2011-10-18 19:53:13 | loewis | create | |
|