from Hacker News

Simple type checked objects in Python

by luke14free on 6/22/16, 5:29 PM with 3 comments

  • by tantalor on 6/22/16, 5:33 PM

    That's not what "static typed" means.

    Static, referring to types, means at compile time, or before runtime, the types of variables and assignments can be verified; no invalid assignments are possible.

    What you have here is dynamic typing; you can't verify the types until runtime, and then you throw an exception.

    https://en.wikipedia.org/wiki/Type_system#DYNAMIC