[issue40790] Python should enable computed gotos on Mac by default

2020-06-01 Thread laike9m


laike9m  added the comment:

You're right. The part I don't understand is how `--without-computed-gotos`
disabled the feature. Also I guess since this feature is meant to be
transparent to users, it's ok to not have a way to inspect it.

On Mon, Jun 1, 2020 at 12:51 AM Ronald Oussoren 
wrote:

>
> Ronald Oussoren  added the comment:
>
> Looking at the source code at <
> https://github.com/python/cpython/blob/a871f692b4a2e6c7d45579693e787edc0af1a02c/Python/ceval.c#L1024>:
> computed gotos are enabled automatically when they are available.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40790] Python should enable computed gotos on Mac by default

2020-06-01 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Looking at the source code at 
:
 computed gotos are enabled automatically when they are available.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40790] Python should enable computed gotos on Mac by default

2020-05-31 Thread laike9m


laike9m  added the comment:

Thanks Ronald. I wrote an answer to summarize what I got so far:

https://stackoverflow.com/a/62037189/2142577

There's nothing wrong with the current behavior, so nothing really needs to be 
changed. But we still lack a way for users to check whether computed gotos is 
enabled out of the box, and `HAVE_COMPUTED_GOTOS` can't do the job either since 
it only detects the compiler's capability.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40790] Python should enable computed gotos on Mac by default

2020-05-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The result of auto detection of computed gotos can be seen using the 
HAVE_COMPUTED_GOTOS macro, not the USE_... one. 

Computed gotos should work on macOS, and does on my machine.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40790] Python should enable computed gotos on Mac by default

2020-05-27 Thread laike9m


laike9m  added the comment:

Hi Benjamin, do you mean that disabling computed gotos on Mac is the expected 
behavior?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40790] Python should enable computed gotos on Mac by default

2020-05-27 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

The configure script sets the result of compiler probing with 
HAVE_COMPUTED_GOTOS not USE_COMPUTED_GOTOS.

--
nosy: +benjamin.peterson
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40790] Python should enable computed gotos on Mac by default

2020-05-27 Thread laike9m


New submission from laike9m :

Issue is described here with more details:
https://stackoverflow.com/q/61860463/2142577

Basically, when building on Mac, Python should enable computed gotos by 
default, because it is supported (https://stackoverflow.com/a/62037189/2142577).

The 
documentation(https://docs.python.org/3/whatsnew/3.2.html#build-and-c-api-changes)
 says
> Computed gotos are now enabled by default on supported compilers (which are 
> detected by the configure script). They can still be disabled selectively by 
> specifying --without-computed-gotos.

This seems to imply that the capability detection is wrong.

--
components: macOS
messages: 370051
nosy: laike9m, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Python should enable computed gotos on Mac by default
type: behavior
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com