main
main copied to clipboard
TypeError expected when creating a class derived from multiple bases with __slots__ defined
class A(object):
** slots ** = ['a', 'b']
class B(object):
** slots ** = ['a', 'c']
class C(A, B): pass
expected: TypeError: Error when calling the metaclass bases
multiple bases have instance lay-out conflict
Work Item Details
Original CodePlex Issue: Issue 23898 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 28, 2009 at 12:06 AM Reported by: dfugate Updated on: Feb 22, 2013 at 2:12 AM Updated by: jdhardy Custom value: Reported internally at Microsoft. Test: test_slots.py CreatedDate: 1/4/2008 NewInternalID: 409717 OldInternalID: 364423 AreaPath: IronPython
Plaintext Attachments
On 2011-01-28 06:19:13 UTC, rjnienaber commented:
This seems fixed in 2.6.2 and 2.7b1 on .NET 4.0.30319. I think the error message just needs to be the same as Python's one: python testcase-23898.py
Traceback (most recent call last):
File "testcase-23898.py", line 5, in
ipy26 testcase-23898.py
Traceback (most recent call last):
File "testcase-23898.py", line 5, in