| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
concrete sequence objects, since their API is simpler.
This is in response to a comment in SF bug #440037.
(Does this really belong in the bugfix release? Yes: this is a readability
bug, and those are important in the documentation.)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PyObject_InitVar(), PyObject_Del(), PyObject_NEW(),
PyObject_NEW_VAR(), and PyObject_DEL().
Add notes to PyMem_Malloc() and PyMem_New() about the memory buffers
not being initialized.
This fixes SF bug #439012.
Added explicit return value information for PyList_SetItem(),
PyDict_SetItem(), and PyDict_SetItemString(). Corrected return type
for PyList_SET_ITEM().
Fixed index entries in the descriptions of PyLong_AsLong() and
PyLong_AsUnignedLong().
This fixes the API manual portion of SF bug #440037.
Note that the headers properly declare everything as 'extern "C"' for
C++ users.
Document _Py_NoneStruct.
Added links to the Extending & Embedding manual for PyArg_ParseTuple()
and PyArg_ParseTupleAndKeywords().
Added note that PyArg_Parse() should not be used in new code.
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more
difficult for non-native speakers.
|
|
|
|
|
|
| |
The block/unblock thread macros are called 'Py_BLOCK_THREADS' and
'Py_UNBLOCK_THREADS', not 'Py_BEGIN_BLOCK_THREADS' and
'Py_BEGIN_UNBLOCK_THREADS'.
|
| |
|
|
|
|
| |
and the license statements are at the end. This is less annoying to readers.
|
|
|
|
|
|
|
| |
In particular, the affect on existing list content was not sufficiently
explained.
This closes SF bug #429554.
|
|
|
|
|
|
|
| |
PySequence_Size(), not PyObject_Size(): the later considers the mapping
methods as well as the sequence methods, which is not needed here. Either
should be equally fast in this case, but PySequence_Size() offers a better
conceptual match.
|
| |
|
|
|
|
| |
This closes SF bug #425320.
|
|
|
|
|
|
|
| |
Update docs for PyDict_Next() based on the most recent changes to the
dictionary code.
This closes SF patch #409864.
|
| |
|
|
|
|
| |
Fixes bug #233308 from Travis Oliphant.
|
|
|
|
| |
alternate name for the same function.
|
| |
|
| |
|
|
|
|
|
|
|
| |
extension object. Also included an example showing exactly what needs to
be done and nothing else.
This closes SF bug #228591.
|
|
|
|
|
|
|
| |
supporting cyclic garbage collection. (This is not all of it, but I'm
taking a break!)
Also fixed some markup nits.
|
|
|
|
|
|
| |
different enough to actually require an explanation. ;-)
Fix a couple of PyDictObject* types that should be PyObject* types.
|
| |
|
|
|
|
| |
This closes SF bug #131304.
|
|
|
|
| |
defined.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
except that it always returns Unicode objects.
A new C API PyObject_Unicode() is also provided.
This closes patch #101664.
Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
|
| |
|
| |
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
| |
Add an XXX comment at the beginning expressing disappointment over the
confusing way refcount behavior of arguments is documented.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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"
|
|
|
|
|
| |
class, but not an instance (since an instance will be created using the
formatted message string as the constructor parameter).
|
|
|
|
|
|
| |
they were similar to *_GetSize(); should be similar to *_Size().
Error noted by William Park <parkw@better.net>.
|
| |
|
|
|
|
| |
This closes SourceForge bug #115673.
|
| |
|
|
|
|
| |
This closes SourceForge patch #101233.
|
|
|
|
| |
This closes SourceForge bug #114287.
|
| |
|
|
|
|
| |
This closes SourceForge bug #114792.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
(Is there no macro to document a typedef?)
Fred, please check my latex!
|
|
|
|
| |
This partially addresses SourceForge bug #114318.
|
|
|
|
| |
This partially addresses SourceForge bug #114318.
|
|
|
|
|
| |
Fix up some of the PyNumber_*() documentation.
Add documentation for the InPlace API calls.
|
|
|
|
|
|
|
| |
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.
|