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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 05 Jul 2002 06:36:33 -0700


Bugs item #577777, was opened at 2002-07-05 08: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: Open
Resolution: None
Priority: 5
Submitted By: Arthur Siegel (aj_siegel)
Assigned to: Nobody/Anonymous (nobody)
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'



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

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