summaryrefslogtreecommitdiffstats
path: root/Modules/rotormodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-12 16:24:03 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-12 16:24:03 (GMT)
commit18d4d8f71dca03a99220623d7eb4a5af733796e3 (patch)
tree767184c7d8d6fb8a11b536f706fe269985c4e259 /Modules/rotormodule.c
parentad991775ab57fc5c4647b70d793d52ff6b0d25bf (diff)
downloadcpython-18d4d8f71dca03a99220623d7eb4a5af733796e3.zip
cpython-18d4d8f71dca03a99220623d7eb4a5af733796e3.tar.gz
cpython-18d4d8f71dca03a99220623d7eb4a5af733796e3.tar.bz2
Two changes to from...import:
1) "from M import X" now works even if M is not a real module; it's basically a getattr() operation with AttributeError exceptions changed into ImportError. 2) "from M import *" now looks for M.__all__ to decide which names to import; if M.__all__ doesn't exist, it uses M.__dict__.keys() but filters out names starting with '_' as before. Whether or not __all__ exists, there's no restriction on the type of M.
Diffstat (limited to 'Modules/rotormodule.c')
0 files changed, 0 insertions, 0 deletions