convert from long long to PyLong losslessly by benjaminp · Pull Request #1106 · python/cpython
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 34.4k
Conversation
benjaminp
changed the title
convert from long long to PyLong loselessly
convert from long long to PyLong losslessly
vstinner
deleted the
benjamin-long-long-timeval
branch
Having to play with the different C types is painful: the availability and size of each C type depends on the platform, compiler options, etc. See bpo-17870 http://bugs.python.org/issue17870 for adding intmax_t/uintmax_t support :-)
IMHO the change fixes a real bug, but it's only a function used for unit tests, so I'm not sure that it's worth it to backport it to 3.6 & 3.5.
ssbr
mannequin
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters