laike9m added the comment:
Agreed. The current doc for `findlinestarts` is outdated.
--
nosy: +laike9m
___
Python tracker
<https://bugs.python.org/issue44
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
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
laike9m added the comment:
Hi Benjamin, do you mean that disabling computed gotos on Mac is the expected
behavior?
--
___
Python tracker
<https://bugs.python.org/issue40
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
Change by laike9m :
--
type: enhancement -> behavior
___
Python tracker
<https://bugs.python.org/issue40169>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by laike9m :
--
keywords: +patch
pull_requests: +18717
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19356
___
Python tracker
<https://bugs.python.org/issu
New submission from laike9m :
Continuing our discussion in https://bugs.python.org/issue40122.
I would like to make `dis.findlabels()` accept a code object just like other
APIs in the dis module. Also this can be a good chance to add tests for it.
--
components: Library (Lib
laike9m added the comment:
I've created a PR to fix documentation.
https://github.com/python/cpython/pull/19274
I'll create a new issue for making the function accept a code object.
--
___
Python tracker
<https://bugs.python.o
Change by laike9m :
--
keywords: +patch
pull_requests: +18629
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/19274
___
Python tracker
<https://bugs.python.org/issu
New submission from laike9m :
The documentation of dis.findlabels says:
> dis.findlabels(code)
> Detect all offsets in the code object code which are jump targets, and return
> a list of these offsets.
But the implementation actually expects a raw compiled bytecode.
>>
Change by laike9m :
--
nosy: +laike9m
___
Python tracker
<https://bugs.python.org/issue30951>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by laike9m :
--
keywords: +patch
pull_requests: +13865
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/13985
___
Python tracker
<https://bugs.python.org/issu
13 matches
Mail list logo