An IDE with support for PEP 484 / mypy / type annotations (and/or writing tests) can help minimize typing-related errors.
On Wednesday, November 27, 2019, Eric V. Smith firstname.lastname@example.org wrote:
On 11/27/2019 3:24 PM, Abdur-Rahmaan Janhangeer wrote:
Using 3.7, in json module of the std lib there is json.load and
json.loads . I gather json.loads is more used to convert string to dict structure. json.load might cause (it already causes) confusions.
Suggestion: Rename json.load() so as not to confuse with json.loads()
You'd either have to breaking existing code, or having 2 identical
functions with different names. In either case, the churn and confusion would not be worth it.
Python-ideas mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at
Code of Conduct: http://python.org/psf/codeofconduct/