summaryrefslogtreecommitdiffstats
path: root/Doc/api
Commit message (Collapse)AuthorAgeFilesLines
* SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by NickTim Peters2004-10-111-4/+12
| | | | | Coghlan, for determining whether PyEval_InitThreads() has been called. Also purged the undocumented+unused _PyThread_Started int.
* Fix typo in PyDict_Items docNicholas Bastin2004-09-291-1/+1
|
* SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now supportWalter Dörwald2004-09-071-0/+25
| | | | | | | | | | | 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.
* Patch #900727: Add Py_InitializeEx to allow embedding without signals.Martin v. Löwis2004-08-191-0/+7
|
* Spelling fixAndrew M. Kuchling2004-08-101-1/+1
|
* [Patch #1003861 from Dima Dorfman] Fix markup in concrete.tex:Andrew M. Kuchling2004-08-071-10/+5
| | | | | | | PyObject* o -> PyObject *o to be consistent with the rest of the file - Correct markup for Py_True - Remove duplicate description of PyBool_Check
* Use LaTeX markupAndrew M. Kuchling2004-08-071-1/+1
|
* [Bug #991883] Document calling conditionAndrew M. Kuchling2004-08-071-1/+2
|
* SF #989185: Drop unicode.iswide() and unicode.width() and addHye-Shik Chang2004-08-041-9/+0
| | | | | | | | | | | | 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
* let's avoid the extra nesting where reasonableFred Drake2004-08-031-1/+1
|
* Fix typo thoughNeal Norwitz2004-08-021-2/+2
|
* Fix doubled word.Raymond Hettinger2004-08-021-1/+1
|
* Typo repair.Tim Peters2004-08-021-1/+1
|
* Completed a sentence I left dangling.Tim Peters2004-08-021-1/+2
|
* PyImport_ImportModule, PyImport_ImportModuleEx, PyImport_ExecCodeModule:Tim Peters2004-08-021-10/+28
| | | | | in failure cases, incompletely initalized module objects are no longer left behind in sys.modules.
* Add missing doc for Py_True/Py_False. Use the correct macro to defineSkip Montanaro2004-07-291-6/+16
| | | | Py_RETURN_FALSE and Py_RETURN_TRUE.
* A little boolean music if you please, maestro... (Not sure I have theSkip Montanaro2004-07-281-0/+34
| | | | versionadded{} args quite right).
* Two typo fixesAndrew M. Kuchling2004-07-261-2/+2
|
* Fix an uncorrect function prototype.Thomas Heller2004-07-231-1/+1
| | | | | | Will backport to release23-maint. BTW: Shouldn't it read PY_LONG_LONG instead of 'long long' ?
* Supply missing word in new datetime docs, aggravated by copy-paste-edit.Tim Peters2004-07-171-3/+3
|
* Formalize that the Py_VISIT macro requires that the tp_traverseTim Peters2004-07-151-5/+6
| | | | implementation it's used in must give its arguments specific names.
* Documented the new Py_VISIT macro to simplify implementation ofJim Fulton2004-07-141-0/+23
| | | | tp_traverse handlers. (Tim made me do it. ;)
* Implemented a new Py_CLEAR macro. This macro should be used whenJim Fulton2004-07-141-0/+16
| | | | | decrementing the refcount of variables that might be accessed as a result of calling Python
* Claifications: visit procs are supplied by the core, users aren'tTim Peters2004-07-131-3/+6
| | | | | | | expected to write their own. A NULL "object" must not be passed to the visit callback. A non-zero return from a visit proc isn't necessarily an error return (and it doesn't matter to the tp_traverse code *what* it might signify, their only job is to return it).
* SF patch 986010: add missing doc for datetime C API, fromTim Peters2004-07-111-15/+85
| | | | | | | | | | Anthony Tuininga. This is a derived patch, taking the opportunity to add some organization to the now-large pile of datetime-related macros, and to factor out tedious repeated text. Also improved some clumsy wording in NEWS.
* Add PyArg_VaParseTupleAndKeywords(). Document this function andBrett Cannon2004-07-101-1/+14
| | | | | | PyArg_VaParse(). Closes patch #550732. Thanks Greg Chapman.
* Remove a few elderly sentencesAndrew M. Kuchling2004-07-101-9/+2
|
* Replace example with simpler alternative using PyGILState_{Ensure,Require). ↵Andrew M. Kuchling2004-07-101-13/+5
| | | | Can someone please confirm this change is OK?
* [Bug #987835] Add documentation from PEP 311. (Untested TeX code.)Andrew M. Kuchling2004-07-101-0/+36
|
* [Bug #984017] Incorrect prototype, fixed by Timothy StranexAndrew M. Kuchling2004-07-071-2/+2
|
* Change signatures for arguments to "s" and friends to be the proper ``constBrett Cannon2004-07-011-6/+6
| | | | | | | | char *`` instead of just ``char *``. Also added the mentioning of "const" in some places where it was left out even when the signature already stated the fact. Closes bug #980925.
* [Bug #948970] Add PyExc_* symbols to index.Andrew M. Kuchling2004-06-291-28/+28
| | | | | (I ran this through texcheck, but don't have LaTeX installed on this machine and therefore haven't verified that the changes are accepted by LaTeX.)
* Patch #923098: Share interned strings in marshal.Martin v. Löwis2004-06-271-3/+14
|
* SF patch 876130: add C API to datetime module, from Anthony Tuininga.Tim Peters2004-06-201-36/+157
| | | | | | The LaTeX is untested (well, so is the new API, for that matter). Note that I also changed NULL to get spelled consistently in concrete.tex. If that was a wrong thing to do, Fred should yell at me.
* Note that memory returned by PyBuffer_New is not specifically aligned.Neil Schemenauer2004-06-081-1/+3
| | | | Closes SF bug #472568.
* [Bug #936837] Add missing wordAndrew M. Kuchling2004-06-051-1/+1
|
* Drop claims that Unicode always means UCS-2. Fixes #881861.Martin v. Löwis2004-06-032-9/+10
|
* - SF #962502: Add two more methods for unicode type; width() andHye-Shik Chang2004-06-021-0/+9
| | | | | | | iswide() for east asian width manipulation. (Inspired by David Goodger, Reviewed by Martin v. Loewis) - Move _PyUnicode_TypeRecord.flags to the end of the struct so that no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)
* Document PyModule_AddIntConstant to take a long. Fixes #962471.Martin v. Löwis2004-06-021-1/+1
| | | | Will backport to 2.3.
* Patch #957398: Add public API for Generator Object/Type.Martin v. Löwis2004-06-011-0/+31
|
* minor wording cleanupFred Drake2004-05-121-1/+1
|
* Removed 'U' from the documentation for Py_BuildValue to bring it in lineNicholas Bastin2004-05-041-3/+0
| | | | | with the elimination of 'U' in modsupport.c on 2000/04/28 (replaced with 'u' and 'u#' per fdrake's comments).
* Two new public API functions, Py_IncRef and Py_DecRef. Useful forThomas Heller2004-04-221-0/+5
| | | | dynamic embedders of Python.
* SF bug #936827: PyNumber_And() 's descriptionRaymond Hettinger2004-04-171-1/+1
| | | | Fix typo.
* Emphasize the requirement that Python.h be included first more strongly.Fred Drake2004-03-311-3/+6
| | | | Closes SF bug #837228; backporting for Python 2.3.4.
* improve the very-high-level API docs (contributed by Jeff Epler)Fred Drake2004-03-251-34/+180
| | | | Closes SF patch #798638.
* Remove note that PyErr_SetInterrupt() is obsolete; add comment about theFred Drake2004-03-251-1/+3
| | | | | fact that it was marked obsolete but is still needed. Closes SF bug #919299. Someone else should backport this to Python 2.3.
* SF bug: #921927: Fixed a typo/thinko spelling "parameter" as "paramter"Raymond Hettinger2004-03-251-2/+2
|
* Enable the profiling of C functions (builtins and extensions)Nicholas Bastin2004-03-241-4/+24
|
* Minor grammatical fixes.Brett Cannon2004-03-181-3/+3
|