Commit Graph

372 Commits

Author SHA1 Message Date
Brett Cannon
8d751fa05e Fix name from PyDate_FromDateAndTime to PyDateTime_FromDateAndTime.
Closes bug #1124278.
2005-02-17 05:16:19 +00:00
Brett Cannon
150d61d37e Update refences to "Macintosh" to reflect the state of affairs for OS X and not
Mac OS 9.

Backport of patch #1095802.
2005-02-13 22:56:41 +00:00
Fred Drake
96ee1c4b8a Clean up discussion of new C thread idiom
(closes SF patch #1031233; modified)
2005-01-19 04:13:14 +00:00
Raymond Hettinger
1498d63795 SF Patch #1093896: miscellaneous doc typos 2005-01-01 00:34:56 +00:00
Raymond Hettinger
e0c80c33af SF bug #1082944: Incorrect docs for PyUnicode_TailMatch
* Note correct return type is int.
* Note that -1 returned on failure.
2004-12-10 17:13:51 +00:00
Marc-André Lemburg
a9cadcd41b Correct the handling of 0-termination of PyUnicode_AsWideChar()
and its usage in PyLocale_strcoll().

Clarify the documentation on this.

Thanks to Andreas Degert for pointing this out.
2004-11-22 13:02:31 +00:00
Tim Peters
7f468f29f4 SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by Nick
Coghlan, for determining whether PyEval_InitThreads() has been called.
Also purged the undocumented+unused _PyThread_Started int.
2004-10-11 02:40:51 +00:00
Nicholas Bastin
975e725fc7 Fix typo in PyDict_Items doc 2004-09-29 21:39:26 +00:00
Walter Dörwald
69652035bc SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support
decoding incomplete input (when the input stream is temporarily exhausted).
codecs.StreamReader now implements buffering, which enables proper
readline support for the UTF-16 decoders. codecs.StreamReader.read()
has a new argument chars which specifies the number of characters to
return. codecs.StreamReader.readline() and codecs.StreamReader.readlines()
have a new argument keepends. Trailing "\n"s will be stripped from the lines
if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and
PyUnicode_DecodeUTF16Stateful.
2004-09-07 20:24:22 +00:00
Martin v. Löwis
336e85f56a Patch #900727: Add Py_InitializeEx to allow embedding without signals. 2004-08-19 11:31:58 +00:00
Andrew M. Kuchling
f54ac7e0ee Spelling fix 2004-08-10 19:01:50 +00:00
Andrew M. Kuchling
4eb1a00cc1 [Patch #1003861 from Dima Dorfman] Fix markup in concrete.tex:
PyObject* o -> PyObject *o to be consistent with the
rest of the file
- Correct markup for Py_True
- Remove duplicate description of PyBool_Check
2004-08-07 20:19:24 +00:00
Andrew M. Kuchling
672d2ba773 Use LaTeX markup 2004-08-07 20:17:48 +00:00
Andrew M. Kuchling
fe80b63663 [Bug #991883] Document calling condition 2004-08-07 17:53:05 +00:00
Hye-Shik Chang
e9ddfbb412 SF #989185: Drop unicode.iswide() and unicode.width() and add
unicodedata.east_asian_width().  You can still implement your own
simple width() function using it like this:
    def width(u):
        w = 0
        for c in unicodedata.normalize('NFC', u):
            cwidth = unicodedata.east_asian_width(c)
            if cwidth in ('W', 'F'): w += 2
            else: w += 1
        return w
2004-08-04 07:38:35 +00:00
Fred Drake
2be406bd9f let's avoid the extra nesting where reasonable 2004-08-03 16:02:35 +00:00
Neal Norwitz
7fdd92f31f Fix typo though 2004-08-02 21:56:33 +00:00
Raymond Hettinger
829d6c4138 Fix doubled word. 2004-08-02 08:36:07 +00:00
Tim Peters
fd7dc5169c Typo repair. 2004-08-02 04:30:37 +00:00
Tim Peters
0c6199e8ed Completed a sentence I left dangling. 2004-08-02 04:14:10 +00:00
Tim Peters
cfd575d398 PyImport_ImportModule, PyImport_ImportModuleEx, PyImport_ExecCodeModule:
in failure cases, incompletely initalized module objects are no longer
left behind in sys.modules.
2004-08-02 03:46:45 +00:00
Skip Montanaro
6d3db7000e Add missing doc for Py_True/Py_False. Use the correct macro to define
Py_RETURN_FALSE and Py_RETURN_TRUE.
2004-07-29 02:16:04 +00:00
Skip Montanaro
33ee76ae9e A little boolean music if you please, maestro... (Not sure I have the
versionadded{} args quite right).
2004-07-28 14:17:04 +00:00
Andrew M. Kuchling
e03664ff22 Two typo fixes 2004-07-26 19:25:54 +00:00
Thomas Heller
fe0808382b Fix an uncorrect function prototype.
Will backport to release23-maint.

BTW: Shouldn't it read PY_LONG_LONG instead of 'long long' ?
2004-07-23 14:49:52 +00:00