Commit Graph

55 Commits

Author SHA1 Message Date
Ahmed Aboul-Ela 13feabda83 Merge pull request #2 from cclauss/patch-1
Avoid [] or {} as default value for function params
2015-12-16 23:04:48 +02:00
cclauss 3ade887acf Update sublist3r.py 2015-12-16 21:56:40 +01:00
cclauss cc2d9578bf Avoid [] or {} as default value for function params
This is a great idea with a slick implementation.

__I made these mods on a train journey without the ability to test them!__  I believe them to be correct but please run the app to make sure that IGot it right.

Here is why you should avoid [] or {} as default value for function params:

```python
def func0(subdomains=[]):
    print('before', subdomains)
    subdomains.append(1)
    print(' after', subdomains)

func0()
func0()

print('-' * 10)

def func1(subdomains=None):
    subdomains = subdomains or []
    print('before', subdomains)
    subdomains.append(1)
    print(' after', subdomains)

func1()
func1()
print('')
```
2015-12-16 07:54:31 +01:00
Med Amine Ben Asker bca4b19092 Fix the SSL warning for those who cannot install some of the required development packages 2015-12-15 19:50:19 +01:00
Ahmed Aboul-Ela 2446dc3877 initial commit 2015-12-15 15:31:23 +02:00