diff options
| author | INADA Naoki <inada-n@klab.jp> | 2010-06-15 17:51:24 +0900 |
|---|---|---|
| committer | INADA Naoki <inada-n@klab.jp> | 2010-06-15 17:51:24 +0900 |
| commit | 59603b902adf2abe0d274f41520569fde387a841 (patch) | |
| tree | 5d2cc62036631bde0596ab83c4dda82c3baabe4d /python/msgpack | |
| parent | 82a5dd6cf9a49f6ffa444d5fc0ba5d4e3f10eb3e (diff) | |
| download | msgpack-python-59603b902adf2abe0d274f41520569fde387a841.tar.gz | |
Python: add "load(s)/dump(s)" alias for compatibility to simplejson/marshal/pickle.
Diffstat (limited to 'python/msgpack')
| -rw-r--r-- | python/msgpack/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/msgpack/__init__.py b/python/msgpack/__init__.py index 797b29c..26bd2dd 100644 --- a/python/msgpack/__init__.py +++ b/python/msgpack/__init__.py @@ -1,3 +1,10 @@ # coding: utf-8 from _msgpack import * +# alias for compatibility to simplejson/marshal/pickle. +load = unpack +loads = unpackb + +dump = pack +dumps = packb + |
