[Python-3000] Dict literal bytecode
Marcin ‘Qrczak’ Kowalczyk
qrczak at knm.org.pl
Fri Mar 28 17:46:51 CET 2008
Dnia 27-03-2008, Cz o godzinie 11:48 +1200, Greg Ewing pisze:
> Tuples are created batchwise because, being immutable,
> that's the only way to do it. But if set literals are
> to produce mutable objects, there's no need for them
> to be created batchwise, and doing so has unfortunate
> stack size and memory use consequences in the worst case.
What about lists? I guess (haven't checked) that they are made like
tuples. If so, has it caused problems with the stack size? If not,
perhaps we should not worry about dicts either.
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Python-3000
mailing list