python library 'json' prints everything twice -


i decided make simple program started json in python 3.4.3

however, seemed write 2 lines before encountered weird; prints twice. program this:

import json  jsonfile = open('todo.json','r').read() print(jsonfile) 

this prints string twice. if remove 'import json' works fine. suggestions?

thanks in advance

okay, named py file json.py. did not think through


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -