Re: how to replace some methods with instrumented ones

2015-06-26 Thread MRAB
On 2015-06-26 18:12, georgeryo...@gmail.com wrote: [python 2.7, linux] I have a python app. I cannot modify the file. But I can import it and mess with it. I need to perform brief tasks before and after some of the member functions. I'd like to do this in as clear and maintainable way as poss

Re: how to replace some methods with instrumented ones

2015-06-26 Thread Peter Otten
georgeryo...@gmail.com wrote: > [python 2.7, linux] > I have a python app. I cannot modify the file. But I can import it and > mess with it. I need to perform brief tasks before and after some of the > member functions. > I'd like to do this in as clear and maintainable way as possible (no third

how to replace some methods with instrumented ones

2015-06-26 Thread georgeryoung
[python 2.7, linux] I have a python app. I cannot modify the file. But I can import it and mess with it. I need to perform brief tasks before and after some of the member functions. I'd like to do this in as clear and maintainable way as possible (no third party imports). Here's what I have