I'm updating IronPython to match CPython's behavior w/ for this issue:
http://bugs.python.org/issue1683368
One thing that I've noticed is that this doesn't seem to be respecting the
deletion of attributes (on 2.6.2):
class x(object): pass
x().__init__(2,3,4) # throws - seems right
class x(object):
def __new__(cls, *args):
return object.__new__(cls)
x().__init__(2,3,4) # doesn't throw - seems right
del x.__new__
x().__init__(2,3,4) # doesn't throw - I would expect this to throw.
Is this just a bug in CPython not updating whether __new__ has been defined?
Or is there something that makes this behavior expected which I'm just missing?
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com