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/msgpack') 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