[issue34427] calling MutableSequence.extend on self produces infinite loop

Raymond Hettinger report at bugs.python.org
Mon Aug 27 02:39:18 EDT 2018


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> But a MutableSequence can represents a sequence that doesn't
> fit in memory. It can provide an interface to a linear 
> on-disk store. In this case creating an on-memory copy 
> is not possible.

This case is likely not worth worrying about.  If a user created such a sequence AND wrote "s += s", it is unclear whether any particular unpleasant outcome (including the current behavior) could be avoided.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34427>
_______________________________________


More information about the Python-bugs-list mailing list