[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: patch applied; r67299 -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- keywords: -needs review stage: patch review -> commit review ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: The patch looks good to me. -- nosy: +brett.cannon ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: Yet another release blocker for Barry. Good work, Amaury. -- assignee: -> barry components: -Build nosy: +barry, christian.heimes priority: -> release blocker resolution: -> accepted stage: -> patch review

[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: In a running frame, f->f_localplus is a vector composed of: - the values of the local variables - the cells containing variables used in a nested closure. - the values of free variables defined in a outer scope. super() needs to access

[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread kai zhu
kai zhu <[EMAIL PROTECTED]> added the comment: oops, sorry reprinted the same code ^^;;; ignore previous post, & use this: (sorry again for mucking up this page) # super_ok.py class A(object): def foo(self): return super() # comment the closure below

[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread kai zhu
kai zhu <[EMAIL PROTECTED]> added the comment: same thing, except w/ closure commented out (& everything is happy) # super_ok.py class A(object): def foo(self): return super() # comment the closure below # & SystemError goes away # lambda: self

[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread kai zhu
kai zhu <[EMAIL PROTECTED]> added the comment: here's a printout of bytecode from script >>> >>> s = open("super_closure.py").read() >>> c = compile(s, "super_closure.py", "exec") >>> t = py3to2.codetree(c) >>> print( t ) codetree( co_argcount = 0, co_cellvars = (), co_code = b'G

[issue4360] SystemError when method has both super() & closure

2008-11-20 Thread kai zhu
New submission from kai zhu <[EMAIL PROTECTED]>: # super_closure.py class A(object): def foo(self): return super() # remove the closure below # & SystemError goes away ??? lambda: self A().foo() when run on 3.0rc