This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: System Error with slots and multi-inh
Type: Stage:
Components: Interpreter Core Versions: Python 2.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: aj_siegel, gvanrossum
Priority: normal Keywords:

Created on 2002-07-05 13:36 by aj_siegel, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg11489 - (view) Author: Arthur Siegel (aj_siegel) Date: 2002-07-05 13:36
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'

msg11490 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-08-12 02:28
Logged In: YES 
user_id=6380

Yes, I'm sure this is a dup of 575229. Please refer to that
one for resolution.
History
Date User Action Args
2022-04-10 16:05:29adminsetgithub: 36853
2002-07-05 13:36:33aj_siegelcreate