Re: use of index (beginner's question)

2011-04-28 Thread Graeme Glass
On Apr 28, 5:32 am, Algis Kabaila wrote: > On Thursday 28 April 2011 11:23:51 Thomas 'PointedEars' Lahn > wrote:> Chris Angelico wrote: > > > Rusty Scalf wrote: > > >> list1 = ['pig', 'horse', 'moose'] > > >> list2 =  ['62327', '49123', '79115'] > > >> n = 2 > > >> s2 = "list" + `n` > >>> "list" +

Re: psycopg2 for insertion of binary data to PostgreSQL database

2010-08-23 Thread Graeme Glass
On Aug 23, 9:37 am, Julia Jacobson wrote: > How can I assign the result of a SQL query to a variable? > The following code snippet doesn't work: > query_result=cur.execute("SELECT column_name FROM table_name WHERE > my_variable = 'my_value'",) > >  > Thomas Jollans wrote: > > > > > * get the recor

Python community buildbot page still 503

2009-09-01 Thread Graeme Glass
If I am not mistaken http://python.org/dev/buildbot/community/all/ has been down since python.org had its harddrive issues. Anyone know a time line on getting it back up and running. I have mailed the buildbot mailing list, but heard nothing for a week, so thought I would try here. Kind regards,

Re: counting using variable length string as base

2008-03-31 Thread Graeme Glass
On Mar 27, 11:01 am, Peter Otten <[EMAIL PROTECTED]> wrote: > Grimsqueaker wrote: > > That seems to give me the items in the list back in an iterator. Am I > > using it incorrectly? > > With Dan's functions in cartesian.py you can do the following: > > >>> from cartesian import * > >>> def count(di

Re: Great Python books for the beginner

2008-01-13 Thread Graeme Glass
On Jan 12, 9:03 am, Landon <[EMAIL PROTECTED]> wrote: > Hi, I'm a freshman in college and I'm going to be taking an intro to > programming course next semester which mainly uses Python, so I > thought it might be a good time to pick up Python beyond the scope of > the class as well. The text book f

Re: Threaded Design Question

2007-08-10 Thread Graeme Glass
Using IPC is just adding needles complexity to your program. Instead of constantly scanning the directory for files and then adding them to a Queue, and then having to worry if that specific file may have already been popped off the queue and is currently running by one of the workers, just poll th

Re: How to create a single executable of a Python program

2007-07-25 Thread Graeme Glass
On Jul 25, 8:34 am, NicolasG <[EMAIL PROTECTED]> wrote: > Dear fellows, > > I'm trying to create a executable file using py2exe . Unfortunately > along with the python executable file it also creates some other files > that are needed in order to the executable be able to run in a system > that doe

Re: need help with win32com

2007-07-03 Thread Graeme Glass
On Jul 2, 6:38 pm, Thomas <[EMAIL PROTECTED]> wrote: > I want to be able to access an excel file and extract the code from > the macro that is in the file. How can I do this? > > -- > ~Thomas~ http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/483742 -- http://mail.python.org/mailman/listi

Re: trying to gzip uncompress a StringIO

2007-05-23 Thread Graeme Glass
On May 23, 2:37 am, [EMAIL PROTECTED] wrote: > Perfect, thanks! Now I have a working WMF file and everything. > > Bob Now you just got to get your reply button working :-D -- http://mail.python.org/mailman/listinfo/python-list

Re: Auto execute python in USB flash disk

2007-03-28 Thread Graeme Glass
Or take a look at http://www.truecrypt.org/ (Unless like Brain said, you are doing this to learn) On Mar 27, 11:17 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Brian Erhard wrote: > > I am still fairly new to python and wanted to attempt a home made > > password protection program. There are file

Re: Need help to learn Python

2007-03-23 Thread Graeme Glass
Online Docs, and Core Python Programming fits the bill! (http:// starship.python.net/crew/wesc/cpp/) -- http://mail.python.org/mailman/listinfo/python-list

Re: war with china? a different approach?

2007-03-16 Thread Graeme Glass
Whats this got to do with python? On Jan 19, 9:34 pm, [EMAIL PROTECTED] wrote: > Coz we have fools in the govt, the downfall of the US has only been > accelerated !! > The are morons who staged 9/11 controlled demolition to kill americans > to start their idiotic war. > > Date: Sat, 21 Oct 2006 1