Question about Stackless Python

2008-07-13 Thread Fisher
Hi, I have some question about Stackless Python. What is main tasklet? Usually we call stackless.run() to mainloop all the schedule tasklets. But if we just call sometaklet.channel.send(None) in main thread after all the necessary tasklets are created, what would happen? Thanks in adva

Re: what's wrong here? (search script)

2006-07-07 Thread Michael Fisher
Brendan Fay wrote: > I figured it out. Is there any way to delete your own posts? > > Brendan Fay wrote: >> Dear Someone: >> >> I have written a script that accesses the googleAPI through >> pygoogle and saves each of the ten documents as a .txt file by using a >> specific function for each

OS X install confusion

2007-06-14 Thread John Fisher
Hi Groupies, I have an Intel Macbook running OS X 10.4. It came installed with Python 2.3.5. I have since installed MacPython with version 2.4.4, cool. When I open a bash terminal session and type python, it brings up version 2.3.5. If I type IDLE it brings up version 2.4.4. My question: what

Re: OS X install confusion

2007-06-14 Thread John Fisher
Ted <[EMAIL PROTECTED]> wrote: > On Jun 14, 1:31 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: > > John Fisher wrote: > > > Hi Groupies, > > > > > I have an Intel Macbook running OS X 10.4. > > > > > It came installed with Python 2.3.

converting 64-bit fixed-point to float

2007-07-20 Thread John Fisher
Hi Group, troubles with converting signed 32.32, little-endian, 2's complement back to floating point. I have been trying to brew it myself. I am running Python 2.5 on a Mac. Here is the C-code I have been trying to leverage: double FPuint8ArrayToFPDouble(uint8 *buffer, int startIndex) { uin

Re: converting 64-bit fixed-point to float

2007-07-21 Thread John Fisher
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Jul 20, 5:59 pm, [EMAIL PROTECTED] (John Fisher) wrote: > > Hi Group, > > > > troubles with converting signed 32.32, little-endian, 2's complement > > back to floating point. I have been trying to brew it my

(sort of) deterministic timing in Python

2007-08-13 Thread John Fisher
I am working on a framework for data acquisition in Python 2.5, am trying to get a structure going more like this: mark start time start event event finishes count time until next interval start second event… rather than this: start event event finishes sleep for interval start

Structure of packages

2008-01-09 Thread Ben Fisher
I am trying to learn the best way to do intra-package references. My package looks like this: PackageName __init__.py /a __init__.py a.py ... /b __init__.py ... /c __init__.py ... /d __init__.py ... I have l

Re: Another dumb scope question for a closure.

2008-01-09 Thread Ben Fisher
One way to get this to work is: def inc(jj): def dummy(jj = jj): jj = jj + 1 return jj return dummy h = inc(33) print h() It's not very pretty though, especially when you have many variables you want to have in the inner scope. -Ben On 1/9/08, Mi

Re: print >> to a derived file

2008-01-15 Thread Ben Fisher
This might have something to do with the class being derived from file. I've written it so that it doesn't derive from file, and it works. class File_and_console(): def __init__(self, *args): self.fileobj = open(*args) def write(self, s): self.fileo

keyboard "interrupt"

2008-03-18 Thread John Fisher
Hi Group, I have been absent a while, mainly because I have been getting better at figuring out my own Python problems. But not this one... I have a timed loop performing certain tasks until a total period of time has elapsed. I would like to be able to interrupt the loop or set various flags dur

Re: keyboard "interrupt"

2008-03-27 Thread John Fisher
Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > John Fisher wrote: > > Hi Group, > > Hi John > > > I have been absent a while, mainly because I have been getting better at > > figuring out my own Python problems. But not this one... > > > > I ha

Problems with running Python CGI Scripts

2008-09-03 Thread Edward FISHER
to see what happens then follow this link: http://www.fisherphotographics.co.uk/testhtml1.htm The python file has come directly from the example so i must me doing something wrong. I have all the correct permissions etc Thanks very much Ed Fisher -- http://mail.python.org/mailman/listinfo/python-list