From: Guido van Rossum Date: Tue, 12 Nov 1991 15:37:53 +0000 (+0000) Subject: Added a comment about a possible interface change. X-Git-Tag: v0.9.8~754 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5478cc68f8699dab10a25b976671ae52a0d8f6a8;p=thirdparty%2FPython%2Fcpython.git Added a comment about a possible interface change. --- diff --git a/Lib/sched.py b/Lib/sched.py index 6abd2512227e..42d5ceedfe41 100644 --- a/Lib/sched.py +++ b/Lib/sched.py @@ -23,6 +23,11 @@ # has another way to reference private data (besides global variables). # Parameterless functions or methods cannot be used, however. +# XXX The timefunc and delayfunc should have been defined as methods +# XXX so you can define new kinds of schedulers using subclassing +# XXX instead of having to define a module or class just to hold +# XXX the global state of your particular time and delay functtions. + class scheduler(): # # Initialize a new instance, passing the time and delay functions