Skip to content

__del__ destructor for Universes? #297

@mnmelo

Description

@mnmelo

The title says it all. @richardjgowers mentioned it'd be interesting to implement, but currently that leads to mem leaks as the garbage collector can't clean up the Universe.

See the discussion on #293.

If Universe has a del I end up with two uncollectables: the Universe itself and the trajectory (which also has a del). I tried to find any sort of circular reference between the two, but found nothing.
Is it worth pursuing this?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions