[]=[]
(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: | 446 |
Nodes: | 16 (2 / 14) |
Uptime: | 19:20:39 |
Calls: | 9,234 |
Calls today: | 1 |
Files: | 13,494 |
Messages: | 6,063,226 |