Jonathan Wright wrote: > Should the wrapper inherit types.FileType? No. Code assuming that the result from tempfile.TemporaryFile is a file object is broken - you are only guaranteed a file-like object. Applications should not use isinstance to determine whether something is a file-like object. Regards, Martin