Skip to content

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

Merged
rhettinger merged 1 commit intopython:masterfrom
Windsooon:issue34049
Jul 5, 2018
Merged

bpo-34049: classify abs() argument type#8103
rhettinger merged 1 commit intopython:masterfrom
Windsooon:issue34049

Conversation

@Windsooon
Copy link
Copy Markdown
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