Python on WinXP Embedded

2006-01-11 Thread Godzilla
Has anyone install Python on Windows XP Embedded? We wish to evaluate the possible solution of installing Python with WinXPE on a PC/104 plus module. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on WinXP Embedded

2006-01-11 Thread Godzilla
Hello rtilley, thanks for replying so soon. I wish to install WinXP Embedded on a PC/104 module and install Python on WinXP Embedded, not WinPE... The hardware which is to be acquired is about a celeron 400MHz but we just not sure how well Python will work under WinXPE... -- http://mail.python.o

Fastest way to convert a byte of integer into a list

2007-07-12 Thread Godzilla
Hello, I'm trying to find a way to convert an integer (8-bits long for starters) and converting them to a list, e.g.: num = 255 numList = [1,1,1,1,1,1,1,1] with the first element of the list being the least significant, so that i can keep appending to that list without having to worry about the

Re: Fastest way to convert a byte of integer into a list

2007-07-12 Thread Godzilla
On Jul 13, 9:54 am, Matimus <[EMAIL PROTECTED]> wrote: > On Jul 12, 3:34 pm, Godzilla <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I'm trying to find a way to convert an integer (8-bits long for > > starters) and converting them to a list, e.g.: &g

Re: Fastest way to convert a byte of integer into a list

2007-07-12 Thread Godzilla
On Jul 13, 11:13 am, bsneddon <[EMAIL PROTECTED]> wrote: > On Jul 12, 8:49 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > On Jul 13, 10:28 am, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > > > > Godzilla <[EMAIL PROTECTED]> writes: > > >

how to use cx_Oracle callfunc

2007-05-10 Thread Godzilla
Hi all, I need to know how to use the method callfunc in cx_Oracle. I am trying to get a primary key after an insert via a function call, but I do not know how to pass the return value from the function via the callfunc method. Can anyone help? I also tried the execute(), and callproc(), but to n

Re: how to use cx_Oracle callfunc

2007-05-10 Thread Godzilla
On May 11, 11:51 am, Godzilla <[EMAIL PROTECTED]> wrote: > Hi all, > > I need to know how to use the method callfunc in cx_Oracle. I am > trying to get a primary key after an insert via a function call, but I > do not know how to pass the return value from the function via

Deleting objects on the fly

2007-08-09 Thread Godzilla
Hello, I wish to know whether I should delete objects created on the fly via the "del obj" statement. I noticed the RAM usage increased whenever the application is being run for a long time. I am creating lots of objects (messages) on the fly for communication between threads. Rather than having

Memory leak when creating lots of object

2007-08-13 Thread Godzilla
Hello, I have a program that create and pop an object off a queue, but it is experiencing some memory leakage. I have been unable to detect where the memory leakage occur. The strange thing is when i replace the object creation with a plain integer/string, the leak goes away... Here's the code I u

Re: Memory leak when creating lots of object

2007-08-16 Thread Godzilla
On Aug 16, 1:13 am, Paul Moore <[EMAIL PROTECTED]> wrote: > On 14 Aug, 05:57, Godzilla <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I have a program that create and pop an object off a queue, but it is > > experiencing some memory leakage. I have bee

Python Oracle 10g odbc blob insertion problem

2007-03-22 Thread Godzilla
Dear all, I cannot find a solution for my problem with inserting a blob object (>4000 in length) into an ORACLE database via ODBC. I have tried the two ways of inserting the blob object (a zip file): 1) fp = open("c:/test/test.zip", "r+b") data = fp.read() s = odbc.odbc(cs) qry = s.cursor() qr

Re: Python Oracle 10g odbc blob insertion problem

2007-03-22 Thread Godzilla
On Mar 22, 10:56 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Godzilla wrote: > > Dear all, > > > I cannot find a solution for my problem with inserting a blob object > > (>4000 in length) into an ORACLE database via ODBC. > > > I have tried the two way

Re: Python Oracle 10g odbc blob insertion problem

2007-03-22 Thread Godzilla
On Mar 23, 4:38 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 22 Mar 2007 05:36:46 -0700, "Godzilla" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > Steve, I think I've tried what you have suggested without any luck as >

