commit | 70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Jun 01 11:38:24 2019 +0300 |
committer | GitHub <noreply@github.com> | Sat Jun 01 11:38:24 2019 +0300 |
tree | 006049ed0835e9e68cd46cf7717027a0fe422436 | |
parent | 2085bd0877e17ad4d98a4586d5eabb6faecbb190 [diff] [blame] |
Use more PEP 570 syntax in the documentation. (GH-13720)
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 @@ 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):