commit | dd246171e483afa21f12e2a961a461e0d5119ea3 | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Sun Mar 17 21:52:35 2013 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Sun Mar 17 21:52:35 2013 -0400 |
tree | c572c72b8406b9c3c5719286e7b4ebb773a8f47d | |
parent | f3460414d56500b8ff551515ac7fed78b49e33c9 [diff] [blame] |
#16057: Clarify why the base method default is called in custom encoders. Original patch by Kushal Das.
diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py index e1ed21f..1d8b20c 100644 --- a/Lib/json/encoder.py +++ b/Lib/json/encoder.py
@@ -166,6 +166,7 @@ pass else: return list(iterable) + # Let the base class default method raise the TypeError return JSONEncoder.default(self, o) """