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 2008年03月17日 18:29 by brett.cannon, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg63708 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2008年03月17日 18:29 | |
If one tries to use an exception bound to a variable in an 'except' clause it should raise a Py3K warning. |
|||
| msg66579 - (view) | Author: Bruno Gola (brunogola) | Date: 2008年05月10日 20:01 | |
see http://bugs.python.org/issue2380, I think that it's related. the only reason i see for nested tuples to be valid syntax in an except clause was: x = ValueError y = (TypeError, IndexError) ... except (x, y): ... and this will not be valid in py3k, as noticed here. |
|||
| msg91340 - (view) | Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) | Date: 2009年08月06日 00:39 | |
Brett, could you provide an example of "an exception bound to a variable"? |
|||
| msg91341 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2009年08月06日 00:50 | |
try:
raise Exception("I should not be seen")
except Exception, exc:
pass
print exc
|
|||
| msg104449 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2010年04月28日 18:25 | |
I am assuming that this is an unfixed bug that might still be fixed in 2.7 sometime and that it should not be closed yet, so I am just updating the version. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:31 | admin | set | github: 46598 |
| 2012年07月02日 19:24:20 | brett.cannon | set | resolution: out of date -> wont fix |
| 2012年07月02日 19:24:13 | brett.cannon | set | status: open -> closed resolution: out of date |
| 2010年04月28日 18:25:30 | terry.reedy | set | nosy:
+ terry.reedy messages: + msg104449 versions: + Python 2.7, - Python 2.6 |
| 2009年08月06日 00:50:05 | brett.cannon | set | messages: + msg91341 |
| 2009年08月06日 00:39:04 | alexandre.vassalotti | set | priority: critical -> normal nosy: + alexandre.vassalotti messages: + msg91340 stage: test needed |
| 2008年05月10日 20:01:44 | brunogola | set | nosy:
+ brunogola messages: + msg66579 |
| 2008年03月17日 20:12:14 | brett.cannon | set | priority: release blocker -> critical |
| 2008年03月17日 18:29:08 | brett.cannon | create | |