• Radostin Stoyanov's avatar
    zdtm: Explicitly close opened files · 4416c58e
    Radostin Stoyanov authored
    CPython currently uses a reference-counting scheme with (optional)
    delayed detection of cyclically linked garbage, which collects most
    objects as soon as they become unreachable, but is not guaranteed to
    collect garbage containing circular references.
    
    Some objects contain references to "external" resources such as open
    files. It is understood that these resources are freed when the object
    is garbage-collected, but since garbage collection is not guaranteed to
    happen, such objects also provide an explicit way to release the
    external resource, usually a close() method.
    
    Programs are strongly recommended to explicitly close such objects.
    
    Reference: https://docs.python.org/3.6/reference/datamodel.htmlSigned-off-by: 's avatarRadostin Stoyanov <rstoyanov1@gmail.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    4416c58e
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...