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.
| Author | a3nm |
|---|---|
| Recipients | a3nm |
| Date | 2015年03月01日.12:14:31 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1425212072.31.0.66074782686.issue23556@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Hello, Python 2.7.8 and Python 3.4.2 (from Debian testing) have a different behavior on the attached file. Python 2 raises "bar", Python 3 raises "foo". I can't find an adequate explanation in the documentation for this behavior difference. It probably relates to https://docs.python.org/3/reference/compound_stmts.html#try (search for "When an exception has been assigned") but this is unsatisfying because it only talks about the "as target" construction, which is not used in the example. I think that at least the documentation should be clarified to point out what "raise" without arguments will do. Currently the documentation of this in Python 2 and 3 is the same even though the behavior is different https://docs.python.org/2/reference/simple_stmts.html#raise https://docs.python.org/3/reference/simple_stmts.html#raise. Note: this question was originally asked on SO: http://stackoverflow.com/q/28698622/414272. I reported this as a bug at Terry Jan Reedy's request https://stackoverflow.com/q/28698622/414272#comment45707744_28698622. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015年03月01日 12:14:32 | a3nm | set | recipients: + a3nm |
| 2015年03月01日 12:14:32 | a3nm | set | messageid: <1425212072.31.0.66074782686.issue23556@psf.upfronthosting.co.za> |
| 2015年03月01日 12:14:32 | a3nm | link | issue23556 messages |
| 2015年03月01日 12:14:31 | a3nm | create | |