Martin Panter added the comment:

“u#” should not be deprecated without first deprecating “u”, which is less 
useful due to not returning a buffer length.

Also, I have always been mystified about how “s#”, “z#”, “y” and “y#” can 
properly to return a pointer into a buffer for arbitrary immutable bytes-like 
objects, without requiring PyBuffer_Release() to be called. Perhaps this is bad 
design to be discouraged. Or maybe a documentation oversight somewhere.

----------
nosy: +vadmium

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

Reply via email to