<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/import.c, branch v2.7a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/import.c?h=v2.7a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/import.c?h=v2.7a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2009-09-16T19:55:54Z</updated>
<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>
<entry>
<title>Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} with</title>
<updated>2009-02-28T19:03:21Z</updated>
<author>
<name>Jeffrey Yasskin</name>
<email>jyasskin@gmail.com</email>
</author>
<published>2009-02-28T19:03:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=68d68520061a5a4aa3437f8c74ba383b2da50280'/>
<id>urn:sha1:68d68520061a5a4aa3437f8c74ba383b2da50280</id>
<content type='text'>
POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing
a POP_TOP on each conditional and sometimes allows the peephole optimizer to
skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
</content>
</entry>
<entry>
<title>Issue 3677:  Fix import from UNC paths on Windows.</title>
<updated>2009-01-09T20:10:59Z</updated>
<author>
<name>Kristján Valur Jónsson</name>
<email>kristjan@ccpgames.com</email>
</author>
<published>2009-01-09T20:10:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3b2a6b819d93868c960da91aeebca7093d6f1627'/>
<id>urn:sha1:3b2a6b819d93868c960da91aeebca7093d6f1627</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #1180193: When importing a module from a .pyc (or .pyo) file with</title>
<updated>2009-01-06T18:10:47Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2009-01-06T18:10:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e96d4ea4e235645452ae8a6c8ab557d31d2bb485'/>
<id>urn:sha1:e96d4ea4e235645452ae8a6c8ab557d31d2bb485</id>
<content type='text'>
an existing .py counterpart, override the co_filename attributes of all
code objects if the original filename is obsolete (which can happen if the
file has been renamed, moved, or if it is accessed through different paths).
Patch by Ziga Seilnacht and Jean-Paul Calderone.
</content>
</entry>
</feed>
