Re: [PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-08 Thread Casper Ti. Vector
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

Re: [PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-05 Thread Casper Ti. Vector
[Shamelessly bumping this post in attempt to resolve this issue... Sorry for the disturbance; won't bump again even without reply :(] On Thu, Jul 04, 2013 at 06:21:48PM +0800, Casper Ti. Vector wrote: [Mistakenly sent to the author instead of the mail list, now re-sent. Plus, perhaps Phil can

Re: [PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-04 Thread Casper Ti. Vector
[Mistakenly sent to the author instead of the mail list, now re-sent. Plus, perhaps Phil can set the `Reply-To:' flag in the configuration of the mail list program so that replies are by default sent to the list?] Again, I found that static members of classes are read-only when used from the

Re: [PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-04 Thread Shriramana Sharma
On Thu, Jul 4, 2013 at 3:51 PM, Casper Ti. Vector caspervec...@gmail.com wrote: `Reply-To:' flag in the configuration of the mail list program so that replies are by default sent to the list?] There are differing opinions on whether Reply-To munging should be done or not. Many support it, many

Re: [PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-03 Thread Phil Thompson
On Wed, 3 Jul 2013 00:28:59 +0800, Casper Ti. Vector caspervec...@gmail.com wrote: Hello list, I am a newcomer to SIP (only one day experience), and please tell me if I make a mistake. Thanks :) I found it quite hard to make read-write interface for (module-wide) global variables (other

[PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-02 Thread Casper Ti. Vector
Hello list, I am a newcomer to SIP (only one day experience), and please tell me if I make a mistake. Thanks :) I found it quite hard to make read-write interface for (module-wide) global variables (other than explicitly writing C/C++ functions to get and set them). For example: test.sip: