[issue45327] json loads is stuck infinitely when the file name is Boolean

2021-09-29 Thread Vinayak Hosamani
New submission from Vinayak Hosamani : Below snippet works fine on Python2 >>> import json >>> tc_report_file = False >>> tc_data = json.load(open(tc_report_file)) Traceback (most recent call last): File "", line 1, in TypeError: coercing to Unico

[issue45327] Reading from a file is stuck infinitely when the file name is Boolean

2021-09-30 Thread Vinayak Hosamani
Vinayak Hosamani added the comment: Thanks for the clarification Eric. -- ___ Python tracker <https://bugs.python.org/issue45327> ___ ___ Python-bugs-list mailin