[ python-Bugs-1213475 ] Queue.qsize() better info about unreliability

SourceForge.net noreply at sourceforge.net
Thu Jun 2 14:56:44 CEST 2005


Bugs item #1213475, was opened at 2005-06-02 15:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1213475&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nikos Kouremenos (nkour)
Assigned to: Nobody/Anonymous (nobody)
Summary: Queue.qsize() better info about unreliability

Initial Comment:
I know Queues are supposed to be used mostly in threads
apps.
since they are not banned to apps without threads, I
think that

     |  qsize(self)
     |      Return the approximate size of the queue
(not reliable!).

can be better.
You mean not reliable (or unreliable :D) because of
threads right?

if you mean *GENERALLY* because of when ti goes to next
instruction it might have change, then put this not
reliable thing in len() too ;)

I propose:
(urreliable if using threads)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1213475&group_id=5470


More information about the Python-bugs-list mailing list