summaryrefslogtreecommitdiffstats
path: root/Doc/api/concrete.tex
Commit message (Collapse)AuthorAgeFilesLines
* Documentation for PyDescr_NewClassMethod was missing - here's at leastThomas Heller2004-02-091-0/+5
| | | | | | the function prototype. Already backported to release23-maint.
* clean up indexing for None, NotImplementedFred Drake2004-01-011-1/+1
| | | | closes SF bug #820344
* At 2.2, the Py<type>_Check() family of API functions (macros) changedAndrew MacIntyre2003-12-261-0/+6
| | | | | | | | | | | | semantics to include subtypes. Most concrete object APIs then had a Py<type>_CheckExact() macro added to test for an object's type not including subtypes. The PyDict_CheckExact() macro wasn't created at that time, so I've added it for API completeness/symmetry - even though nobody has complained about its absence in the time since 2.2 was released. Not a backport candidate.
* The semantics of PyList_Check() and PyDict_Check() changed at 2.2, alongAndrew MacIntyre2003-12-251-2/+12
| | | | | | | | | with most other concrete object checks, but the docs weren't brought into line. PyList_CheckExact() was added at 2.2 but never documented. backport candidate.
* Note that \var{ppos} values are not consecutive and should not be altered.Raymond Hettinger2003-12-131-1/+3
|
* Expose dict_contains() and PyDict_Contains() with is about 10% fasterRaymond Hettinger2003-11-251-0/+8
| | | | | | | than PySequence_Contains() and more clearly applicable to dicts. Apply the new function in setobject.c where __contains__ checking is ubiquitous.
* fix use of undefined markupFred Drake2003-11-101-1/+1
|
* Document Py_RETURN_NONE.Brett Cannon2003-11-091-0/+4
|
* Document that varlist can be NULL.Raymond Hettinger2003-10-261-2/+4
|
* Make CObjects mutable. Fixes #477441.Martin v. Löwis2003-10-191-5/+11
|
* Patch #821093: Fix various typos.Martin v. Löwis2003-10-191-4/+4
|
* Extended tuple's C API to include a new function, PyTuple_Pack() that isRaymond Hettinger2003-10-121-1/+9
| | | | | useful for rapidly building argument tuples without having to invoke the more sophisticated machinery of Py_BuildValue().
* Fix typo.Raymond Hettinger2003-08-231-1/+1
|
* Patch #612627: Add encoding attribute to file objects, and determineMartin v. Löwis2003-05-101-0/+6
| | | | the terminal encoding on Windows and Unix.
* fix some markup errorsFred Drake2003-04-231-2/+2
|
* Document the new functions PyInt_AsUnsignedLongMask(), ↵Thomas Heller2003-04-231-0/+26
| | | | | | PyInt_AsUnsignedLongLongMask(), PyLong_AsUnsignedLongMask(), PyLong_AsUnsignedLongLongMask().
* Patch #701395: Correct documentation of PyUnicode_Splitlines.Martin v. Löwis2003-03-301-3/+4
|
* PyWeakref_GetObject returns None (not NULL) when the referent is gone.Ka-Ping Yee2003-03-281-1/+1
|
* * Add description of PyInt_FromString.Skip Montanaro2003-02-031-3/+23
| | | | | | * Correct description of PyFloat_FromString. While ignored, the pend argument still has to be given. * Typo in PyLong_FromString.
* Add PyFloat_FromString. Left the char **pend argument out of theSkip Montanaro2003-02-031-0/+5
| | | | | | description since while there, it is useless and ignored, according to Tim's commen. (PyInt_FromString is also not described, but PyLong_FromString is. Is the former deprecated?)
* Clarified the error cases and Unicode handling of PyString_AsString(),Fred Drake2002-10-221-8/+17
| | | | | PyString_AsStringAndSize(), and PyString_AS_STRING(). Closes SF bug #606463.
* Corrected return type and value information for PyUnicode_Count() andFred Drake2002-06-201-14/+18
| | | | | PyUnicode_Find(). This closes SF bug #566631.
* This is my nearly two year old patchMichael W. Hudson2002-06-111-0/+26
| | | | | | | | | [ 400998 ] experimental support for extended slicing on lists somewhat spruced up and better tested than it was when I wrote it. Includes docs & tests. The whatsnew section needs expanding, and arrays should support extended slices -- later.
* Typo: whcar_t should be wchar_t.Thomas Heller2002-04-291-4/+4
| | | | Bugfix candidate? Don't know how this is handled in the docs.
* Small markup adjustments for consistency.Fred Drake2002-04-291-2/+2
|
* Repair widespread misuse of _PyString_Resize. Since it's clear peopleTim Peters2002-04-271-1/+10
| | | | | | | | | | | | | | | | | | | | | | 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(&s, n) < 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(&s, n) < 0) goto outtahere; Bugfix candidate.
* Warn people away from PyModule_GetDict(), but not too strongly.Fred Drake2002-04-121-0/+3
| | | | | | | (The real issue is whether modules can benefit from an alternate implementation strategy rather than using a dictionary. We should migrate away from direct dictionary manipulation to allow more room for Jeremy to flex the implementation with changes in globals lookup.)
* Add a (very) simple description of PyType_Ready().Fred Drake2002-04-121-0/+4
|
* Document PyType_CheckExact(), PyType_IS_GC().Fred Drake2002-04-101-1/+16
| | | | Update description of PyType_Check().
* Add a note that Py_None needs the same reference count treatment as anyFred Drake2002-03-121-1/+2
| | | | | other PyObject *. This closes SF bug #494007.
* PyDict_Next: update doc to indicate that pkey and pvalue return values areSkip Montanaro2002-01-231-1/+2
| | | | borrowed references.
* add missing return value info for PyDict_DelItemSkip Montanaro2002-01-231-1/+1
|
* A number of small adjustments.Fred Drake2001-12-111-4/+12
|
* SF bug #491415 PyDict_UpdateFromSeq2() unusedTim Peters2001-12-111-20/+43
| | | | | | | PyDict_UpdateFromSeq2(): removed it. PyDict_MergeFromSeq2(): made it public and documented it. PyDict_Merge() docs: updated to reveal <wink> that the second argument can be any mapping object.
* Document that PyString_FromString() cannot take NULL as a parameter.Fred Drake2001-12-061-1/+2
| | | | This closes SF bug #489872.
* Update the signature of PyFile_WriteString().Fred Drake2001-11-291-1/+1
|
* Add documentation for the PyCell* APIs.Fred Drake2001-11-261-0/+50
|
* Break the Python/C API manual into smaller files by chapter. This manualFred Drake2001-10-121-0/+2342
has grown beyond what font-lock will work with using the default (X)Emacs settings. Indentation of the description has been made consistent, and a number of smaller markup adjustments have been made as well.