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 rhettinger
Recipients docs@python, ramalho, rhettinger
Date 2021-03-03.01:26:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614734768.1.0.742485592093.issue43378@roundup.psfhosted.org>
In-reply-to
Content
This seems fine to me.   In pattern matching, it has both the meaning and pronunciation of "or":

    case "this" | "that": ...

It has similar mean in the re module:

    r'abc|def'

And it is also used the same way in typing:

   s: list | tuple

We've also long used it for sets:

   rich | tall       # People who are either rich OR tall  

Based on this, I don't there is any reason to suspect it will be confused with bitwise-or.

The only place the operator really isn't harmonious is with dicts where its meaning is "update" and where it isn't commutative.
History
Date User Action Args
2021-03-03 01:26:08rhettingersetrecipients: + rhettinger, docs@python, ramalho
2021-03-03 01:26:08rhettingersetmessageid: <1614734768.1.0.742485592093.issue43378@roundup.psfhosted.org>
2021-03-03 01:26:08rhettingerlinkissue43378 messages
2021-03-03 01:26:07rhettingercreate