Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:

Will think about it for a bit.  My initial inclination is against
because there have been no other such requests to instrument all the
fundamental data types, because it's not hard to add instrumentation
using your own pure python additions around size-mutating calls, because
it clutters the API, and because it's unclear whether a maximum-size
statistic has much utility.

For deques, should the clear() method zero-out the high-water mark?  How
about the equivalent code where the contents are all popped-off (down to
zero size) before the structure is re-used?

----------
assignee:  -> rhettinger
title: Queue class should include high-water mark -> deque class should include 
high-water mark

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4680>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to