<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Doc/api/concrete.tex, branch 2.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/Doc/api/concrete.tex?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Doc/api/concrete.tex?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-12-26T00:00:29Z</updated>
<entry>
<title>backport of concrete.tex v1.35:</title>
<updated>2003-12-26T00:00:29Z</updated>
<author>
<name>Andrew MacIntyre</name>
<email>andymac@bullseye.apana.org.au</email>
</author>
<published>2003-12-26T00:00:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=775499689ebda242c43000b85969046f64bfc6fc'/>
<id>urn:sha1:775499689ebda242c43000b85969046f64bfc6fc</id>
<content type='text'>
The semantics of PyList_Check() and PyDict_Check() changed at 2.2, along
with most other concrete object checks, but the docs weren't brought into
line.

PyList_CheckExact() was added at 2.2 but never documented.
</content>
</entry>
<entry>
<title>Clarified the error cases and Unicode handling of PyString_AsString(),</title>
<updated>2002-10-22T20:21:06Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2002-10-22T20:21:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=53c20b4a5110f66347248f2a3dad068c925e48a0'/>
<id>urn:sha1:53c20b4a5110f66347248f2a3dad068c925e48a0</id>
<content type='text'>
PyString_AsStringAndSize(), and PyString_AS_STRING().
Closes SF bug #606463.
</content>
</entry>
<entry>
<title>Corrected return type and value information for PyUnicode_Count() and</title>
<updated>2002-06-20T22:09:12Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2002-06-20T22:09:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=84dacffe6fb09ae3e5907a0051f636ed5596aed2'/>
<id>urn:sha1:84dacffe6fb09ae3e5907a0051f636ed5596aed2</id>
<content type='text'>
PyUnicode_Find().
This closes SF bug #566631.
</content>
</entry>
<entry>
<title>backport theller's patch:</title>
<updated>2002-04-30T04:07:57Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2002-04-30T04:07:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=43eb1d3ad3ed535ce5cca50a299d7ef37ccd736b'/>
<id>urn:sha1:43eb1d3ad3ed535ce5cca50a299d7ef37ccd736b</id>
<content type='text'>
Typo: whcar_t should be wchar_t.

Bugfix candidate? Don't know how this is handled in the docs.

Original patch(es):
python/dist/src/Doc/api/concrete.tex:1.15
</content>
</entry>
<entry>
<title>backport tim_one's patch:</title>
<updated>2002-04-30T03:24:12Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2002-04-30T03:24:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=608ee5a828d0b95167777802fa398edb5aff2dda'/>
<id>urn:sha1:608ee5a828d0b95167777802fa398edb5aff2dda</id>
<content type='text'>
Repair widespread misuse of _PyString_Resize.  Since it's clear people
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.

Original patch(es):
python/dist/src/Doc/api/concrete.tex:1.13
</content>
</entry>
<entry>
<title>Document PyType_CheckExact(), PyType_IS_GC().</title>
<updated>2002-04-10T18:00:44Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2002-04-10T18:00:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7addee3ab49dea634dd5f227177ddb63342abda4'/>
<id>urn:sha1:7addee3ab49dea634dd5f227177ddb63342abda4</id>
<content type='text'>
Update description of PyType_Check().
</content>
</entry>
<entry>
<title>Add a note that Py_None needs the same reference count treatment as any</title>
<updated>2002-03-12T20:18:01Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2002-03-12T20:18:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=804fea92fd554a7a1d33447f7961b723af7dc700'/>
<id>urn:sha1:804fea92fd554a7a1d33447f7961b723af7dc700</id>
<content type='text'>
other PyObject *.
This closes SF bug #494007.
</content>
</entry>
<entry>
<title>A number of small adjustments.</title>
<updated>2001-12-11T19:40:16Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-12-11T19:40:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=54e629419738bb12650428174e2d908cf150e4f7'/>
<id>urn:sha1:54e629419738bb12650428174e2d908cf150e4f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #491415 PyDict_UpdateFromSeq2() unused</title>
<updated>2001-12-11T18:51:08Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-11T18:51:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f582b82fe9ae4c0394ed4f6b281aa8b4ca224617'/>
<id>urn:sha1:f582b82fe9ae4c0394ed4f6b281aa8b4ca224617</id>
<content type='text'>
PyDict_UpdateFromSeq2():  removed it.
PyDict_MergeFromSeq2():  made it public and documented it.
PyDict_Merge() docs:  updated to reveal &lt;wink&gt; that the second
argument can be any mapping object.
</content>
</entry>
<entry>
<title>Document that PyString_FromString() cannot take NULL as a parameter.</title>
<updated>2001-12-06T20:38:15Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-12-06T20:38:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32a3587345f3207c4471b7eca88be9fbb0cbc65c'/>
<id>urn:sha1:32a3587345f3207c4471b7eca88be9fbb0cbc65c</id>
<content type='text'>
This closes SF bug #489872.
</content>
</entry>
</feed>
