5 ms·
> Typecheck in Python People actually use it? It seems abandoned and the link to homepage broken: https://pypi.python.org/pypi/typecheck https://pypi.python.or
by nnq 14y ago
> Typecheck in Python
People actually use it? It seems abandoned and the link to homepage broken: https://pypi.python.org/pypi/typecheck https://pypi.python.org/pypi/typecheck. I'm asking because I'd really like the idea of starting a project the dynamic typing way and then bolting on a (semi)-static type system on top once more new programmers join the game, preferably being able to completely disable it on production machines for best performance.
- shared4you 14y agoHave you checked out Cython[1]? It's used quite often in Numpy. Basically, you add some type annotations like, int, double, etc. for some speed-up. There is a quick tutorial as well [2]. [1]: http://cython.org/ http://cython.org/ [2]: http://wiki.cython.org/tutorials/numpy http://wiki.cython.org/tutorials/numpy
- nnq 14y agoI know, it great for the speed-up. But for just making things more manageable it's not worth the added complication of build/compile. I know, my problem is actually solved by "properly written tests" :) ...for I still long for some optional drop-in static typing.