[Python-Dev] Lazy unpacking for struct module

Lukas Lueg lukas.lueg at googlemail.com
Tue Jun 14 18:28:30 CEST 2011

> So I really can't see what harm it could do, except for
> maybe a tiny performance reduction in the case where you
> extract all the fields, or refer to extracted fields
> repeatedly.

Referring to the view-object multiple times should not be a problem
since the object can create and hold references to the unpacked values
it created; remember that they are all immutable.

More information about the Python-Dev mailing list