Yupee.. Thanks for the knowledge sharing.

Regards
Prahallad

On Sat, 16 Feb 2019, 12:18 dieter <die...@handshake.de wrote:

> Prahallad Achar <achar...@gmail.com> writes:
>
> > I get list object instead gen  obj
>
> If you have a list "l" and want a generator, you can use
>    ( x for x in l)
> or simpler "iter(l)" - which gives you an interator over "l".
>
> An "iterator" is slightly more general than a generator
> (every generator is also an iterator).
>
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to