mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-15 15:16:51 +02:00
Python: add "load(s)/dump(s)" alias for compatibility to simplejson/marshal/pickle.
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user