Tail recursion to while iteration in 2 easy steps

random832 at fastmail.us random832 at fastmail.us
Thu Oct 3 10:14:24 EDT 2013


On Wed, Oct 2, 2013, at 21:46, MRAB wrote:
> > The difference is that a tuple can be reused, so it makes sense for the
> > comiler to produce it as a const.  (Much like the interning of small
> > integers)  The list, however, would always have to be copied from the
> > compile-time object.  So that object itself would be a phantom, used
> > only as the template with which the list is to be made.
> >
> The key point here is that the tuple is immutable, including its items.

Hey, while we're on the subject, can we talk about frozen(set|dict)
literals again? I really don't understand why this discussion fizzles
out whenever it's brought up on python-ideas.



More information about the Python-list mailing list