Re: Polymoprhism question

2013-05-24 Thread Neil Cerutti
On 2013-05-24, RVic wrote: > 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'

Re: Polymoprhism question

2013-05-24 Thread RVic
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

Re: Polymoprhism question

2013-05-24 Thread Steven D'Aprano
On Fri, 24 May 2013 04:40:22 -0700, RVic wrote: > I'm trying to figure out (or find an example) of polymorphism whereby I > pass a commandline argument (a string) which comports to a class (in > java, you would say that it comports to a given interface bu I don't > know if there is such a thing in

Polymoprhism question

2013-05-24 Thread RVic
I'm trying to figure out (or find an example) of polymorphism whereby I pass a commandline argument (a string) which comports to a class (in java, you would say that it comports to a given interface bu I don't know if there is such a thing in Python) then that class of that name, somehow gets in