[issue1533486] long - Py_ssize_t (C/API 1.2.1)

2008-03-13 Thread Georg Brandl
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]

[issue1533486] long - Py_ssize_t (C/API 1.2.1)

2008-03-08 Thread Alexander Belopolsky
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.

[issue1533486] long - Py_ssize_t (C/API 1.2.1)

2008-03-06 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- assignee: - georg.brandl components: +None nosy: +georg.brandl _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1533486 _ ___

[issue1533486] long - Py_ssize_t (C/API 1.2.1)

2008-03-06 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- components: -None _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1533486 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1533486] long - Py_ssize_t (C/API 1.2.1)

2008-03-06 Thread Alexander Belopolsky
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 _