Issue 13494: 'cast' any value to a Boolean? (original) (raw)
Issue13494
Created on 2011-11-28 14:01 by mark.dickinson, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (6) | ||
---|---|---|
msg148480 - (view) | Author: Mark Dickinson (mark.dickinson) * ![]() |
Date: 2011-11-28 14:01 |
Docs nit: at http://docs.python.org/dev/library/stdtypes.html#boolean-values we have """ The built-in function bool() can be used to cast any value to a Boolean ... """ It's a little unusual to talk about casting in Python. Any objections to replacing 'cast' with 'convert'? | ||
msg148481 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2011-11-28 14:02 |
+1 | ||
msg148489 - (view) | Author: Meador Inge (meador.inge) * ![]() |
Date: 2011-11-28 15:32 |
+1 | ||
msg148537 - (view) | Author: Eli Bendersky (eli.bendersky) * ![]() |
Date: 2011-11-29 02:43 |
'bool' is just one of many conversion functions that convert their argument to the type they designate. Does this doc problem only exist for 'bool' or also for 'int', 'float' and others? | ||
msg148767 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2011-12-02 17:49 |
New changeset 2f9c986b46cd by Ezio Melotti in branch '2.7': #13494: s/cast/convert/. Also add a link. http://hg.python.org/cpython/rev/2f9c986b46cd New changeset 69369fd3514b by Ezio Melotti in branch '3.2': #13494: s/cast/convert/. Also add a link. http://hg.python.org/cpython/rev/69369fd3514b New changeset 454b97887c5a by Ezio Melotti in branch 'default': #13494: merge with 3.2. http://hg.python.org/cpython/rev/454b97887c5a | ||
msg148768 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2011-12-02 17:50 |
Fixed! @Eli At least in the doc, I haven't seen any other suspicious use of 'cast'. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:24 | admin | set | github: 57703 |
2011-12-02 17:50:39 | ezio.melotti | set | status: open -> closedmessages: + assignee: docs@python -> ezio.melottiresolution: fixedstage: needs patch -> resolved |
2011-12-02 17:49:13 | python-dev | set | nosy: + python-devmessages: + |
2011-11-29 02:43:47 | eli.bendersky | set | nosy: + eli.benderskymessages: + |
2011-11-28 15:32:26 | meador.inge | set | nosy: + meador.ingemessages: + |
2011-11-28 14:02:16 | ezio.melotti | set | nosy: + ezio.melottimessages: + stage: needs patch |
2011-11-28 14:01:08 | mark.dickinson | create |