Commit bd536e61 authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Modified the examples with the keyword arguments.

parent e4c8f1c1
def f(a, b, *args, c, d = 42, e, **kwds): def f(a, b, *args, c, d = 42, e, **kwds):
# ... ...
return "hello world"
# We cannot call f with less verbosity than this. # We cannot call f with less verbosity than this.
foo = f(4, "bar", c=68, e=1.0) foo = f(4, "bar", c=68, e=1.0)
def g(a, b, *, c, d): def g(a, b, *, c, d):
# ... ...
return 'hello world'
# We cannot call g with less verbosity than this. # We cannot call g with less verbosity than this.
foo = g(4.0, "something", c=68, d="other") foo = g(4.0, "something", c=68, d="other")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment