Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 83612:8c1385205a35 3.3
Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sat, 04 May 2013 20:45:02 +0200 |
| parents | 68d1ac152b5d |
| children | 7de9852cdc0e 0b34fd75b937 |
comparison
equal
deleted
inserted
replaced
| 83609:6bd2446f129a | 83612:8c1385205a35 |
|---|---|
| 504 flush_std_files(); | 504 flush_std_files(); |
| 505 | 505 |
| 506 /* Disable signal handling */ | 506 /* Disable signal handling */ |
| 507 PyOS_FiniInterrupts(); | 507 PyOS_FiniInterrupts(); |
| 508 | 508 |
| 509 /* Clear type lookup cache */ | |
| 510 PyType_ClearCache(); | |
| 511 | |
| 512 /* Collect garbage. This may call finalizers; it's nice to call these | 509 /* Collect garbage. This may call finalizers; it's nice to call these |
| 513 * before all modules are destroyed. | 510 * before all modules are destroyed. |
| 514 * XXX If a __del__ or weakref callback is triggered here, and tries to | 511 * XXX If a __del__ or weakref callback is triggered here, and tries to |
| 515 * XXX import a module, bad things can happen, because Python no | 512 * XXX import a module, bad things can happen, because Python no |
| 516 * XXX longer believes it's initialized. | 513 * XXX longer believes it's initialized. |
| 612 PyByteArray_Fini(); | 609 PyByteArray_Fini(); |
| 613 PyLong_Fini(); | 610 PyLong_Fini(); |
| 614 PyFloat_Fini(); | 611 PyFloat_Fini(); |
| 615 PyDict_Fini(); | 612 PyDict_Fini(); |
| 616 PySlice_Fini(); | 613 PySlice_Fini(); |
| 614 _PyType_Fini(); | |
| 617 | 615 |
| 618 /* Cleanup Unicode implementation */ | 616 /* Cleanup Unicode implementation */ |
| 619 _PyUnicode_Fini(); | 617 _PyUnicode_Fini(); |
| 620 | 618 |
| 621 /* reset file system default encoding */ | 619 /* reset file system default encoding */ |
