-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support __del__
#2479
Comments
Sounds reasonable to add this! Some notes for implementer (probably me eventually, unless someone else is interested in picking this up). I think the underlying C API "slot" is It looks like the |
Great, thank you. No particular hurry from me, it's a possibly overkill warning in a semi-private class. |
I'd like to be able to use a
__del__
method in#[pymethods]
, however it's not being called.There are two other related issue #402 and #774. #774 seems most relevant but the OP get's told they shouldn't be using
__del__
. AFAIK issuing aResourceWarning
is a legitimate use of__del__
.I could print a warning in
Drop
but that won't be a python warning and will confuse people, without support for__del__
I don't see another way around this.Related PR samuelcolvin/watchfiles#164
The text was updated successfully, but these errors were encountered: