#37307: Django uses `or` keyword to short-circuit in various places
-------------------------------+--------------------------------------
Reporter: Twain Byrnes | Owner: (none)
Type: Bug | Status: closed
Component: Uncategorized | Version: 6.1
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Jacob Walls):
* easy: 1 => 0
* resolution: => wontfix
* status: new => closed
* summary: Short-circuit evaluation issue => Django uses `or` keyword to
short-circuit in various places
Comment:
Hi Twain,
Thanks for sharing your findings with us, but we don't consider this
problematic as a general principle. Some parts of Django lean more toward
duck-typing than others, and in many cases we avoid being specific about
sequence/mapping types.
In the future, please also share the exact code or permanent links -- the
line numbers you cite cannot be looked up against moving targets
otherwise.
--
Ticket URL: <
https://code.djangoproject.com/ticket/37307#comment:1>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.