This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients docs@python, ethan.furman, josh.r, jpotelle
Date 2015-01-03.04:07:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420258056.66.0.462246641987.issue23153@psf.upfronthosting.co.za>
In-reply-to
Content
`or` does not return the last item evaluated -- it returns the first truthy item, or, if no truthy items, the last false item:

  --> 0 or {}
  {}
  --> 0 or 1 or {}
  1
History
Date User Action Args
2015-01-03 04:07:36ethan.furmansetrecipients: + ethan.furman, docs@python, josh.r, jpotelle
2015-01-03 04:07:36ethan.furmansetmessageid: <1420258056.66.0.462246641987.issue23153@psf.upfronthosting.co.za>
2015-01-03 04:07:36ethan.furmanlinkissue23153 messages
2015-01-03 04:07:36ethan.furmancreate