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.

classification
Title: PEP 8 uses wrong raise syntax
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: goodger Nosy List: bethard, goodger
Priority: normal Keywords:

Created on 2005-08-20 06:17 by bethard, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26093 - (view) Author: Steven Bethard (bethard) * (Python committer) Date: 2005-08-20 06:17
Despite the recommendation in "Programming
Recommendations" to use::

    raise ValueError('message')

instead of::

    raise ValueError, 'message'

the PEP itself uses the second form under the "Maximum
Line Length" section::

    raise ValueError, "sorry, you lose"
    ...
    raise ValueError, "I don't think so"
msg26094 - (view) Author: David Goodger (goodger) (Python committer) Date: 2005-08-20 13:51
Logged In: YES 
user_id=7733

fixed in revision 1.27

Thanks for the heads-up!
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42293
2005-08-20 06:17:09bethardcreate