News for hackers. Stuff that matters.
Re:What's New in Python 3.11? by wodenokoto on Tuesday June 28, 2022 @08:13AM (#31906685)
But that is not really the `|` operators fault. You get the exact same behaviour when you create a dictionary.

    >>> {1: 1, 1.0: 1.0, True: True}
    {1: True}
So `|` between dictionaries behaves just as you'd expect, if your expectations about creating a dictionary are correct. I think that's very reasonable.

There are no comments on this comment yet.