On Jan 14, 2008 4:54 PM, <[EMAIL PROTECTED]> wrote: > For the guy who said he wanted to maintain an average qsize (not too small, > not too big), empty() and full() don't help. He'll have to implement a > qsize() function or monkey patch (or subclass) the Queue class. I agree > with Guido that empty() and full() can go with no great consequence. > qsize() should stay though. In my old threading code (stuff I no longer > use) qsize() was the only one of the three I ever used.
Yes, qsize() is useful (and I think Charles' suggestion to change the name is a good one), yes empty() and full() should go. I was saying qsize()==0 should probably not be suggested as a replacement. -- Cheers, Leif _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
