Polymoprhism question

RVic rvince99 at gmail.com
Fri May 24 15:19:20 EDT 2013


Thanks Steven,

Yes, I see Python isn't going to do this very well, from what I can understand.

Lets say I have a type of class, and this type of class will always have two methods, in() and out().

Here is, essentially, what I am trying to do, but I don't know if this will make sense to you or if it is really doable in Python:  #thanks, RVic

import sys
argv = sys.argv[1:] 
ClassIamInstantiating = argv
ClassIamInstantiating.in("something")
x = ClassIamInstantiating.out()



More information about the Python-list mailing list