Name | python-goto JSON |
Version |
0.1.4
JSON |
| download |
home_page | None |
Summary | Add goto to Python |
upload_time | 2024-05-07 14:07:07 |
maintainer | None |
docs_url | None |
author | The Lumberjack |
requires_python | None |
license | None |
keywords |
goto
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Python-goto
This package adds a revolutionary feature to Python: the Goto statement<br>
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
```python
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
```python
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
Raw data
{
"_id": null,
"home_page": null,
"name": "python-goto",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "goto",
"author": "The Lumberjack",
"author_email": "just4now@example.com",
"download_url": "https://files.pythonhosted.org/packages/e9/86/381cf4208343cc7e5221517b9fc6a7e78efc1bb20c0ebeb43e6f3f157fdb/python_goto-0.1.4.tar.gz",
"platform": null,
"description": "# Python-goto\r\n\r\nThis package adds a revolutionary feature to Python: the Goto statement<br>\r\nIt allows you to feel the essence of early days of C while using a modern language\r\n\r\n## Installation\r\n\r\n```\r\npip install python-goto\r\n```\r\n\r\n## How to use\r\n\r\n```python\r\nfrom python_goto import goto\r\n\r\nx: int = 0\r\nwhile x < 10:\r\n x += 1\r\n print(x)\r\n goto(line=4)\r\n```\r\n\r\n## Limitations\r\n\r\nThe line you want to jump to must have no indent blocks\r\n\r\nFor example, the following code won't work\r\n\r\n```python\r\nfrom python_goto import goto\r\n\r\ndef count_down(n: int) -> None:\r\n while n > 0:\r\n n -= 1\r\n print(n)\r\n goto(line=4)\r\n```\r\n\r\nThis limitations will be fixed in the upcomming updated\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Add goto to Python",
"version": "0.1.4",
"project_urls": null,
"split_keywords": [
"goto"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7d4958ac08c7864c7a0dd83c7e091e764d7e839af87b251fbf6554318ef0ada7",
"md5": "9c6d8b2a3d9e5b167d059cfa1dcf7ddb",
"sha256": "96238ce2f7d271867906fd217689c77f36589937f34abaea9ee066194e6f6dca"
},
"downloads": -1,
"filename": "python_goto-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9c6d8b2a3d9e5b167d059cfa1dcf7ddb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 2923,
"upload_time": "2024-05-07T14:07:06",
"upload_time_iso_8601": "2024-05-07T14:07:06.453346Z",
"url": "https://files.pythonhosted.org/packages/7d/49/58ac08c7864c7a0dd83c7e091e764d7e839af87b251fbf6554318ef0ada7/python_goto-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e986381cf4208343cc7e5221517b9fc6a7e78efc1bb20c0ebeb43e6f3f157fdb",
"md5": "3f4c5ea56fb063361f5e2c12fa1a8c81",
"sha256": "2383c2cb2e5201a52e096ccc2ab05149c52d93980108d0607261cf3e82464575"
},
"downloads": -1,
"filename": "python_goto-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "3f4c5ea56fb063361f5e2c12fa1a8c81",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2503,
"upload_time": "2024-05-07T14:07:07",
"upload_time_iso_8601": "2024-05-07T14:07:07.710950Z",
"url": "https://files.pythonhosted.org/packages/e9/86/381cf4208343cc7e5221517b9fc6a7e78efc1bb20c0ebeb43e6f3f157fdb/python_goto-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-07 14:07:07",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "python-goto"
}