If there's a class called foo
and you do d = foo().someboundmethod
, will the instance of foo stil be there?
james.lu.75491856
0
Junior Poster
Recommended Answers
Jump to Post~s.o.s~, I think you overlooked the fact that
someboundmethod
is never actually called in the james' code.d
simply stores a reference to the methodsomeboundmethod
of the object returned byfoo()
. Since that method is bound to the object, the object will live at least as a long as …
All 4 Replies
bumsfeld
413
Nearly a Posting Virtuoso
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
sepp2k
378
Practically a Master Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.