diff options
author | Ofey Chan <ofey206@gmail.com> | 2022-09-30 08:43:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 08:43:02 (GMT) |
commit | 83a3de4e0632d90e0d1d5a9b8859a94c9ac25f65 (patch) | |
tree | 31d942b63699bc5e1848ffb6f85901fe8b93301c /Objects/iterobject.c | |
parent | 9a11ed8e50492d327e4de0a8f3a473e788b14a6f (diff) | |
download | cpython-83a3de4e0632d90e0d1d5a9b8859a94c9ac25f65.zip cpython-83a3de4e0632d90e0d1d5a9b8859a94c9ac25f65.tar.gz cpython-83a3de4e0632d90e0d1d5a9b8859a94c9ac25f65.tar.bz2 |
gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.throw (GH-96428)
Diffstat (limited to 'Objects/iterobject.c')
-rw-r--r-- | Objects/iterobject.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c index 1732a03..62c3614 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -428,8 +428,13 @@ return next yielded value or raise StopIteration."); PyDoc_STRVAR(throw_doc, -"throw(typ[,val[,tb]]) -> raise exception in the wrapped iterator,\n\ -return next yielded value or raise StopIteration."); +"throw(value)\n\ +throw(typ[,val[,tb]])\n\ +\n\ +raise exception in the wrapped iterator, return next yielded value\n\ +or raise StopIteration.\n\ +the (type, val, tb) signature is deprecated, \n\ +and may be removed in a future version of Python."); PyDoc_STRVAR(close_doc, |