[ python-Bugs-1776696 ] tempfile.TemporaryFile differs between platforms
SourceForge.net
noreply at sourceforge.net
Sun Aug 19 14:54:05 CEST 2007
Bugs item #1776696, was opened at 2007-08-18 04:31
Message generated for change (Comment added) made by tiran
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1776696&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kenneth Loafman (loafman)
Assigned to: Nobody/Anonymous (nobody)
Summary: tempfile.TemporaryFile differs between platforms
Initial Comment:
When running the following:
import tempfile
foo=tempfile.TemporaryFile
type(foo)
Linux returns:
<type 'file'>
Windows and Cygwin return:
<type 'instance'>
It should return the same across platforms, or return an undefined indication if not possible.
----------------------------------------------------------------------
Comment By: Christian Heimes (tiran)
Date: 2007-08-19 14:54
Message:
Logged In: YES
user_id=560817
Originator: NO
It's not a bug. The interface for both types are equal. Python doesn't
guarantee that it uses the same types on every platform. It just guarantees
that the behavior of the objects are the same on both platforms. Please
study tempfile.py for detailed information.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1776696&group_id=5470
More information about the Python-bugs-list
mailing list