Re: [Tutor] Logging exceptions, but getting stderr output instead

2016-05-29 Thread Steven D'Aprano
On Wed, May 25, 2016 at 03:44:28PM -0400, Alex Hall wrote: > You're not missing anything; I wasn't clear. I wasn't sure if raise or > sys.exit(1) were the preferred ways, or if there was some other way I > didn't know about. I've never had to force a script to halt before, at > least not one I mean

Re: [Tutor] Logging exceptions, but getting stderr output instead

2016-05-29 Thread Steven D'Aprano
On Wed, May 25, 2016 at 02:11:01PM -0400, Alex Hall wrote: > As a quick aside, is there an easy way to halt script execution for some > exceptions? Right now, catching them means that execution continues, but I > sometimes want to log the problem and then abort the script, as the error > means it

Re: [Tutor] Correct use of model-view-controller design pattern

2016-05-29 Thread Peter Otten
boB Stepp wrote: [snip] No direct answers to your questions, sorry;) In my experience MVC is nearly always used to build GUIs and based on classes. The idea is that you can add multiple views to a model, a bar chart and a table of the values, sometimes at runtime. You may also swap out the mo

Re: [Tutor] Correct use of model-view-controller design pattern

2016-05-29 Thread Alan Gauld via Tutor
On 29/05/16 05:33, boB Stepp wrote: > I am currently mulling over some information Alan passed along a while > back on using the model-view-controller design pattern (Would > 'architectural pattern' be a better choice of phrase?). Either is appropriate. Design Pattern is more usual, largely beca