| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| management | ||
| migrations | ||
| static/teams | ||
| templates/teams | ||
| tests | ||
| __init__.py | ||
| api_urls.py | ||
| errors.py | ||
| models.py | ||
| plugins.py | ||
| search_indexes.py | ||
| serializers.py | ||
| urls.py | ||
| utils.py | ||
| views.py |
Both of them dynamically generate specs which close over the iteration variable of a for loop. Closures capture *references*, not values, and so when the variable is mutated on loop iteration its new value is used when the spec is called. This means that instead of running a spec with n different values, we run the spec n times with the same value. This is bad.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| management | Loading commit data... | |
| migrations | Loading commit data... | |
| static/teams | Loading commit data... | |
| templates/teams | Loading commit data... | |
| tests | Loading commit data... | |
| __init__.py | Loading commit data... | |
| api_urls.py | Loading commit data... | |
| errors.py | Loading commit data... | |
| models.py | Loading commit data... | |
| plugins.py | Loading commit data... | |
| search_indexes.py | Loading commit data... | |
| serializers.py | Loading commit data... | |
| urls.py | Loading commit data... | |
| utils.py | Loading commit data... | |
| views.py | Loading commit data... |