MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / has_finalizer

Function has_finalizer

Modules/gcmodule.c:503–516  ·  view source on GitHub ↗

Return true if object has a finalization method. * CAUTION: An instance of an old-style class has to be checked for a *__del__ method, and earlier versions of this used to call PyObject_HasAttr, * which in turn could call the class's __getattr__ hook (if any). That * could invoke arbitrary Python code, mutating the object graph in arbitrary * ways, and that was the source of some excruciati

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

move_finalizersFunction · 0.85
handle_finalizersFunction · 0.85

Calls 2

_PyInstance_LookupFunction · 0.85
PyGen_NeedsFinalizingFunction · 0.85

Tested by

no test coverage detected