Commits

Sven Hendriks committed dcb02f7

Updated README, unit tests and examples; Explicit conversion to int is no longer necessary

Comments (0)

Files changed (3)

 	# the class whose methods we're going to expose
 	class Handler(object):
 		def sum(self, a, b):
-			a = int(a)
-			b = int(b)
 			return a + b
 	
 	serve(9000, Handler())

jrpc/examples/example_server.py

 
 class ExampleHandler():
 	def sum(self, a, b, c=0):
-		a = int(a)
-		b = int(b)
-		c = int(c)
-		return a+b+c
+		return a + b + c
 
 serve(9000, ExampleHandler())
 

jrpc/tests/test_client_server.py

 # the class whose methods we're going to expose
 class Handler(object):
 	def sum(self, a, b):
-		a = int(a)
-		b = int(b)
 		return a + b
 
 def test_client_server():