questions about object references
William
abecedarian314159 at yahoo.com
Fri Aug 7 13:51:17 EDT 2009
I have a question. Suppose I do the following:
def myfunc(a,b):
return a+b
myfunc2=myfunc
is there anyway to find all of the references to myfunc? That is, can I find out all of the functions that may be aliased to myfunc?
second question:
class MyClass(object):
def __init__(a,b):
self.a=a
self.b=b
def myfunc(self):
return self.a+self.b
myclass=MyClass(3,4)
myclass.myfunc2=myclass.myfunc
Is there any way to find all the references to myclass.myfunc--in this case,
myclass.myfunc2?
Thanks,
William
is there a way to
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090807/073f16b7/attachment.html>
More information about the Python-list
mailing list