python-goto icon indicating copy to clipboard operation
python-goto copied to clipboard

A function decorator, that rewrites the bytecode, to enable goto in Python

Results 15 python-goto issues
Sort by recently updated
recently updated
newest added

I tried installing the module several times and I still get the error. Is there an alternative for Python 3.8 for windows?

**Code to reproduce**: from goto import with_goto content = ["ab", "cd"] prefix = ['a', 'b'] @with_goto def test(): for a in content: print(f"1: {a}") for p in prefix: if a.startswith(p):...

**Code to reproduce**: from goto import with_goto content = ["ab", "cd"] prefix = ['a', 'b'] @with_goto def test(): for a in content: print(f"1: {a}") for p in prefix: print(f"2: {a}")...

I had tried to build the latest version since PyPI contains outdated one. The unit test failed twice when expecting SyntaxError protection against make goto in a loop scope. def...

The following snippet produces "TypeError: an integer is required (got type bytes)" with Python 3.8. Code snippet ```python from goto import with_goto @with_goto def main(): label .label_rst ``` Error trace...

I get the following exception when I run the program below: Exception has occurred: SyntaxError Unknown label 'a' ``` python from goto import with_goto @with_goto def main(x): if x ==...

Hello, I would like to install this module onto Python 3.8, but i am a bit new to Python and i'm not exactly sure how, thanks.

Just a question - is it possible to implement jump to some line? something like this https://stackoverflow.com/a/46274036/8324477 but without settrace (didn't tested it well, just heard many times that settrace...

This includes pull request #21 and #24 and the following fixes (with tests): - Fixes for jumping out of try/with/except/finally statements (esp. in pypy and now-supported Python 3.8) It also...