else/Syshub/syshub_example_slave2.py

16 lines
298 B
Python
Raw Normal View History

2015-08-26 11:38:43 +00:00
'''
Notice how this file does not import syshub or know about it
in any way.
'''
import sys
def say_something():
print('hello')
def input_something():
print('prompt: ', end='')
b = sys.stdin.readline()
print(b)
def raise_something():
print(sys.excepthook)
raise ValueError