[New-bugs-announce] [issue36248] document about `or`, `and` operator.

Windson Yang report at bugs.python.org
Sat Mar 9 01:24:24 EST 2019


New submission from Windson Yang <wiwindson at outlook.com>:

I think we should document the behavior as below, (maybe at https://docs.python.org/3/reference/expressions.html#operator-precedence)

>>> 1 or 0 and 3
1
>>> 0 or 1 and 3
3

Please correct me if we already document it.

----------
assignee: docs at python
components: Documentation
messages: 337555
nosy: Windson Yang, docs at python
priority: normal
severity: normal
status: open
title: document about `or`, `and` operator.
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36248>
_______________________________________


More information about the New-bugs-announce mailing list