Hacker News new | ask | show | jobs
by BerislavLopac 1220 days ago
A possible solution might be a built-in dunder flag to explicitly tell the interpreter not to get rid of a specific object. Something like __keep_alive__ or similar.