It’s OT, but I suppose it’s quite impossible to change map now. Maybe yet another itertools or more_itertools function?
Well, it’s somewhat elaborate but below works:
d=dict(enumerate(map(call, repeat(list, 3))))
However, the comprehension is much better understandable.
But that’s similar to @blhsing’s
Well, an itertools.map(list) is less verbose and, if I understood well what Stefan wrote in the thread, it will be faster.
BTW the main point is that IMHO it’s a waste of time to try to change the behavior of map. The ship is sailed too many years ago ![]()