[Error-Handling]: instructions are unclear, and wrong programs pass the tests
Open
Assessment
This issue has not been assessed yet.
Description
bug 🐛
smolder🍲
I just did the error-handling exercise, and had several issues:
- It was unclear at first what to do with inputs. Looking at the tests, it seemed that trying to convert the input to
intwas the right thing to try, but this is not mentioned in the readme or the stubs. - The test for whether a method throws an exception will pass any error that might occur, not just if it's intentionally raised:
def handle_error_by_throwing_exception():
raise "(╯°□°)╯︵ ┻━┻" # Raising a string is a TypeError, but passes the test
- When returning a tuple, which element should be the result and which one the status? What should the result element be when it fails? No suggestion
- No mention of advantages or disadvantages of the different kinds of error handling, or what is idiomatic Python.
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from exercism/python
-
Difficulty 1/5 Under an hour Newbie friendliness 1/100
-
x:rep/massive
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100