[docs] [issue14911] generator.throw() documentation inaccurate

Kristján Valur Jónsson report at bugs.python.org
Fri May 25 13:02:16 CEST 2012

New submission from Kristján Valur Jónsson <kristjan at ccpgames.com>:

the documentation for generator.throw() does not mention the fact that it has the same semantics for the three arguments as a "raise" expression has.
The first two arguments can be:
throw(exc_type, None)
throw(exc_type, value)
throw(exc_type, exc_instance)
throw(exc_instance, None)

assignee: docs at python
components: Documentation
messages: 161565
nosy: docs at python, kristjan.jonsson
priority: normal
severity: normal
status: open
title: generator.throw() documentation inaccurate
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

Python tracker <report at bugs.python.org>

More information about the docs mailing list