4 ms·
I started using type hints and it greatly improves the readability and sometimes catches a mistake. But would love for it to be more. Maybe a flag to the inter
by nicolaslem 9y ago
I started using type hints and it greatly improves the readability and sometimes catches a mistake. But would love for it to be more.
Maybe a flag to the interpreter that would raise an exception each time it detects an inconsistency at runtime. I can imaging turning this feature on in a staging environment.
- deleted 9y ago[deleted]
- ATsch 9y agoFrom my understanding, this should be possible by setting the sys.settrace hook. It would slow down every function call, but I'm surprised it looks like nobody has done it yet.