Dynamic Range does not call _default method
Open
- Dominant language
- Python
- Stars
- 462
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
Running
```
from traits.api import HasTraits, Int, Range
class Foo(HasTraits):
bar = Int(10)
baz = Range(low=0, high=10)
def _baz_default(self):
print('_baz_default')
return 5
if __name__ == '__main__':
foo = Foo()
print(foo.baz)
```
yields
```
>>> _baz_default
>>> 5
```
but changing the Range trait definition to `baz = Range(low=0, high="bar")`
the output is
```
>>> 0
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.