Should mutter() flush the log file?
John Arbash Meinel
john at arbash-meinel.com
Fri Jan 6 04:31:03 GMT 2006
Martin Pool wrote:
> On Thu, 2006-01-05 at 20:34 -0600, John Arbash Meinel wrote:
>
>>
>>I don't think it really matters. But since I was testing that mutter()
>>actually did write something, I needed it to flush before I read what
>>it
>>had written.
>>
>>I was just wondering since you might be trying to track down a bug
>>using mutter(), and python is crashing before it flushes the buffer.
>
>
> My understanding was that setting buffering=1 (line buffering) was
> pretty much equivalent to flushing after each line.
>
That doesn't seem to be true. At least I have a test case which proves
it. But it might depend on platform and phase of the moon.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060105/deecc69f/attachment.pgp
More information about the bazaar
mailing list