S.Lott -- Software Architect
  • Other Articles
  • Publications
  • S.Lott Biography

Generators as Stacks of Operations

Date Tue 15 November 2022 Tags #python / functional python programming / generator functions

See https://towardsdatascience.com/building-generator-pipelines-in-python-8931535792ff

I'm delighted by this article.

I was shown only the first, horrible, example. I think the idea was to push back on the idea of complex generators. I fumed.

Then I read the entire article.

Now I'm fuming at someone who posted the first example …

more ...

On Generator Functions, Yield and Return

Date Fri 26 August 2016 Tags #python / functional python programming / generator functions

Here's the question, lightly edited to remove the garbage. (Sometimes I'm charitable and call it "rambling". Today, I'm not feeling charitable about the garbage writing style filled with strange assumptions instead of questions.)

someone asked if you could have both a yield and a return in the same ... function/iterator …

more ...

  • Social

    • Mastodon
    • Github
    • StackOverflow
    • LinkedIn
    • O'Reilly
    • Amazon
  • Categories

    • Architecture & Design
    • Books
    • FOSS
    • Management
    • News
    • Python
    • Technologies
  • Links

    • Pelican
    • Python.org
    • Jinja2
  • Archive

    • November 2022 (1)
    • August 2016 (1)

© 2022 S.Lott · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top