]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added a comment about a possible interface change.
authorGuido van Rossum <guido@python.org>
Tue, 12 Nov 1991 15:37:53 +0000 (15:37 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 12 Nov 1991 15:37:53 +0000 (15:37 +0000)
Lib/sched.py

index 6abd2512227edff858cd790583a697d19cdf21ec..42d5ceedfe41d128cf3e57c62762e8975117cb81 100644 (file)
 # 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