Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "coerce" of fast_real apply to both string and numeric input #5

Closed
SethMMorton opened this issue Apr 22, 2016 · 0 comments
Closed
Assignees

Comments

@SethMMorton
Copy link
Owner

Currently, if a string with an int-like float (i.e. '4.0') is given to fast_real, it will be returned as an int instead of a float. The user has the option to toggle this behavior for numeric input with the coerce option.

I will make the coerce option apply to both string and numeric input, and change the default to True; the default is currently False, but since it only applies to numbers currently and the option was only recently added I feel like making it True will be the least invasive for backwards-compatibility purposes.

@SethMMorton SethMMorton self-assigned this Apr 22, 2016
@SethMMorton SethMMorton added this to the First "major" release milestone Apr 22, 2016
SethMMorton added a commit that referenced this issue Apr 23, 2016
The fast_real option coerce now applies to string input as well, so
that users can control behavior better. The default is True which is
opposite of the previous behavior.  This should not be too much of a
hit to backwards compatibility.

This closes issue #5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant