A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-April/088721.html below:

[Python-Dev] Dropping bytes "support" in json

[Python-Dev] Dropping bytes "support" in json [Python-Dev] Dropping bytes "support" in jsonGreg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 14 02:00:19 CEST 2009
Alexandre Vassalotti wrote:

>>print("Content-Type: application/json; charset=utf-8")
>>input_object = json.loads(sys.stdin.read())
>>output_object = do_some_work(input_object)
>>print(json.dumps(output_object))
>>print()

That assumes the encoding being used by stdout has
ascii as a subset.

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4