I\'m studying Python, after a lot of PHP experience, and it would be handy to have type-hinting in Python. Looks like Eclipse with PyDev doesn\'t support this. Any sug
I'm not aware of any ways to do type-hinting in Python.
The standard Pythonic practice is this:
>>> def adds_three(number):
... '''Returns number + 3'''
... return number + 3
...
Note I've done the following:
+
. Let them use it.One good thing about dynamic typing is that all methods are inheritly overloaded. Of course, you can always do type-checking in the function to prevent fatal errors.