flake8-mutable
--------------
[](https://pypi.python.org/pypi/flake8-mutable)
#### Motivation
Python's default arguments are evaluated at definition as opposed to when the function is invoked. This leads to unexpected behavior, as mutations persist between calls. For a more detailed explanation, see [The Hitchhiker's Guide to Python](http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments).
#### Example
```
def fnc(a, b={}):
pass
foo.py:2:14: M511 - mutable default arg of type Dict
```
#### Installation
```
pip install flake8-mutable
```
#### Changes
##### [1.1.0] 2016-11-26
- Callables
##### [1.0.6] 2016-11-26
- added MANIFEST.in
#### License
[MIT](https://opensource.org/licenses/MIT)
--------------
[](https://pypi.python.org/pypi/flake8-mutable)
#### Motivation
Python's default arguments are evaluated at definition as opposed to when the function is invoked. This leads to unexpected behavior, as mutations persist between calls. For a more detailed explanation, see [The Hitchhiker's Guide to Python](http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments).
#### Example
```
def fnc(a, b={}):
pass
foo.py:2:14: M511 - mutable default arg of type Dict
```
#### Installation
```
pip install flake8-mutable
```
#### Changes
##### [1.1.0] 2016-11-26
- Callables
##### [1.0.6] 2016-11-26
- added MANIFEST.in
#### License
[MIT](https://opensource.org/licenses/MIT)
Metadata
Release files for flake8-mutable 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flake8-mutable-1.2.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flake8_mutable-1.2.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 6.4 kB
Release files / flake8-mutable-1.2.0.tar.gz
| Download URL | flake8-mutable-1.2.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee9b77111b867d845177bbc289d87d541445ffcc6029a0c5c65865b42b18c6a6
|
|
BLAKE2b-256 checksum How to use checksums |
976a0fd1d903848fe043c7b6e5283d9def56425754098e69d7683a3ccbbea345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / flake8_mutable-1.2.0-py2-none-any.whl
| Download URL | flake8_mutable-1.2.0-py2-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
38fd9dadcbcda6550a916197bc40ed76908119dabb37fbcca30873666c31d2d5
|
|
BLAKE2b-256 checksum How to use checksums |
b8e8b0c83d223dc5aa5106f9bb7046f0449fd4c8c30271adbdacf2bd9d647a60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |