Serhiy Storchaka added the comment: Restored first os.fstat() (however it now is redundant) and addressed most other Victor's comments.
In general I prefer EAFP over BDFL, and often "except AttributeError" looks better to me than getattr(). ---------- Added file: http://bugs.python.org/file38653/pyio_fileio_8.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21859> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com