enthought / enthought/traits

Reference cycles in TraitListObject

Open
#1,233 6 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Python
Stars
462
Forks
90
PR merge metrics
No merged PRs in 30d

Description

After code resembling this:

```python
class Model(HasStrictTraits):
foo = List()

model = Model()
my_list = model.foo
```

`my_list` is now an object of type `TraitListObject`, and is involved in the following reference cycle:

![refcycle](https://user-images.githubusercontent.com/662003/86025083-b6b39480-ba25-11ea-86b4-d19107eff448.png)

We should see if we can find a way to eliminate the reference cycle. (If it's easy to do so, we should definitely do it. If it turns out to be hard to do reliably, then we'll have to think about what the best path forward is.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.