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 terry.reedy
Recipients garden, georg.brandl, loewis, terry.reedy
Date 2008-04-25.22:20:37
SpamBayes Score 0.29882059
Marked as misclassified No
Message-id <1209162039.09.0.549505770041.issue2677@psf.upfronthosting.co.za>
In-reply-to
Content
I consider the difference between builtin and def'ed functions to be
something of an implementation wart -- one that I would like to see
someday removed if sensibly possible.  How is a beginner to know that
the parameter names used in the docs and help() responses are not really
parameter names?

In the meanwhile, I think something like the following in the doc would
help: "(Note: an implementation may provide builtin functions whose
positional parameters do not have names, even if they are 'named' for
the purpose of documentation, and which therefore cannot be supplied by
keyword.)"

Also in the meanwhile, the OP can def-wrap builtins
import builtins
def abs(number): return builtins.abs(number)
# but some like int require more care with its no-default option
History
Date User Action Args
2008-04-25 22:20:39terry.reedysetspambayes_score: 0.298821 -> 0.29882059
recipients: + terry.reedy, loewis, georg.brandl, garden
2008-04-25 22:20:39terry.reedysetspambayes_score: 0.298821 -> 0.298821
messageid: <1209162039.09.0.549505770041.issue2677@psf.upfronthosting.co.za>
2008-04-25 22:20:38terry.reedylinkissue2677 messages
2008-04-25 22:20:37terry.reedycreate