[pypy-commit] [Git][pypy/pypy][branch/py3.8] 3 commits: (cfbolz, twitch): make int.__new__ call __index__ if the argument doesn't have

Carl Friedrich Bolz-Tereick foss at heptapod.net
Sat Mar 20 16:33:39 EDT 2021



Carl Friedrich Bolz-Tereick pushed to branch branch/py3.8 at PyPy / pypy


Commits:
652818d8 by Carl Friedrich Bolz-Tereick at 2021-03-20T20:25:55+01:00
(cfbolz, twitch): make int.__new__ call __index__ if the argument doesn't have
__int__

--HG--
branch : py3.8

- - - - -
049de51a by Carl Friedrich Bolz-Tereick at 2021-03-20T20:47:58+01:00
(cfbolz, twitch): support __index__ in the constructors of float and complex as well

--HG--
branch : py3.8

- - - - -
c71db0d2 by Carl Friedrich Bolz-Tereick at 2021-03-20T21:33:05+01:00
(cfbolz, twitch): add sep and bytes_per_sep keyword arguments to the .hex
methods of bytes, bytearray, memoryobject

--HG--
branch : py3.8

- - - - -


12 changed files:

- pypy/objspace/std/bytearrayobject.py
- pypy/objspace/std/bytesobject.py
- pypy/objspace/std/complexobject.py
- pypy/objspace/std/floatobject.py
- pypy/objspace/std/intobject.py
- pypy/objspace/std/memoryobject.py
- pypy/objspace/std/test/apptest_complexobject.py
- pypy/objspace/std/test/test_bytearrayobject.py
- pypy/objspace/std/test/test_bytesobject.py
- pypy/objspace/std/test/test_floatobject.py
- pypy/objspace/std/test/test_intobject.py
- pypy/objspace/std/test/test_memoryobject.py


View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/53882c58146cb0526f3b833ca3f3fb81fbc3d597...c71db0d289f10f50953116fd1f7d22e43002a227

-- 
View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/53882c58146cb0526f3b833ca3f3fb81fbc3d597...c71db0d289f10f50953116fd1f7d22e43002a227
You're receiving this email because of your account on foss.heptapod.net.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pypy-commit/attachments/20210320/39d9bf39/attachment.html>


More information about the pypy-commit mailing list