Re: [Tutor] sqlite3 COMMIT directive

2013-09-30 Thread Dominik George
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, >sqlite3.OperationalError: cannot commit - no transaction is active That means that you have to execute "BEGIN TRANSACTION" before using atomic commits. http://www.sqlite.org/lang_transaction.html http://sqlite.org/transactional.html >I've b

[Tutor] sqlite3 COMMIT directive

2013-09-30 Thread Alex Kleider
I'm just beginning to enter into the field of database and SQLite in particular. Python 2.7 on Ubuntu The problem code is a class method defined as follows: def insert(self, DataBase=DataBase, Table=Table): """ Insert instance of ClassMate into . """ con =

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Steven D'Aprano
On Mon, Sep 30, 2013 at 03:00:08PM +0200, Rafael Knuth wrote: > I mean, my giant print > statement was really ridiculous to say the least but it did what I > wanted the program to do - adding items to the To Do List and printing > that list. But no it didn't! It just *printed* stuff you wanted t

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Steven D'Aprano
On Mon, Sep 30, 2013 at 01:30:55PM +0200, Rafael Knuth wrote: > I am still hoping that I will get some feedback from anyone on that > list that will help me make a tiny little next step. Be bold! Be adventurous! You don't need baby steps, this is not like climbing Mount Everest without oxygen! I

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Steven D'Aprano
On Mon, Sep 30, 2013 at 01:12:49PM +0200, Rafael Knuth wrote: > Hej there, > > @Alan @Joel: > I didn't know that pouring corn on newbies is the purpose of a tutor > mailing list. The word you want is "scorn", not corn. > I do not understand why you don't consider what I wrote not a program > ("

Re: [Tutor] Creating To Do List Program - Questions

2013-09-30 Thread Steven D'Aprano
On Mon, Sep 30, 2013 at 12:19:15PM +0200, Dominik George wrote: > Plonk! Oh that's harsh, especially for a beginners list. -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailm

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Steven D'Aprano
On Mon, Sep 30, 2013 at 12:43:57AM +0100, Alan Gauld wrote: > On 29/09/13 21:42, Rafael Knuth wrote: > > >iteration. I know my program is super cheesy & primitive, but I don’t > >care, it does what I expect it to do, > > Really? You wrote a program that printed out a different > program to the on

Re: [Tutor] Easiest framework for web development?

2013-09-30 Thread vit...@gmx.com
Are those simple web frameworks you mentioned to be found pre-installed on commercial hosting servers? I am asking because I would like to avoid having to install one myself. The ideal solution would be a Python-based web framework that is commonly supported (pre-installed) on commercial web hos

Re: [Tutor] Easiest framework for web development?

2013-09-30 Thread Prasad, Ramit
vit...@gmx.com wrote: > Sent: Monday, September 30, 2013 4:16 AM > To: tutor@python.org > Subject: [Tutor] Easiest framework for web development? > > Hi > > Which of the available Python frameworks is the EASIEST to learn for a > NEWBIE who needs to do *basic* web development? (only the *most bas

Re: [Tutor] Easiest framework for web development?

2013-09-30 Thread Alan Gauld
On 30/09/13 10:15, vit...@gmx.com wrote: Which of the available Python frameworks is the EASIEST to learn for a NEWBIE who needs to do *basic* web development? (only the *most basic* web functionality will be needed) The cgi module in the standard library is easy to learn if you only want *ba

Re: [Tutor] Easiest framework for web development?

2013-09-30 Thread Amit Saha
On Mon, Sep 30, 2013 at 7:15 PM, wrote: > Hi > > Which of the available Python frameworks is the EASIEST to learn for a > NEWBIE who needs to do *basic* web development? (only the *most basic* web > functionality will be needed) Only the *most basic* web functionality won't need you to use a Pyt

[Tutor] Easiest framework for web development?

2013-09-30 Thread vitsen
Hi Which of the available Python frameworks is the EASIEST to learn for a NEWBIE who needs to do *basic* web development? (only the *most basic* web functionality will be needed) Could you please provide links to any relevant tutorials for learning such a Python-based web framework? (again,

Re: [Tutor] Regex Question

2013-09-30 Thread Mark Lawrence
On 30/09/2013 21:29, Leena Gupta wrote: Hello, I have a TSV file that has the city,state,country information in this format: Name Display name Code San Jose SJC SJC - SJ (POP), CA (US) San Francisco SFOSFO - SF, CA (US) I need

Re: [Tutor] Regex Question

2013-09-30 Thread Dave Angel
On 30/9/2013 16:29, Leena Gupta wrote: > Hello, > > I have a TSV file that has the city,state,country information in this > format: > Name Display name Code > San Jose SJC SJC - SJ (POP), CA (US) > San Francisco SFOSFO - SF, CA (

[Tutor] Regex Question

2013-09-30 Thread Leena Gupta
Hello, I have a TSV file that has the city,state,country information in this format: Name Display name Code San Jose SJC SJC - SJ (POP), CA (US) San Francisco SFOSFO - SF, CA (US) I need to extract the state and country for each

Re: [Tutor] writing python on the web

2013-09-30 Thread Amit Saha
On Tue, Oct 1, 2013 at 5:42 AM, Alan Gauld wrote: > On 30/09/13 13:49, roberto wrote: >> >> Hi, my school is considering a massive shift to Chromebooks. I've to >> carefully think about how could the students go on writing their python >> programs on the web. > > > It's not just Python it's any ki

Re: [Tutor] writing python on the web

2013-09-30 Thread Alan Gauld
On 30/09/13 13:49, roberto wrote: Hi, my school is considering a massive shift to Chromebooks. I've to carefully think about how could the students go on writing their python programs on the web. It's not just Python it's any kind of program. There are a few online interpreters around but if yo

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Alan Gauld
On 30/09/13 12:12, Rafael Knuth wrote: @Alan @Joel: I didn't know that pouring corn on newbies We weerenm't pouring corn, we were pointing out that the program you claimed to have working as a ToDo list did no such thing. It doesn't add anmy items it doesn't store it doesn;t retriebe. All it

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Dave Angel
On 30/9/2013 09:00, Rafael Knuth wrote: > Hej Dave, > > thank you for your response. > >> Your original program had some code that interacted with the user. So >> when you went from that to a giant print statement, I, and proably many >> others, thought you were just kidding. > > I noticed that,

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Rafael Knuth
Dominik, > OTOH, *if* your claim that you understand the concepts mentioned by Dave > isn't an ill-minded overestimation, I wonder why you don't go and use > these skills. Doyou lack a concept of how to logically build up your > code, or what's the main issue? Exactly. I didn't know how to put th

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Dominik George
Hi Rafael, > > Your original program had some code that interacted with the user. So > > when you went from that to a giant print statement, I, and proably many > > others, thought you were just kidding. > > I noticed that, but I was serious about that. I mean, my giant print > statement was rea

Re: [Tutor] writing python on the web

2013-09-30 Thread Walter Prins
Hi, On 30 September 2013 13:49, roberto wrote: > Hi, my school is considering a massive shift to Chromebooks. I've to > carefully think about how could the students go on writing their python > programs on the web. > Do you know any online interpreter where programs might be written, saved > and

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Rafael Knuth
Hej Dave, thank you for your response. > Your original program had some code that interacted with the user. So > when you went from that to a giant print statement, I, and proably many > others, thought you were just kidding. I noticed that, but I was serious about that. I mean, my giant print

[Tutor] writing python on the web

2013-09-30 Thread roberto
Hi, my school is considering a massive shift to Chromebooks. I've to carefully think about how could the students go on writing their python programs on the web. Do you know any online interpreter where programs might be written, saved and modified. If sharing and collaborating were allowed, that w

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Dave Angel
On 30/9/2013 07:47, Rafael Knuth wrote: > Dominik, > > this was my original question: > > As of now, I want to understand how I can add > further functionalities to my program such as: appending items to the > list, removing and replacing items. Can anyone help? > > Simple as that. > Your origina

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 7:47 AM, Rafael Knuth wrote: > Dominik, > > this was my original question: > > As of now, I want to understand how I can add > further functionalities to my program such as: appending items to the > list, removing and replacing items. Can anyone help? > > Simple as that. >

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Rafael Knuth
Dominik, this was my original question: As of now, I want to understand how I can add further functionalities to my program such as: appending items to the list, removing and replacing items. Can anyone help? Simple as that. Rafael On Mon, Sep 30, 2013 at 1:41 PM, Dominik George wrote: >

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Dominik George
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Rafael Knuth schrieb: >Dominik, > >> it's not your program - it's your attitude. We expect you to learn >for yourself as well, and putting the commands you output into a script >and execute it clearly isn't beyond what we can expect from someone w

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Rafael Knuth
Dominik, > it's not your program - it's your attitude. We expect you to learn for > yourself as well, and putting the commands you output into a script and > execute it clearly isn't beyond what we can expect from someone who can use a > mail program. Thanks for the clarification, you were the

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Dominik George
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Rafael Knuth schrieb: >Hej there, > >@Alan @Joel: >I didn't know that pouring corn on newbies is the purpose of a tutor >mailing list. >Why don't you try writing a program instead? Why don't you use the cat >interpreter instead? >I tried my best a

Re: [Tutor] Creating To Do List Program - Question

2013-09-30 Thread Rafael Knuth
Hej there, @Alan @Joel: I didn't know that pouring corn on newbies is the purpose of a tutor mailing list. Why don't you try writing a program instead? Why don't you use the cat interpreter instead? I tried my best and that's what I came up with, and I am eager to learn form experienced programmer

Re: [Tutor] Creating To Do List Program - Questions

2013-09-30 Thread Rafael Knuth
Joel, I am terribly sorry, I erased that thread accidentally without having read it, and I now found it. Thank you and again - and apologies! Rafael On Mon, Sep 30, 2013 at 12:35 PM, Joel Goldstick wrote: > You restarted the same thread from yesterday where you got several replies. > Go and find

Re: [Tutor] Creating To Do List Program - Questions

2013-09-30 Thread Joel Goldstick
You restarted the same thread from yesterday where you got several replies. Go and find that thread. On Mon, Sep 30, 2013 at 6:19 AM, Dominik George wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > > > Rafael Knuth schrieb: > >Hej there, > > > >apologies if you're receiving my m

Re: [Tutor] Creating To Do List Program - Questions

2013-09-30 Thread Dominik George
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Rafael Knuth schrieb: >Hej there, > >apologies if you're receiving my mail for a second time, I had some >issues with Google and I just want to make sure you will receive my >email. > >I am writing a to do list program in Python 3.0. > >Last week,

[Tutor] Creating To Do List Program - Questions

2013-09-30 Thread Rafael Knuth
Hej there, apologies if you're receiving my mail for a second time, I had some issues with Google and I just want to make sure you will receive my email. I am writing a to do list program in Python 3.0. Last week, I shared my first iteration on the mailing list, and the feedback was that I shoul