Comments (4)
That might be a better question for the python-dev mailing list.
from more-itertools.
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.
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.
❤️ 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)
- Document behavior of iter_index() for non-scalar search targets
- Minor improvement to totient()
- Consider adding column_vector()
- Add `only_unique` recipe HOT 1
- distinct_permutations with incomparable items HOT 19
- Proposal for join_if HOT 13
- Misleading argument in `difference` HOT 1
- is filter_map needed? HOT 2
- JoinMapping: A class to join mappings with equal keys into one mapping HOT 8
- Proposal for cycled_sliding_window HOT 2
- group_consecutive() HOT 4
- Proposal: Discrete Fourier Transform HOT 4
- Enhance repeat_each to allow different number of repeats for each element HOT 1
- Speed up `consume` and `ilen` with deque prepared once? HOT 4
- TypeError: type 'peekable' is not subscriptable HOT 3
- Improve stictly_n() HOT 2
- Issues with sample() HOT 1
- Extend set_partitions with max_size, min_size parameters HOT 1
- Minor improvement to run_length()
- Sync totient() recipe with the standard library docs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from more-itertools.