[XML-SIG] A Python Question

Kamel Hamard (QC/EMC) kamel.hamard at ericsson.com
Fri Nov 14 10:28:52 EST 2003


Hi,

Python version: 2.2

I'm getting the error bellow when I try to use the module sched. 

AttributeError: 'module' object has no attribute 'scheduler'

I took the following example from the python reference library:

import time
import sched 
s = sched.scheduler(time.time, time.sleep)

def print_time(): 
	print "From print_time", time.time()

def print_some_times():
	print time.time()
	s.enter(5, 1, print_time, ())
	s.enter(10, 1, print_time, ())
	s.run()
	print time.time()

Do you have any idea why?

Kamel

Thanks



More information about the XML-SIG mailing list