List replication operator

Peter Otten __peter__ at web.de
Fri May 25 03:28:01 EDT 2018


Steven D'Aprano wrote:

> But what do people think about proposing a new list replication with copy
> operator?
> 
>     [[]]**5
> 
> would return a new list consisting of five shallow copies of the inner
> list.

Yet another arcanum to learn for beginners with little return.
If you cannot refrain from tinkering with the language at least concentrate 
on the features with broad application.
Thank you.




More information about the Python-list mailing list