Re: getting a class attribute using a keyword argument

2005-01-19 Thread John Hsu
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

Re: getting a class attribute using a keyword argument

2005-01-17 Thread [EMAIL PROTECTED]
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

Re: getting a class attribute using a keyword argument

2005-01-17 Thread Nick Coghlan
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[,

getting a class attribute using a keyword argument

2005-01-17 Thread Guy Robinson
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