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

Chris Angelico rosuav at gmail.com
Wed Aug 3 23:00:34 EDT 2016


On Thu, Aug 4, 2016 at 12:34 PM, Lawrence D’Oliveiro
<lawrencedo99 at gmail.com> wrote:
> On Thursday, July 21, 2016 at 2:29:53 PM UTC+12, Chris Angelico wrote:
>
>> Using __slots__ basically takes your object down to the level of a
>> Java one.
>
> Is Java like a bogeyman you use to scare people with if they don’t write Python code the way you like it?

LOL! Not really; it's just that Java's objects are way less featured
than Python's.

ChrisA



More information about the Python-list mailing list