Index: queue.py =================================================================== --- queue.py (revision 70160) +++ queue.py (working copy) @@ -3,6 +3,7 @@ from time import time as _time from collections import deque import heapq +import warnings __all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue'] @@ -92,6 +93,10 @@ def empty(self): """Return True if the queue is empty, False otherwise (not reliable!).""" + + warnings.warn("Queue.empty() is deprecated, and won't be in 3.2. ", + DeprecationWarning) + self.mutex.acquire() n = not self._qsize() self.mutex.release() @@ -99,6 +104,10 @@ def full(self): """Return True if the queue is full, False otherwise (not reliable!).""" + + warnings.warn("Queue.full() is deprecated, and won't be in 3.2. ", + DeprecationWarning) + self.mutex.acquire() n = 0 < self.maxsize == self._qsize() self.mutex.release()