This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Stefan Pochmann
Recipients Stefan Pochmann, docs@python
Date 2017-02-16.17:32:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487266370.66.0.0116645570203.issue29580@psf.upfronthosting.co.za>
In-reply-to
Content
About https://docs.python.org/3/library/functions.html: The title "Built-in Functions", the table header "Built-in Functions" and the "functions" in the URL all suggest that what's on this page are functions. But many things on that page don't appear to be functions, like "range" or "dict". They appear to be callable types instead. For example "range":

    >>> type(range)
    <class 'type'>
    >>> import types
    >>> isinstance(range, types.FunctionType)
    False
    >>> isinstance(range, types.BuiltinFunctionType)
    False

Compare with "abs":

    >>> type(abs)
    <class 'builtin_function_or_method'>
    >>> isinstance(abs, types.FunctionType)
    False
    >>> isinstance(abs, types.BuiltinFunctionType)
    True

The text between title and table talks about "functions and types", but the title/tableheader/URL disagree.

Also, the table is wrong in saying that "abs()" etc are functions. Should say "abs" instead, i.e., remove the "()".

Many, like "abs", aren't even allowed to be called like that, as it results in "TypeError: abs() takes exactly one argument (0 given)".
History
Date User Action Args
2017-02-16 17:32:50Stefan Pochmannsetrecipients: + Stefan Pochmann, docs@python
2017-02-16 17:32:50Stefan Pochmannsetmessageid: <1487266370.66.0.0116645570203.issue29580@psf.upfronthosting.co.za>
2017-02-16 17:32:50Stefan Pochmannlinkissue29580 messages
2017-02-16 17:32:50Stefan Pochmanncreate