diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-06-01 08:38:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 08:38:24 (GMT) |
commit | 70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db (patch) | |
tree | 006049ed0835e9e68cd46cf7717027a0fe422436 /Doc/faq | |
parent | 2085bd0877e17ad4d98a4586d5eabb6faecbb190 (diff) | |
download | cpython-70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db.zip cpython-70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db.tar.gz cpython-70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db.tar.bz2 |
Use more PEP 570 syntax in the documentation. (GH-13720)
Diffstat (limited to 'Doc/faq')
-rw-r--r-- | Doc/faq/programming.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 9660a70..a00c6a0 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -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): |