[3.11] Missing PS1 prompt in tutorial example (GH-98921) (GH-98944)

(cherry picked from commit d22bde983e)


Co-authored-by: Manuel Kaufmann <humitos@gmail.com>

Automerge-Triggered-By: GH:rhettinger
This commit is contained in:
Miss Islington (bot) 2022-11-01 04:08:26 -07:00 committed by GitHub
parent 20c258c692
commit e02ce485ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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