[PyQt] [SIP] How to reasonably implement writable global variables?
Casper Ti. Vector
caspervector at gmail.com
Mon Jul 8 10:54:37 BST 2013
Thanks, I will stick to use class instances when doing these things to
make everything correct.
On Mon, Jul 08, 2013 at 10:48:37AM +0100, Phil Thompson wrote:
> Again, it's just the way Python works. The binding is implemented by a
> descriptor stored in the class's dict. When you "assign" a value to
> test.Test.x you are replacing the descriptor with the value, so nothing
> will work properly after that.
--
My current OpenPGP key:
4096R/0xE18262B5D9BF213A (expires: 2017.1.1)
D69C 1828 2BF2 755D C383 D7B2 E182 62B5 D9BF 213A
More information about the PyQt
mailing list