Re: [Tutor] Appending to many lists with list comprehension

2005-05-02 Thread jfouhy
Quoting Bernard Lebel <[EMAIL PROTECTED]>: > aList = [ [], [] ] > > > # Iterate attributes of the top object > for oAttribute in oObj.attributes: > > # Append to list 0 the attribute "type" of the current attribute > aList[0].append( str(oAttribute.type) ) > >

Re: [Tutor] Problem with threading

2005-05-02 Thread Alberto Troiano
Hey I have the users config in a database so the use of a text file is double work In answer to Matt the cameras push the photos via ftp at my server at 1 photo every 3 seconds What can I do Regards Alberto >From: Danny Yoo <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROT

[Tutor] Appending to many lists with list comprehension

2005-05-02 Thread Bernard Lebel
Hello, I have an object, and this object has attributes. These attributes are objects in their own right, and each attribute also have its own attributes. So I loop over the "top" object, and for each attribute encountered, I want to put in a list two of the attributes of this attribute. Hope i

Re: [Tutor] Problem with threading

2005-05-02 Thread Danny Yoo
[Side note: try to just send messages to either tutor@python.org, or [EMAIL PROTECTED], but not both.] > Someone suggested the use of CRON (I'm working over Linux) but how can I > built a program to which I can pass an argument??? > > I mean in CRON I will have to put one task for each user

[Tutor] Problem with threading

2005-05-02 Thread Alberto Troiano
Hey all This is the program I need to do and I haven't been able to figure out >From a web page (PHP), I'm creating users and an IP Camera that sends me photos all the time. The user configure his recording time and then a daemon has to check for the photos that does not belong to the recordin

Re: [Tutor] Tkinter and Animation

2005-05-02 Thread Michael Lange
On Wed, 27 Apr 2005 19:31:06 -0700 Jeremiah Rushton <[EMAIL PROTECTED]> wrote: > > I tried your idea and it doesn't animate it. I made a for loop and told it > to mover 1 pixel downward every .3 seconds for 25 times. It just waits till > the for loop is completed and then displays the result of

Re: [Tutor] missing module?

2005-05-02 Thread Kent Johnson
Jeff Peery wrote: > Hello, I get an error message from py2exe that it can't find a module > ntpath.py. I pasted the error message below: > > Traceback (most recent call last): > File "wxApp1.py", line 4, in ? > File "wx\__init__.pyc", line 42, in ? > File "wx\_core.pyc", line 4, in ? >

Re: [Tutor] tokenize row numbering

2005-05-02 Thread Andrei
Chris Smith bigfoot.com> writes: > ### > # line 1 according to tokenize tuple > # line 2 > a=b #line 3 > ### > > Does anyone have an idea of *why* the rows/physical lines of code > beginning their count at 1 instead of 0? In order to process the code I The snippet above shows that numbering b