[]=[]

Rob Cliffe rob.cliffe at btinternet.com
Sun Sep 24 18:42:18 EDT 2023


It's not a bug, it's an empty unpacking.
Just as you can write
     [A,B] = [1,2] # Sets A to 1, B to 2
Best wishes
Rob Cliffe

On 23/09/2023 04:41, Greg Ewing via Python-list wrote:
> On 23/09/23 4:51 am, Stefan Ram wrote:
>> []=[]
>>
>>    (Executes with no error.)
>
> #####
> []=[]
> ( 1 )
> #\_/#
>
> (Executes with no error.)
>



More information about the Python-list mailing list