jjgomera / iapws

python libray for IAPWS standard calculation of water and steam properties
GNU General Public License v3.0
170 stars 64 forks source link

single quotes & double quotes #41

Closed xiefeisd closed 5 years ago

xiefeisd commented 5 years ago

Hi, maybe you should write json with double quotes, not with single quotes. like this: {"name":1} Now like this: {'name':1}

jjgomera commented 5 years ago

What file are you talking about?

xiefeisd commented 5 years ago

All file, for example: >>> from iapws import IAPWS97 >>> steam=IAPWS97(P=50, T=400) >>> print(steam.kwargs) {'T': 400, 'P': 50, 'x': None, 'h': None, 's': None, 'v': 0.0, 'l': 0.5893}

and this is right: {"T": 400, "P": 50, "x“: None, ”h”: None, “s“: None, “v“: 0.0, “l”: 0.5893}

jjgomera commented 5 years ago

In python both form are correct, furthermore the example you're given is python formated, like:

>>> str(6)
'6'