• Guido van Rossum's avatar
    Rewritten PyImport_Cleanup() and its helper, clear_carefully(). They · 758eec01
    Guido van Rossum yazdı
    now implement the following finalization strategy.
    
    1. Whenever this code deletes a module, its directory is cleared
       carefully, as follows:
       - set all names to None that begin with exactly one underscore
       - set all names to None that don't begin with two underscores
       - clear the directory
    
    2. Modules are deleted in the following order:
       - modules with a reference count of 1, except __builtin__ or __sys__
       - repeat until no more are found with a reference count of 1
       - __main__ if it's still there
       - all remaining modules except __builtin__ or sys
       - sys
       _ __builtin__
    758eec01
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...