Author serhiy.storchaka
Recipients bob.ippolito, ezio.melotti, pitrou, rhettinger, serhiy.storchaka
Date 2012-10-14.09:56:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
JSON encoding crash if the source list resized in process of encoding. This can be happen unintentionally in multithreaded code.

Simple crash code:

import json
a = [object()] * 10
def crasher(obj):
    del a[-1]

json.dumps(a, default=crasher)
Date User Action Args
2012-10-14 09:56:18serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, bob.ippolito, pitrou, ezio.melotti
2012-10-14 09:56:18serhiy.storchakasetmessageid: <>
2012-10-14 09:56:18serhiy.storchakalinkissue16228 messages
2012-10-14 09:56:18serhiy.storchakacreate