[Error-Handling]: instructions are unclear, and wrong programs pass the tests
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- Python
- Étoiles
- 2.5k
- Forks
- 1.5k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de exercism/python
-
[THIS IS SPAM] python Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 1/100
-
exercism/python#4237 · 8 commentaires · 1 personne assignée ·
-
x:rep/massive
exercism/python#4197 · 24 commentaires · 2 personnes assignées ·
-
exercism/python#3928 · 1 commentaire · 1 personne assignée ·
-
[Decimals and Fractions]: Refine Concepts and Consider Adapting the Related Exercise from Julia Ouverte
exercism/python#3927 · 3 commentaires · 2 personnes assignées ·
Toutes les issues de exercism/python
Issues similaires
-
documentation help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
simonw/sqlite-utils#872 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100