Antoine Pitrou added the comment:

> The bytes object cannot "leak" so, as you say, checking that refcount
> is pointless.  But the view might "leak", and since it does not own a
> reference to the base object we have a problem: we can't deallocate the 
> bytes object for fear of breaking the view.

Indeed, that's a problem (but your patch does deallocate the bytes object).
It's quite fishy, I'm not sure how to solve the issue cleanly. Stefan, do you 
have an idea?

----------
nosy: +skrah

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

Reply via email to