News for hackers. Stuff that matters.
Re:Type hinting for Python by willvarfar on Tuesday January 06, 2015 @01:41PM (#8846157)
Apologies to everyone tired of hearing about it, but an alternative non-standard syntax is my own obiwan https://pypi.python.org/pypi/obiwan
Re:Type hinting for Python by bkeroack on Tuesday January 06, 2015 @03:42PM (#8847016)
There's also https://github.com/prechelt/typecheck-decorator

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

Re:Type hinting for Python by ak217 on Tuesday January 06, 2015 @05:24PM (#8847509)
My contribution is https://github.com/kislyuk/ensure

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

Re:Type hinting for Python by mosquito_hater on Wednesday January 07, 2015 @08:27PM (#8854517)

    @ensure_annotations
    def f(x: int, y: float) -> float:
        return x+y
This looks great, I wish it was the standard
Re:Type hinting for Python by alexhill on Tuesday January 06, 2015 @02:03PM (#8846256)
Cool, I like this. I think I prefer your reuse of the collection literal syntax to the syntax in Guido's proposal.
Re:Type hinting for Python by bkeroack on Tuesday January 06, 2015 @03:38PM (#8846963)
There's also https://github.com/prechelt/typecheck-decorator

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

Re:Type hinting for Python by bkeroack on Tuesday January 06, 2015 @03:36PM (#8846938)
There's also https://github.com/prechelt/typecheck-decorator

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

Re:Type hinting for Python by bkeroack on Tuesday January 06, 2015 @03:36PM (#8846929)
There's also https://github.com/prechelt/typecheck-decorator

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