Re: questions about object references

2009-08-07 Thread Ned Deily
In article <786181.46665...@web110610.mail.gq1.yahoo.com>, William wrote: > 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

questions about object references

2009-08-07 Thread William
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):    s