Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

A switch "statement" for Python. Please don't actually use this.

x = 5
switch(x)
if case(4):
assert False
if case(5):
assert True
fallthrough()
if case(lambda x: x > 3):
assert True
if case(6):
assert False
if default():
assert False

Tests and usage in test.py.

About

Leave while you still can.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages