Re: [Pythonmac-SIG] pythonw stay open

2005-12-06 Thread Nicholas Riley
On Wed, Dec 07, 2005 at 06:18:49AM +, Ryan Wilcox wrote: > Hello all, > > I have a bunch of CGIs that make use of pythonw (+cgiwrap) to allow me > to send AppleEvents (via appscript) to applications on the web server > machine. > > Everytime I hit one of these CGIs, pythonw launches a Pyt

[Pythonmac-SIG] pythonw stay open

2005-12-06 Thread Ryan Wilcox
Hello all, I have a bunch of CGIs that make use of pythonw (+cgiwrap) to allow me to send AppleEvents (via appscript) to applications on the web server machine. Everytime I hit one of these CGIs, pythonw launches a Python application (which makes sense). While this machine is under heavy-is

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-06 Thread David M. Cooke
On Tue, Dec 06, 2005 at 05:41:21PM -0500, Louis Pecora wrote: > Rob Managan wrote: > > > PS the command to switch to gcc 3.3 seems to be > > > > 'sudo gcc_select 3.3' > > > > Not sure if you had to do this with scipy or not. > > H... I don't know about this one. What has this to do with Scip

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-06 Thread Louis Pecora
Rob Managan wrote: > PS the command to switch to gcc 3.3 seems to be > > 'sudo gcc_select 3.3' > > Not sure if you had to do this with scipy or not. H... I don't know about this one. What has this to do with Scipy? -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-06 Thread Louis Pecora
Rob Managan wrote: > [cut] > > [mangrove:~/Documents/My_Downloads/swig-1.3.27] managan% make > make all-am > depbase=`echo CParse/cscanner.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \ > if gcc -DHAVE_CONFIG_H -I../Source/Include -I../Source/CParse > -I../Source/Include -I../Source/DOH -I../Sou

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-06 Thread Jeffrey E. Forcier
Not having SWIG installed myself, I know that there's often issues with different versions of GCC on OS X...you might want to verify in the SWIG install docs (if they exist) and make sure your version of GCC doesn't have some odd incompatibility with the SWIG source. Only a guess, but still

[Pythonmac-SIG] Converting to AppleEvents

2005-12-06 Thread Brian Ray
Hi All: I have an AppleScript I am calling with os.system(): with timeout of 3600 seconds tell application "MyApp" reload startup end tell end timeout I am interested in various methods to convert this to AppleEvents. Any

[Pythonmac-SIG] SWIG Install problem.

2005-12-06 Thread Louis Pecora
I'm trying to install the SWIG The README says to treat Mac OS X like a Unix (makes sense) and do the following, % ./configure % make % make install ./configure seemed to run ok. No errors that I could see in the long print out. When I try the first make I get, louispec% mak

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
[EMAIL PROTECTED] wrote: > Pyrex will make the experience of moving from Python to C modules > much more pleasant. You can start with a pure Python version and then > migrate line by line to C written in near-Python syntax. It also > takes care of all the boring bookkeeping, and it is portab

Re: [Pythonmac-SIG] Fwd: Preferred IDE

2005-12-06 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Chris Barker" <[EMAIL PROTECTED]> wrote: > Jeffrey E. Forcier wrote: > >> I also seem to remember BBEdit not having that > >>issue for some reason, but it wasn't worth the price tag for that > >>one tweak. > > >> TextWrangler/BBEdit is an *excellent* editor,

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread konrad . hinsen
On 06.12.2005, at 18:07, Louis Pecora wrote: > I know about the profiling and find the bottlenecks approach, but then > the choices of what to do are not clear. I have in the past written a > few C modules and turned them into importable Python modules, but that > was really time consuming and fr

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Dethe Elza
On Tue 2005-12-06, at Tue 2005-12-06T10:08 AM, Christopher Barker wrote: [Great list snipped] > Have I got them all? I hope this helps. Ctypes allows you to call C code from Python without an extension, but is fairly hairy to write. One Mac-specific way is to expose the C code via Objective

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Christopher Barker wrote: > Louis Pecora wrote: > >> Christopher Barker wrote: > > >> Yeow, Chris, you really have a lot to say about what I'm interested >> in. Thanks very much! > > > That's because I'm in the same boat. I keep bouncing back and forth > between the approaches, because it's har

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Nicholas Riley wrote: > Perhaps you can describe some of the bottlenecks you're experiencing, > >or post some code fragments? The lsprof profiler has worked for me: > > > > Thanks for the pointer, Nick. I have no particular example righ

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Nicholas Riley
On Tue, Dec 06, 2005 at 12:07:26PM -0500, Louis Pecora wrote: > I am seeking opinions on the best approaches to speed up Python on my > Mac (OS X 10.3.9). > > I know about the profiling and find the bottlenecks approach, but then > the choices of what to do are not clear. I have in the past wri

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Christopher Barker
Louis Pecora wrote: >>Although this will not help you know, I have been told, Pycho >> will run on the Intel Chip. > Thanks for the tips, Brian. Wish I had that Intel Chip Mac Powerbook > now. :-) Even so, Psyco doesn't understand NumPy arrays, which I hope you

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Kevin Dangoor wrote: > Earlier in the year, Phillip Eby was optimizing his RuleDispatch > >package. There were many tweaks he was able to do *completely in >Python* that resulted in a decent speedup. Here's one of his posting >on the topic: > >http://dirtsimple.org/2005/02/optimization-surprises.h

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Kevin Dangoor
> On Dec 6, 2005, at 11:07 AM, Louis Pecora wrote: > > > I see there are many other approaches (SWIG, Pyrex, Psyco -- some may > > not be available on the Mac), so I thought I would start here to ask > > what people in this email list use and recommend. Earlier in the year, Phillip Eby was optimiz

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Brian Ray
On Dec 6, 2005, at 11:39 AM, Louis Pecora wrote: Thanks for the tips, Brian.  Wish I had that Intel Chip Mac Powerbook  now.  :-) BTW, I think you get a loner from Apple if your a transition developer. I have seen one although, I do not know the details.http://brianray.chipy.org

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Brian Ray wrote: > Rewriting as "C" extensions is a good approach. But as you already > said, it may be time consuming. Maybe break the program in small > chunks to see where the bottle neck really exists. If your looking for > the culprit, I would recommend taking a look at hotshot >

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Brian Ray
On Dec 6, 2005, at 11:07 AM, Louis Pecora wrote:I see there are many other approaches (SWIG, Pyrex, Psyco -- some may  not be available on the Mac), so I thought I would start here to ask  what people in this email list use and recommend.  Rewriting as "C" extensions is a good approach. But as you

[Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
I am seeking opinions on the best approaches to speed up Python on my Mac (OS X 10.3.9). I know about the profiling and find the bottlenecks approach, but then the choices of what to do are not clear. I have in the past written a few C modules and turned them into importable Python modules, bu

Re: [Pythonmac-SIG] F2PY, F90, and Mac os x Tiger: linking problem

2005-12-06 Thread Bob Ippolito
On Dec 5, 2005, at 7:51 PM, Louis Wicker wrote: > Back in April I upgraded to Tiger, and I should have known better. > > I cannot get any f90/5 programs to link with f2py (except that I > have not tried the g95/gfortran compilers). > > This problem started when I "upgraded" to Tiger from 10.3.9

[Pythonmac-SIG] F2PY, F90, and Mac os x Tiger: linking problem

2005-12-06 Thread Louis Wicker
All:Back in April I upgraded to Tiger, and I should have known better. I cannot get any f90/5 programs to link with f2py (except that I have not tried the g95/gfortran compilers).This problem started when I "upgraded" to Tiger from 10.3.9.I thought I would ask over to here to see if anyone has any