mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Added a comment about a possible interface change.
This commit is contained in:
parent
d3778f9f60
commit
5478cc68f8
1 changed files with 5 additions and 0 deletions
|
|
@ -23,6 +23,11 @@
|
||||||
# has another way to reference private data (besides global variables).
|
# has another way to reference private data (besides global variables).
|
||||||
# Parameterless functions or methods cannot be used, however.
|
# 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():
|
class scheduler():
|
||||||
#
|
#
|
||||||
# Initialize a new instance, passing the time and delay functions
|
# Initialize a new instance, passing the time and delay functions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue