Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 18803:763bb6fae280 legacy-trunk
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. :-)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 23 Jul 2001 13:27:49 +0000 |
| parents | c9b4c8ae6179 |
| children | a8b1acc7a21f |
