Re: Nesting Custom Errors in Classes

2019-07-23 Thread Cameron Simpson
On 24Jul2019 11:47, DL Neil wrote: On 24/07/19 10:07 AM, Cameron Simpson wrote: On 24Jul2019 07:21, DL Neil wrote: ... Get some linting tools. They're great for catching this kind of error. SublimeText has SublimeLinter and PycodeStyle installed, but I'm still familiarising myself with

Re: Nesting Custom Errors in Classes

2019-07-23 Thread DL Neil
On 24/07/19 10:07 AM, Cameron Simpson wrote: On 24Jul2019 07:21, DL Neil wrote: ... Get some linting tools. They're great for catching this kind of error. SublimeText has SublimeLinter and PycodeStyle installed, but I'm still familiarising myself with ST. Nothing is reported. Any

Re: Nesting Custom Errors in Classes

2019-07-23 Thread Cameron Simpson
On 24Jul2019 07:21, DL Neil wrote: Accordingly, the idea that there would be a ClassyThing() but it might be quite different from another ClassyThing() just makes me shudder! (sorry, I guess it's that sheltered upbringing ... again!) It needn't be very different on the outside. The whole

Re: Nesting Custom Errors in Classes

2019-07-23 Thread DL Neil
On 23/07/19 11:55 PM, Cameron Simpson wrote: On 23Jul2019 14:54, DL Neil wrote: Do you use nested classes? Python manages nested classes. I've NEVER seen such 'in the wild'. (but perhaps I lead a sheltered life?) So sheltered :-) Well, over here there aren't the venomous creatures you

Re: Nesting Custom Errors in Classes

2019-07-23 Thread Rob Gaddi
On 7/22/19 7:54 PM, DL Neil wrote: Do you use nested classes? [following-on from the earlier, "Namespaces: memory vs 'pollution'" discussion thread, wherein a certain 'someone' remembered to from ... import ... as ... an 'action' class but forgot to also import the related custom error class!

Re: Nesting Custom Errors in Classes

2019-07-23 Thread Cameron Simpson
On 23Jul2019 14:54, DL Neil wrote: Do you use nested classes? Python manages nested classes. I've NEVER seen such 'in the wild'. (but perhaps I lead a sheltered life?) So sheltered :-) In my experience it's uncommon. I've done it a few times. "Nested" classes aren't anything very special;