Replies: 1 comment 1 reply
-
Could you explain the motivation more here, or given an example and show what that might be something you'd want to do? (My short version reply, without understanding the issue better, is that you probably just don't need to do this.) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm curious if it'd be reasonable to set up an atexit finalizer (weakref.finalize) on
Client.close
for any long-lived client (i.e. not using it as a contextmanager). I've seen thatClient.__del__
is calling.close
, but in general I'm wondering if I would run in to any obvious troubles by usingweakref.finalize
onClient.close
? Or if it could just be superfluous and I shouldn't bother?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions