Skip to content

Loading…

Constructor arguments not passed to __new__ #302

Open
pyjsorg opened this Issue · 2 comments

1 participant

@pyjsorg

I'm adding a libtest and a patch for this bug.

The issue is:

class OtherClass3(object):
def new(cls, x, y):
val = object.new(cls)
val.x, val.y = x,y
return val

o = Otherclass3(1,2)
o.y #should be 2, but is undefined

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=417 (June 09, 2010 07:45:12)

@pyjsorg

From Jameson....@gmail.com on June 09, 2010 08:22:21:
proposed fix in homunq/bug/pyjs.js/414-superclass-__new_ branch

@pyjsorg

From luke.lei...@gmail.com on June 18, 2010 18:27:43:
does it work? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.