Re: implementing callback function

2007-05-31 Thread 7stud
Ron Provost wrote: > class X( object ): >fn = None >@staticmethod >def callX( n ): > return X.fn( n ) > Now, the following global stuff represents my higher-level routines: > def fn_impl( n ): # my callback >return n + 1 > X.fn = fn_impl # register my callback > No

Re: implementing callback function

2007-05-31 Thread Steve Holden
Ron Provost wrote: > Within an application I'm working on. The app is written in multiple > layers such that lower layers provided services to higher layers. > Ideally in such an architecture, the high-level objects know about > lower-level ones, but lower-level objects know nothing about the

implementing callback function

2007-05-31 Thread Ron Provost
Within an application I'm working on. The app is written in multiple layers such that lower layers provided services to higher layers. Ideally in such an architecture, the high-level objects know about lower-level ones, but lower-level objects know nothing about the higher-level ones. There's