[Python-Dev] test___all__ failing; Windows
Moshe Zadka
moshez@zadka.site.co.il
Thu, 25 Jan 2001 02:57:22 +0200 (IST)
On Wed, 24 Jan 2001 16:11:33 +0100, "Fredrik Lundh" <fredrik@effbot.org> wrote:
> I think the correct answer is "sometimes":
>
> ANSI C mandates LC_ALL, LC_COLLATE, LC_CTYPE,
> LC_MONETARY, LC_NUMERIC, and LC_TIME
>
> Unix mandates LC_ALL, LC_COLLATE,LC_CTYPE,
> LC_MESSAGES, LC_MONETARY, LC_NUMERIC, and
> LC_TIME
>
> in other words, if it's supported, it should be exposed by
> the Python bindings.
In that case, the __all__ attribute in the module has to be calculated
dynamically. Say, adding code like
try:
LC_MESSAGES
except NameError:
pass
else:
__all__.append('LC_MESSAGES')
Ditto for anything else.
Should I check in a patch?
--
Moshe Zadka <sig@zadka.site.co.il>
This is a signature anti-virus.
Please stop the spread of signature viruses!
Fingerprint: 4BD1 7705 EEC0 260A 7F21 4817 C7FC A636 46D0 1BD6