
Aug. 29, 2019
9:58 p.m.
On Aug 29, 2019, at 12:54, Chris Angelico <rosuav@gmail.com> wrote:
Either one seems a lot better than breaking backward compatibility by adding new operator methods to the type type.
How does that break backward compat?
It doesn’t make Python backward incompatible; it does mean that if typing or mypy relies on it, it becomes incompatible with earlier versions of Python (or has to fork different code for 3.8+ that relies on type.__or__ being available and 3.7- that doesn’t have whatever functionality relies on that).