Re: javascript to python

2008-10-03 Thread Bruno Desthuilliers
lkcl a écrit : On Oct 3, 10:29 am, Bruno Desthuilliers wrote: lkcl a écrit :> On Oct 2, 7:42 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: lkcl a écrit : And as far as I'm concerned, the point is exactly here : it's doing "a little bit more" than the original code. yeah, i know. a

Re: javascript to python

2008-10-03 Thread lkcl
> so, if i do this: > > d = dataListener() > e = dataListener() > > d.data = "fred" > > print f.data duh, duh - that should be print e.data :) -- http://mail.python.org/mailman/listinfo/python-list

Re: javascript to python

2008-10-03 Thread lkcl
On Oct 3, 10:29 am, Bruno Desthuilliers wrote: > lkcl a écrit :> On Oct 2, 7:42 pm, Bruno Desthuilliers > > <[EMAIL PROTECTED]> wrote: > >> lkcl a écrit : > Not 'mine' - I'm not the OP. whoops, yes - i missed that. sorry! > And as far as I'm concerned, the point is > exactly here : it's doing

Re: javascript to python

2008-10-03 Thread Bruno Desthuilliers
lkcl a écrit : On Oct 2, 7:42 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: lkcl a écrit : (snip) for fits and giggles, compile the above python using pyjs.py, the python-to-javascript compiler (seehttp://pyjamas.sf.net) and compare the resultant javascript to your original code-fragment

Re: javascript to python

2008-10-03 Thread lkcl
On Oct 2, 7:42 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > lkcl a écrit : > > > > > On Oct 2, 5:54 pm, Joe Hrbek <[EMAIL PROTECTED]> wrote: > >> Could someone help me translate to something that would close to it in > >> python? The anonymous functions are giving me problems. > > > class

Re: javascript to python

2008-10-02 Thread Bruno Desthuilliers
lkcl a écrit : On Oct 2, 5:54 pm, Joe Hrbek <[EMAIL PROTECTED]> wrote: Could someone help me translate to something that would close to it in python? The anonymous functions are giving me problems. class dataListener: def __init__(self): data = "" def onStartRequest(self, req

Re: javascript to python

2008-10-02 Thread Bruno Desthuilliers
Joe Hrbek a écrit : Could someone help me translate to something that would close to it in python? The anonymous functions are giving me problems. var dataListener = { data : "", onStartRequest: function(request, context){}, onStopRequest: function(request, context, status

Re: javascript to python

2008-10-02 Thread lkcl
On Oct 2, 5:54 pm, Joe Hrbek <[EMAIL PROTECTED]> wrote: > Could someone help me translate to something that would close to it in > python? The anonymous functions are giving me problems. class dataListener: def __init__(self): data = "" def onStartRequest(self, request, context)