Stéfane Fermigier wrote:
> Note that there are several packages already in PyPI:
> 
> https://pypi.org/project/traits/
> https://pypi.org/project/strait/

That first package is unrelated, I'm afraid: completely different meaning of 
the word "trait". In that case, a "trait" is an observable, typed attribute on 
a class. A class using traited attributes is a bit like a dataclass or an  
`attrs`-using class, but with the idea of notification built in: arbitrary 
listeners can be attached to react to changes in the attribute value. It's 
useful for data-driven and event-driven programming, and building scientific 
data models that you later want to build UIs around.

Making `trait` a keyword would be an excellent way to give Enthought developers 
a major headache. :-)

Mark
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/BFJG2NE4FMGZK4NJTSRLLQSGVMS7PMIP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to