summaryrefslogtreecommitdiffstats
path: root/Doc/api
Commit message (Collapse)AuthorAgeFilesLines
* Oops. The value "0 or +1" for the category argument of PyErr_Warn()Guido van Rossum2000-12-191-1/+1
| | | | | | doesn't work. Make it 0. (Although it really *should* be 0 or +1 -- the refcount is incremented when it is raised as an exception, but not otherwise.)
* Document Pyerr_Warn().Guido van Rossum2000-12-191-0/+11
| | | | | Add an XXX comment at the beginning expressing disappointment over the confusing way refcount behavior of arguments is documented.
* Document Pyerr_Warn().Guido van Rossum2000-12-191-0/+34
|
* In the first discussion showing how to handle exceptions from C, make theFred Drake2000-11-291-7/+11
| | | | | | | | Python equivalent actually equivalent to the C code. Also, in the C code, place the "goto" statements on a line by themselves for better visibility of statements that affect control flow. This closes bug #123398.
* Added documentation for the Py_InitModule*() family of functions.Fred Drake2000-11-282-1/+47
|
* Updates to reflect pending changes to the XML conversion process.Fred Drake2000-11-221-1/+1
|
* Added exception to the rule that the buffer returned by PyString_AsString()Fred Drake2000-10-231-4/+17
| | | | | | | | | | | | and PyString_AsStringAndSize() for strings that were just created using PyString_FromStringAndSize(NULL, n). This closes bug #117377. Added warning about passing NULL to the concrete object functions; many of them use the appropriate Py<Type>_Check() test, but do not check for NULL. "de-allocated" --> "deallocated"
* For PyErr_Format(), note that the exception parameter can be a string orFred Drake2000-10-141-2/+2
| | | | | class, but not an instance (since an instance will be created using the formatted message string as the constructor parameter).
* Fix a couple of places where the descriptions of *_GET_SIZE() macros saidFred Drake2000-10-071-2/+2
| | | | | | they were similar to *_GetSize(); should be similar to *_Size(). Error noted by William Park <parkw@better.net>.
* The _PyTuple_Resize() last_is_sticky flag must now always be false.Neil Schemenauer2000-10-051-6/+6
|
* Reversely --> ConverselyFred Drake2000-09-291-2/+2
| | | | This closes SourceForge bug #115673.
* Note that including Python.h includes limits.h when available.Fred Drake2000-09-261-2/+2
|
* Added documentation for the new PyModule_*() convenience functions.Fred Drake2000-09-231-0/+26
| | | | This closes SourceForge patch #101233.
* Added refcount information for the *_InPlace*() API series.Fred Drake2000-09-221-0/+53
| | | | This closes SourceForge bug #114287.
* PyNumber_Coerce() returns an int, not a PyObject *.Fred Drake2000-09-221-1/+1
|
* Include the new text on reporting bugs in a few useful places.Fred Drake2000-09-211-0/+4
| | | | This closes SourceForge bug #114792.
* This patch adds a new Python C API called PyString_AsStringAndSize()Marc-André Lemburg2000-09-192-0/+22
| | | | | | | | | | | | | which implements the automatic conversion from Unicode to a string object using the default encoding. The new API is then put to use to have eval() and exec accept Unicode objects as code parameter. This closes bugs #110924 and #113890. As side-effect, the traditional C APIs PyString_Size() and PyString_AsString() will also accept Unicode objects as parameters.
* Document new APIs PyOS_getsig() and PyOS_setsig().Guido van Rossum2000-09-161-0/+15
| | | | | | (Is there no macro to document a typedef?) Fred, please check my latex!
* Use \shortversion in a number of places.Fred Drake2000-09-141-6/+5
| | | | This partially addresses SourceForge bug #114318.
* Avoid reference to specific versions of Python where possible.Fred Drake2000-09-141-3/+3
| | | | This partially addresses SourceForge bug #114318.
* Thomas Wouters <thomas@xs4all.net>:Fred Drake2000-09-121-7/+106
| | | | | Fix up some of the PyNumber_*() documentation. Add documentation for the InPlace API calls.
* Vladimir Marangozov <Vladimir.Marangozov@inrialpes.fr>:Fred Drake2000-09-122-54/+62
| | | | | | | Here are some changes to the C API docs. The memory examples & API have been updated because one malloc family is gone (Py_Malloc). You'll see other small additions to the "building new types" section for completeness and some cleanup at the end of the memory section.
* Added documentation for PySequence_Fast() and PySequence_Fast_GET_ITEM().Fred Drake2000-09-122-0/+25
|
* Update documentation for PyErr_Format, because the function has changed.Moshe Zadka2000-09-011-9/+19
| | | | Connected to patch 100895
* Document PyImport_AppendInittab(), PyImport_ExtendInittab(), andFred Drake2000-09-011-1/+39
| | | | | | struct _inittab. This closes SourceForge bug #111499.
* refactor __del__ exception handler into PyErr_WriteUnraisableJeremy Hylton2000-09-011-0/+11
| | | | | add sanity check to gc: if an exception occurs during GC, call PyErr_WriteUnraisable and then call Py_FatalEror.
* Document PyOS_CheckStack().Fred Drake2000-08-311-2/+12
| | | | Fix a couple of really minor markup nits.
* Correct the reference count information for the parameters ofFred Drake2000-08-151-3/+3
| | | | PyErr_Restore().
* In the section on the "Very High Level Layer", address concerns brought upFred Drake2000-08-141-0/+9
| | | | | | | | by Edward K. Ream <edream@users.sourceforge.net> about FILE* values and incompatible C libraries in dynamically linked extensions. It is not clear (to me) how realistic the issue is, but it is better documented than not. This closes SourceForge bug #111520.
* Added information for PyEval_EvalCode().Fred Drake2000-08-121-2/+7
| | | | Fixed a couple of typos (new references are represented by "+1", not "1").
* PyRun_InteractiveOne(),Fred Drake2000-08-111-2/+20
| | | | | | | | PyRun_InteractiveLoop(): Added descriptions. PyExc_WindowsError: Added to list of standard exceptions and added note about the right preprocessor symbol to use to protect code that uses it.
* ANY becomes void, to reflect the requirement for ANSI C.Fred Drake2000-08-111-18/+11
|
* Document PyObject_AsFileDescriptorAndrew M. Kuchling2000-07-132-0/+10
|
* Added new APIs and fixed some other Unicode ones (missing * orMarc-André Lemburg2000-07-071-56/+78
| | | | extra ' ').
* Added docs for the new Unicode and string APIs.Marc-André Lemburg2000-07-071-7/+52
|
* Marc-Andre Lemburg <mal@lemburg.com>:Fred Drake2000-07-031-1/+9
| | | | | Update the API docs for the new macros Py_UNICODE_ISALPHA() and Py_UNICODE_ISALNUM().
* Uncomment some additions from Vladimir pertinent to 2.0 but not 1.5.2.Fred Drake2000-06-301-8/+7
|
* Update comments relating to the removal of the -X option and of stringFred Drake2000-06-291-16/+11
| | | | exceptions in the interpreter and standard library.
* Added documentation for PyOS_AfterFork().Fred Drake2000-06-281-0/+7
|
* Markup consistency nits.Fred Drake2000-06-181-89/+43
|
* Updates from Marc-Andre Lemburg <mal@leburg.com> for the Unicode support.Fred Drake2000-06-162-2/+273
|
* Added reference count information for PySequence_List().Fred Drake2000-06-161-0/+3
|
* Documented PySequence_List() and PySequence_Tuple().Fred Drake2000-06-161-20/+54
| | | | | | | Added a bit more documentation in the chapter on building extension types, including Py_FindMethod() documentation. Several minor consistency nits were fixed.
* Added reference count information for Py_FindMethod().Fred Drake2000-04-101-0/+5
|
* Yet another markup nit: functions that are part of the Python/C APIFred Drake2000-04-101-3/+5
| | | | are still C functions, and should be marked.
* PyErr_Format():Fred Drake2000-04-101-1/+0
| | | | | Remove statement that the return value is always NULL; this is generated by the formatting.
* document PyErr_FormatJeremy Hylton2000-04-102-0/+16
|
* Add to the comment a description of the "null" value for returnedFred Drake2000-04-101-1/+4
| | | | PyObject* values.
* The reference count field for PyErr_NoMemory() andFred Drake2000-04-101-2/+2
| | | | PyErr_SetFromErrno() should be "null".
* Marc-Andre Lemburg <mal@lemburg.com>:Fred Drake2000-04-061-0/+712
| | | | API documentation for Unicode support from C.