enthought / enthought/traits

trait_get does not differentiate traits from gettable non-traits attributes (e.g. instance methods)

Open
#765 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
462
Forks
90
PR merge metrics
No merged PRs in 30d

Description

Not sure if this was the intended behaviour of `trait_get`:
```
>>> class Foo(HasTraits):
>>> mapping1 = Dict(Str(), Str())

>>> f = Foo()

>>> f.trait_get(["add_trait", "mapping1"])
{'add_trait': >,
'mapping1': {}}
```

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.