List replication operator

Serhiy Storchaka storchaka at gmail.com
Fri May 25 05:25:34 EDT 2018


25.05.18 10:28, Peter Otten пише:
> 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.

+1




More information about the Python-list mailing list