2.1 strangness
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Thu May 31 16:17:53 EDT 2001
Thu, 31 May 2001 19:33:02 +0100, Robin Becker <robin at jessikat.fsnet.co.uk> pisze:
> thanks; I'm still a bit puzzled as to the exact semantics. It
> just looks wrong. Is __all__ the only way to get things into the *
> version of import?
No: you can omit __all__ and get everything the module defined in its
global namespace (including e.g. names of modules imported by it).
__all__ is used to make this set smaller in case "default = everything"
is not appropriate. (Here it was too small by accident.)
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list