can't add variables to instances of built-in classes

Peter Otten __peter__ at web.de
Wed Jul 20 05:15:58 EDT 2016


Lawrence D’Oliveiro wrote:

> On Wednesday, July 20, 2016 at 7:26:36 PM UTC+12, Peter Otten wrote:
> 
>> pylint can detect candidates for accidental attribute creation:
> 
> And __slots__ will prevent them outright.

And attributes added intentionally.




More information about the Python-list mailing list