Éric Araujo <merwok at netwok.org> added the comment: Would storing len(self._buffer) in the instance be premature optimization? ---------- nosy: +eric.araujo _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue968063> _______________________________________