If the last reference to a Python object is at module scope, when its destructor is run before program termination it may find that the globals it requires no longer exist. Destructors of objects likely to be stored at module global scope need to check that globals exist before attempting to use them, to avoid warnings being printed by the Python interpreter. See grpc#17004pull/17008/head
parent
ccd0cc5229
commit
11ab724b97
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue