[Pythonmac-SIG] [ann] appscript 0.4.0 released

has hengist.podd at virgin.net
Sat Feb 14 16:02:16 EST 2004


Chris Ryland wrote:

>>>items.test(lambda: its.size > 12 and its.color = [0, 0, 0]))
>>>
>>>would be great! And "all" you have to do is to walk the AST for the lambda
>>
>>Quite neat. One question though: how would you tell the difference 
>>between these and ordinary lambdas?
>
>Well, as Bob has pointed out, this won't work, unless you start from 
>the bytecodes.
>
>It would be a normal lambda passed to your function, which would 
>interpret the bytecodes with completely different semantics (and 
>limited to what could be compiled to AppleEvent tests).
>
>I suppose I should stop blathering about it if I'm not willing to do 
>the work...

Ah well; can't win 'em all. Back to the ol' drawing board then...

Cheers,

has
-- 
http://freespace.virgin.net/hamish.sanderson/



More information about the Pythonmac-SIG mailing list