Skip to content

sys: Fix sys.maxsize and add sys.maxunicode#1124

Merged
windelbouwman merged 1 commit into
RustPython:masterfrom
corona10:sys_maxunicode
Jul 9, 2019
Merged

sys: Fix sys.maxsize and add sys.maxunicode#1124
windelbouwman merged 1 commit into
RustPython:masterfrom
corona10:sys_maxunicode

Conversation

@corona10

@corona10 corona10 commented Jul 9, 2019

Copy link
Copy Markdown
Contributor

Current implementation of sys.maxsize is unsigned type
but AFAIK the type of sys.maxsize should be identical with
Py_ssize_t which is known as signed type.

sys.maxunicode is hardcoded from cpython repository
https://github.com/python/cpython/blob/master/Python/sysmodule.c#L2654

Current implementation of sys.maxsize is unsigned type
but AFAIK the type of sys.maxsize should be identical with
Py_ssize_t which is known as signed type.

sys.maxunicode is hardcoded from cpython repository
https://github.com/python/cpython/blob/master/Python/sysmodule.c#L2654
@windelbouwman windelbouwman merged commit 9261d94 into RustPython:master Jul 9, 2019
@windelbouwman

Copy link
Copy Markdown
Contributor

The maxsize value is under debate. What should be used might change again later. Please see #447

@corona10 corona10 deleted the sys_maxunicode branch July 10, 2019 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants