From e02ce485ac44d802ef02f9ab247daa8f1e436f9b Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 1 Nov 2022 04:08:26 -0700 Subject: [PATCH] [3.11] Missing PS1 prompt in tutorial example (GH-98921) (GH-98944) (cherry picked from commit d22bde983e58eaff9773f32a8324ddf9074e95e1) Co-authored-by: Manuel Kaufmann Automerge-Triggered-By: GH:rhettinger --- Doc/tutorial/controlflow.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 99a77e7addd..52db51e84cd 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -840,8 +840,9 @@ will always bind to the first parameter. For example:: But using ``/`` (positional only arguments), it is possible since it allows ``name`` as a positional argument and ``'name'`` as a key in the keyword arguments:: - def foo(name, /, **kwds): - return 'name' in kwds + >>> def foo(name, /, **kwds): + ... return 'name' in kwds + ... >>> foo(1, **{'name': 2}) True