This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients asmodai, catherinedevlin, georg.brandl, heikki, jminka, loewis
Date 2009-05-03.17:20:20
SpamBayes Score 2.18547e-07
Marked as misclassified No
Message-id <>
In-reply-to <>
> I am just wondering why we want to be quite different from how many
> other languages are approaching the issue.

Because we have exceptions, and they don't. Would you also propose
that open() should return None, just because fopen(3) returns NULL?

While it may be debatable whether applications care about the error
when passing "" as the locale, there is also the second case where
applications pass an explicit locale

  setlocale(locale.LC_ALL, "de_DE@euro")

When they do that, they surely want to be told if this actually

> Sure enough, we can use a
> try: construct, but it kind of defeats the principle of least
> astonishment by being different from the rest on this issue.

There is also the backwards compatibility issue: your change
will break existing code.
Date User Action Args
2009-05-03 17:20:25loewissetrecipients: + loewis, georg.brandl, catherinedevlin, jminka, heikki, asmodai
2009-05-03 17:20:23loewislinkissue1443504 messages
2009-05-03 17:20:20loewiscreate