Tim and Grant >>> if q.empty(): return >>> Of course you explanation is understood and ideally should be included as a note in the Python documentation. And the "not reliable" should be removed from the documentation! Anyway, many thanks for your explanations (I feel "safer" now). Olaf