Re:Type checking in Python
by doctoboggan on Sunday May 18, 2014 @12:55PM
(#7763534)
Former Enthought employee here, I always liked programming with Traits. Although nowadays I use the similar but much for light weight atom[0], which was created by another former Enthoughter.
Awesome pointer, thanks!
Threes also the mypy project which offers optional static typing in python, if you're interested in such stuff.
If you write APIs which only accept this one type, then you are explicitly disallowing people from using types that are functionally equivalent as far as the API is concerned. Why should you do that?
The closest I've seen is the traits thing from Enthought, but there doesn't seem to be much buy-in from python users.