Strong/Weak Reference

Strong references are pointers to objects that have an effect on their reference counts, and hence their lifetime and destruction. Strong references are what you see all the time when you assign an object to a variable.

Weak references, on the other hand, have no effect on the reference count for an object. The existence of a weak reference never impedes object destruction. That is, if an object has only weak references, it will be destroyed.

For more, plz visit: http://mindtrove.info/articles/python-weak-references/

0 Responses to “Strong/Weak Reference”


  • No Comments

Leave a Reply




WP SlimStat