Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Merged _bool from axis into cbook._string_to_bool #6686
Conversation
mdboom
added the
needs_review
label
Jul 4, 2016
efiring
and 1 other
commented on an outdated diff
Jul 4, 2016
| @@ -784,14 +784,15 @@ def is_scalar_or_string(val): | ||
| return is_string_like(val) or not iterable(val) | ||
| -def _string_to_bool(s): | ||
| +def string_to_bool(s): | ||
| + """Parses the string argument as a boolean""" |
efiring
Owner
|
tacaswell
added this to the
2.1 (next point release)
milestone
Jul 5, 2016
|
This makes the kwargs a bit more permissive in what they accept (which seems ok). Why make the function public? |
|
Any reasons why it should not? I think that private functions should not be used outside of the module while this function is used in multiple external places. |
|
The convention we use is that we can use private functions across modules within the project. If it is public and we change it that is an API break, |
|
I see no problem with making it public as it is quite simple and should not be changed frequently (or even at all). If my position is wrong then I will remake it private. |
|
You'd be surprise what changes. More precisely, you'd be surprised how many On Tue, Jul 5, 2016 at 10:06 AM, Nikita Kniazev notifications@github.com
|
|
Hmm. I see your point and it is strong, but the whole |
|
We were young... we were foolish... On Tue, Jul 5, 2016 at 10:58 AM, Nikita Kniazev notifications@github.com
|
|
Also, I suspect the existence of |
|
Well, I think |
tacaswell
merged commit 94f2fb8
into matplotlib:master
Jul 7, 2016
tacaswell
removed the
needs_review
label
Jul 7, 2016
|
@Kojoley Thanks! |
Kojoley commentedJul 4, 2016
No description provided.