Re: Using nested lists and tables

2010-10-28 Thread Rhodri James
On Thu, 28 Oct 2010 14:30:16 +0100, Zeynel wrote: On Oct 28, 2:32 am, robert wrote: the reason may be that your text doesn't contain a question (mark). ... perhaps drill down to a question on python-level. Thanks, I realize that what I was trying to ask is not too clear. I am learning to

Re: Using nested lists and tables

2010-10-28 Thread Peter Otten
Zeynel wrote: > Thank you this is great; but I don't know how to modify this code so > that when the user types the string 's' on the form in the app he sees > what he is typing. So, this will be in GAE. I've no idea what GAE is. In general the more precise your question is the better the answe

Re: Using nested lists and tables

2010-10-28 Thread Zeynel
On Oct 28, 9:35 am, Iain King wrote: > It's equivalent to: > > if columns: >     if columns[-1][0] == s: >         dostuff() > > i.e. check columns is not empty and then check if the last item > startswith 's'. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Using nested lists and tables

2010-10-28 Thread Iain King
On Oct 28, 2:35 pm, Iain King wrote: ... > (a) I don't know if the order of resolution is predicated left-to- > right in the language spec of if it's an implementation detail > (b) columns[-1].startswith('s') would be better > ... Ignore (b), I didn't read the original message properly. Iain -

Re: Using nested lists and tables

2010-10-28 Thread Iain King
On Oct 28, 2:19 pm, Zeynel wrote: > On Oct 28, 4:49 am, Peter Otten <__pete...@web.de> wrote: > > Thank you this is great; but I don't know how to modify this code so > that when the user types the string 's' on the form in the app he sees > what he is typing. So, this will be in GAE. But I have a

Re: Using nested lists and tables

2010-10-28 Thread Zeynel
On Oct 28, 2:32 am, robert wrote: > the reason may be that your text doesn't contain a question (mark). ... > perhaps drill down to a question on python-level. Thanks, I realize that what I was trying to ask is not too clear. I am learning to GAE using Python and I want to deploy a simple app. Th

Re: Using nested lists and tables

2010-10-28 Thread Zeynel
On Oct 28, 4:49 am, Peter Otten <__pete...@web.de> wrote: Thank you this is great; but I don't know how to modify this code so that when the user types the string 's' on the form in the app he sees what he is typing. So, this will be in GAE. But I have a couple of other questions, for learning pur

Re: Using nested lists and tables

2010-10-28 Thread Peter Otten
Zeynel wrote: > I am trying to make this simple app for GAE. > > I get a string s that user enters in a form. > > I append that to an empty list L = [] then I test if the last saved > string is the same as the new string. If same, I write it on the same > column; if not the cursor moves to next

Re: Using nested lists and tables

2010-10-27 Thread robert
Zeynel wrote: I am trying to make this simple app for GAE. I get a string s that user enters in a form. I append that to an empty list L = [] then I test if the last saved string is the same as the new string. If same, I write it on the same column; if not the cursor moves to next column (I was

Using nested lists and tables

2010-10-27 Thread Zeynel
I am trying to make this simple app for GAE. I get a string s that user enters in a form. I append that to an empty list L = [] then I test if the last saved string is the same as the new string. If same, I write it on the same column; if not the cursor moves to next column (I was trying to do th