March 2003
Intermediate to advanced
656 pages
39h 30m
English
get, get_nowait
q.get(block=True)When block is False,
get removes and returns an item from
q if one is available, otherwise
get raises Empty. When
block is True,
get removes and returns an item from
q, suspending the calling thread, if need
be, until an item is available.
q
.get_nowait( ) is like
q
.get(False).
get removes and returns items in the same order as
put inserted them (first in, first out).
Read now
Unlock full access