commit | a01e8474f605c5127a512c4ede2b094206db0570 | [log] [tgz] |
---|---|---|
author | William S Fulton <wsf@fultondesigns.co.uk> | Thu Feb 06 06:45:11 2020 +0000 |
committer | William S Fulton <wsf@fultondesigns.co.uk> | Thu Feb 06 07:08:16 2020 +0000 |
tree | d2bf78dd2feff77303a93af4585cbf83029f9142 | |
parent | a9731251a4234a390993208098cdcef9c358372d [diff] |
Fixing setting this in Python when using __slots__ Don't attempt to use the class's __dict__ for setting 'this' when a user has extended a class with: __slots__ = ['this']. Was segfaulting. Now we fall back to a simple PyObject_SetAttr if the usual approach to setting 'this' in __dict__ does not work. Closes #1673 Closes #1674