Skip to content

nfd/on_error_resume_next

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Implementing ON ERROR RESUME NEXT in Python

This implements the BASIC command ON ERROR RESUME NEXT in Python. When an exception is raised, the code is resumed at the next line. Exception information can be retrieved using the err() function.

A full discussion is at code.lardcave.net.

Yes, this is a joke.

Pull requests welcomed.

Usage

from basic import on_error_resume_next

on_error_resume_next()

value = 1 / 0

Also see demo.py.

About

Python bytecode abominations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages