Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Apologies to everyone tired of hearing about it, but an alternative non-standard syntax is my own obiwan https://pypi.python.org/pypi/obiwan


There's also https://github.com/prechelt/typecheck-decorator

...which I prefer stylistically (decorators instead of magic monkey-patching).


My contribution is https://github.com/kislyuk/ensure

It's fast and doesn't monkey-patch things.


    @ensure_annotations
    def f(x: int, y: float) -> float:
        return x+y
This looks great, I wish it was the standard


Cool, I like this. I think I prefer your reuse of the collection literal syntax to the syntax in Guido's proposal.


There's also https://github.com/prechelt/typecheck-decorator

...which I prefer stylistically (decorators instead of magic monkey-patching).


There's also https://github.com/prechelt/typecheck-decorator

...which I prefer stylistically (decorators instead of magic monkey-patching).


There's also https://github.com/prechelt/typecheck-decorator

...which I prefer stylistically (decorators instead of magic monkey-patching).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: