Hi,
On Sun, Jun 13, 2021 at 12:07:39AM +0100, Dima Pasechnik wrote:
> On Sat, Jun 12, 2021 at 11:58 PM Diego Sejas
> wrote:
> >
> > Hello! It seems it happened again. I am unable to access Ask SageMath. Are
> > there any news about this matter?
>
> indeed. wiki down too, as expected. :-(
A si
On Sunday, June 13, 2021 at 12:00:44 PM UTC+2 axio...@yahoo.de wrote:
> So, my example is fake?
>
I think it has nothing to do with extend method:
sage: def f(n):
: print(len(l))
:
sage: l =
[]
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:
So, my example is fake?
Sébastien Labbé schrieb am Sonntag, 13. Juni 2021 um 08:42:47 UTC+2:
> On Thursday, June 10, 2021 at 6:47:37 PM UTC+2 axio...@yahoo.de wrote:
>
>> The question is, whether we can rely on behaviour of the reference
>> implementation of python which contradicts its document