import datetime.datetime as datetime
# then sometime later call
reload(datetime)

Actually, both of these will fail, because the 'datetime' being imported is not a module, e.g.:

I think Heikki meant to say:
   'import datetime'

I usually don't do that except for some system modules like os which have a lot of short symbols like path that could nameclash. datetime is 'unique' enough.

Andi..
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev

Reply via email to