[Twisted-Python] Small bug in code example in doc/howto/time.html

Jeremy Fincher fincher.8 at osu.edu
Thu May 23 14:35:26 EDT 2002


This:
 
def OnceAMinute:
    """Should be run once a minute."""
    print "a minute has passed"
 
Should be this:
 
def OnceAMinute():
    """Should be run once a minute."""
    print "a minute has passed"
 
Also, a question:  Later on in that code example, there's a
"d.loop(OnceAMinute, 6)" line.  How does d.loop know how to call
OnceAMinute?  Does it just assume that it takes no arguments (and thus,
all functions that would be added there need to take no arguments)?
 
Thanks!
 
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20020523/c2ee509a/attachment.htm 


More information about the Twisted-Python mailing list