[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-07 Thread Corey Farwell
New submission from Corey Farwell: Before someone comes in and tries to correct me, I know Python documentation is different than Javadocs. It is common to test if the JSON is malformed using a try...catch. What if I want to catch something more specific than Exception? The only way a user

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-07 Thread Corey Farwell
Corey Farwell added the comment: Ideally, this would also be decoumented in json.loads/json.load -- ___ Python tracker <http://bugs.python.org/issue18680> ___ ___

[issue26951] Unintuitive error when using generator expression in class property

2016-05-04 Thread Corey Farwell
New submission from Corey Farwell: ``` class A: B = range(10) C = frozenset([4, 5, 6]) D = list(i for i in B) E = list(i for i in B if i in C) ``` ``` coreyf@frewbook-pro /tmp [1]> python3 a.py Traceback (most recent call last): File "a.py", line 1, in cl