[ python-Bugs-1264666 ] PEP 8 uses wrong raise syntax

SourceForge.net noreply at sourceforge.net
Sat Aug 20 15:51:57 CEST 2005


Bugs item #1264666, was opened at 2005-08-20 02:17
Message generated for change (Comment added) made by goodger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1264666&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Steven Bethard (bediviere)
>Assigned to: David Goodger (goodger)
Summary: PEP 8 uses wrong raise syntax

Initial Comment:
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"


----------------------------------------------------------------------

>Comment By: David Goodger (goodger)
Date: 2005-08-20 09:51

Message:
Logged In: YES 
user_id=7733

fixed in revision 1.27

Thanks for the heads-up!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1264666&group_id=5470


More information about the Python-bugs-list mailing list