458 Commits

Author SHA1 Message Date
Georg Brandl
b8c23fb5fe Fix #1139: PyFile_Encoding really is PyFile_SetEncoding.
(backport from rev. 58117).
2007-09-12 18:11:03 +00:00
Georg Brandl
5d30e752db Fix #1122: wrong return type documented for various _Size() functions.
(backport from rev. 58115).
2007-09-12 18:08:54 +00:00
Georg Brandl
15eb97b14d Add missing \versionadded.
(backport from rev. 56006)
2007-06-16 17:10:26 +00:00
Walter Dörwald
f8f68fbe0e Backport checkin:
Clarify the behaviour of PyUnicode_DecodeUTF16(): A BOM is only skipped
in native order mode, and only if it's the first two bytes.
2007-05-03 15:16:16 +00:00
Georg Brandl
82966e57e8 Backport r54763: repair missing spaces after \UNIX. 2007-04-21 07:25:39 +00:00
Martin v. Löwis
fe048e8ee7 Patch #1686451: Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}. 2007-03-23 10:35:57 +00:00
Georg Brandl
bd9d51321e Patch #1684834: document some utility C API functions.
(backport from rev. 54483)
2007-03-21 09:17:36 +00:00
Georg Brandl
ebfcfb015e Bugs #1668032, #1668036, #1669304: clarify behavior of PyMem_Realloc and _Resize.
(backport from rev. 54088)
2007-03-02 20:30:19 +00:00
Georg Brandl
eb68188a0d Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs.
(backport from rev. 53477)
2007-01-17 21:20:01 +00:00
Neal Norwitz
0c40ca6eb8 Remove a stray (old) macro name left around (I guess) 2006-12-28 04:39:54 +00:00
Georg Brandl
082f14b61c Patch #1592072: fix docs for return value of PyErr_CheckSignals.
(backport from rev. 52666)
2006-11-08 07:46:01 +00:00
Andrew M. Kuchling
1121e73536 [Bug #1579796] Wrong syntax for PyDateTime_IMPORT in documentation. Reported by David Faure. 2006-10-26 19:11:06 +00:00
Georg Brandl
0988904df8 Bug #1546052: clarify that PyString_FromString(AndSize) copies the
string pointed to by its parameter.
 (backport from rev. 52078)
2006-09-30 12:03:02 +00:00
Andrew M. Kuchling
e12b9f63ec Minor edits 2006-08-18 13:54:33 +00:00
Georg Brandl
1e8feed293 Typo in tp_clear docs.
(backport from rev. 51368)
2006-08-18 07:35:53 +00:00
Georg Brandl
595d9b6bc6 Bug #1541682: Fix example in the "Refcount details" API docs.
Additionally, remove a faulty example showing PySequence_SetItem applied
to a newly created list object and add notes that this isn't a good idea.
 (backport from rev. 51364)
2006-08-18 07:28:03 +00:00
Georg Brandl
4873fb2bac Improve markup in PyUnicode_RichCompare. 2006-08-14 12:36:06 +00:00
Marc-André Lemburg
040f76b79c Slightly revised version of patch #1538956:
Replace UnicodeDecodeErrors raised during == and !=
compares of Unicode and other objects with a new
UnicodeWarning.

All other comparisons continue to raise exceptions.
Exceptions other than UnicodeDecodeErrors are also left
untouched.
2006-08-14 10:55:19 +00:00
Neal Norwitz
8a87f5d37e Patch #1538606, Patch to fix __index__() clipping.
I modified this patch some by fixing style, some error checking, and adding
XXX comments.  This patch requires review and some changes are to be expected.
I'm checking in now to get the greatest possible review and establish a
baseline for moving forward.  I don't want this to hold up release if possible.
2006-08-12 17:03:09 +00:00
Tim Peters
4643c2fda1 Followup to bug #1069160.
PyThreadState_SetAsyncExc():  internal correctness changes wrt
refcount safety and deadlock avoidance.  Also added a basic test
case (relying on ctypes) and repaired the docs.
2006-08-10 22:45:34 +00:00
Georg Brandl
7572f0322a `str is now the same object as types.StringType`. 2006-08-08 20:48:10 +00:00
Georg Brandl
6c223fe796 Bug #1536828: typo: TypeType should have been StringType. 2006-08-08 20:11:22 +00:00
Georg Brandl
fbf969928f Fix function name. 2006-07-31 16:00:34 +00:00
Andrew M. Kuchling
555ac45b20 Document PyErr_WarnEx. (Bad Neal! No biscuit!)
Is the explanation of the 'stacklevel' parameter clear?  Please feel free
to edit it.

I don't have LaTeX installed on this machine, so haven't verified that the
markup is correct.  Will check tonight, or maybe the automatic doc build will
tell me.
2006-07-31 12:39:05 +00:00
Andrew M. Kuchling
43bae4144b Add refcounts for PyErr_WarnEx 2006-07-31 12:20:24 +00:00