This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in python's tempfile : returning wrong object type


On Wed, Feb 09, 2005 at 03:33:37PM -0500, Chris Herborth wrote:
> Nick Burch wrote:
> >With cygwin distributed python (2.4, dec 4 2004), there's a bug in
> >tempfile.
> >
> >[snip]
> 
> This isn't a Cygwin problem or feature.  The Windows-native Python 2.4
> (Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)]
> on win32) gives the same result.
> 
> I suspect the tempfile module's docs are misleading... it you look at
> the code, the returned object is an instance of
> tempfile._TemporaryFileWrapper.

We also have the following:

    $ python -V
    Python 2.4
    $ python /usr/lib/python2.4/test/regrtest.py test_tempfile
    test_tempfile
    1 test OK.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]