Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 19237:e110cd4fc3c6 legacy-trunk
Py_Initialize(): Apply patch by Jürgen Hermann to call
_PyImport_FixupExtension() on the exceptions module. Now
reload(exceptions) acts just like reload(sys) instead of raising
an ImportError.
This closes SF bug #422004.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Mon, 13 Aug 2001 23:04:56 +0000 |
| parents | 97a3d3d7029f |
| children | 157bbb896198 |
comparison
equal
deleted
inserted
replaced
| 19236:38b5906ff031 | 19237:e110cd4fc3c6 |
|---|---|
| 149 | 149 |
| 150 _PyImport_Init(); | 150 _PyImport_Init(); |
| 151 | 151 |
| 152 /* initialize builtin exceptions */ | 152 /* initialize builtin exceptions */ |
| 153 _PyExc_Init(); | 153 _PyExc_Init(); |
| 154 _PyImport_FixupExtension("exceptions", "exceptions"); | |
| 154 | 155 |
| 155 /* phase 2 of builtins */ | 156 /* phase 2 of builtins */ |
| 156 _PyImport_FixupExtension("__builtin__", "__builtin__"); | 157 _PyImport_FixupExtension("__builtin__", "__builtin__"); |
| 157 | 158 |
| 158 initsigs(); /* Signal handling stuff, including initintr() */ | 159 initsigs(); /* Signal handling stuff, including initintr() */ |
