Skip to content

Commit c148731

Browse files
committed
Fix spacing
makes it more clear
1 parent 372b4ac commit c148731

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

args_and_kwargs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ function. Here's how to do it:
8181
.. code:: python
8282
8383
# first with *args
84-
>>> args = ("two", 3,5)
84+
>>> args = ("two", 3, 5)
8585
>>> test_args_kwargs(*args)
8686
arg1: two
8787
arg2: 3
8888
arg3: 5
8989
9090
# now with **kwargs:
91-
>>> kwargs = {"arg3": 3, "arg2": "two","arg1":5}
91+
>>> kwargs = {"arg3": 3, "arg2": "two", "arg1": 5}
9292
>>> test_args_kwargs(**kwargs)
9393
arg1: 5
9494
arg2: two
@@ -100,7 +100,7 @@ So if you want to use all three of these in functions then the order is
100100

101101
.. code:: python
102102
103-
some_func(fargs,*args,**kwargs)
103+
some_func(fargs, *args, **kwargs)
104104
105105
When to use them?
106106
^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)