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

Python has not types.

Let me repeat: Python has no types.

It has built in classes that used to be types 15 years ago, but no types. [0]

90% of the holy war between strongly and weakly typed in python would be resolved if we just removed all references for types from Python, and renamed TypeError to UnsupportedOperand.

Pep 484 [1] is about class hints, and this software builds on top of that. That has it's place, but it's an ugly hack that should not become a main feature of the language.

[0] https://www.python.org/download/releases/2.2/descrintro/#int...

[1] https://www.python.org/dev/peps/pep-0484/#type-definition-sy...



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

Search: