How to use dynamic properties? <-- Noob

Sean Schertell sean at datafly.net
Tue Jan 23 03:01:12 EST 2007


person.name = 'Joe'
person.age = 20
person.sex = 'm'

info_I_need = name

print person.info_I_need

# How can I make it print 'Joe' ?


Sean


::::  DataFly.Net  ::::
Complete Web Services
http://www.datafly.net




More information about the Python-list mailing list