[Dev] Upcoming Chandler date/time related changes

Andi Vajda vajda at osafoundation.org
Tue May 24 16:43:30 PDT 2005


> I think there are subtle differences. I would have to check, but I
> believe one difference is that with import doing reload() would work as
> expected, but not so with from. In other words, doing:
>
> from datetime import datetime
> # then sometime later call
> reload(datetime)
>
> would be slightly different than:
>
> import datetime.datetime as datetime
> # then sometime later call
> reload(datetime)
>
> We haven't been rigorous with enforcing the convention though. And I
> don't know if we are actually using reload(), or if we are even planning
> on using it, or if it would actually be a bad idea to even try use it.

I don't ever use reload, I've never been able to make it work reliably.
Is anybody using reload ?

Andi..




More information about the Dev mailing list