File: object.py

package info (click to toggle)
pyro 1%3A3.14-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,048 kB
  • ctags: 1,988
  • sloc: python: 11,194; xml: 128; sh: 52; makefile: 28
file content (9 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9

class myObject(object):
	def method1(s, string):
		return "Your string length is: "+str(len(string))
	def method2(s, number):
		return "The square of your number is: "+str(number*number)

def remote_objects():
    return { 'quickstart': myObject() }