redis/hiredis-py — pull request #22 by tzickel (2014-05-05 15:31:38+00:00)
Title: Changed the reader's feed function to accept any buffer, not just read-o...

...nly

ones.

- This patch allows to use in python 2.7 and 3.0+ an "bytearray" object as an input to the feed function. Doing so allows us to pre-allocate a buffer for using in socket.recv_into in the python code.
- Since python 2.5 does not support "s*" there is an #ifdef here.
- The version bump is for the ability to later add to redis-py a feature check on this, and to use "recv_into" instead of "recv" in the socket code.