[Q] Type checking...go further...

Olivier Deckmyn olivier.deckmyn at mail.dotcom.fr
Mon Jul 19 09:35:35 EDT 1999


Thank you all for your answers !
I finally use isinstance in the methods of my classes...

But to go further, is there a way in python to have typed methods parameters
?
aka :

class MyClass:
    def myMethod(string myString):
        print myString

?

Thanx again all for your help !

Olivier,
happy python newbie.






More information about the Python-list mailing list