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.
Created on 2012年08月09日 15:24 by serhiy.storchaka, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| istrue_check-3.3.patch | serhiy.storchaka, 2012年08月09日 15:24 | Patch for 3.3 | review | |
| istrue_check-3.2.patch | serhiy.storchaka, 2012年08月09日 15:25 | Patch for 3.2 | review | |
| istrue_check-2.7.patch | serhiy.storchaka, 2012年08月09日 15:25 | Patch for 2.7 | review | |
| istrue_check-3.3_2.patch | serhiy.storchaka, 2012年08月14日 21:45 | review | ||
| istrue_check-3.2_2.patch | serhiy.storchaka, 2012年08月14日 21:45 | review | ||
| istrue_check-2.7_2.patch | serhiy.storchaka, 2012年08月14日 21:45 | review | ||
| istrue_check-3.3_3.patch | serhiy.storchaka, 2012年08月15日 20:55 | review | ||
| istrue_check-3.2_3.patch | serhiy.storchaka, 2012年08月15日 20:56 | review | ||
| istrue_check-2.7_3.patch | serhiy.storchaka, 2012年08月15日 20:56 | review | ||
| Messages (7) | |||
|---|---|---|---|
| msg167789 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2012年08月09日 15:24 | |
PyObject_IsTrue can fail, but not everywhere in a code a returned value checked. Here is a patches which add such checks. Note, patches for all three Python versions are rather different. |
|||
| msg167794 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2012年08月09日 17:04 | |
Is it possible to add test cases for (at least some of) these issues? |
|||
| msg167906 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2012年08月10日 18:37 | |
I shall try to do this, but it will take a lot of time. Besides, now in the code there are a lot of *correct* checked usage of PyObject_IsTrue without test cases. So I'm not sure that the tests are needed here, and that they are worth the effort. |
|||
| msg168243 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2012年08月14日 21:45 | |
Patches updated to reflect Antoine's comments. |
|||
| msg168337 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2012年08月15日 20:56 | |
Patches updated again. |
|||
| msg168339 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年08月15日 21:27 | |
New changeset ba1c48f8b571 by Antoine Pitrou in branch '2.7': Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly. http://hg.python.org/cpython/rev/ba1c48f8b571 New changeset 56dc7b09f390 by Antoine Pitrou in branch '3.2': Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly. http://hg.python.org/cpython/rev/56dc7b09f390 New changeset b878df1d23b1 by Antoine Pitrou in branch 'default': Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly. http://hg.python.org/cpython/rev/b878df1d23b1 |
|||
| msg168341 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2012年08月15日 21:45 | |
Thank you Antoine. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:34 | admin | set | github: 59809 |
| 2012年08月16日 01:07:16 | jcea | set | nosy:
+ jcea |
| 2012年08月15日 21:45:36 | serhiy.storchaka | set | status: open -> closed resolution: fixed messages: + msg168341 stage: patch review -> resolved |
| 2012年08月15日 21:27:24 | python-dev | set | nosy:
+ python-dev messages: + msg168339 |
| 2012年08月15日 20:56:02 | serhiy.storchaka | set | files:
+ istrue_check-3.3_3.patch, istrue_check-3.2_3.patch, istrue_check-2.7_3.patch messages: + msg168337 |
| 2012年08月14日 21:45:22 | serhiy.storchaka | set | files:
+ istrue_check-3.3_2.patch, istrue_check-3.2_2.patch, istrue_check-2.7_2.patch messages: + msg168243 |
| 2012年08月13日 12:56:58 | asvetlov | set | nosy:
+ asvetlov |
| 2012年08月10日 18:37:43 | serhiy.storchaka | set | messages: + msg167906 |
| 2012年08月09日 17:04:17 | pitrou | set | nosy:
+ pitrou messages: + msg167794 |
| 2012年08月09日 15:25:57 | serhiy.storchaka | set | files: + istrue_check-2.7.patch |
| 2012年08月09日 15:25:19 | serhiy.storchaka | set | files: + istrue_check-3.2.patch |
| 2012年08月09日 15:24:15 | serhiy.storchaka | create | |