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

bpo-34049: classify abs() argument type #8103

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

Windsooon
Copy link
Contributor

@Windsooon Windsooon commented Jul 5, 2018

Just like callable() method in https://docs.python.org/3/library/functions.html#callable

...instances are callable if their class has a call() method.

I think we should also mention this in abs(),

abs(x)
Return the absolute value of a number. The argument may be an integer or a floating point number. If the argument is a complex number, its magnitude is returned. If x defines abs, abs(x) returns x.abs().

https://bugs.python.org/issue34049

@rhettinger rhettinger self-assigned this Jul 5, 2018
@rhettinger rhettinger added docs Documentation in the Doc dir skip news labels Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants