Re: Python callback functions and static methods

2009-01-05 Thread Steve Holden
Joris wrote: > Hello, > > I'm trying to implement callback functionality in a static class. > > I have a feeling that I'm doing something against the Python philosophy > and not some programming error but any help would be appreciated. > > First, a piece of proof-of-concept-code: > * > class Dat

Re: Python callback functions and static methods

2009-01-05 Thread Jean-Paul Calderone
On Mon, 5 Jan 2009 18:00:37 +0100, Joris wrote: Hello, I'm trying to implement callback functionality in a static class. I have a feeling that I'm doing something against the Python philosophy and not some programming error but any help would be appreciated. Others have explained what was w

Re: Python callback functions and static methods

2009-01-05 Thread Chris Rebert
On Mon, Jan 5, 2009 at 9:00 AM, Joris wrote: > Hello, > > I'm trying to implement callback functionality in a static class. > > I have a feeling that I'm doing something against the Python philosophy and > not some programming error but any help would be appreciated. > > First, a piece of proof-of

Re: Python callback functions and static methods

2009-01-05 Thread MRAB
Joris wrote: Hello, I'm trying to implement callback functionality in a static class. I have a feeling that I'm doing something against the Python philosophy and not some programming error but any help would be appreciated. First, a piece of proof-of-concept-code: * class Data: callfunc

Python callback functions and static methods

2009-01-05 Thread Joris
Hello, I'm trying to implement callback functionality in a static class. I have a feeling that I'm doing something against the Python philosophy and not some programming error but any help would be appreciated. First, a piece of proof-of-concept-code: * class Data: callfunc = None @sta