You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
375 B
Python
23 lines
375 B
Python
8 years ago
|
"""
|
||
|
I am a self-contained program!
|
||
|
"""
|
||
|
|
||
|
import econtext.master
|
||
|
|
||
|
|
||
|
def repr_stuff():
|
||
|
return repr([__name__, 50])
|
||
|
|
||
|
|
||
|
def main():
|
||
|
broker = econtext.master.Broker()
|
||
|
try:
|
||
|
context = broker.get_local()
|
||
|
print context.call(repr_stuff)
|
||
|
finally:
|
||
|
broker.shutdown()
|
||
|
broker.join()
|
||
|
|
||
|
if __name__ == '__main__' and not econtext.slave:
|
||
|
main()
|