Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
how to implement a queue-like container with sort function
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Ned Batchelder, post: 5130150"] Yes, a Queue object has a queue attribute: deque([]) But you shouldn't use it. It's part of the implementation of Queue, not meant for you to use directly. In particular, if you use it directly, you are skipping all synchronization, which is the main reason to use a Queue in the first place. It should have been named "_queue". We'll add that to the list of PEP-8 violations in the Queue module! :) --Ned. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
how to implement a queue-like container with sort function
Top