forked from AllenDowney/ThinkPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMathClient.py
More file actions
23 lines (17 loc) · 523 Bytes
/
Copy pathMathClient.py
File metadata and controls
23 lines (17 loc) · 523 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Example using the remote_object wrapper for Pyro.
Copyright 2010 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
import sys
import remote_object
def main(script, name='bob', *args):
ns = remote_object.NameServer()
server = ns.get_proxy(name)
print server.mul(111,9)
print server.add(100,222)
print server.sub(222,100)
print server.div(2.0,9.0)
print server.mul('*',10)
print server.add('String1','String2')
if __name__ == '__main__':
main(*sys.argv)