Re: [Python-Dev] PEP 8 updates/clarifications

2005-12-10 Thread Brett Cannon
On 12/10/05, Michael Hudson <[EMAIL PROTECTED]> wrote: > Barry Warsaw <[EMAIL PROTECTED]> writes: > > > Let's say something like "string-based exceptions are strongly > > discouraged, and in fact may be deprecated or disappear in a future > > Python version. Use class-based exceptions." > > If I h

Re: [Python-Dev] PEP 8 updates/clarifications

2005-12-10 Thread François Pinard
[Ian Bicking] >Barry Warsaw wrote: >Just like I wouldn't like someone using "self" outside of the first >argument of instance methods. A tiny nit. Within __new__(cls, ...), I find quite legible writing: self = BASECLASSE.__new__(cls, ...) and using it afterwards. -- François Pinard ht

Re: [Python-Dev] New-style exceptions patch

2005-12-10 Thread Michael Hudson
Nick Coghlan <[EMAIL PROTECTED]> writes: > Michael Hudson wrote: >> (PS: are people still interested in my new-style exceptions patch? >> http://bugs.python.org/1104669) > > Is there a specific concern with it you want people to check out, or just a > few more "works for me" tests on different p

[Python-Dev] New-style exceptions patch (was Re: PEP 8 updates/clarifications)

2005-12-10 Thread Nick Coghlan
Michael Hudson wrote: > Barry Warsaw <[EMAIL PROTECTED]> writes: > >> Let's say something like "string-based exceptions are strongly >> discouraged, and in fact may be deprecated or disappear in a future >> Python version. Use class-based exceptions." > > If I have anything to do with it, they _

Re: [Python-Dev] PEP 8 updates/clarifications

2005-12-10 Thread Michael Hudson
Barry Warsaw <[EMAIL PROTECTED]> writes: > Let's say something like "string-based exceptions are strongly > discouraged, and in fact may be deprecated or disappear in a future > Python version. Use class-based exceptions." If I have anything to do with it, they _will_ be deprecated in 2.5. There

Re: [Python-Dev] PEP 8 updates/clarifications

2005-12-10 Thread Steve Holden
Robert Brewer wrote: > Barry Warsaw wrote: > >>Again, I'd say something like: Since your exceptions >>will be classes, use the CapWord naming convention for >>classes to name your exceptions. It is recommended >>that your exception class end in the word "Error". > > > Unless, of course, your exc