3 ms·
By using "should" and "probably" it's acknowledging that there are exceptions. Though I don't think your example is an exception. I would refactor that part
by dec0dedab0de 5y ago
By using "should" and "probably" it's acknowledging that there are exceptions.
Though I don't think your example is an exception. I would refactor that part out to a seaprate function, and give it a docstring like "json in json, because the api is weird, [link to api docs]." Basically, weird things like that should be refactored into their own spot, instead of called out with a comment in the middle of something else.
- deleted 5y ago[deleted]