problem with datetime

Peter Otten __peter__ at
Fri Dec 10 13:31:42 CET 2004

Bob wrote:

> But when I try to run the following small program I get the following
> results:
> import datetime
> d =
> print d
> Traceback (most recent call last):
> File "", line 1, in ?
> import datetime

You are importing your script, not the library module here.

> File "/home/bob/pyshow/", line 3, in ?

Just rename that file to or something, and you're fine.
But don't forget to delete /home/bob/pyshow/datetime.pyc or .pyo, too.


More information about the Python-list mailing list