I'm working with web2py and I've been looking through the source code to get some better understanding. Multiple times I've seen assignments like
# in file appadmin.py
is_gae = request.env.web2py_runtime_gae or False
If request.env.web2py_runtime_gae is true, then False does not matter. Either way the expression becomes false, if request.env.web2py_runtime_gae is false.
And also:
# in file appadmin.py
if False and request.tickets_db:
from gluon.restricted import TicketStorage
The second part of the and clause is never evaluated, because False and x always returns false.
So why would one do something like that?