<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 5/3/2012 4:57 PM, nbv4 wrote:
<blockquote
cite="mid:22532650.695.1336078653821.JavaMail.geo-discussion-forums@yndu27"
type="cite">Instead of
<div><br>
</div>
<div>class CustomException(Exception):</div>
<div> pass</div>
<div><br>
</div>
<div>how about just</div>
<div><br>
</div>
<div>class CustomException(Exception)</div>
<div><br>
</div>
</blockquote>
How about just:<br>
<br>
class CustomException(Exception): pass<br>
<br>
or better yet, using more lines?<br>
<br>
--Ned.<br>
<br>
<blockquote
cite="mid:22532650.695.1336078653821.JavaMail.geo-discussion-forums@yndu27"
type="cite">
<div>(no colon, no 'pass')</div>
<div>I'm sure this has been suggested before, but I couldn't find
any...</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Python-ideas mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-ideas@python.org">Python-ideas@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/python-ideas">http://mail.python.org/mailman/listinfo/python-ideas</a>
</pre>
</blockquote>
</body>
</html>