[Python-de] problem mit time module
Markus Jais
markus_jais at yahoo.de
Die Jan 20 23:37:54 CET 2004
hi
ich habe eine ganz neue Python 2.3.3 installation auf RedHat 7.3
folgendes Skript:
--
#!/usr/bin/env python
print "hola mundo"
--
das gibt einmale "hola mundo" aus.
aber folgendes skript
--
#!/usr/bin/env python
import time
print "hola mundo"
--
gibt 2x das ganze aus. wieso ????
und
------
#!/usr/bin/env python
import time
print time.localtime()
----
gibt gar eine fehlermeldung aus:
Traceback (most recent call last):
File "./time.py", line 3, in ?
import time
File "/home/markus/writings/cheetah/time.py", line 6, in ?
print time.localtime()
AttributeError: 'module' object has no attribute 'localtime'
aber lt. meiner Literatur gibt es "localtime"
evtl ist das ja ein ganz blöder Fehler und ich bin nur zu dumm oder zu
blind um in zu finden.
kann mir jemand sagen was hier schiefläuft ?
danke
Markus