Guy Robinson wrote:
Hello,
I have a list of class instances. I wish to get the appropriate class
attribute in each class instance depending on a SINGLE keyword in the
calling class.
How do I get the calling method to correctly recognise the keyword as a
keyword and not a class attribute? See ex
Guy Robinson wrote:
> Hello,
>
> I have a list of class instances. I wish to get the appropriate class
attribute
> in each class instance depending on a SINGLE keyword in the calling
class.
>
> How do I get the calling method to correctly recognise the keyword as
a keyword
> and not a class attrib
Guy Robinson wrote:
Hello,
I have a list of class instances. I wish to get the appropriate class
attribute in each class instance depending on a SINGLE keyword in the
calling class.
Py> help(getattr)
Help on built-in function getattr in module __builtin__:
getattr(...)
getattr(object, name[,
Hello,
I have a list of class instances. I wish to get the appropriate class attribute
in each class instance depending on a SINGLE keyword in the calling class.
How do I get the calling method to correctly recognise the keyword as a keyword
and not a class attribute? See example code below (whi