Re: Python Oracle 10g odbc blob insertion problem

2007-03-22 Thread Godzilla
On Mar 23, 4:38 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 22 Mar 2007 05:36:46 -0700, "Godzilla" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > Steve, I think I've tried what you have suggested without any luck as >

Re: Python Oracle 10g odbc blob insertion problem

2007-03-22 Thread Godzilla
On Mar 23, 9:50 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Godzilla wrote: > > On Mar 23, 4:38 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > >> On 22 Mar 2007 05:36:46 -0700, "Godzilla" <[EMAIL PROTECTED]> > >> declaimed the following

Create new processes over telnet in XP

2007-03-23 Thread Godzilla
Hello, How do you create/spawn new processes in XP over telnet using python? I.e. I would like to create a new process and have it running in the background... when I terminate the telnet connection, I would what the spawned processes to keep running until I shut it off... I got the os.popen meth

Re: Create new processes over telnet in XP

2007-03-23 Thread Godzilla
On Mar 24, 12:57 am, "Rob Wolfe" <[EMAIL PROTECTED]> wrote: > Godzilla wrote: > > Hello, > > > How do you create/spawn new processes in XP over telnet using python? > > I.e. I would like to create a new process and have it running in the > > backgroun

Re: Create new processes over telnet in XP

2007-03-23 Thread Godzilla
On Mar 24, 12:57 am, "Rob Wolfe" <[EMAIL PROTECTED]> wrote: > Godzilla wrote: > > Hello, > > > How do you create/spawn new processes in XP over telnet using python? > > I.e. I would like to create a new process and have it running in the > > backgroun

Queue get timeout parameter question

2007-04-09 Thread Godzilla
Dear all, I have been using the queue module for a multithreaded environment and things seem to work well... until we had a requirement for the application to be able to time sync to the server. With the time sync, it actually disorientated the timeout in the queue's get() method... e.g. get(item

Re: Queue get timeout parameter question

2007-04-09 Thread Godzilla
On Apr 10, 2:20 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > "Godzilla" <[EMAIL PROTECTED]> writes: > > After the time sync, say 15 seconds backward, the thread is sitting on > > that get() method for a total of 17 seconds. We can only sync the > >

Re: Queue get timeout parameter question

2007-04-10 Thread Godzilla
On Apr 10, 5:38 pm, Thomas Krüger <[EMAIL PROTECTED]> wrote: > Godzilla schrieb: > > > > > > > I have been using the queue module for a multithreaded environment and > > things seem to work well... until we had a requirement for the > > application to be

Anomaly in time.clock()

2008-03-17 Thread Godzilla
Hello, I have been reading a thread about time.clock() going backward, which is exactly what I am seeing... the thread generally leaning toward the problem is caused by multi-processor machines. But I am seeing it at a single CPU computer, and running XP. The error I am seeing between two very cl

Re: Anomaly in time.clock()

2008-03-18 Thread Godzilla
Thanks Roel. If there is a way to pass in the PRESERVE_PRECISION constant in the python time.clock library, that would be great. But I'm afraid it's not possible. I think I will change away from using time.clock() from now on... seems too edgy to me. Thank you for sharing your experience with me n

Re: Anomaly in time.clock()

2008-03-19 Thread Godzilla
Hi John, I am using time.clock to calculate the elapsed time. Below is an example of what I was trying to do: import time import thread class elapseTime: def __init__(self, name=''): self.name = name self.timeStamp = None self.checkTimeFlag = False thread.start_new_t

Re: Anomaly in time.clock()

2008-03-20 Thread Godzilla
Thanks Ross and John for your help. I apologise for the code I posted earlier not being the full picture of what I was trying to achieve. I had instantiated multiple instances of elapseTime class and each of them gets called approximately the same time. Below is the updated code: import time impo

Re: Anomaly in time.clock()

2008-03-20 Thread Godzilla
Just found out that win32api.GetTickCount() returns a tick count in milli-second since XP started. Not sure whether that is reliable. Anyone uses that for calculating elapsed time? -- http://mail.python.org/mailman/listinfo/python-list