<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/tempfile.py, branch v2.3.6</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/tempfile.py?h=v2.3.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/tempfile.py?h=v2.3.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-11-02T18:11:53Z</updated>
<entry>
<title>fixed wrong error checking on fcntl call as per SF bug # 821896</title>
<updated>2003-11-02T18:11:53Z</updated>
<author>
<name>Alex Martelli</name>
<email>aleaxit@gmail.com</email>
</author>
<published>2003-11-02T18:11:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ed7ca25add1e8108e11d0600803570b89100d8e8'/>
<id>urn:sha1:ed7ca25add1e8108e11d0600803570b89100d8e8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Windows fix:  When PYTHONCASEOK is set, or for any other reason imports</title>
<updated>2003-07-22T02:50:01Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-07-22T02:50:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=291f14e3d386714ea937489e1863bed7f818a970'/>
<id>urn:sha1:291f14e3d386714ea937489e1863bed7f818a970</id>
<content type='text'>
are satisfied in a case-insensitive manner, the attempt to import (the
non-existent) fcntl gets satisfied by FCNTL.py instead, and the tempfile
module defines a Unix-specific _set_cloexec() function in that case.  As
a result, temp files can't be created then (blows up with an AttributeError
trying to reference fcntl.fcntl).  This just popped up in the spambayes
project, where there is no apparent workaround (which is why I'm pushing
this in now).
</content>
</entry>
<entry>
<title>Getting rid of macfs.</title>
<updated>2003-03-21T12:55:38Z</updated>
<author>
<name>Jack Jansen</name>
<email>jack.jansen@cwi.nl</email>
</author>
<published>2003-03-21T12:55:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bb829b7c0205e9e75eaee10323a959169d7ecefc'/>
<id>urn:sha1:bb829b7c0205e9e75eaee10323a959169d7ecefc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the dummy_thread module in Queue.py and tempfile.py.</title>
<updated>2002-12-30T22:36:09Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-12-30T22:36:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a0934246d3ee4061e93805d056759f3f40ec45de'/>
<id>urn:sha1:a0934246d3ee4061e93805d056759f3f40ec45de</id>
<content type='text'>
tempfile.py already contained code to let it run without threads present;
for Queue.py this is considered a useful feature too.
</content>
</entry>
<entry>
<title>Comment out the warnings about mktemp().  These are too annoying, and</title>
<updated>2002-11-22T15:56:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-11-22T15:56:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=44f602dd3b452bbacd3c85b1e5f9873c892b46e3'/>
<id>urn:sha1:44f602dd3b452bbacd3c85b1e5f9873c892b46e3</id>
<content type='text'>
often unavoidable.
</content>
</entry>
<entry>
<title>_RandomNameSequence():  style guide changes, small speedup, don't</title>
<updated>2002-11-21T15:59:59Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-11-21T15:59:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97701b507bceb466a74d587462cfcbdb79d2fa46'/>
<id>urn:sha1:97701b507bceb466a74d587462cfcbdb79d2fa46</id>
<content type='text'>
put more in the critical section than absolutely needed, acquire
the mutex before the "try".
</content>
</entry>
<entry>
<title>_TemporaryFileWrapper:  changed self.close_called to a proper bool.</title>
<updated>2002-11-21T15:48:33Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-11-21T15:48:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6ef966e1ad334d78bd555fb720b606bf3b97aef9'/>
<id>urn:sha1:6ef966e1ad334d78bd555fb720b606bf3b97aef9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Get rid of _once(); inlining it takes less code. :-)</title>
<updated>2002-08-17T14:50:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-08-17T14:50:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e888cdc68346ee34698121e23a03e85a3de902aa'/>
<id>urn:sha1:e888cdc68346ee34698121e23a03e85a3de902aa</id>
<content type='text'>
Also, don't call gettempdir() in the default expression for the 'dir'
argument to various functions; use 'dir=None' for the default and
insert 'if dir is None: dir = gettemptir()' in the bodies.  That way
the work done by gettempdir is postponed until needed.
</content>
</entry>
<entry>
<title>tempfile's mkstemp():  Changed last argument from</title>
<updated>2002-08-14T15:41:26Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-08-14T15:41:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=04490bf225a821455cd89821479bd0277dcbb3dc'/>
<id>urn:sha1:04490bf225a821455cd89821479bd0277dcbb3dc</id>
<content type='text'>
    binary=True
to
    text=False

by BDFL Pronouncement.  All other changes follow from this.  The change
to the docs is ready to go, but blocked by another JackMacLock in the
doc directory.
</content>
</entry>
<entry>
<title>Patch #595014: Cygwin tempfile patch</title>
<updated>2002-08-14T15:10:09Z</updated>
<author>
<name>Jason Tishler</name>
<email>jason@tishler.net</email>
</author>
<published>2002-08-14T15:10:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=80c02af345d0f85be06422915394bbacfbd87bdb'/>
<id>urn:sha1:80c02af345d0f85be06422915394bbacfbd87bdb</id>
<content type='text'>
Although Cygwin attempts to be as Posix compliant
as possible, it has difficulties unlinking open
files. This is not surprising given that Cygwin is
dependent on Win32 which in turn has this problem
itself.

The attached tempfile patch acknowledges this
Cygwin limitation. Without this patch, Cygwin
fails test_tempfile (i.e., test_has_no_name) as
follows:

$ ./python -E -tt ../Lib/test/regrtest.py -l test_tempfile
test_tempfile
test test_tempfile failed -- Traceback (most recent call last):
  File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 689, in test_has_no_name
    self.failOnException("rmdir", ei)
  File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 33, in failOnException
    self.fail("%s raised %s: %s" % (what, ei[0], ei[1]))
  File "/home/jt/src/PythonCvs/Lib/unittest.py", line 260, in fail
    raise self.failureException, msg
AssertionError: rmdir raised exceptions.OSError: [Errno 90] Directory not empty: '/mnt/c/DOCUME~1/jatis/LOCALS~1/Temp/tmpM_z8nj'
</content>
</entry>
</feed>
