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.
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?