[New-bugs-announce] [issue14783] Update int() docstring from manual

Terry J. Reedy report at bugs.python.org
Fri May 11 17:50:13 CEST 2012

New submission from Terry J. Reedy <tjreedy at udel.edu>:

int.__doc__ starts "int(x[, base]) -> integer". That is not exactly correct as x is not required and base is only allowed if x is a string. The 3.3 manual fixes both problems with "int([number | string[, base]])"

I actually think the rest of the docstring might be replaced with the more accurate and informative manual entry. It might be condensed, but I am not sure what might be omitted.

keywords: easy
messages: 160416
nosy: terry.reedy
priority: low
severity: normal
status: open
title: Update int() docstring from manual
versions: Python 3.2, Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list