osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accumulate , Range and Zeros


oh not a real bug, i thought the effect had to do with generator working
rather a simple times 0

Abdur-Rahmaan Janhangeer
Mauritius

On Sat, 13 Jul 2019, 16:24 Chris Angelico, <rosuav at gmail.com> wrote:

> On Sat, Jul 13, 2019 at 10:02 PM Abdur-Rahmaan Janhangeer
> <arj.python at gmail.com> wrote:
> >
> > @Thomas thought was a generator bug since instead of returning the usual
> > nums it was returning 0 0 0 ...
>
> When you find a bug or strange bit of behaviour, first make sure you
> can reproduce it. Then create a small, self-contained program, just
> enough to demonstrate what's going on. Post that code. Don't make us
> guess :)
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>