This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2006年08月02日 22:18 by jimjjewett, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg60957 - (view) | Author: Jim Jewett (jimjjewett) | Date: 2006年08月02日 22:18 | |
In the C/API reference manual section 1.2.1, should "assuming sizeof(long) >= sizeof(char*)" change long to Py_ssize_t? |
|||
| msg63344 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2008年03月07日 02:03 | |
I think it should be changed to "because sizeof(Py_ssize_t) == sizeof(void*)" |
|||
| msg63394 - (view) | Author: Georg Brandl (georg.brandl) * (Python committer) | Date: 2008年03月08日 10:05 | |
Fixed in r61305. |
|||
| msg63401 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2008年03月08日 14:02 | |
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. |
|||
| msg63497 - (view) | Author: Georg Brandl (georg.brandl) * (Python committer) | Date: 2008年03月13日 07:19 | |
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." |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:19 | admin | set | github: 43764 |
| 2008年03月13日 07:19:14 | georg.brandl | set | messages: + msg63497 |
| 2008年03月08日 14:02:12 | belopolsky | set | messages: + msg63401 |
| 2008年03月08日 10:05:33 | georg.brandl | set | status: open -> closed resolution: fixed messages: + msg63394 |
| 2008年03月07日 02:03:31 | belopolsky | set | nosy:
+ belopolsky messages: + msg63344 |
| 2008年03月06日 19:54:42 | loewis | set | components: - None |
| 2008年03月06日 19:54:32 | loewis | set | assignee: georg.brandl components: + None nosy: + georg.brandl |
| 2006年08月02日 22:18:58 | jimjjewett | create | |