Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF patch 876130: add C API to datetime module, from Anthony Tuininga. | Tim Peters | 2004-06-20 | 1 | -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 Schemenauer | 2004-06-08 | 1 | -1/+3 |
| | | | | Closes SF bug #472568. | ||||
* | Drop claims that Unicode always means UCS-2. Fixes #881861. | Martin v. Löwis | 2004-06-03 | 1 | -3/+4 |
| | |||||
* | - SF #962502: Add two more methods for unicode type; width() and | Hye-Shik Chang | 2004-06-02 | 1 | -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öwis | 2004-06-02 | 1 | -1/+1 |
| | | | | Will backport to 2.3. | ||||
* | Patch #957398: Add public API for Generator Object/Type. | Martin v. Löwis | 2004-06-01 | 1 | -0/+31 |
| | |||||
* | SF bug: #921927: Fixed a typo/thinko spelling "parameter" as "paramter" | Raymond Hettinger | 2004-03-25 | 1 | -2/+2 |
| | |||||
* | Documentation for PyDescr_NewClassMethod was missing - here's at least | Thomas Heller | 2004-02-09 | 1 | -0/+5 |
| | | | | | | the function prototype. Already backported to release23-maint. | ||||
* | clean up indexing for None, NotImplemented | Fred Drake | 2004-01-01 | 1 | -1/+1 |
| | | | | closes SF bug #820344 | ||||
* | At 2.2, the Py<type>_Check() family of API functions (macros) changed | Andrew MacIntyre | 2003-12-26 | 1 | -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, along | Andrew MacIntyre | 2003-12-25 | 1 | -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 Hettinger | 2003-12-13 | 1 | -1/+3 |
| | |||||
* | Expose dict_contains() and PyDict_Contains() with is about 10% faster | Raymond Hettinger | 2003-11-25 | 1 | -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 markup | Fred Drake | 2003-11-10 | 1 | -1/+1 |
| | |||||
* | Document Py_RETURN_NONE. | Brett Cannon | 2003-11-09 | 1 | -0/+4 |
| | |||||
* | Document that varlist can be NULL. | Raymond Hettinger | 2003-10-26 | 1 | -2/+4 |
| | |||||
* | Make CObjects mutable. Fixes #477441. | Martin v. Löwis | 2003-10-19 | 1 | -5/+11 |
| | |||||
* | Patch #821093: Fix various typos. | Martin v. Löwis | 2003-10-19 | 1 | -4/+4 |
| | |||||
* | Extended tuple's C API to include a new function, PyTuple_Pack() that is | Raymond Hettinger | 2003-10-12 | 1 | -1/+9 |
| | | | | | useful for rapidly building argument tuples without having to invoke the more sophisticated machinery of Py_BuildValue(). | ||||
* | Fix typo. | Raymond Hettinger | 2003-08-23 | 1 | -1/+1 |
| | |||||
* | Patch #612627: Add encoding attribute to file objects, and determine | Martin v. Löwis | 2003-05-10 | 1 | -0/+6 |
| | | | | the terminal encoding on Windows and Unix. | ||||
* | fix some markup errors | Fred Drake | 2003-04-23 | 1 | -2/+2 |
| | |||||
* | Document the new functions PyInt_AsUnsignedLongMask(), ↵ | Thomas Heller | 2003-04-23 | 1 | -0/+26 |
| | | | | | | PyInt_AsUnsignedLongLongMask(), PyLong_AsUnsignedLongMask(), PyLong_AsUnsignedLongLongMask(). | ||||
* | Patch #701395: Correct documentation of PyUnicode_Splitlines. | Martin v. Löwis | 2003-03-30 | 1 | -3/+4 |
| | |||||
* | PyWeakref_GetObject returns None (not NULL) when the referent is gone. | Ka-Ping Yee | 2003-03-28 | 1 | -1/+1 |
| | |||||
* | * Add description of PyInt_FromString. | Skip Montanaro | 2003-02-03 | 1 | -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 the | Skip Montanaro | 2003-02-03 | 1 | -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 Drake | 2002-10-22 | 1 | -8/+17 |
| | | | | | PyString_AsStringAndSize(), and PyString_AS_STRING(). Closes SF bug #606463. | ||||
* | Corrected return type and value information for PyUnicode_Count() and | Fred Drake | 2002-06-20 | 1 | -14/+18 |
| | | | | | PyUnicode_Find(). This closes SF bug #566631. | ||||
* | This is my nearly two year old patch | Michael W. Hudson | 2002-06-11 | 1 | -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 Heller | 2002-04-29 | 1 | -4/+4 |
| | | | | Bugfix candidate? Don't know how this is handled in the docs. | ||||
* | Small markup adjustments for consistency. | Fred Drake | 2002-04-29 | 1 | -2/+2 |
| | |||||
* | Repair widespread misuse of _PyString_Resize. Since it's clear people | Tim Peters | 2002-04-27 | 1 | -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 Drake | 2002-04-12 | 1 | -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 Drake | 2002-04-12 | 1 | -0/+4 |
| | |||||
* | Document PyType_CheckExact(), PyType_IS_GC(). | Fred Drake | 2002-04-10 | 1 | -1/+16 |
| | | | | Update description of PyType_Check(). | ||||
* | Add a note that Py_None needs the same reference count treatment as any | Fred Drake | 2002-03-12 | 1 | -1/+2 |
| | | | | | other PyObject *. This closes SF bug #494007. | ||||
* | PyDict_Next: update doc to indicate that pkey and pvalue return values are | Skip Montanaro | 2002-01-23 | 1 | -1/+2 |
| | | | | borrowed references. | ||||
* | add missing return value info for PyDict_DelItem | Skip Montanaro | 2002-01-23 | 1 | -1/+1 |
| | |||||
* | A number of small adjustments. | Fred Drake | 2001-12-11 | 1 | -4/+12 |
| | |||||
* | SF bug #491415 PyDict_UpdateFromSeq2() unused | Tim Peters | 2001-12-11 | 1 | -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 Drake | 2001-12-06 | 1 | -1/+2 |
| | | | | This closes SF bug #489872. | ||||
* | Update the signature of PyFile_WriteString(). | Fred Drake | 2001-11-29 | 1 | -1/+1 |
| | |||||
* | Add documentation for the PyCell* APIs. | Fred Drake | 2001-11-26 | 1 | -0/+50 |
| | |||||
* | Break the Python/C API manual into smaller files by chapter. This manual | Fred Drake | 2001-10-12 | 1 | -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. |