<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/import.c, branch v3.1</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=v3.1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/import.c?h=v3.1'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2009-04-02T03:41:46Z</updated>
<entry>
<title>Merged revisions 71031 via svnmerge from</title>
<updated>2009-04-02T03:41:46Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2009-04-02T03:41:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a826f32054710f7dc602573f99c6c87a725adbba'/>
<id>urn:sha1:a826f32054710f7dc602573f99c6c87a725adbba</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71031 | brett.cannon | 2009-04-01 20:17:39 -0700 (Wed, 01 Apr 2009) | 6 lines

  PyImport_AppendInittab() took a char * as a first argument even though that
  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>Fix a leaking "pathname" in import.c</title>
<updated>2009-03-31T17:47:50Z</updated>
<author>
<name>Kristján Valur Jónsson</name>
<email>kristjan@ccpgames.com</email>
</author>
<published>2009-03-31T17:47:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=92af5d9fec99d5a0caef391eabf55e425ec7e615'/>
<id>urn:sha1:92af5d9fec99d5a0caef391eabf55e425ec7e615</id>
<content type='text'>
</content>
</entry>
<entry>
<title>get_file() no longer leaks a FILE structure.  If given a file descriptor, it calls dup() to get a new handle.  Then both the FILE object and the fd can be closed.</title>
<updated>2009-03-31T17:43:39Z</updated>
<author>
<name>Kristján Valur Jónsson</name>
<email>kristjan@ccpgames.com</email>
</author>
<published>2009-03-31T17:43:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e1b0445ff97ef58d9888091df6c9bc2d3917ad0f'/>
<id>urn:sha1:e1b0445ff97ef58d9888091df6c9bc2d3917ad0f</id>
<content type='text'>
This is important, because otherwise, the leaked FILE object will be closed on process exit, causing assertions on Windows, e.g. in the test_multiprocessing.py regression test.
</content>
</entry>
<entry>
<title>Issue #5604: non-ASCII characters in module name passed to</title>
<updated>2009-03-30T22:01:35Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2009-03-30T22:01:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0ad59d467d06c8c9dce81658f4f278783cb70b9f'/>
<id>urn:sha1:0ad59d467d06c8c9dce81658f4f278783cb70b9f</id>
<content type='text'>
imp.find_module() were converted to UTF-8 while the path is
converted to the default filesystem encoding, causing nonsense.
Thanks to Andrew Svetlov.

(This time to the right branch.  Will block duplicate merge to 3.0.2.)
</content>
</entry>
<entry>
<title>Implement InspectLoader for FrozenImporter.</title>
<updated>2009-03-15T02:20:16Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2009-03-15T02:20:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8d11013169efe085213842307859103f713beec5'/>
<id>urn:sha1:8d11013169efe085213842307859103f713beec5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a typo in a comment.</title>
<updated>2009-03-08T20:49:47Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2009-03-08T20:49:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3c2ac448ec594762c2e72d3774697babb932881a'/>
<id>urn:sha1:3c2ac448ec594762c2e72d3774697babb932881a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #5273: Fixed import failure on unicode path. (especially on windows)</title>
<updated>2009-03-04T01:52:10Z</updated>
<author>
<name>Hirokazu Yamamoto</name>
<email>ocean-city@m2.ccsnet.ne.jp</email>
</author>
<published>2009-03-04T01:52:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4f447fb9a1605b7c3f1e5513b925b9213ef9480c'/>
<id>urn:sha1:4f447fb9a1605b7c3f1e5513b925b9213ef9480c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>http://bugs.python.org/issue4715</title>
<updated>2009-02-25T02:25:04Z</updated>
<author>
<name>Jeffrey Yasskin</name>
<email>jyasskin@gmail.com</email>
</author>
<published>2009-02-25T02:25:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9de7ec7868554e92700e4bda6c5f9d8fcad634dc'/>
<id>urn:sha1:9de7ec7868554e92700e4bda6c5f9d8fcad634dc</id>
<content type='text'>
This patch by Antoine Pitrou optimizes the bytecode for conditional branches by
merging the following "POP_TOP" instruction into the conditional jump.  For
example, the list comprehension "[x for x in l if not x]" produced the
following bytecode:

  1           0 BUILD_LIST               0
              3 LOAD_FAST                0 (.0)
        &gt;&gt;    6 FOR_ITER                23 (to 32)
              9 STORE_FAST               1 (x)
             12 LOAD_FAST                1 (x)
             15 JUMP_IF_TRUE            10 (to 28)
             18 POP_TOP
             19 LOAD_FAST                1 (x)
             22 LIST_APPEND              2
             25 JUMP_ABSOLUTE            6
        &gt;&gt;   28 POP_TOP
             29 JUMP_ABSOLUTE            6
        &gt;&gt;   32 RETURN_VALUE

but after the patch it produces the following bytecode:

  1           0 BUILD_LIST               0
              3 LOAD_FAST                0 (.0)
        &gt;&gt;    6 FOR_ITER                18 (to 27)
              9 STORE_FAST               1 (x)
             12 LOAD_FAST                1 (x)
             15 POP_JUMP_IF_TRUE         6
             18 LOAD_FAST                1 (x)
             21 LIST_APPEND              2
             24 JUMP_ABSOLUTE            6
        &gt;&gt;   27 RETURN_VALUE

Notice that not only the code is shorter, but the conditional jump
(POP_JUMP_IF_TRUE) jumps right to the start of the loop instead of going through
the JUMP_ABSOLUTE at the end. "continue" statements are helped
similarly.

Furthermore, the old jump opcodes (JUMP_IF_FALSE, JUMP_IF_TRUE) have been
replaced by two new opcodes:
- JUMP_IF_TRUE_OR_POP, which jumps if true and pops otherwise
- JUMP_IF_FALSE_OR_POP, which jumps if false and pops otherwise
</content>
</entry>
<entry>
<title>Issue #1717: rename tp_compare to tp_reserved.  I'll change the</title>
<updated>2009-02-02T20:36:42Z</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2009-02-02T20:36:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e94c679df0b632bc929936ca54f0de006e1a6dc2'/>
<id>urn:sha1:e94c679df0b632bc929936ca54f0de006e1a6dc2</id>
<content type='text'>
type of tp_compare in a separate commit, for ease of reversion
should things go wrong.
</content>
</entry>
<entry>
<title>Issue #5041: Fixed memory leak.</title>
<updated>2009-01-30T03:15:05Z</updated>
<author>
<name>Hirokazu Yamamoto</name>
<email>ocean-city@m2.ccsnet.ne.jp</email>
</author>
<published>2009-01-30T03:15:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=90eaaf623a7143153fd6d1b9f917b394c923a14a'/>
<id>urn:sha1:90eaaf623a7143153fd6d1b9f917b394c923a14a</id>
<content type='text'>
</content>
</entry>
</feed>
