steeve/python-lz4 — pull request #5 by jseppanen (2012-06-20 07:19:34+00:00)
Title: Handling too large inputs gracefully

Currently, if the input is over 2 GB, lz4.compress may silently truncate the input, or if you get lucky, raise "SystemError: Negative size passed to PyString_FromStringAndSize". This pull request handles too large inputs and raises ValueError for too large inputs. Requires Python 2.5 or newer for Py_ssize_t support. Bumping version number to 0.4.1.