diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-03-17 21:52:35 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-03-17 21:52:35 -0400 |
commit | 588722800dfb8893229bd4f78eb64fab59da3db0 (patch) | |
tree | 4ce6ad3f1de14bb14fa18256aabcf0cdbcfb2675 /Lib/json/encoder.py | |
parent | a03ae6226e56e16ca1630174d89ef295a25686c3 (diff) | |
download | cpython-588722800dfb8893229bd4f78eb64fab59da3db0.tar.gz |
#16057: Clarify why the base method default is called in custom encoders.
Original patch by Kushal Das.
Diffstat (limited to 'Lib/json/encoder.py')
-rw-r--r-- | Lib/json/encoder.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py index e1ed21f6e7..1d8b20c095 100644 --- a/Lib/json/encoder.py +++ b/Lib/json/encoder.py @@ -166,6 +166,7 @@ class JSONEncoder(object): pass else: return list(iterable) + # Let the base class default method raise the TypeError return JSONEncoder.default(self, o) """ |