Document update.
This commit is contained in:
3
Makefile
3
Makefile
@@ -9,6 +9,9 @@ doc-serve: all
|
|||||||
doc:
|
doc:
|
||||||
cd docs && make zip
|
cd docs && make zip
|
||||||
|
|
||||||
|
upload-doc:
|
||||||
|
python setup.py upload_docs --upload-dir docs/_build/html
|
||||||
|
|
||||||
cython:
|
cython:
|
||||||
cython --cplus msgpack/*.pyx
|
cython --cplus msgpack/*.pyx
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ API reference
|
|||||||
.. autoclass:: Unpacker
|
.. autoclass:: Unpacker
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. autoclass:: ExtType
|
||||||
|
|
||||||
exceptions
|
exceptions
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ copyright = u'2013, INADA Naoki'
|
|||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
# The full version, including alpha/beta/rc tags.
|
# 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
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ from collections import namedtuple
|
|||||||
|
|
||||||
|
|
||||||
class ExtType(namedtuple('ExtType', 'code data')):
|
class ExtType(namedtuple('ExtType', 'code data')):
|
||||||
|
"""ExtType represents ext type in msgpack."""
|
||||||
def __new__(cls, code, data):
|
def __new__(cls, code, data):
|
||||||
if not isinstance(code, int):
|
if not isinstance(code, int):
|
||||||
raise TypeError("code must be int")
|
raise TypeError("code must be int")
|
||||||
|
|||||||
Reference in New Issue
Block a user