Update README.rst in python dir

This commit is contained in:
Tatsuhiro Tsujikawa 2013-12-20 01:35:59 +09:00
parent d49f520dff
commit efb25f723f
1 changed files with 6 additions and 3 deletions

View File

@ -6,9 +6,9 @@ header compressor and decompressor are implemented in extension using
cython. cython.
This is experimental and adds some dependencies which is a bit hard to This is experimental and adds some dependencies which is a bit hard to
check, so this extension module does not built with usual ``make check, so this extension module does not built with usual ``make`` in
install`` in the top directory. Instead, a user has to run ``make the top directory. Instead, a user has to run ``make build_ext`` in
build_ext`` in this directory. this directory.
The build extension module is called ``nghttp2``. The build extension module is called ``nghttp2``.
@ -37,3 +37,6 @@ decompressor::
data = deflater.deflate([(b'foo', b'bar'), data = deflater.deflate([(b'foo', b'bar'),
(b'baz', b'buz')]) (b'baz', b'buz')])
print(binascii.b2a_hex(data)) print(binascii.b2a_hex(data))
hdrs = inflater.inflate(data)
print(hdrs)