Carl Friedrich Bolz-Tereick pushed to branch branch/py3.10 at PyPy / pypy
Commits: 4af96ae1 by Tadeu Zagallo at 2022-06-20T09:16:37+02:00 (tadeuzagallo, cfbolz): Implement PEP 604: allow writing type unions with the __or__ operator Added the `__or__` operator to TypeObject and NoneObject, imported most of the changes to lib-python and a few tests. Still need to match CPython's implementation of `repr(int | str)`. --HG-- branch : py3.9-type-or - - - - - c335bc2d by Tadeu Zagallo at 2022-06-20T12:09:53+02:00 (tadeuzagallo,cfbolz): Fix how the typing module is imported in the type or implementation --HG-- branch : py3.9-type-or - - - - - a2da4ef5 by Tadeu Zagallo at 2022-06-21T21:18:01+02:00 (tadeuzagallo, cfbolz): Modify lib-python _UnionGenericAlias.__repr__ to mimic cpython's C implementation --HG-- branch : py3.9-type-or - - - - - 8a17ba53 by Tadeu Zagallo at 2022-06-21T21:30:58+02:00 (tadeuzagallo, cfbolz): Implement __or__ for GenericAlias --HG-- branch : py3.9-type-or - - - - - 32885a33 by Tadeu Zagallo at 2022-06-21T23:09:38+02:00 Fix or_type tests. Break circular import in GenericAlias and remove non-deterministic repr test --HG-- branch : py3.9-type-or - - - - - 8de927e9 by Carl Friedrich Bolz-Tereick at 2023-01-05T10:42:14+01:00 merge py3.9-type-or: unfortunately more work is needed --HG-- branch : py3.10 - - - - - a327b7f4 by Carl Friedrich Bolz-Tereick at 2023-01-05T11:31:34+01:00 rework type.__or__ by following the approach of GenericAlias. a bunch of stuff is missing, but we can at least start to run things --HG-- branch : py3.10 - - - - - 6 changed files: - extra_tests/test_generic_alias.py - lib-python/3/types.py - lib_pypy/_pypy_generic_alias.py - pypy/objspace/std/noneobject.py - pypy/objspace/std/test/test_typeobject.py - pypy/objspace/std/typeobject.py View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/d977115dad2616c5324f192f7dcc6a2da6faade9...a327b7f48141cd06373d3477c89b768e58ebd4ee -- View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/d977115dad2616c5324f192f7dcc6a2da6faade9...a327b7f48141cd06373d3477c89b768e58ebd4ee You're receiving this email because of your account on foss.heptapod.net.
_______________________________________________ pypy-commit mailing list -- pypy-commit@python.org To unsubscribe send an email to pypy-commit-le...@python.org https://mail.python.org/mailman3/lists/pypy-commit.python.org/ Member address: arch...@mail-archive.com