Repository navigation
MAINT: Remove unused compat functions - #5181
jbrockmendel wants to merge 6 commits into
Conversation
b1956b8 to
7521b03
Compare
Codecov Report
@@ Coverage Diff @@
## master #5181 +/- ##
==========================================
+ Coverage 81.41% 81.42% +<.01%
==========================================
Files 581 581
Lines 90278 90278
Branches 10101 10103 +2
==========================================
+ Hits 73504 73513 +9
+ Misses 14485 14479 -6
+ Partials 2289 2286 -3
Continue to review full report at Codecov.
|
|
@josef-pkt green and no merge conflict |
|
looks too much, and too many details that I don't like in quick skimming. e.g. bytes versus string needs a more careful review and needs some modernizing. |
Happy to break into smaller pieces. Will wait for appveyor queue to die down.
I'll need to double-check, but I think a bunch of this is because of recarrays.
Has this been decided upon? numpy and pandas have made their drop dates explicit. statsmodels tends to be slower in bumping version requirements. |
It's not clear how we want to refactor this. eg. currently we use np.recfromtxt which required bytes when we wrote the test. AFAIK, but I didn't check, numpy got more string support. ("I guess", "I think", .... because I haven't looked at bytes versus strings in years) |
| @@ -1 +1,24 @@ | |||
| from .python import * | |||
There was a problem hiding this comment.
I find this replacement too painful to maintain, i.e. we have to change the same function name 3 times when there are changes.
There was a problem hiding this comment.
The __all__ bit I get, but the * import is a pattern worth avoiding.
There was a problem hiding this comment.
but the * import is a pattern worth avoiding.
not in __init__ or api.py when it's not important.
(In exclipse, I get some false red for imports from other packages, e.g. scipy or pytest, that doesn't recognize that a function is available there. I don't know whether that's related to * imports.)
There was a problem hiding this comment.
not in init or api.py when it's not important.
Its easy and it helps avoid mistakes. e.g. are you sure the compat namespace is the same in py2/py3?
Of course it's not a big deal. All of these things are individually not-big-deals. In aggregate they make for more readable, more maintainable code.
Fully lint formula/ and compat/