▲ 38 ▼ Introducing Immortal Objects for Python (engineering.fb.com) submitted 3 years ago by jnovinger@programming.dev [M] to c/python@programming.dev 5 comments fedilink hide all child comments
[–] Sternout@feddit.de 1 point 3 years ago (1 child) Can't this result in ugly memory leaks? permalink fedilink source hideshow 2 child comments replies: [–] tnuctip@mastodonapp.uk 4 points 2 years ago @Sternout @jnovinger Maybe, but (apart from the "Accidental Immortalisation" case mentioned in PEP 683) these things are created deliberately by C extensions. A sane extension shouldn't be building loads of them on the fly in the first place. permalink fedilink source parent
[–] tnuctip@mastodonapp.uk 4 points 2 years ago @Sternout @jnovinger Maybe, but (apart from the "Accidental Immortalisation" case mentioned in PEP 683) these things are created deliberately by C extensions. A sane extension shouldn't be building loads of them on the fly in the first place. permalink fedilink source parent