diff --git a/README.md b/README.md index bd56ebb..4497e79 100644 --- a/README.md +++ b/README.md @@ -679,7 +679,7 @@ def func(): ... # def func(x=0, y=0): ... def func(, ): ... # def func(x, y=0): ... ``` * **Default values are evaluated when function is first encountered in the scope.** -* **Any mutation of a mutable default value will persist between invocations.** +* **Any mutation of a mutable default value will persist between invocations!** Splat Operator diff --git a/index.html b/index.html index 3d72401..a277b5a 100644 --- a/index.html +++ b/index.html @@ -601,7 +601,7 @@ func(<positional_args>, <keyword_args>) #Splat Operator

Inside Function Call

Splat expands a collection into positional arguments, while splatty-splat expands a dictionary into keyword arguments.

args   = (1, 2)
 kwargs = {'x': 3, 'y': 4, 'z': 5}