News for hackers. Stuff that matters.
Re:Type hinting for Python by barumrho on Tuesday January 06, 2015 @01:14PM (#8845982)
I'm curious how this is valid Python:

  def fib(n: int) -> Iterator[int]:


  - Colon inside argument list
  - Arrow and type
What are they used for normally?
Re:Type hinting for Python by icebraining on Tuesday January 06, 2015 @01:27PM (#8846076)
They're generic Function Annotations: https://www.python.org/dev/peps/pep-3107/