[Python-checkins] r59969 - python/trunk/Doc/library/queue.rst
"Martin v. Löwis"
martin at v.loewis.de
Tue Jan 15 06:34:13 CET 2008
> Better (?) text describing the lack of guarantees provided by qsize(),
> empty() and full().
These are indeed better. Readers can now consider whether the guarantees
that are not given indeed may hold for their applications.
E.g. if you know that there is only one consumer thread, then if
.empty() returns False, you know that .get() *will* not block. These
issues all exist only when there are multiple consumers or multiple
producers.
Regards,
Martin
More information about the Python-checkins
mailing list