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.

classification
Title: Outdated int() docstring
Type: Stage: resolved
Components: Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, serhiy.storchaka, svelankar, vstinner
Priority: normal Keywords:

Created on 2017-03-07 13:44 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 565 merged python-dev, 2017-03-08 18:01
Messages (6)
msg289163 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-03-07 13:44
bpo-29695 removed "bad keyword parameters in int(), bool(), float(), list() and tuple()", but int docstring (at least) is now outdated:

haypo@selma$ ./python
Python 3.7.0a0 (master:8f6b344d368c15c3fe56c65c2f2776e7766fef55, Mar  7 >>> help(int)
class int(object)
 |  int(x=0) -> integer
 |  int(x, base=10) -> integer
 ...
>>> int(x=0)
TypeError: 'x' is an invalid keyword argument for this function
msg289246 - (view) Author: svelankar (svelankar) * Date: 2017-03-08 16:51
int docstring is the only one that needs to be changed. docstrings for float,tuple and list look fine to me.
msg289251 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-08 18:20
int() can be called without argument.
msg289252 - (view) Author: svelankar (svelankar) * Date: 2017-03-08 18:33
True, but the docstring says "return 0 if no arguments are given". So please let me know, if you want me to still change it i.e. add int() or keep it as it is. Thanks.
msg289255 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-08 20:17
After converting int.__new__() to Argument Clinic this issue will become outdated.
msg290258 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2017-03-24 22:40
New changeset 390a0969c1206a37c86961ebf7ef3050681ed8dd by Brett Cannon (svelankar) in branch 'master':
bpo-29749: Update int() docstring (GH-565)
https://github.com/python/cpython/commit/390a0969c1206a37c86961ebf7ef3050681ed8dd
History
Date User Action Args
2022-04-11 14:58:43adminsetgithub: 73935
2017-03-24 22:40:12brett.cannonsetmessages: + msg290258
2017-03-09 00:29:32brett.cannonsetstatus: open -> closed
resolution: fixed
stage: resolved
2017-03-08 20:17:47serhiy.storchakasetmessages: + msg289255
2017-03-08 19:03:48serhiy.storchakasetnosy: + brett.cannon
2017-03-08 18:33:31svelankarsetmessages: + msg289252
2017-03-08 18:20:26serhiy.storchakasetmessages: + msg289251
2017-03-08 18:01:21python-devsetpull_requests: + pull_request464
2017-03-08 16:51:10svelankarsetnosy: + svelankar
messages: + msg289246
2017-03-07 13:44:49vstinnercreate