Lifetime

The lifetime of a variable, array, or object is the duration from its allocation to its deallocation.

Related concepts:  AllocationGarbage CollectionVariableObjectArrayScope

Closest Wikipedia entry:  Object lifetime — In object-oriented programming (OOP), object lifetime is the period of time between an object's creation and its destruction. In some programming contexts, object lifetime coincides with the lifetime of a variable that represents the object. In other contexts – where the object is accessed by reference – object lifetime is not determined by the lifetime of a variable.

Misconceptions about Lifetime
3 documented Misconceptions

No known Python misconceptions for this concept

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.