March 2003
Intermediate to advanced
656 pages
39h 30m
English
put, put_nowait
q.put(item,block=True)
When block
is False, put adds
item to q if
q is not full, otherwise
put raises Full. When
block is True,
put adds item to
q, suspending the calling thread, if need
be, until q is not full.
q
.put_nowait(
item
)
is like
q
.put(
item
,False).