localtime import not working

Jeff Epler jepler at unpythonic.net
Wed Sep 15 20:20:33 EDT 2004


Don't give your script the same name as a built-in module, or don't give
your script a .py extension.

Be sure to remove the .pyc version of your file too, or that will be found
intstead of the real time module, even after your time.py is removed.

This is probably in the faq...

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20040915/add0ba97/attachment.sig>


More information about the Python-list mailing list