Charles-François Natali <neolo...@free.fr> added the comment:

Thanks for the report and patch.

I'm making Vinay nosy, as he's the logging expert.

A couple remarks:
- it would be nice to add your testcase to the logging tests 
(Lib/test/test_logging.py)
- I think you could probably save the whole fstat() result (instead of st_dev 
and st_inode): this would allow you to use os.pathsamestat() to check whether 
we're still refering to the same file, and it could maybe be useful someday 
(maybe use st_mtime)
- typo: "existance" -> "existence"
- I see you're catching OSError when calling fstat(): however, I don't see what 
error could be raised apart from EBADF (if the FD is closed, then it's likely a 
bug that shouldn't be masked, and it will blow up on the next write()), or I/O 
errors, that shouldn't be silenced

----------
nosy: +neologix, vinay.sajip
versions: +Python 3.2, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14632>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to