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

2016-05-31 Thread Alan Gauld via Tutor
On 31/05/16 02:25, boB Stepp wrote: > This "views register with models" and "registered views" terminology > is unfamiliar to me. Googling suggests registered views is referring > to a dynamically generated presentation, perhaps in the sense of a db No, this is different. Try googling publish-su

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

2016-05-31 Thread Alan Gauld via Tutor
On 31/05/16 02:16, boB Stepp wrote: > I perhaps see a general principle developing here: Before passing > data elsewhere, the data should be validated and in a form suitable > for where it is being sent. Correct. > By "business service" are you intending this to mean a totally > different app

[Tutor] Help with 'if' statement and the concept of None

2016-05-31 Thread marat murad via Tutor
Hi I'm learning how to code with python an I have purchased the book 'Python Programming for the absolute beginner,third edition' by Michael Dawson. There is one concept that is confusing me in chapter 3 page 71 there is a program whose code I have pasted below. The author introduced a new way of

[Tutor] Python OLS help

2016-05-31 Thread Vadim Katsemba
Hello there, I am having trouble running the Ordinary Least Squares (OLS) regression on Spyder. I typed in lm = smf.ols(formula='LATITUDE~DIAMETER',data=dataf).fit(), and I ended up getting this error: ValueError: For numerical factors, num_columns must be an int. How am I supposed to run the OLS,

Re: [Tutor] Help with 'if' statement and the concept of None

2016-05-31 Thread Alan Gauld via Tutor
On 31/05/16 16:16, marat murad via Tutor wrote: > program whose code I have pasted below. The author introduced a new way of > coding the Boolean NOT operator with the 'if' statement I have highlighted > the relevant area,apparently this if statement actually means if money != > 0,which I underst

Re: [Tutor] Python OLS help

2016-05-31 Thread Alan Gauld via Tutor
On 31/05/16 16:30, Vadim Katsemba wrote: > Hello there, I am having trouble running the Ordinary Least Squares (OLS) > regression on Spyder. I had no idea what Spyder was but a Google search says its an IDE somewhat akin to matlab or IPython... It also has a discussion group: http://groups.googl

Re: [Tutor] Help with 'if' statement and the concept of None

2016-05-31 Thread Steven D'Aprano
On Tue, May 31, 2016 at 04:16:21PM +0100, marat murad via Tutor wrote: > money = int(input("How many dollars do you slip the Maitr D'? ")) > *if money:* > print("Ah I think I can make something work") > else: > print("Please sit ,it may be a while") All values in Python can be used where

Re: [Tutor] Help with 'if' statement and the concept of None

2016-05-31 Thread Ben Finney
marat murad via Tutor writes: > The author introduced a new way of coding the Boolean NOT operator > with the 'if' statement I have highlighted the relevant > area,apparently this if statement actually means if money != 0,which I > understood Not quite. The statement actually means “if ‘money’ e