1 parent 372b4ac commit c148731Copy full SHA for c148731
1 file changed
args_and_kwargs.rst
@@ -81,14 +81,14 @@ function. Here's how to do it:
81
.. code:: python
82
83
# first with *args
84
- >>> args = ("two", 3,5)
+ >>> args = ("two", 3, 5)
85
>>> test_args_kwargs(*args)
86
arg1: two
87
arg2: 3
88
arg3: 5
89
90
# now with **kwargs:
91
- >>> kwargs = {"arg3": 3, "arg2": "two","arg1":5}
+ >>> kwargs = {"arg3": 3, "arg2": "two", "arg1": 5}
92
>>> test_args_kwargs(**kwargs)
93
arg1: 5
94
arg2: two
@@ -100,7 +100,7 @@ So if you want to use all three of these in functions then the order is
100
101
102
103
- some_func(fargs,*args,**kwargs)
+ some_func(fargs, *args, **kwargs)
104
105
When to use them?
106
^^^^^^^^^^^^^^^^^
0 commit comments