[Python-ideas] one line class definitions

nbv4 nbvfour at gmail.com
Thu May 3 22:57:33 CEST 2012


Instead of

class CustomException(Exception):
    pass

how about just

class CustomException(Exception)

(no colon, no 'pass')
I'm sure this has been suggested before, but I couldn't find any...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120503/2bddd08b/attachment.html>


More information about the Python-ideas mailing list