[Error-Handling]: instructions are unclear, and wrong programs pass the tests
Abierto
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 2.5k
- Forks
- 1.5k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de exercism/python
-
[THIS IS SPAM] python Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 1/100
-
x:rep/massive
Todos los issues de exercism/python
Issues similares
-
documentation help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
simonw/sqlite-utils#872 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100