Re: Q about assignment and references

2010-04-07 Thread jdbosmaus
Thanks to all for the informative answers. You made me realize this is a wxPython issue. I have to say, wxPython seems useful, and I'm glad it is available - but it doesn't have the gentlest of learning curves. -- http://mail.python.org/mailman/listinfo/python-list

Re: Q about assignment and references

2010-04-06 Thread Alf P. Steinbach
* jdbosmaus: Pretty new to Python, but I thought I understood what is meant by "an assignment is a reference." Until I tried to understand this. Here is a (fragment of an) event handler for a group of three wxPython toggle buttons. The idea is to change the appearance of the label of the button

Re: Q about assignment and references

2010-04-06 Thread Stephen Hansen
On 2010-04-06 19:51:07 -0700, jdbosmaus said: Pretty new to Python, but I thought I understood what is meant by "an assignment is a reference." An assignment isn't really a reference, it binds a name to an object. Not quite the same thing. But, what's really the problem here is -- wxPython i

Re: Q about assignment and references

2010-04-06 Thread Chris Rebert
On Tue, Apr 6, 2010 at 7:51 PM, jdbosmaus wrote: > Pretty new to Python, but I thought I understood what is meant by "an > assignment is a reference." I recommend the effbot's treatment of the calling semantics: http://effbot.org/zone/call-by-object.htm ...But I don't think that's the issue here

Q about assignment and references

2010-04-06 Thread jdbosmaus
Pretty new to Python, but I thought I understood what is meant by "an assignment is a reference." Until I tried to understand this. Here is a (fragment of an) event handler for a group of three wxPython toggle buttons. The idea is to change the appearance of the label of the button that was press