You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are objects that we create frequently that have attributes that are rarely used and can be computed lazily.
We should compute these lazily to save the overhead of creating and destroying them in most cases.
Most of these attributes are mutable, so we still need a field for them. We can initialize the field to NULL and compute it on demand.
Function
__name__
__qualname__
__doc__
Generator
__name__
__qualname__
Traceback
tb_lineno
Others?
The text was updated successfully, but these errors were encountered:
There are objects that we create frequently that have attributes that are rarely used and can be computed lazily.
We should compute these lazily to save the overhead of creating and destroying them in most cases.
Most of these attributes are mutable, so we still need a field for them. We can initialize the field to
NULL
and compute it on demand.__name__
__qualname__
__doc__
__name__
__qualname__
tb_lineno
Others?
The text was updated successfully, but these errors were encountered: