def __del__():
print sys.version
the global variable reference to 'sys' is not a reference on the GC
referencing counting sense. IOW, it does not result in a a Py_INCREF
while the function is not being executed and therefore should be
safe after the proposed change. Currently, it could result in 'None'
being printed.
--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC