The following patch ldo-stat-result.patch.txt reworks Context.stat() and File.fstat() to return the same type of namedtuples as os.stat() does. This allows for symbolic names to refer to the fields, while remaining backward-compatible with existing code that expects a regular tuple.