alexmojaki / alexmojaki/futurecoder

Default warnings behaviour

未关闭
#390 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1.5k
派生
183
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。