P403n1x87 commented on code in PR #1287:
URL: 
https://github.com/apache/cassandra-python-driver/pull/1287#discussion_r3064848150


##########
cassandra/io/libevreactor.py:
##########
@@ -225,7 +225,7 @@ def _loop_will_run(self, prepare):
 
 
 _global_loop = None
-atexit.register(partial(_cleanup, _global_loop))
+atexit.register(lambda: _cleanup(_global_loop))

Review Comment:
   If lambdas are not of taste
   ```suggestion
   @atexit.register
   def _():
       global _global_loop
   
       _cleanup(_global_loop)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to