[New-bugs-announce] [issue6112] scheduler.cancel does not raise RuntimeError

Ivo Danihelka report at bugs.python.org
Tue May 26 09:47:42 CEST 2009

New submission from Ivo Danihelka <ivo at danihelka.net>:

There is a misleading documentation for module sched.
Method scheduler.cancel() does not raise RuntimeError.
It raises ValueError if the given event is not in the queue.

The RuntimeError is mentioned inside the module documentation
and also inside the method __doc__ string.

assignee: georg.brandl
components: Documentation
messages: 88338
nosy: fidlej, georg.brandl
severity: normal
status: open
title: scheduler.cancel does not raise RuntimeError
versions: Python 2.5, Python 2.6, Python 3.0, Python 3.1

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list