N
novice
hello over there!
I have the following question:
Suppose I created a class: class Point:
pass
then instanciated an instance: new = Point()
So now how to get the instance new as a string: like ' new ' ; Is
there any built in function or method
for eg:
class Point:
def _func_that_we_want_(self):
return .......
new._func_that_we_want_() ---> ' new '
I have the following question:
Suppose I created a class: class Point:
pass
then instanciated an instance: new = Point()
So now how to get the instance new as a string: like ' new ' ; Is
there any built in function or method
for eg:
class Point:
def _func_that_we_want_(self):
return .......
new._func_that_we_want_() ---> ' new '