[Python-ideas] Integrate some itertools into the Python syntax

Michel Desmoulin desmoulinmichel at gmail.com
Tue Mar 22 08:52:21 EDT 2016



Le 22/03/2016 06:49, Michael Selik a écrit :
> 
> 
>> On Mar 21, 2016, at 7:06 PM, Michel Desmoulin <desmoulinmichel at gmail.com> wrote:
>> if you need more, then you need itertools. Few people know about it, so I
>> usually see duplicate loops and conversion to lists/tuples.
> 
> Why do you think the new syntax you're suggesting will be more discoverable and therefore more well known than the itertools module?
> 

It's a gut feeling really, coming from the fact I train people in Python
for a living:


- most of my colleagues and myself always show the builtins way before
anything else. I rarely have the time to even show itertools.
- same goes for tutorials online. Itertools is rarerly demonstrated.
- a whole module is more impressive than a few behavior and my student
will usually delay reading about any doc related to one module. They
don't even know where to start or how to express what they are looking for
- it's something they will try (or discover by mistake): random playing
with operators and data is something I witness a lot. Random playing
with imports, not so much.

I may be wrong, I can't finance a study with a big representative sample
to prove it. But again, nobody can do so for anything on this list.


More information about the Python-ideas mailing list