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.

Author pitrou
Recipients Claudiu.Popa, akuchling, benjamin.peterson, gvanrossum, pitrou, serhiy.storchaka, vstinner
Date 2013-10-03.22:13:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380838397.2507.3.camel@fsol>
In-reply-to <1380838353.04.0.844451567844.issue19146@psf.upfronthosting.co.za>
Content
> Well this is what I get:
> 
> $ python3
> Python 3.4.0a1+ (default:41de6f0e62fd+, Aug 27 2013, 18:44:07)
> [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from collections import namedtuple
> from collections import namedtuple
> >>> A = namedtuple('A', 'foo bar')
> A = namedtuple('A', 'foo bar')
> >>> class B(A):
> class B(A):
> ...   __slots__ = ['baz']
>   __slots__ = ['baz']
> ... 
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: nonempty __slots__ not supported for subtype of 'A'

Ah, ok, you're right. I only use empty __slots__ :-)
History
Date User Action Args
2013-10-03 22:13:21pitrousetrecipients: + pitrou, gvanrossum, akuchling, vstinner, benjamin.peterson, Claudiu.Popa, serhiy.storchaka
2013-10-03 22:13:21pitroulinkissue19146 messages
2013-10-03 22:13:20pitroucreate