[Tutor] Changing the Attribute of a Variable

wesley chun wescpy at gmail.com
Tue Feb 17 19:16:35 CET 2009


>               # Date vars should be type datetime.time
>               config_value = str(stime)

this is pretty much the offending code right here... in fact, the
comment contradicts the assignment. it says that date vars should be
of type datetime.time, yet it assigns a *string* to config_value,
which then gets set later using setattr().

if you just remove that assignment, things should work better..., at
least from what i can see.

good luck!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
    http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com


More information about the Tutor mailing list