Raymond Hettinger added the comment:

Looking back at the OP's timings in the referenced SO question, I would expect 
that if someone "fixed" this issue, it wouldn't be long before someone else 
filed a performance regression bug claiming a 63,000x slowdown in exactly the 
same code.

I'm marking this as closed because if this ever did arise in real code, it is 
unclear whether the desirable behavior is to eat memory but run fast, or to 
save memory upfront but run dog slow and eat memory later when the function is 
called.  Either way, the situation is likely to be very rare.

Your guess is as good as mine regarding which behavior would be more desirable 
to the user.  Presumably, if they direct the computer to build a large object, 
they won't be surprised if a large object is created.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30293>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to