Georg Brandl [EMAIL PROTECTED] added the comment:
PEP 353 says:
Py_intptr_t needs to be the same size as void*, and Py_ssize_t the same
size as size_t. These could differ, e.g. on machines where pointers have
segment and offset.
_
Tracker [EMAIL PROTECTED]
Alexander Belopolsky added the comment:
Georg, did you miss the s/assuming/because/ part of my proposal? Python
guarantees that sizeof(Py_ssize_t) == sizeof(size_t) == sizeof(void*). (See PEP
353.)
Assuming is therefore misleading because it suggests that it may not
be always true.
Changes by Martin v. Löwis:
--
assignee: - georg.brandl
components: +None
nosy: +georg.brandl
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1533486
_
___
Changes by Martin v. Löwis:
--
components: -None
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1533486
_
___
Python-bugs-list mailing list
Unsubscribe:
Alexander Belopolsky added the comment:
I think it should be changed to because sizeof(Py_ssize_t) ==
sizeof(void*)
--
nosy: +belopolsky
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1533486
_