You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having sys.stderr.buffer.write(memoryview(b'test\n')) in a WSGI script, it fails with “TypeError: write() argument 1 must be read-only bytes-like object, not memoryview”.
On mod_wsgi, sys.stderr.buffer is a mod_wsgi.Log object. Its write() implementation accepts only read-only bytes-like objects, but it could be changed to accept all bytes-like objects. (On a related note, the method currently accepts unicode as well, which it probably shouldn’t.)
The text was updated successfully, but these errors were encountered:
When having
sys.stderr.buffer.write(memoryview(b'test\n'))
in a WSGI script, it fails with “TypeError: write() argument 1 must be read-only bytes-like object, not memoryview”.On mod_wsgi,
sys.stderr.buffer
is amod_wsgi.Log
object. Itswrite()
implementation accepts only read-only bytes-like objects, but it could be changed to accept all bytes-like objects. (On a related note, the method currently accepts unicode as well, which it probably shouldn’t.)The text was updated successfully, but these errors were encountered: