<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/clmodule.c, branch 2.3</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/clmodule.c?h=2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/clmodule.c?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-04-27T18:44:32Z</updated>
<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>Convert more METH_OLDARGS &amp; PyArg_Parse()</title>
<updated>2002-04-02T18:26:33Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-04-02T18:26:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b0aaec5706237c1086afbbbb9327be59509a6d83'/>
<id>urn:sha1:b0aaec5706237c1086afbbbb9327be59509a6d83</id>
<content type='text'>
Please review.
</content>
</entry>
<entry>
<title>Convert from using METH_OLDARGS to METH_NOARGS.</title>
<updated>2002-03-31T14:57:24Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-03-31T14:57:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=50905b557b2a46d4db432b7a9e61fe32afa557e3'/>
<id>urn:sha1:50905b557b2a46d4db432b7a9e61fe32afa557e3</id>
<content type='text'>
These should be safe.
</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>REMOVED all CWI, CNRI and BeOpen copyright markings.</title>
<updated>2000-09-01T23:29:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-09-01T23:29:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8586991099e4ace18ee94163a96b8ea1bed77ebe'/>
<id>urn:sha1:8586991099e4ace18ee94163a96b8ea1bed77ebe</id>
<content type='text'>
This should match the situation in the 1.6b1 tree.
</content>
</entry>
<entry>
<title>Bunch of minor ANSIfications: 'void initfunc()' -&gt; 'void initfunc(void)',</title>
<updated>2000-07-21T06:00:07Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2000-07-21T06:00:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f3f33dcf03eaed3c4e720178f9d69205a66d6a91'/>
<id>urn:sha1:f3f33dcf03eaed3c4e720178f9d69205a66d6a91</id>
<content type='text'>
and a couple of functions that were missed in the previous batches. Not
terribly tested, but very carefully scrutinized, three times.

All these were found by the little findkrc.py that I posted to python-dev,
which means there might be more lurking. Cases such as this:

long
func(a, b)
	long a;
	long b; /* flagword */
{

and other cases where the last ; in the argument list isn't followed by a
newline and an opening curly bracket. Regexps to catch all are welcome, of
course ;)
</content>
</entry>
<entry>
<title>Change copyright notice - 2nd try.</title>
<updated>2000-06-30T23:58:06Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-06-30T23:58:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ffcc3813d82e6b96db79f518f4e67b940a13ce64'/>
<id>urn:sha1:ffcc3813d82e6b96db79f518f4e67b940a13ce64</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change copyright notice.</title>
<updated>2000-06-30T23:50:40Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-06-30T23:50:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd71b9e9d496caa510dec56a9b69966558d6ba5d'/>
<id>urn:sha1:fd71b9e9d496caa510dec56a9b69966558d6ba5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Vladimir Marangozov's long-awaited malloc restructuring.</title>
<updated>2000-05-03T23:44:39Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-05-03T23:44:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b18618dab7b6b85bb05b084693706e59211fa180'/>
<id>urn:sha1:b18618dab7b6b85bb05b084693706e59211fa180</id>
<content type='text'>
For more comments, read the patches@python.org archives.
For documentation read the comments in mymalloc.h and objimpl.h.

(This is not exactly what Vladimir posted to the patches list; I've
made a few changes, and Vladimir sent me a fix in private email for a
problem that only occurs in debug mode.  I'm also holding back on his
change to main.c, which seems unnecessary to me.)
</content>
</entry>
</feed>
