Mar-30-2022, 12:44 PM
Queue.put
returns None
, but the method is still called, and the elements are put into the queue.map
can be used to make such funny things. The biggest disadvantage is that you can't do error handling for individual elements.The second disadvantage is, that the return value of map is not used. In this case, it's useless because there are only
None
s.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!