Add goto to Python
Project description
Python-goto
This package adds a revolutionary feature to Python: the Goto statement
It allows you to feel the essence of early days of C while using a modern language
Installation
pip install python-goto
How to use
from python_goto import goto
x: int = 0
while x < 10:
x += 1
print(x)
goto(line=4)
Limitations
The line you want to jump to must have no indent blocks
For example, the following code won't work
from python_goto import goto
def count_down(n: int) -> None:
while n > 0:
n -= 1
print(n)
goto(line=4)
This limitations will be fixed in the upcomming updated
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_goto-0.1.4.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file python_goto-0.1.4.tar.gz
.
File metadata
- Download URL: python_goto-0.1.4.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2383c2cb2e5201a52e096ccc2ab05149c52d93980108d0607261cf3e82464575
|
|
MD5 |
3f4c5ea56fb063361f5e2c12fa1a8c81
|
|
BLAKE2b-256 |
e986381cf4208343cc7e5221517b9fc6a7e78efc1bb20c0ebeb43e6f3f157fdb
|
File details
Details for the file python_goto-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: python_goto-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
96238ce2f7d271867906fd217689c77f36589937f34abaea9ee066194e6f6dca
|
|
MD5 |
9c6d8b2a3d9e5b167d059cfa1dcf7ddb
|
|
BLAKE2b-256 |
7d4958ac08c7864c7a0dd83c7e091e764d7e839af87b251fbf6554318ef0ada7
|