Missing PS1 prompt in tutorial example (GH-98921)

This commit is contained in:
Manuel Kaufmann 2022-11-01 03:24:26 +01:00 committed by GitHub
parent ab57505070
commit d22bde983e
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