homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Michael.Kuss
Recipients Michael.Kuss, ezio.melotti, r.david.murray, vstinner
Date 2014年11月01日.00:50:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414803019.42.0.300527124369.issue22701@psf.upfronthosting.co.za>
In-reply-to
Content
Pardon the delay - this json dump function is embedded in a much larger script, so it took some untangling to get it running on Python 3.3, and scrub some personal identifying info from it. This script also does not work in Python 3.3:
 File "C:/Users/mkuss/PycharmProjects/TestJSON\dump_list_to_json_file.py", line 319, in dump_list_to_json_file
 json.dump(addresses, outfile, indent=4, separators=(',', ': '))
 File "C:\Python33\lib\json\__init__.py", line 184, in dump
 fp.write(chunk)
TypeError: 'str' does not support the buffer interface
In python 2.7, I still get escaped unicode when I try writing this dictionary using json.dump, so the work-around that I pasted originally is how I'm choosing to accomplish the task for now.
I'd you'd like, I can spend more time debugging this issue I'm running into running the script in python 3.3, but it maybe be til next week when I have sufficient time to solve. THANKS --mike
History
Date User Action Args
2014年11月01日 00:50:19Michael.Kusssetrecipients: + Michael.Kuss, vstinner, ezio.melotti, r.david.murray
2014年11月01日 00:50:19Michael.Kusssetmessageid: <1414803019.42.0.300527124369.issue22701@psf.upfronthosting.co.za>
2014年11月01日 00:50:19Michael.Kusslinkissue22701 messages
2014年11月01日 00:50:19Michael.Kusscreate

AltStyle によって変換されたページ (->オリジナル) /