<commit_before># goto

A function decorator to use `goto` in Python.
Tested on Python 2.6 through 3.5 and PyPy.

![](https://imgs.xkcd.com/comics/goto.png)

## Usage

```python
from goto import with_goto

@with_goto
def range(start, stop):
	i = start
	result = []

	label .begin
	if i == stop:
		goto .end

	result.append(i)
	i += 1
	goto .begin
<commit_msg>Added build status image to README<commit_after># goto

A function decorator to use `goto` in Python.
Tested on Python 2.6 through 3.5 and PyPy.

[![Build Status](https://travis-ci.org/snoack/python-goto.svg?branch=master)](https://travis-ci.org/snoack/python-goto)

![](https://imgs.xkcd.com/comics/goto.png)

## Usage

```python
from goto import with_goto

@with_goto
def range(start, stop):
	i = start
	result = []

	label .begin
	if i == stop:
		goto .end

	result.append(i)
	i += 1
	goto .begin

{'fraction_non_alphanumeric': 0.1445221445221445, 'fraction_numerical': 0.011655011655011656, 'mean_word_length': 3.618279569892473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6656393', 'n_tokens_mistral': 347, 'n_tokens_neox': 327, 'n_words': 95}