On Sat, 26 May 2018 11:53:42 +0200, Christian Heimes wrote: >> Why does weakref hate my Eggs class? > > Weakref needs some place to store reference information. It works if you > add "__weakref__" to your slots: > > class Eggs: > __slots__ = ['spanish_inquisition', '__weakref__']
Thanks! -- Steven D'Aprano "Ever since I learned about confirmation bias, I've been seeing it everywhere." -- Jon Ronson -- https://mail.python.org/mailman/listinfo/python-list