Formatted string to object

janama austuff at gmail.com
Mon Jun 19 17:39:12 CEST 2006


Hi,

can such a thing be done somehow?


aaa = self.aaa
bbb = %s.%s % ('parent', 'bbb')

Can you use strings or %s strings like in the above or

aaa = 'string'
aaa.%s() % 'upper'

Somehow?

Thanks for taking a look at this

Regards
Janama




More information about the Python-list mailing list