[New-bugs-announce] [issue46256] Objects __del__ called after module have been removed

Daniele Varrazzo report at bugs.python.org
Tue Jan 4 09:41:43 EST 2022


New submission from Daniele Varrazzo <daniele.varrazzo at gmail.com>:

The following bug has been reported to Psycopg:

https://github.com/psycopg/psycopg/issues/198

At the end of the program, errors such as the following are dumped:

    Exception ignored in: <function PGconn.__del__ at 0x1021bbb50>
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.10/site-packages/psycopg/pq/pq_ctypes.py", line 91, in __del__
    TypeError: 'NoneType' object is not callable

Where `None` is some module-level objects, such as `os.getpid`.

Unfortunately I don't have a full repro. The error seems only happening in Python 3.10.

----------
components: Interpreter Core
messages: 409684
nosy: piro
priority: normal
severity: normal
status: open
title: Objects __del__ called after module have been removed
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46256>
_______________________________________


More information about the New-bugs-announce mailing list