Skip to content

Commit ff4b914

Browse files
committed
rpc: document using an alternate JSON module
1 parent f9f5483 commit ff4b914

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

bitcoin/rpc.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@
1010
# propagated, or distributed except according to the terms contained in the
1111
# LICENSE file.
1212

13-
"""Bitcoin Core RPC support"""
13+
"""Bitcoin Core RPC support
14+
15+
By default this uses the standard library ``json`` module. By monkey patching,
16+
a different implementation can be used instead, at your own risk:
17+
18+
>>> import simplejson
19+
>>> import bitcoin.rpc
20+
>>> bitcoin.rpc.json = simplejson
21+
22+
(``simplejson`` is the externally maintained version of the same module and
23+
thus better optimized but perhaps less stable.)
24+
"""
1425

1526
from __future__ import absolute_import, division, print_function, unicode_literals
1627
import ssl

0 commit comments

Comments
 (0)