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

Optimizing complex generator expressions [Updated]

Date Thu 20 October 2016 Tags generator expressions / functional python programming / #python

See this: https://twitter.com/jakevdp/status/786920174595158018

The core expression is similar to this

y = (f(x) for x in L if f(x) is not None)

There are a lot of variations on the filter. The point is that the function appears twice in the above expression.

We …

more ...

  • Social

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

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

    • Pelican
    • Python.org
    • Jinja2
  • Archive

    • October 2016 (1)

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

Back to top