[ python-Bugs-1099516 ] tempfile files not types.FileType

SourceForge.net noreply at sourceforge.net
Mon Jan 10 16:29:59 CET 2005


Bugs item #1099516, was opened at 2005-01-10 16:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1099516&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Frans van Nieuwenhoven (vannieuwenhoven)
Assigned to: Nobody/Anonymous (nobody)
Summary: tempfile files not types.FileType

Initial Comment:
a temporary file created with the tempfile module is
not recognized as a types.FileType

testcase:

import types
import tempfile

# this will return False (I think it should return True)
isinstance(tempfile.TemporaryFile(), types.FileType)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1099516&group_id=5470


More information about the Python-bugs-list mailing list