how to make my log more flexible?
nobody
nobody at nowhere.near.org
Mon Oct 20 04:46:08 EDT 2003
Exercise it!
"Frank Zheng" <hust_zxq524 at 263.net> wrote in message
news:bmvk2k$1too$1 at mail.cn99.com...
> Hi, all:
> I have a GUI program , And i add log in my program to know what
happened
> at run time.
>
> for example:
> def fun(log):
> ...#do some sth
> log.write('do some sth')
>
> at run time:
> fun(open('mylogfile.log','w'))
>
> Now, I want do some unit test first, my question is what param to be
passed
> to 'fun' can make 'log.write(...)' work as 'print'?
>
> Thanks in advance!
>
>
> Frank
>
>
>
>
>
>
>
>
>
More information about the Python-list
mailing list