mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
iter(dict) is equivalent to iter(dict.keys()). Can simply act on the dict instead. Provides a more concise, Pythonic syntax and avoids an unnecessary function call. Inspired by Lennart Regebro's presentation "Prehistoric Patterns in Python" at PyCon 2017. Available at: https://www.youtube.com/watch?v=V5-JH23Vk0I |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| utils.py | ||