4 ms·
Apologies to everyone tired of hearing about it, but an alternative non-standard syntax is my own obiwan https://pypi.python.org/pypi/obiwan https://pypi.python
by willvarfar 12y ago
Apologies to everyone tired of hearing about it, but an alternative non-standard syntax is my own obiwan https://pypi.python.org/pypi/obiwan https://pypi.python.org/pypi/obiwan
- alexhill 12y agoCool, I like this. I think I prefer your reuse of the collection literal syntax to the syntax in Guido's proposal.
- bkeroack 12y agoThere's also https://github.com/prechelt/typecheck-decorator https://github.com/prechelt/typecheck-decorator ...which I prefer stylistically (decorators instead of magic monkey-patching).
- bkeroack 12y agoThere's also https://github.com/prechelt/typecheck-decorator https://github.com/prechelt/typecheck-decorator ...which I prefer stylistically (decorators instead of magic monkey-patching).
- bkeroack 12y agoThere's also https://github.com/prechelt/typecheck-decorator https://github.com/prechelt/typecheck-decorator ...which I prefer stylistically (decorators instead of magic monkey-patching).
- bkeroack 12y agoThere's also https://github.com/prechelt/typecheck-decorator https://github.com/prechelt/typecheck-decorator ...which I prefer stylistically (decorators instead of magic monkey-patching).
- ak217 12y agoMy contribution is https://github.com/kislyuk/ensure https://github.com/kislyuk/ensure It's fast and doesn't monkey-patch things.
- mosquito_hater 12y ago@ensure_annotations def f(x: int, y: float) -> float: return x+y This looks great, I wish it was the standard