Skip to content

nya3jp/end

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

end

This Python module magically introduces end keyword which marks the end of a block statement.

PyPI version Build Status

Usage

Import "end" module and mark ends of blocks with end. When you forget to mark any, SyntaxError is raised in import time (not in execution time).

import end

def func():
    for i in range(3):
        print(i)
    end
end

with open('a.txt') as f:
    print(f.read())
end

try:
    time.sleep(3)
except KeyboardInterrupt:
    print('Interrupted')
finally:
    print('Slept')
end

if 28 > 3:
    print('nya-n')
# end is missing here. SyntaxError is raised!

Warning

This is a joke module --- never use it.

Author

Shuhei Takahashi

License

Apache 2.0

About

Introduces "end" keyword to Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages