mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Use more PEP 570 syntax in the documentation. (GH-13720)
This commit is contained in:
parent
2085bd0877
commit
70c5f2ae6e
4 changed files with 19 additions and 19 deletions
|
|
@ -554,8 +554,8 @@ desired effect in a number of ways.
|
|||
5) Or bundle up values in a class instance::
|
||||
|
||||
class callByRef:
|
||||
def __init__(self, **args):
|
||||
for (key, value) in args.items():
|
||||
def __init__(self, /, **args):
|
||||
for key, value in args.items():
|
||||
setattr(self, key, value)
|
||||
|
||||
def func4(args):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue