nested scopes oddity/BUG
Robin Becker
robin at jessikat.fsnet.co.uk
Fri Jun 8 14:45:57 EDT 2001
When I try to run this script
#####################
from __future__ import nested_scopes
def gen(B):
class W(B):
__base=B
def __init__(self):
B.__init__(self)
return W
class C:
def __init__(self):
pass
#####################
I get
Fatal Python error: non-string found in code slot
abnormal program termination
this with 2.1 on Win9x. It works fine and dandy if I remove the spurious
__base=B
--
Robin Becker
More information about the Python-list
mailing list