Document update.

This commit is contained in:
INADA Naoki 2013-10-21 01:47:54 +09:00
parent 1d0096b998
commit f31a4403a1
4 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,9 @@ doc-serve: all
doc:
cd docs && make zip
upload-doc:
python setup.py upload_docs --upload-dir docs/_build/html
cython:
cython --cplus msgpack/*.pyx

View file

@ -25,6 +25,8 @@ API reference
.. autoclass:: Unpacker
:members:
.. autoclass:: ExtType
exceptions
-----------

View file

@ -49,7 +49,7 @@ copyright = u'2013, INADA Naoki'
#
# The short X.Y version.
# The full version, including alpha/beta/rc tags.
version = release = '0.3'
version = release = '0.4'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View file

@ -6,6 +6,7 @@ from collections import namedtuple
class ExtType(namedtuple('ExtType', 'code data')):
"""ExtType represents ext type in msgpack."""
def __new__(cls, code, data):
if not isinstance(code, int):
raise TypeError("code must be int")