repl.it
@anonymous/

GreatNoxiousJuliabutterfly

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
def p_decorate(func):
	def func_wrapper(self):
		return "<p>{0}</p>".format(func(self))
	return func_wrapper

class Person(object):
	def __init__(self):
		self.name = "John"
		self.family = "Doe"
	@p_decorate
	def get_fullname(self):
		return self.name+" "+self.family

my_person = Person()
print (my_person.get_fullname())
Fetching token
?