can't add variables to instances of built-in classes
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Mon Jul 18 22:53:59 EDT 2016
On Tuesday, July 19, 2016 at 11:12:52 AM UTC+12, bream... at gmail.com wrote:
>
> On Monday, July 18, 2016 at 10:48:15 PM UTC+1, Lawrence D’Oliveiro wrote:
>>
>> <https://github.com/ldo/qahirah>
>> When you have lots of read/write properties, I find __slots__ to be a good
>> idea.
>
> Please explain why, thank you.
I was trying something like
ctx.dashes = ((0.1, 0.03, 0.03, 0.03), 0)
and wondering why it wasn’t working...
More information about the Python-list
mailing list