[]=[]
(Executes with no error.)
[]=[]
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.")
On 23/09/2023 09.41, Stefan Ram wrote:
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.")
If you try:
[] = [1]
and check the error, it will be clear how it works.
Maybe not why... :-)
On 23/09/23 4:51 am, Stefan Ram wrote:
[]=[]
(Executes with no error.)
#####
[]=[]
( 1 )
#\_/#
(Executes with no error.)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 163:21:47 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,510 |