From 59603b902adf2abe0d274f41520569fde387a841 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Tue, 15 Jun 2010 17:51:24 +0900 Subject: Python: add "load(s)/dump(s)" alias for compatibility to simplejson/marshal/pickle. --- python/msgpack/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'python') 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 + -- cgit v1.2.1 From f222f5ed9b49e9b9f4d31693969c4260ad97cef0 Mon Sep 17 00:00:00 2001 From: Naoki INADA Date: Tue, 15 Jun 2010 18:06:58 +0900 Subject: Python: 0.1.4 --- python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/setup.py b/python/setup.py index 8d8a6f4..64e71ed 100755 --- a/python/setup.py +++ b/python/setup.py @@ -14,7 +14,7 @@ except ImportError: from distutils.command.build_ext import build_ext have_cython = False -version = '0.1.3' +version = '0.1.4' # take care of extension modules. if have_cython: -- cgit v1.2.1