It is not fake. If your iterator uses a reference to
the underlying list, then the behavior is different
sage: l = []
sage: iterator = (len(l) for i in range(3))
sage: l.extend(iterator)
sage: print(l)
[0, 1, 2]
sage: l = []
sage: iterator = (len(l) for i in range(3))
sage: l[:] = iterator
sage:
On Thu, 2021-06-10 at 09:47 -0700, 'Martin R' via sage-devel wrote:
> The question is, whether we can rely on behaviour of the reference
> implementation of python which contradicts its documentation:
>
The cynic's take: you can't rely on anything in a language that has no
specification.
Can yo