On 23/09/2023 09.41, Stefan Ram wrote:
r...@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

--
https://mail.python.org/mailman/listinfo/python-list
  • Re: []=[] Greg Ewing via Python-list
    • Re: []=[] Rob Cliffe via Python-list
    • Re: []=[] Piergiorgio Sartor via Python-list

Reply via email to