New GitHub issue #99715 from ShivKJ:<br>
<hr>
<pre>
# Feature or enhancement
```python
from itertools import chain
data = [[1, 2],[3, 4]]
print(list(chain.from_iterable(data))) # prints [1, 2, 3, 4]
```
It will be good to have an alias `flatten` in module `itertools` for `chain.from_iterable` as it is more readable. Term `flatten` also fits well.
So equivalent code with `flatten` will be,
```python
from itertools import flatten
data = [[1, 2],[3, 4]]
print(list(flatten(data))) # prints [1, 2, 3, 4]
```
# Pitch
The alias `flatten` is more intuitive term than `chain.from_itertools`
# How to do this
By adding, `flatten = chain.from_iterable` in `itertools` module.
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/99715">View on GitHub</a>
<p>Labels: type-feature</p>
<p>Assignee: </p>