Convert read-only global lists to tuples
|Reported by:||Piotr Lewandowski <django@…>||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
According to DjangoSpecifications/Core/Threading - there are some global lists which rather should be converted to tuples:
As a matter of style, the read-only ones should really be tuples, not lists -- the 'say what you mean' idiom: if it shouldn't be modified, don't let it be by making it a tuple.
I've attached a patch that eliminates all read-only lists. Please notice that:
- BLANK_CHOICE_DASH and BLANK_CHOICE_NONE are no longer single tuple wrapped in a list -- this change is slightly backwards-incompatible.
- After commiting this patch DjangoSpecifications/Core/Threading (section Global lists) should be updated.