Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
CLN/BUG: remove bare excepts #14554
Comments
|
what exactly is a This evaluates correctly to an infinite recursion. |
jburroni
commented
Nov 2, 2016
|
This is the KeyError (there was a little bug in the code snippet).
|
|
and? |
jburroni
commented
Nov 2, 2016
|
That there is no key error. The exception should be "max recursion limit", On Tuesday, November 1, 2016, Jeff Reback notifications@github.com wrote:
" To be is to do " ( Socrates ) |
|
I am still not clear what exactly is the issue. you have a recursion issue. This pandas call returns a valid value. What do you think this should do? |
jburroni
commented
Nov 2, 2016
|
Part of the issue is in here: |
|
sure. bare excepts are not recommended |
jreback
added Difficulty Novice Error Reporting Effort Low
labels
Nov 2, 2016
jreback
added this to the
Next Major Release
milestone
Nov 2, 2016
jreback
changed the title from
_NDFrameIndexer should not use KeyError as default exception to CLN/BUG: remove bare excepts
Nov 2, 2016
This was referenced Nov 20, 2016
jreback
modified the milestone: 0.19.2, Next Major Release
Dec 19, 2016
jreback
closed this
in 3ccb501
Dec 19, 2016
jorisvandenbossche
added a commit
to jorisvandenbossche/pandas
that referenced
this issue
Dec 24, 2016
|
|
clham + jorisvandenbossche |
85bc6d7
|
ShaharBental
added a commit
to ShaharBental/pandas
that referenced
this issue
Dec 26, 2016
|
|
clham + ShaharBental |
5c5d04d
|
jburroni commentedNov 1, 2016
•
edited
Using KeyError may prevent the system to show system error, and thus make the error hard to find
Expected Output
Max recursion limit exception. Got key error
Output of
pd.show_versions()pandas: 0.18.1
nose: 1.3.7
pip: None
setuptools: None
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None