Issue 2379: Raise a Py3K warning for __getitem__ or __getslice__ on exception instances
Created on 2008-03-18 03:15 by belopolsky, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue2379.diff | belopolsky, 2008-03-18 04:00 | |||
| Messages (4) | |||
|---|---|---|---|
| msg63864 - (view) | Author: Alexander Belopolsky (belopolsky) * ![]() |
Date: 2008-03-18 03:15 | |
As requested by Guido at msg63858. Will create a patch. |
|||
| msg63877 - (view) | Author: Alexander Belopolsky (belopolsky) * ![]() |
Date: 2008-03-18 04:00 | |
With the attached patch and -3 option: >>> Exception(1,2,3)[0] __main__:1: DeprecationWarning: In 3.x, __getitem__ is not supported for exception classes, use args attribute 1 >>> Exception(1,2,3)[:] __main__:1: DeprecationWarning: In 3.x, __getslice__ is not supported for exception classes, use args attribute (1, 2, 3) |
|||
| msg63880 - (view) | Author: Guido van Rossum (gvanrossum) * ![]() |
Date: 2008-03-18 04:04 | |
I'll review this soon. |
|||
| msg63885 - (view) | Author: Guido van Rossum (gvanrossum) * ![]() |
Date: 2008-03-18 04:43 | |
Cleaned up and committed as r61489. Thanks!! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:32 | admin | set | nosy:
+ barry github: 46632 |
| 2008-03-18 04:43:06 | gvanrossum | set | status: open -> closed resolution: accepted messages: + msg63885 |
| 2008-03-18 04:04:18 | gvanrossum | set | priority: release blocker assignee: gvanrossum messages: + msg63880 nosy: + gvanrossum |
| 2008-03-18 04:00:20 | belopolsky | set | files:
+ issue2379.diff keywords: + patch messages: + msg63877 |
| 2008-03-18 03:15:37 | belopolsky | create | |
