Uh oh!
There was an error while loading. Please reload this page.
replace function type with function isinstance - #15209
Conversation
AmplabJenkins
commented
Sep 23, 2016
Can one of the admins verify this patch? |
HyukjinKwon
commented
Sep 23, 2016
I think we need a JIRA because BTW, it seems you intend to support sub-classes via If so, there are some instances similar with this. Maybe we should check those as well. |
| @@ -101,7 +101,7 @@ def _vector_size(v): | |||
| return len(v) | |||
| elif type(v) in (array.array, list, tuple, xrange): | |||
There was a problem hiding this comment.
If this change is legitimate, we should change this to isinstance(v, (array.array, list, tuple, xrange))
holdenk
commented
Oct 7, 2016
Thanks for looking to get involved @frankfqchen :) I think this PR definitely needs a JIRA and maybe some more description about what the intent of the change is rather than just the contents of the change. The Spark Contributing guide can help you out - https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark |
@frankfqchen Could you follow the comment above? If you are not able to proceed further, I think it might be better closed for now. Actually, IMHO, I am not too sure if it is worth sweeping them. |
## What changes were proposed in this pull request? This PR proposes to close stale PRs. What I mean by "stale" here includes that there are some review comments by reviewers but the author looks inactive without any answer to them more than a month. I left some comments roughly a week ago to ping and the author looks still inactive in these PR below These below includes some PR suggested to be closed and a PR against another branch which seems obviously inappropriate. Given the comments in the last three PRs below, they are probably worth being taken over by anyone who is interested in it. Closesapache#7963Closesapache#8374Closesapache#11192Closesapache#11374Closesapache#11692Closesapache#12243Closesapache#12583Closesapache#12620Closesapache#12675Closesapache#12697Closesapache#12800Closesapache#13715Closesapache#14266Closesapache#15053Closesapache#15159Closesapache#15209Closesapache#15264Closesapache#15267Closesapache#15871Closesapache#15861Closesapache#16319Closesapache#16324Closesapache#16890Closesapache#12398Closesapache#12933Closesapache#14517 ## How was this patch tested? N/A Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#16937 from HyukjinKwon/stale-prs-close.
What changes were proposed in this pull request?
replace function type with function isinstance
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)