| Age | Commit message (Collapse) | Author |
|
Changes in behavior include:
- Accepting iteration over empty sequences, updating nothing.
- Accepting iterable of 2-tuples providing key-value pairs.
- Failing with the same or comparable exceptions for invalid input.
Notably this replaces the previous attempt to catch TypeError which was
unreachable as the call to .items() resulted in AttributeError on
non-dict objects.
|
|
Co-authored-by: Mads Jensen <mje@inducks.org>
|
|
Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
|
|
|
|
|
|
|
|
Thanks Mariusz Felisiak for auditing.
|
|
iter(dict) is equivalent to iter(dict.keys()).
|
|
|
|
Thanks Tim Graham for the review.
|
|
None.
Restored the behavior before 727d7ce6cba21363470aaefb2dc5353017531be3.
|
|
mutation.
|
|
|
|
appropriate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#18659.
|
|
|
|
|
|
This also defines QuerySet.__bool__ for consistency though this should not have any consequence as bool(qs) used to fallback on QuerySet.__len__ in Py3.
|
|
|
|
|
|
|
|
|
|
|
|
Thanks Aymeric Augustin for the suggestion.
|
|
Thanks margieroginski for the suggestion.
|
|
|
|
|
|
1.5.
|
|
Thanks mark.harviston et gmail.com for the report.
|
|
MergeDict evaluates now to False if all contained dicts are empty.
Thanks til for the report and the initial patch.
|
|
|