Giter Club home page Giter Club logo

Comments (4)

mattbasta avatar mattbasta commented on August 15, 2024

That might be a better question for the python-dev mailing list.

from more-itertools.

erikrose avatar erikrose commented on August 15, 2024

If you take a look at the source of flatten(), you'll see that chain() and chain.from_iterable() are the equivalents of flatten()—not too long, but not usually the names people look under, as the popularity of the Stack Overflow threads testify.

That said, I wouldn't mind at all if somebody wanted to write up a PEP to bring certain of these routines into the stdlib. I might even do it myself, but I can't promise a timeline right now.

This is the kind of bug report that brightens my morning. :-)

from more-itertools.

jaraco avatar jaraco commented on August 15, 2024

I would be surprised if this package is accepted as a stdlib module. Even a proposal to integrate just the recipes into the stdlib was rejected on the premise that most people don't need it, and the recipes are easy enough to copy/paste into existing code. I disagree with that sentiment, but I think it speaks to this issue.

Additionally, one detriment of a project becoming part of the stdlib is that it must not break backward compatibility (except in extreme cases) or add new features more frequently than every 18 month release cycle.

If this project were under my maintenance, I'd close this ticket pending a PEP under serious consideration. This request is not a bug of more_itertools, though it could be considered a "bug" under Python itself. Asking the maintainer to take on this effort is likely to become a huge distraction with little benefit.

I hate to be a wet blanket, but I'm seeking to share some of my experience in Python development to help the community best focus its few resources.

from more-itertools.

bbayles avatar bbayles commented on August 15, 2024

❤️ more-itertools, but I'm with @jaraco on this one. Closing, but at least we're one pip install away from the default installation.

from more-itertools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.