Re: [Tutor] Parameterized Queries failing on MySQL

2010-12-16 Thread Peter Otten
Shea Grove wrote: >> I'm using pyodbc to interact with MS SQL Server and I'm starting to >> support mysql. My issue is that when I use a parameterized query, it >> works for SQL Server, but crashes when I point to MySQL. I assume it raise an Exception. >> Is there a different syntax that I sh

Re: [Tutor] Can't even get hello to work???!!

2010-12-16 Thread Alan Gauld
"Emile van Sebille" wrote print 'hello' ... SyntaxError: invalid syntax Actually, "the print statement is deprecated" ought not be out of reach. Its very unfortunate that Python 3 didn't include a special error or warning message for the print statement. This kind of error for a complete

Re: [Tutor] Can't even get hello to work???!!

2010-12-16 Thread bob gailer
I agree. What do we do to fix the "problem"? -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Can't even get hello to work???!!

2010-12-16 Thread wesley chun
On Thu, Dec 16, 2010 at 10:13 AM, bob gailer wrote: > I agree. What do we do to fix the "problem"? something like "quit" (or friends) might be nice, as they are already special cases in the interpreter: $ python Python 2.5.1 (r251:54863, Feb 9 2009, 18:49:36) [GCC 4.0.1 (Apple Inc. build 5465)]

Re: [Tutor] vim as a python editor; FOLLOW-UP QUESTION

2010-12-16 Thread Joel Schwartz
I'm new to Python and have been using IDLE for Python programming. My only other significant text editor experience is with Notepad++ and Tinn-R, which I've used for R programming. Vim seems more efficient, but I wanted to ask you experts whether it makes sense (or is even possible) to use vim in W

Re: [Tutor] vim as a python editor; FOLLOW-UP QUESTION

2010-12-16 Thread bob gailer
On 12/16/2010 1:58 PM, Joel Schwartz wrote: I'm new to Python and have been using IDLE for Python programming. My only other significant text editor experience is with Notepad++ and Tinn-R, which I've used for R programming. Vim seems more efficient, but I wanted to ask you experts whether it mak

Re: [Tutor] vim as a python editor; FOLLOW-UP QUESTION

2010-12-16 Thread Steve Willoughby
On 16-Dec-10 10:58, Joel Schwartz wrote: I'm new to Python and have been using IDLE for Python programming. My only other significant text editor experience is with Notepad++ and Tinn-R, which I've used for R programming. Vim seems more efficient, but I wanted to ask you experts whether it makes

Re: [Tutor] vim as a python editor; FOLLOW-UP QUESTION

2010-12-16 Thread python
Joel, > One more question: IDLE does not appear to have a way to review your command > history, e.g., by hitting the up arrow. To move through your command history, use Alt+P (previous) and Alt+N (next). Malcolm ___ Tutor maillist - Tutor@python.org

[Tutor] How to import python dictionary into MySQL table?

2010-12-16 Thread Sean Carolan
Maybe one of you can help with this. I've got some data that I grabbed from a cobbler *.json file using simplejson.load(). Heres what the data looks like: In [120]: print mydata.keys() ['comment', 'kickstart', 'name_servers_search', 'ks_meta', 'kernel_options_post', 'image', 'redhat_management_k

Re: [Tutor] vim as a python editor; FOLLOW-UP QUESTION

2010-12-16 Thread Wayne Werner
On Thu, Dec 16, 2010 at 12:58 PM, Joel Schwartz wrote: > whether it makes sense (or is even possible) to use vim in > Windows (I use Windows XP-SP3). > Alternatively, is there another basic Python GUI > that has the up-arrow command history feature and is also good for Python > coding in gener

Re: [Tutor] vim as a python editor; FOLLOW-UP QUESTION

2010-12-16 Thread Alan Gauld
"Joel Schwartz" wrote you experts whether it makes sense (or is even possible) to use vim in Windows (I use Windows XP-SP3). Yes, vim is great on Windows. When i used unix primarily I was an emacs fan, but emacs just doesn't feel right on windows to me so I moved to vim which works hust as we

Re: [Tutor] How to import python dictionary into MySQL table?

2010-12-16 Thread Sean Carolan
> I have a database with a table called "systems" that contains an > auto-increment id field, as well as fields for each of the keys in > mydata.keys().  But I can't seem to get the syntax to import > mydata.values() into the table.  I think the problem may be that some > of the items in my list ar