<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/ceval.c, branch v1.5</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/ceval.c?h=v1.5</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/ceval.c?h=v1.5'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>1997-12-31T05:53:15Z</updated>
<entry>
<title>Last-minute fix for Jim H: don't die after del sys.stdout</title>
<updated>1997-12-31T05:53:15Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-12-31T05:53:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8f18320270467facc50fc055a4d6476a5b2bfc1c'/>
<id>urn:sha1:8f18320270467facc50fc055a4d6476a5b2bfc1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Plug the most annoying recursive printing problem -- reset '_' to None</title>
<updated>1997-12-26T22:15:57Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-12-26T22:15:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=aa06b0ede584324ea2a509b344ef07d619d0827f'/>
<id>urn:sha1:aa06b0ede584324ea2a509b344ef07d619d0827f</id>
<content type='text'>
before printing and set it to the printed variable *after* printing
(and only when printing is successful).
</content>
</entry>
<entry>
<title>Give more detailed error message when the argument count isn't right.</title>
<updated>1997-11-19T16:05:40Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-11-19T16:05:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=df9db1ea1882bc4274a005415c48d255df9c43d5'/>
<id>urn:sha1:df9db1ea1882bc4274a005415c48d255df9c43d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix memory leak in exec statement with code object -- the None returned</title>
<updated>1997-11-11T16:29:38Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-11-11T16:29:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dfed725e2c351676174ed2e046fe6c5288e21488'/>
<id>urn:sha1:dfed725e2c351676174ed2e046fe6c5288e21488</id>
<content type='text'>
by PyEval_EvalCode() on success was never DECREF'ed.

Fix by Bernhard Herzog.
</content>
</entry>
<entry>
<title>Change PyEval_SaveThread() and PyEval_RestoreThread() to always do the</title>
<updated>1997-09-30T22:03:16Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-09-30T22:03:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b74eca93496e7abcf5fc10b15aef55739e6074d5'/>
<id>urn:sha1:b74eca93496e7abcf5fc10b15aef55739e6074d5</id>
<content type='text'>
tstate swapping.  Only the acquiring and releasing of the lock is
conditional (twice, under ``#ifdef WITH_THREAD'' and inside ``if
(interpreter_lock)'').
</content>
</entry>
<entry>
<title>First part of package support.</title>
<updated>1997-09-05T07:33:22Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-09-05T07:33:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=aee0bad0a50f9f533267d241bea97a0b2118f238'/>
<id>urn:sha1:aee0bad0a50f9f533267d241bea97a0b2118f238</id>
<content type='text'>
This doesn't yet support "import a.b.c" or "from a.b.c import x", but
it does recognize directories.  When importing a directory, it
initializes __path__ to a list containing the directory name, and
loads the __init__ module if found.

The (internal) find_module() and load_module() functions are
restructured so that they both also handle built-in and frozen modules
and Mac resources (and directories of course).  The imp module's
find_module() and (new) load_module() also have this functionality.
Moreover, imp unconditionally defines constants for all module types,
and has two more new functions: find_module_in_package() and
find_module_in_directory().

There's also a new API function, PyImport_ImportModuleEx(), which
takes all four __import__ arguments (name, globals, locals, fromlist).
The last three may be NULL.  This is currently the same as
PyImport_ImportModule() but in the future it will be able to do
relative dotted-path imports.

Other changes:

- bltinmodule.c: in __import__, call PyImport_ImportModuleEx().

- ceval.c: always pass the fromlist to __import__, even if it is a C
function, so PyImport_ImportModuleEx() is useful.

- getmtime.c: the function has a second argument, the FILE*, on which
it applies fstat().  According to Sjoerd this is much faster.  The
first (pathname) argument is ignored, but remains for backward
compatibility (so the Mac version still works without changes).

By cleverly combining the new imp functionality, the full support for
dotted names in Python (mini.py, not checked in) is now about 7K,
lavishly commented (vs. 14K for ni plus 11K for ihooks, also lavishly
commented).

Good night!
</content>
</entry>
<entry>
<title>Inline PyObject_CallObject (Marc-Andre Lemburg).</title>
<updated>1997-08-30T15:02:50Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-08-30T15:02:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d7ed683a7ead15583899d7f7fbfb9078139c6a80'/>
<id>urn:sha1:d7ed683a7ead15583899d7f7fbfb9078139c6a80</id>
<content type='text'>
</content>
</entry>
<entry>
<title>eval_code2(), set_exc_info(): Call PyErr_NormalizeException() the</title>
<updated>1997-08-28T22:36:40Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1997-08-28T22:36:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eaedc7ce3296becb466fd42fa07319e9c43771a0'/>
<id>urn:sha1:eaedc7ce3296becb466fd42fa07319e9c43771a0</id>
<content type='text'>
former rather than the latter, since PyErr_NormalizeException takes
PyObject** and I didn't want to change the interface for set_exc_info
(but I did want the changes propagated to eval_code2!).
</content>
</entry>
<entry>
<title>unpack_sequence(): In finally clause, watch out for Py_DECREF</title>
<updated>1997-08-25T22:30:51Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1997-08-25T22:30:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=910105515ebe340fafe357f8fe1b898787a292a0'/>
<id>urn:sha1:910105515ebe340fafe357f8fe1b898787a292a0</id>
<content type='text'>
evaluating its arguments twice.
</content>
</entry>
<entry>
<title>eval_code2(): collapsed the implementations of UNPACK_TUPLE and</title>
<updated>1997-08-25T22:13:04Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1997-08-25T22:13:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e42b18f9d1fca06df34d9fcbd54a2a6045329197'/>
<id>urn:sha1:e42b18f9d1fca06df34d9fcbd54a2a6045329197</id>
<content type='text'>
UNPACK_LIST byte codes and added a third code path that allows
generalized sequence unpacking.  Now both syntaxes:

    a, b, c = seq
    [a, b, c] = seq

can be used to unpack any sequence with the exact right number of
items.

unpack_sequence(): out-lined implementation of generalized sequence
unpacking.  tuple and list unpacking are still inlined.
</content>
</entry>
</feed>
