[Python-Dev] Make it an error to use __slots__ with classicclasses

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Mon Aug 11 10:30:11 EDT 2003


> From: Terence Way [mailto:terry at wayforward.net]
> 
> A brief test shows that PyChecker checks for this, however:
> Warnings...
> 
> testslot.py:2: Using __slots__ in classic class foo has no effect, 
> consider deriving from object

That seems sufficient to me. I think the right approach is educating people to use PyChecker.

Tim Delaney



More information about the Python-Dev mailing list