On Wed, Mar 05, 2008 at 11:44:51PM -0800, Chuck Esterbrook wrote:

> "Really hard to call C functions. This is a killer."

If you have a dll, ctypes is very easy to use.  There are also inline
solutions like weave.

> "No lexical scoping."

Python 3000 will have a "nonlocal" keyword that will help with this.

I don't generally find this a problem, but maybe I'm just working around
problems subconciously?  I don't know.

> "Useless lambdas."

Use a def.  Lambdas are going away, anyway.  It's not as convenient as an
anonymous function, but it's a pretty trivial difference.

def mymethod(self, blah):
    ...
    def anonymouse(blah):
        blah blah blah
    filter(anonymouse, mylist)

> "Hard (impossible?) to make cons-free structures. For this particular
> program, this is a killer. "

What about numpy arrays, or one of the inline C methods like weave?

Dave Cook

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to