gists/misc.py

12 lines
278 B
Python
Raw Normal View History

2016-05-24 20:15:26 -07:00
import sys
lament = lambda *args, **kwargs: print(*args, file=sys.stderr, **kwargs)
def die(*args, **kwargs):
2016-05-25 07:31:48 -07:00
# just for ad-hoc debugging really
2016-05-24 20:15:26 -07:00
lament(*args, **kwargs)
sys.exit(1)
__all__ = [o for o in locals() if type(o) != 'module' and not o.startswith('_')]