Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 10 Feb 2005 07:44:48 -0500 From: Jason Tishler To: cygwin AT cygwin DOT com Subject: Re: Bug in python's tempfile : returning wrong object type Message-ID: <20050210124448.GC4084@tishler.net> Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-IsSubscribed: yes 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/