alexmojaki / alexmojaki/futurecoder

Default warnings behaviour

Ouverte
#390 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
1.5k
Forks
183
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

friendly-traceback filters all warnings - see https://github.com/friendly-traceback/friendly-traceback/issues/175. In some ways this is a good thing, e.g:

```
>>> import warnings
>>> warnings.simplefilter("default")
>>> import pandas
:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
>>> []()
/my_program_5.py:1: SyntaxWarning: 'list' object is not callable; perhaps you missed a comma?
[]()
/my_program_5.py:1: SyntaxWarning: 'list' object is not callable; perhaps you missed a comma?
[]()
>>>
```

Ideally the behaviour should match the standard so that the `warnings` module works as expected and users can see potentially useful warnings, but at the same time this needs to be done in a way that avoids spurious noise and duplicates like the above.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.