Andrew Montalenti
Andrew Montalenti
Some interesting thoughts on exceptions in Python from the Launchpad team here: https://dev.launchpad.net/ExceptionGuidelines
@chepner Thank you for this comment -- I didn't know about this stdlib change in Python 3 re: `OSError`, it's a very good indication that specialized exception types serve a...
@daodennis This is a great suggestion -- thanks for participating here! I would be glad to look over an example. I sometimes struggle myself with whether multiple `return` statements aid,...
Someone recently shared "The Hitchiker's Guide to Python" with me, and it includes a section on this topic in its style guide: http://docs.python-guide.org/en/latest/writing/style/#returning-values
@dhirschfeld You are probably right that there are multiple schools of thought on this issue. Thanks for the pointer to the IPython dev docs. I'll think through this a bit...
@stxlvt That is quite the set of arguments you've linked to. I see some validity in his points -- but, I'm not sure I found them entirely convincing. I'll think...
@stxlvt @cfperez I'm with you. This style guide is certainly not just a collection of popular techniques. It is seeking to distill down The Right Thing. In the case of...
@jiffyclub This is an interesting point, thank you for opening this PR. It's a good opportunity for me to explore the alternatives, which I didn't really know much about before...
@nedbat So that's a vote for Google style, right?
@nedbat It's a fair point. As I mentioned, I didn't even know about Google's docstring style and its Sphinx support until this issue was opened. Looking forward to evaluating and...