<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/import.c, branch v2.7a4</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/import.c?h=v2.7a4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/import.c?h=v2.7a4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2010-03-01T01:22:39Z</updated>
<entry>
<title>Issue #7242: On Solaris 9 and earlier calling os.fork() from within a</title>
<updated>2010-03-01T01:22:39Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2010-03-01T01:22:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9e5d1327f8a6f3a266b76118e0c660c7bcb12ce9'/>
<id>urn:sha1:9e5d1327f8a6f3a266b76118e0c660c7bcb12ce9</id>
<content type='text'>
thread could raise an incorrect RuntimeError about not holding the import
lock.  The import lock is now reinitialized after fork.
</content>
</entry>
<entry>
<title>Issue #2333: Backport set and dict comprehensions syntax.</title>
<updated>2010-01-11T22:36:12Z</updated>
<author>
<name>Alexandre Vassalotti</name>
<email>alexandre@peadrop.com</email>
</author>
<published>2010-01-11T22:36:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b646547bb45fe1df6abefd94f892c633798d91d2'/>
<id>urn:sha1:b646547bb45fe1df6abefd94f892c633798d91d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #2335: Backport set literals syntax from Python 3.x.</title>
<updated>2010-01-09T23:35:54Z</updated>
<author>
<name>Alexandre Vassalotti</name>
<email>alexandre@peadrop.com</email>
</author>
<published>2010-01-09T23:35:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ee936a21308679654b2d458166ff094ed735fef7'/>
<id>urn:sha1:ee936a21308679654b2d458166ff094ed735fef7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix issue #1590864, multiple threads and fork() can cause deadlocks, by</title>
<updated>2009-09-16T19:55:54Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2009-09-16T19:55:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c4dcb3801e6e64327e95821034a7578f5f31bf94'/>
<id>urn:sha1:c4dcb3801e6e64327e95821034a7578f5f31bf94</id>
<content type='text'>
acquiring the import lock around fork() calls. This prevents other threads
from having that lock while the fork happens, and is the recommended way of
dealing with such issues. There are two other locks we care about, the GIL
and the Thread Local Storage lock. The GIL is obviously held when calling
Python functions like os.fork(), and the TLS lock is explicitly reallocated
instead, while also deleting now-orphaned TLS data.

This only fixes calls to os.fork(), not extension modules or embedding
programs calling C's fork() directly. Solving that requires a new set of API
functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
warning explaining the problem to the documentation in the mean time.

This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
getting the import lock reallocated, seemingly to avoid this very same
problem. This is not the right approach, because the import lock is a
re-entrant one, and reallocating would do the wrong thing when forking while
holding the import lock.

Will backport to 2.6, minus the tiny AIX behaviour change.
</content>
</entry>
<entry>
<title>Better name a variable: 'buf' seems to imply a mutable buffer.</title>
<updated>2009-07-25T16:22:06Z</updated>
<author>
<name>Amaury Forgeot d'Arc</name>
<email>amauryfa@gmail.com</email>
</author>
<published>2009-07-25T16:22:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=982b2fa32dffb3e18862aa8d492c9d151a69cfe4'/>
<id>urn:sha1:982b2fa32dffb3e18862aa8d492c9d151a69cfe4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update issue 6070 patch to match the patch that was actually tested</title>
<updated>2009-07-07T09:54:16Z</updated>
<author>
<name>R. David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2009-07-07T09:54:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3310a10a68228c4a84a2ed517af6b0b81e7f0b15'/>
<id>urn:sha1:3310a10a68228c4a84a2ed517af6b0b81e7f0b15</id>
<content type='text'>
on Windows.
</content>
</entry>
<entry>
<title>Issue 6070: when creating a compiled file, after copying the mode bits, on</title>
<updated>2009-07-07T01:06:13Z</updated>
<author>
<name>R. David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2009-07-07T01:06:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=23a736a4f06cabf9c1f1b57fd6bd7b4fabc8ca08'/>
<id>urn:sha1:23a736a4f06cabf9c1f1b57fd6bd7b4fabc8ca08</id>
<content type='text'>
posix zap the execute bit in case it was set on the .py file, since the
compiled files are not directly executable on posix.  Patch by Marco N.
</content>
</entry>
<entry>
<title>add a SETUP_WITH opcode</title>
<updated>2009-05-25T13:13:44Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2009-05-25T13:13:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1880d8b8231d0085700d5d3c03ee9b16c619720d'/>
<id>urn:sha1:1880d8b8231d0085700d5d3c03ee9b16c619720d</id>
<content type='text'>
It speeds up the with statement and correctly looks up the special
methods involved.
</content>
</entry>
<entry>
<title>Fix two issues introduced by issue #71031 by changing the signature of</title>
<updated>2009-04-02T03:34:53Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2009-04-02T03:34:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=238cedcd6339e747daa6e2a383678d893482ef6d'/>
<id>urn:sha1:238cedcd6339e747daa6e2a383678d893482ef6d</id>
<content type='text'>
PyImport_AppendInittab() to take a const char *.
</content>
</entry>
<entry>
<title>PyImport_AppendInittab() took a char * as a first argument even though that</title>
<updated>2009-04-02T03:17:39Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2009-04-02T03:17:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c4f90ebea78fab0d45340f4fb4b11298ee3ffdca'/>
<id>urn:sha1:c4f90ebea78fab0d45340f4fb4b11298ee3ffdca</id>
<content type='text'>
string was stored beyond the life of the call. Changed the signature to be
const char * to help make this point.

Closes issue #1419652.
</content>
</entry>
</feed>
