Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add missing 3.3+ and 3.5+ math functions #164

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

Merged
merged 2 commits into from
Apr 26, 2016

Conversation

Michael0x2a
Copy link
Contributor

This commit adds some missing functions and constants from the math module -- notably gcd, isclose, log2, inf, and nan.

Python 3.3 added the `math.log2` function; Python 3.5 added
`math.gcd`, `math.inf`, `math.isclose`, and `math.nan`.
@gvanrossum gvanrossum merged commit ce59cd4 into python:master Apr 26, 2016
@gvanrossum
Copy link
Member

Thanks! If would be even cooler if you could add sys.version_info() checking to mypy. Currently it's unimplemented. (The tests still pass because mypy just assumes the condition is true. :-) See python/mypy#698

@Michael0x2a
Copy link
Contributor Author

Sounds good -- I'll take a shot at it!

@gvanrossum
Copy link
Member

gvanrossum commented Apr 26, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants