6

Further Reading About What To Expect When You're Expiring

 2 years ago
source link: https://emptysqua.re/blog/further-reading-what-to-expect-when-youre-expiring/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Further Reading About What To Expect When You're Expiring

At PyTennessee 2018 I gave a talk about writing Python object destructors called What To Expect When You’re Expiring: Rules for __del__. The rules for a destructor method are:

  1. Don’t access modules or globals.
  2. Don’t access threadlocals.
  3. Don’t take any locks.

Links to further reading about the subject:

The images I used in my slides are from:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK