diff -r 5673cf852daa Lib/sched.py --- a/Lib/sched.py Sat Oct 01 01:06:51 2016 -0500 +++ b/Lib/sched.py Sat Oct 01 21:20:17 2016 +0800 @@ -39,12 +39,7 @@ __all__ = ["scheduler"] -class Event(namedtuple('Event', 'time, priority, action, argument, kwargs')): - def __eq__(s, o): return (s.time, s.priority) == (o.time, o.priority) - def __lt__(s, o): return (s.time, s.priority) < (o.time, o.priority) - def __le__(s, o): return (s.time, s.priority) <= (o.time, o.priority) - def __gt__(s, o): return (s.time, s.priority) > (o.time, o.priority) - def __ge__(s, o): return (s.time, s.priority) >= (o.time, o.priority) +Event = namedtuple('Event', 'time, priority, action, argument, kwargs') Event.time.__doc__ = ('''Numeric type compatible with the return value of the timefunc function passed to the constructor.''')