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: Docs claim that coerce can return None
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: ddorfman, loewis
Priority: normal Keywords: patch

Created on 2004-08-24 06:24 by ddorfman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
coercenone.diff ddorfman, 2004-08-24 06:24 Diff against libfuncs.tex and bltnmodule.c
Messages (2)
msg46783 - (view) Author: Dima Dorfman (ddorfman) Date: 2004-08-24 06:24
The coerce builtin can't return None, but its docstring says
otherwise. As far back as I bothered to look (rev 2.98 of
bltnmodule.c in 1997), the implementation hasn't been able
to return None, so it's the docs that should be fixed.

Attached patch fixes the docstring and improves the library
reference to document what really happens if coercion fails.
msg46784 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-25 10:44
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as

libfuncs.tex 1.174
bltinmodule.c 2.318
libfuncs.tex 1.143.8.12
bltinmodule.c 2.292.10.6
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40816
2004-08-24 06:24:49ddorfmancreate