On Fri, Apr 23, 2021 at 10:30 AM Travis Griggs <travisgri...@gmail.com>
wrote:

> > On Apr 23, 2021, at 05:55, Frank Millman <fr...@chagford.com> wrote:
> >
> > On 2021-04-23 7:34 AM, Travis Griggs wrote:
> >> Doing an "industry experience" talk to an incoming class at nearby
> university tomorrow. Have a couple points where I might do some "fun
> things" with python. Said students have been learning some python3.
> >> I'm soliciting any *fun* generators people may have seen or written?
> Not so much the cool or clever ones. Or the mathematical ones (e.g. fib).
> Something more inane and "fun". But still showcasing generators uniqueness.
> Short and simple is good.
> >> Thanks in advance!
> >
> > Have you looked at this?
> >
> > http://www.dabeaz.com/generators/
> >
> > Frank Millman
> >
> > --
> > https://mail.python.org/mailman/listinfo/python-list
>
>
> I hadn't. But now I have. These are really cool. But not as
> whimsical/simple as I would have hoped. They're actually useful :)
>

Perhaps not the best example, but a bit whimsical - there's a "Daffy Duck"
bidirectional generator in this presentation:
https://stromberg.dnsalias.org/~dstromberg/Intro-to-Python/Python%20Generators,%20Iterators%20and%20Comprehensions.pdf

Full Disclosure: I created the presentation.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to