[Python-bugs-list] [ python-Bugs-577777 ] System Error with slots and multi-inh

noreply@sourceforge.net noreply@sourceforge.net
Sun, 11 Aug 2002 19:28:18 -0700


Bugs item #577777, was opened at 2002-07-05 09:36
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=577777&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2.1
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Arthur Siegel (aj_siegel)
Assigned to: Guido van Rossum (gvanrossum)
Summary: System Error with slots and multi-inh

Initial Comment:
May be just another version of report 575229.

>>> class A(object):
 __slots__="a"
>>> class B(object):
 pass
>>> class C(A,B):
 __slots__=("b")
>>> c=C()
>>> c.a=1
>>> c.b=2
>>> c.c=3
Traceback (most recent call last):
  File "<pyshell#12>", line 1, in ?
    c.c=3
SystemError: C:\Code\221\Objects\dictobject.c:511: 
bad argument to internal function

If B is a classic class and I do the same multi-
inheritance I get the expected error message:

AttributeError: 'C' object has no attribute 'c'



----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-08-11 22:28

Message:
Logged In: YES 
user_id=6380

Yes, I'm sure this is a dup of 575229. Please refer to that
one for resolution.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=577777&group_id=5470