Message1534
The dct object that gets passed to a metaclass' __init__ method seems to point to the actual __dict__ of the class beeing created. I guess it should be a copy?
The following code breaks with a KeyError since delattr removes the attribute from dct.
def __init__(cls, name, bases, dct):
# ...snip
dctnames = dct.keys()
if name.endswith("__doc"):
if hasattr(cls, name):
delattr(cls, name)
val = dct[name]
# ...snip |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:46 | admin | link | issue1676293 messages |
2008-02-20 17:17:46 | admin | create | |
|