Python Forum
list, map and put of the Queue in the Tree Data Structure
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list, map and put of the Queue in the Tree Data Structure
#6
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 Nones.
longmen likes this post
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: list, map and put of the Queue in the Tree Data Structure - by DeaD_EyE - Mar-30-2022, 12:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A data structure akulamartin 5 5,413 Nov-11-2016, 07:22 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020