[Tutor] list of strings

2011-02-09 Thread Shawn Matlock
so that the aged timeout is set correctly. for dataSource in dataSourceList: print 'DataSource: %s' % dataSource time.sleep(5) DataSource: " DataSource: F DataSource: a DataSource: c DataSource: e Thank you, -- Shawn Ma

Re: [Tutor] put query result set into dictionary

2010-11-11 Thread Shawn Matlock
result set into dictionary "Shawn Matlock" wrote > I am trying to put the results of a MySQL query into a dictionary. > It fails because it includes the Unicode delimiter - "u'somevalue'". I don't think so... > envsql = "select envVariable, e

[Tutor] put query result set into dictionary

2010-11-10 Thread Shawn Matlock
Let's see if I can ask the right questions the right way. I am trying to put the results of a MySQL query into a dictionary. It fails because it includes the Unicode delimiter - "u'somevalue'". Can someone tell me the right way to do this, please? Thank you, Shawn csdbConn = zxJDBC.connec

[Tutor] query result set

2010-11-08 Thread Shawn Matlock
I am able to successfully query a MySQL database using zxJDBC but the result set seems odd to me. It returns the following: [(u'envDB', u'systest2'), (u'envDir', u'st2'), (u'envCellName', u'Systest2Cell'), (u'envFrontEnd', u'systest2FrontEnd'), (u'envTag', u'system_test2')] Why is there a "u"

Re: [Tutor] Non-ASCII

2010-10-08 Thread Shawn Matlock
t;select all" before pasting the code back. Thank you for the explanation. Shawn -Original Message- From: Evert Rol [mailto:evert@gmail.com] Sent: Thursday, October 07, 2010 12:34 PM To: Shawn Matlock Cc: tutor@python.org Subject: Re: [Tutor] Non-ASCII > I'm going thro

[Tutor] Non-ASCII

2010-10-07 Thread Shawn Matlock
Hello, I'm going through an online tutorial for Jython (www.jython.org). I can't find a place to ask a question on that site so I thought I'd try here. I believe the code is supposed to traverse a directory, identifying file types. The script is failing with the following message: File "", l