[Python-Dev] Forgotten Py3.0 change to remove Queue.empty() and Queue.full()

jnoller at gmail.com jnoller at gmail.com
Thu Mar 5 02:41:30 CET 2009


Yup, I'd need to remove support in multiprocessing too.

On Mar 4, 2009 8:39pm, Tennessee Leeuwenburg <tleeuwenburg at gmail.com> wrote:
> Hi all, just FYI... sorry for any list pollution

> I went ahead and tried adding a warning to my local checkout. The test  
> suite raised a DeprecationWarning -- it appears those methods are  
> currently in use by other Lib code:



> test_multibytecodec_support
> test_multiprocessing
> /home/tjl/python3/lib/python3.1/queue.py:98: DeprecationWarning:  
> Queue.empty() is deprecated, and won't be in 3.2.
> DeprecationWarning)
> /home/tjl/python3/lib/python3.1/queue.py:109: DeprecationWarning:  
> Queue.full() is deprecated, and won't be in 3.2.

> DeprecationWarning)
> /home/tjl/python3/lib/python3.1/queue.py:98: DeprecationWarning:  
> Queue.empty() is deprecated, and won't be in 3.2.
> DeprecationWarning)
> /home/tjl/python3/lib/python3.1/queue.py:109: DeprecationWarning:  
> Queue.full() is deprecated, and won't be in 3.2.

> DeprecationWarning)
> test_mutants
> test_netrc
> test_nis

> Regards,
> -T

> On Thu, Mar 5, 2009 at 12:30 PM, Raymond Hettinger python at rcn.com> wrote:



> Just noticed that the empty() and full() methods were still there.

> IIRC, we agreed to take them out (but leaving qsize() exposed).

> The docs entries and test cases were taken out, but the actual

> methods were accidentally left in.





> If so, the only thing to do is deprecate it in 3.1 for removal in 3.2.





> I recommend adding a warning to 3.0.2 and removing in 3.1.

> Waiting for more 3.x uptake doesn't serve our users well.

> IIRC, that was the rationale for cmp() removal in 3.0.1.

> Even in 2.x, these methods were documented as being unreliable and were  
> removed from the 3.0 docs entirely.

> We discussed removing them and most of the work was done.



> Guido, any thoughts?





> Raymond


> _______________________________________________

> Python-Dev mailing list

> Python-Dev at python.org

> http://mail.python.org/mailman/listinfo/python-dev

> Unsubscribe:  
> http://mail.python.org/mailman/options/python-dev/tleeuwenburg%40gmail.com






> --
> --------------------------------------------------
> Tennessee Leeuwenburg
> http://myownhat.blogspot.com/
> "Don't believe everything you think"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090305/1a65c9db/attachment.htm>


More information about the Python-Dev mailing list