[Python-Dev] [Python-checkins] cpython: Issue #14779: Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sun May 13 10:13:52 CEST 2012
- Previous message: [Python-Dev] Preparation for VS2010 - MSDN for Windows build slaves, core devs
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #14779: Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- self.sizeofvoidp = getconfigvar('SIZEOFVOIDP') _+ self.sizeofvoidp = getconfigvar('SIZEOFVOIDP') _ + if sys.platform != 'darwin' else None if not self.sizeofvoidp: - self.sizeofvoidp = 8 if architecture()[0] == '64bit' else 4 + self.sizeofvoidp = 8 if sys.maxsize> 2**32 else 4
Why not unconditionally use sys.maxsize? I'd also hard-code that sys.maxsize ought to be either 231-1 or 263-1.
Regards, Martin
- Previous message: [Python-Dev] Preparation for VS2010 - MSDN for Windows build slaves, core devs
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #14779: Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]