[Python-ideas] Type hints for functions with side-effects and for functions raising exceptions
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Feb 19 23:56:42 EST 2019
Chris Angelico wrote:
> if I'd been able to ascertain which functions were pure, or
> at least side-effect-free, it would have saved me a lot of hassle.)
I'm not sure how useful such annotations would be in practice,
though. They're only as good as the diligence of the author in
using them consistently and correctly, which makes them not
much better than comments.
--
Greg
More information about the Python-ideas
mailing list