# snoack/python-goto

Discontinued function decorator that rewrites Python bytecode to enable goto statements

Repository: https://github.com/snoack/python-goto
Canonical: https://ross.abutalabs.com/products/python-goto
Language: Python
License: Unlicense
License Family: permissive
Archived: true
Last push: 2026-07-28T02:43:45+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 4002, "days_push": 36, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1308, forks 83 (observed 2026-08-28T04:04:19.302892+00:00)

## What it is
A Python function decorator that rewrites CPython bytecode to enable goto and label statements in Python functions. It is discontinued and only compatible with Python 2.6 through 3.7.

## Use cases
- add goto statements to python code
- rewrite python bytecode to implement labels and jumps
- use goto in python 3.7 or earlier
- experiment with control flow in python
- study how bytecode rewriting works

## When to choose
- you are maintaining legacy code on Python 2.6-3.7 that already uses it
- you want to study bytecode rewriting techniques for historical or educational purposes

## When to avoid
- you are on any modern Python release (3.8+), where it is incompatible
- you need a supported, maintained dependency
- you want structured control flow rather than goto

## Facets
- artifact type: library
- maturity: abandoned
- function: parser, developer-tools
- domain: programming-languages, developer-tools
- platform: python, cross-platform
- tags: goto-statement, bytecode-rewriting, function-decorator, discontinued, cpython-internals

## Member repositories
- snoack/python-goto (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:19.302892+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:50:06.307161+00:00, confidence not recorded.
  - readme: https://github.com/snoack/python-goto (fetched 2026-08-28T04:04:19.302892+00:00, sha 200b27f039f0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
