[]=[]
Piergiorgio Sartor
piergiorgio.sartor.this.should.not.be.used at nexgo.REMOVETHIS.de
Sat Sep 23 06:18:59 EDT 2023
On 23/09/2023 09.41, Stefan Ram wrote:
> ram at zedat.fu-berlin.de (Stefan Ram) writes:
>> []=[]
>
> I was watching a video of a David Beazley talk "Python
> Concurrency From the Ground Up" , where he wrote
>
> can_recv, can_send, [] = select(recv_wait, send_wait, [])
>
> . Later, he clarified that he actually wanted to write
>
> can_recv, can_send, _ = select(recv_wait, send_wait, [])
>
> and that he was surprised how the "[]" gave no error.
> ("I wonder why that works.")
If you try:
[] = [1]
and check the error, it will be clear how it works.
Maybe not why... :-)
bye,
--
piergiorgio
More information about the Python-list
mailing list