]> granicus.if.org Git - python/commit
SF Patch #441791, with changes: when "import foo.bar" fails with an
authorGuido van Rossum <guido@python.org>
Mon, 23 Jul 2001 13:27:49 +0000 (13:27 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 23 Jul 2001 13:27:49 +0000 (13:27 +0000)
commitf48f11cd793a545251b83a6037e609a77f080c00
tree9d8b99f5571f24298dac8375548b960a57bf0a11
parentfa712ca1ed5c04a07dca4ae6837c74509d89fa82
SF Patch #441791, with changes: when "import foo.bar" fails with an
exception in the execution of bar, ensure that foo.bar exists.
(Previously, while sys.modules['foo.bar'] would exist, foo.bar would
only be created upon successful execution of bar.  This is
inconvenient; some would say wrong. :-)
Python/import.c