[issue46256] Objects __del__ called after module have been removed
Christopher Vickery
report at bugs.python.org
Thu Jan 6 09:24:34 EST 2022
Christopher Vickery <Christopher.Vickery at qc.cuny.edu> added the comment:
This it very clear and totally consistent with the observed behavior. I can think of a couple of workarounds for my app (move the db access from module initialization to a function that gets invoked "on demand", or redirect sys.stderr to /dev/null just before exiting).
Perhaps the Psycopg team can deal with it more directly.
Many thanks to all for the time and effort taken to make clear what's happening!
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46256>
_______________________________________
More information about the Python-bugs-list
mailing list