Commit Graph

109 Commits

Author SHA1 Message Date
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 f33b6f2cba remove unnecessary file 2015-12-15 15:55:17 +02:00
Ahmed Aboul-Ela e38ae8f4a0 Merge branch 'master' of https://github.com/aboul3la/Sublist3r 2015-12-15 15:49:58 +02:00
Ahmed Aboul-Ela 2446dc3877 initial commit 2015-12-15 15:31:23 +02:00
Ahmed Aboul-Ela a0908e2aee Update README.md 2015-12-15 03:34:03 +02:00
Ahmed Aboul-Ela 041bfab251 Update README.md 2015-12-15 03:02:50 +02:00
Ahmed Aboul-Ela c26702c635 Update README.md 2015-12-15 02:56:43 +02:00
Ahmed Aboul-Ela 8cd0b9fb44 Initial commit 2015-12-15 02:55:25 +02:00