[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

Florent Xicluna report at bugs.python.org
Fri Oct 21 19:17:11 CEST 2011


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

With the #error, I can confirm that computed gotos are enabled on OS X.

About sysconfig, we may change the code to set None if the value is "undef". I don't know the impact.


--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -404,7 +404,7 @@
         else:
             m = undef_rx.match(line)
             if m:
-                vars[m.group(1)] = 0
+                vars[m.group(1)] = None
     return vars

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13240>
_______________________________________


More information about the Python-bugs-list mailing list