On 19.06.2021 17:03, Guido van Rossum wrote: > I think I would find flatten(a) more readable than [*chunk for chunk in a], > and > more discoverable: this operation is called "flatten" in other languages, so > users are going to search the docs or help for that.
+1 > But there could be endless debate about whether flatten( ("x", "y") ) should > return a list or a tuple... Have it return an iterator :-) flatten() would be in the same category of builtins as reversed() and enumerate(). I think we'll see more discussion about exactly how to flatten the structures, e.g. do you stop at strings or flatten them into lists of characters ? But I'm sure we'd reach a sensible default which makes most happy. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Experts (#1, Jun 19 2021) >>> Python Projects, Coaching and Support ... https://www.egenix.com/ >>> Python Product Development ... https://consulting.egenix.com/ ________________________________________________________________________ ::: We implement business ideas - efficiently in both time and costs ::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 https://www.egenix.com/company/contact/ https://www.malemburg.com/ _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/3TKI5PMVNMBXBXEOFIVZTX77MSAVJVYL/ Code of Conduct: http://python.org/psf/codeofconduct/