<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/regexmodule.c, branch 2.4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/regexmodule.c?h=2.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/regexmodule.c?h=2.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-09-27T19:17:32Z</updated>
<entry>
<title>[Backport of rev. 42093 by neal.norwitz]</title>
<updated>2006-09-27T19:17:32Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-09-27T19:17:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e7031223e36c43ccd47321b3ff8997c1423e2b9c'/>
<id>urn:sha1:e7031223e36c43ccd47321b3ff8997c1423e2b9c</id>
<content type='text'>
Check return result from Py_InitModule*().  This API can fail.

Probably should be backported.
</content>
</entry>
<entry>
<title>Backport trunk's r42878 (neal.norwitz):</title>
<updated>2006-03-07T12:08:42Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-03-07T12:08:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e34fc700fcdf0587592f3ccfb2caf5d474ac952a'/>
<id>urn:sha1:e34fc700fcdf0587592f3ccfb2caf5d474ac952a</id>
<content type='text'>
Thanks to Coverity, these were all reported by their Prevent tool.

and r42881 (thomas.wouters):

Don't DECREF a borrowed reference.
</content>
</entry>
<entry>
<title>Simplify and speedup uses of Py_BuildValue():</title>
<updated>2003-10-12T19:09:37Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-12T19:09:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8ae468965700fd9900efc28bff8fa2015dae2bef'/>
<id>urn:sha1:8ae468965700fd9900efc28bff8fa2015dae2bef</id>
<content type='text'>
* Py_BuildValue("(OOO)",a,b,c)  --&gt;  PyTuple_Pack(3,a,b,c)
* Py_BuildValue("()",a)         --&gt;  PyTuple_New(0)
* Py_BuildValue("O", a)         --&gt;  Py_INCREF(a)
</content>
</entry>
<entry>
<title>Excise DL_EXPORT/DL_IMPORT from Modules/*.  Required adding a prototype</title>
<updated>2002-08-02T02:27:13Z</updated>
<author>
<name>Mark Hammond</name>
<email>mhammond@skippinet.com.au</email>
</author>
<published>2002-08-02T02:27:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fe51c6d66e0fbf6a142036bee2c448bd7fe8fefc'/>
<id>urn:sha1:fe51c6d66e0fbf6a142036bee2c448bd7fe8fefc</id>
<content type='text'>
for Py_Main().

Thanks to Kalle Svensson and Skip Montanaro for the patches.
</content>
</entry>
<entry>
<title>Repair widespread misuse of _PyString_Resize.  Since it's clear people</title>
<updated>2002-04-27T18:44:32Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-04-27T18:44:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5de9842b34cbefbfe74e6a99004616352f223133'/>
<id>urn:sha1:5de9842b34cbefbfe74e6a99004616352f223133</id>
<content type='text'>
don't understand how this function works, also beefed up the docs.  The
most common usage error is of this form (often spread out across gotos):

	if (_PyString_Resize(&amp;s, n) &lt; 0) {
		Py_DECREF(s);
		s = NULL;
		goto outtahere;
	}

The error is that if _PyString_Resize runs out of memory, it automatically
decrefs the input string object s (which also deallocates it, since its
refcount must be 1 upon entry), and sets s to NULL.  So if the "if"
branch ever triggers, it's an error to call Py_DECREF(s):  s is already
NULL!  A correct way to write the above is the simpler (and intended)

	if (_PyString_Resize(&amp;s, n) &lt; 0)
		goto outtahere;

Bugfix candidate.
</content>
</entry>
<entry>
<title>Remove METH_OLDARGS:</title>
<updated>2002-03-31T15:27:00Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-03-31T15:27:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ba3a16c6c3d3da0903873e9464dbc540eaeda1f7'/>
<id>urn:sha1:ba3a16c6c3d3da0903873e9464dbc540eaeda1f7</id>
<content type='text'>
  Convert METH_OLDARGS -&gt; METH_VARARGS: also PyArg_Parse -&gt; PyArg_ParseTuple
  Convert METH_OLDARGS -&gt; METH_NOARGS: remove args parameter
Please review.  All tests pass, but some modules don't have tests.
I spot checked various functions to try to make sure nothing broke.
</content>
</entry>
<entry>
<title>Patch #477750: Use METH_ constants in Modules.</title>
<updated>2002-01-17T23:15:58Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-01-17T23:15:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=43b936d08c51726205123ae1af5c5f8b5d3b6fcb'/>
<id>urn:sha1:43b936d08c51726205123ae1af5c5f8b5d3b6fcb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch supplied by Burton Radons for his own SF bug #487390: Modifying</title>
<updated>2001-12-08T18:02:58Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-08T18:02:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=146483964e2e94b0d1709be438a1b86f75b5d730'/>
<id>urn:sha1:146483964e2e94b0d1709be438a1b86f75b5d730</id>
<content type='text'>
type.__module__ behavior.

This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this).  Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right.  Apologies if they're
not.  This also touches the weakref docs, which contains a sample type
object initializer.  It also touches the mmap test output, because the
mmap type's repr is included in that output.  It touches object.h to
put the correct description in a comment.
</content>
</entry>
<entry>
<title>initregex():  this function is declared void, so the recent change to</title>
<updated>2001-07-09T18:15:38Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-09T18:15:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=06e415fe52796629dd1342bb02103b5a51fbcd9a'/>
<id>urn:sha1:06e415fe52796629dd1342bb02103b5a51fbcd9a</id>
<content type='text'>
return NULL in an error case was itself an error.
</content>
</entry>
<entry>
<title>initregex(): Check return value of PyErr_Warn() and propagate the exception</title>
<updated>2001-07-09T10:45:31Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-07-09T10:45:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4ccf1190535319d37cbc712422fd097cd8f0464f'/>
<id>urn:sha1:4ccf1190535319d37cbc712422fd097cd8f0464f</id>
<content type='text'>
(if any.)
</content>
</entry>
</feed>
