enthought / enthought/traits

Reading from an `Event` trait inside a `Tuple` trait should be an error

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

Description

Reading the value of an `Event()` trait should be an error, even when it's contained in another trait type. But we have the following behaviour in current Traits:
```python
>>> from traits.api import HasTraits, Event, Tuple
>>>
>>> class A(HasTraits):
... foo = Tuple(Event(), Event())
...
>>> a = A()
>>> a.foo
(, )
```

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.