1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-22 02:54:25 +01:00

Merge pull request #160 from vrthra/patch-1

Make sure that default_arg is not passed rather than checking for fal…
This commit is contained in:
Satwik Kansal 2019-12-25 19:21:24 +05:30 committed by GitHub
commit 183e0d9ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
README.md vendored
View File

@ -2173,7 +2173,7 @@ def some_func(default_arg=[]):
```py
def some_func(default_arg=None):
if not default_arg:
if default_arg is not None:
default_arg = []
default_arg.append("some_string")
return default_arg