<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/sysmodule.c, branch v2.2</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/sysmodule.c?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/sysmodule.c?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-03-25T12:33:56Z</updated>
<entry>
<title>backport nascheme's checkin of</title>
<updated>2002-03-25T12:33:56Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-25T12:33:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6ce28c36ad009a0d2d96d0b005ac1620a1afdc9a'/>
<id>urn:sha1:6ce28c36ad009a0d2d96d0b005ac1620a1afdc9a</id>
<content type='text'>
    revision 2.102 of sysmodule.c

Fix wording of sys.exit docstring.  Close SF bug 534113.
</content>
</entry>
<entry>
<title>SF #506611, fix sys.setprofile(), sys.settrace() core dumps</title>
<updated>2002-03-03T15:17:07Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-03-03T15:17:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ebaaf187114625811ed7c7a1791f9cb77186d545'/>
<id>urn:sha1:ebaaf187114625811ed7c7a1791f9cb77186d545</id>
<content type='text'>
when no arguments are passed
</content>
</entry>
<entry>
<title>Fix a bunch of typos found by nnorwitz.</title>
<updated>2002-02-06T17:06:03Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-02-06T17:06:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fa338d7fad1c2e9f1c16849e9eac59ccfe9d878b'/>
<id>urn:sha1:fa338d7fad1c2e9f1c16849e9eac59ccfe9d878b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Include &lt;unistd.h&gt; in Python.h. Fixes #500924.</title>
<updated>2002-01-12T11:13:24Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-01-12T11:13:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0d21e644096c700d9cf87038e736dd5ae0f738af'/>
<id>urn:sha1:0d21e644096c700d9cf87038e736dd5ae0f738af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mysnprintf.c:  Massive rewrite of PyOS_snprintf and PyOS_vsnprintf, to</title>
<updated>2001-12-03T00:43:33Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-03T00:43:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=faad5ad59005d16080aa79b593fede25c6a7457c'/>
<id>urn:sha1:faad5ad59005d16080aa79b593fede25c6a7457c</id>
<content type='text'>
use wrappers on all platforms, to make this as consistent as possible x-
platform (in particular, make sure there's at least one \0 byte in
the output buffer).  Also document more of the truth about what these do.

getargs.c, seterror():  Three computations of remaining buffer size were
backwards, thus telling PyOS_snprintf the buffer is larger than it
actually is.  This matters a lot now that PyOS_snprintf ensures there's a
trailing \0 byte (because it didn't get the truth about the buffer size,
it was storing \0 beyond the true end of the buffer).

sysmodule.c, mywrite():  Simplify, now that PyOS_vsnprintf guarantees to
produce a \0 byte.
</content>
</entry>
<entry>
<title>mywrite():  The test for trouble in PyOS_vsnprintf was wrong on both</title>
<updated>2001-12-02T08:29:16Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-02T08:29:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=080d5b3f0ba3a21811e3d3de35d4f8aa7cf408ad'/>
<id>urn:sha1:080d5b3f0ba3a21811e3d3de35d4f8aa7cf408ad</id>
<content type='text'>
ends.  Also, when there is trouble, ensure the buffer has a traiing
0 byte.
</content>
</entry>
<entry>
<title>Use PyOS_vsnprintf() and check its return value.</title>
<updated>2001-11-28T21:44:53Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-28T21:44:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5d3d134d560d24a9e6b9d65dd814542605c0b152'/>
<id>urn:sha1:5d3d134d560d24a9e6b9d65dd814542605c0b152</id>
<content type='text'>
If it returns -1 (which indicates overflow on old Linux platforms and
perhaps on Windows) or size greater than buffer, write a message
indicating that the previous message was truncated.
</content>
</entry>
<entry>
<title>Include sys_getdefaultencoding in #ifdef Py_USING_UNICODE. Fixes #479571.</title>
<updated>2001-11-09T20:59:39Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-11-09T20:59:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=107b7daf5a6ce123cad4ae7d02a12ae1eadcb30b'/>
<id>urn:sha1:107b7daf5a6ce123cad4ae7d02a12ae1eadcb30b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert getrefcount() to METH_O, and sys_excepthook() to use</title>
<updated>2001-10-24T20:47:48Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-24T20:47:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a768882b0000852539a312c939d69ab9f08f62ae'/>
<id>urn:sha1:a768882b0000852539a312c939d69ab9f08f62ae</id>
<content type='text'>
PyArg_UnpackTuple().
</content>
</entry>
<entry>
<title>Rationalize the events passed to the profiler (no changes for the tracer).</title>
<updated>2001-10-04T14:48:42Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-04T14:48:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8f51f54319fdf1511d080785a73a331489775e8f'/>
<id>urn:sha1:8f51f54319fdf1511d080785a73a331489775e8f</id>
<content type='text'>
The profiler does not need to know anything about the exception state,
so we no longer call it when an exception is raised.  We do, however,
make sure we *always* call the profiler when we exit a frame.  This
ensures that timing events are more easily isolated by a profiler and
finally clauses that do a lot of work don't have their time
mis-allocated.

When an exception is propogated out of the frame, the C callback for
the profiler now receives a PyTrace_RETURN event with an arg of NULL;
the Python-level profile hook function will see a 'return' event with
an arg of None.  This means that from Python it is impossible for the
profiler to determine if the frame exited with an exception or if it
returned None, but this doesn't matter for profiling.  A C-based
profiler could tell the difference, but this doesn't seem important.

ceval.c:eval_frame():  Simplify the code in two places so that the
                       profiler is called for every exit from a frame
                       and not for exceptions.

sysmodule.c:profile_trampoline():  Make sure we don't expose Python
                                   code to NULL; use None instead.
</content>
</entry>
</feed>
