Are lists at least as efficient as dictionaries?
Chad Netzer
cnetzer at sonic.net
Fri Aug 29 13:24:37 EDT 2003
On Fri, 2003-08-29 at 07:54, Jp Calderone wrote:
> += could simply be syntactic sugar for a call to __add__ and then an
> assignment. This would work for mutable and immutable objects.
But it loses the advantage that some objects would otherwise have of
being able to mutate in place, without allocating a new object (ie. very
large matrix additions).
--
Chad Netzer
More information about the Python-list
mailing list