Sujet : Re: []=[]
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 23. Sep 2023, 08:41:53
Autres entêtes
Organisation : Stefan Ram
Message-ID : <video-20230923083956@ram.dialup.fu-berlin.de>
References : 1
ram@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.")