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
> 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
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
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
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
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
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
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)