[issue18341] enhancements zlib.compress/decompress to accept Py_buffer

2013-07-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This is not a bugfix, but a new feature, and 2.7 is closed for new features. Sorry. If you think the closing of this bug report is a mistake, reopen with your argument. -- nosy: +jcea resolution: -> rejected stage: -> committed/rejected status: ope

[issue18341] enhancements zlib.compress/decompress to accept Py_buffer

2013-07-01 Thread Jim Carroll
New submission from Jim Carroll: We were looking to squeak maximum performance out of zlib.compress. We noticed in py3k, zlib.compress already accepts Py_buffer’s, but in 2.x, compress required strings. We’ve modified the compress (and decompress for orthogonal completeness), see the attach