[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2020-11-16 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-25 Thread Meador Inge
Meador Inge added the comment: >> P.S. We could probably get rid of the HAVE macro all together by doing >> all the work in the 'configure' script. > Would that be a breach of backward compatibility for sysconfig? Yeah, I think so. Best to leave it alone then. --

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: > If we truly want to enable this by default, then the defaulting should be > moved to > configure. This will give a more accurate portrayal in sysconfig. This sounds good. (I know little about configure/pyconfig.h, but making sysconfig more accurate is a valua

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-23 Thread Meador Inge
Meador Inge added the comment: > Actually, I think sysconfig does the right thing when it comes to all > the configure-generated HAVE_XXX variables I agree. The 'configure' script could be improved, though. If we truly want to enable this by default, then the defaulting should be moved to con

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread STINNER Victor
STINNER Victor added the comment: > Computed goto are disabled (in my Python 3.3 on Linux with GCC), > I checked by adding #error to ceval.c. Hum, I don't understand how, but I missed the #error failure. Computed goto *are enabled* by default. -- _

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread Florent Xicluna
Florent Xicluna 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:

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou 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. Actually, I think sysconfig does the right thing when it comes to all the con

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Extract of my pyconfig.h > - > /* Define if you want to use computed gotos in ceval.c. */ > /* #undef USE_COMPUTED_GOTOS */ > - Ok, now read ceval.c: #ifdef HAVE_COMPUTED_GOTOS #ifnd

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread STINNER Victor
STINNER Victor added the comment: Extract of configure.in: - # Check for --with-computed-gotos AC_MSG_CHECKING(for --with-computed-gotos) AC_ARG_WITH(computed-gotos, AS_HELP_STRING([--with(out)-computed-gotos], [Use compu

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This looks like the system Python compiled by Apple. What about a > hand-compiled Python? Forget this. I get the same results here. However, if you add a "#error" at the right place in ceval.c, you'll see that computed gotos are enabled. It seems more of a