Larry Hastings
402b73fb8d
Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
16 years ago
Georg Brandl
0312494665
Remove last traces of cStringIO.
18 years ago
Christian Heimes
90aa7646af
#1629 : Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
18 years ago
Christian Heimes
e93237dfcc
#1629 : Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
18 years ago
Martin v. Löwis
9f2e346911
Merged revisions 56467-56482 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk
................
r56477 | martin.v.loewis | 2007-07-21 09:04:38 +0200 (Sa, 21 Jul 2007) | 11 lines
Merged revisions 56466-56476 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r56476 | martin.v.loewis | 2007-07-21 08:55:02 +0200 (Sa, 21 Jul 2007) | 4 lines
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
........
................
r56478 | martin.v.loewis | 2007-07-21 09:47:23 +0200 (Sa, 21 Jul 2007) | 2 lines
PEP 3123: Use proper C inheritance for PyObject.
................
r56479 | martin.v.loewis | 2007-07-21 10:06:55 +0200 (Sa, 21 Jul 2007) | 3 lines
Add longintrepr.h to Python.h, so that the compiler can
see that PyFalse is really some kind of PyObject*.
................
r56480 | martin.v.loewis | 2007-07-21 10:47:18 +0200 (Sa, 21 Jul 2007) | 2 lines
Qualify SHIFT, MASK, BASE.
................
r56482 | martin.v.loewis | 2007-07-21 19:10:57 +0200 (Sa, 21 Jul 2007) | 2 lines
Correctly refer to _ob_next.
................
19 years ago
Martin v. Löwis
6819210b9e
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
19 years ago
Martin v. Löwis
18e165558b
Merge ssize_t branch.
20 years ago
Jeremy Hylton
af68c874a6
Add const to several API functions that take char *.
In C++, it's an error to pass a string literal to a char* function
without a const_cast(). Rather than require every C++ extension
module to put a cast around string literals, fix the API to state the
const-ness.
I focused on parts of the API where people usually pass literals:
PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
slots, etc. Predictably, there were a large set of functions that
needed to be fixed as a result of these changes. The most pervasive
change was to make the keyword args list passed to
PyArg_ParseTupleAndKewords() to be a const char *kwlist[].
One cast was required as a result of the changes: A type object
mallocs the memory for its tp_doc slot and later frees it.
PyTypeObject says that tp_doc is const char *; but if the type was
created by type_new(), we know it is safe to cast to char *.
20 years ago
Raymond Hettinger
7b8e281997
SF bug #670229 : doc improvement for cStringIO.h
Gernot Hillier added more detail to the internal API documentation.
23 years ago
Neal Norwitz
638437ff4d
SF # 607253, header file problems by Ralf W. Grosse-Kunstleve
Don't pollute the namespace when protecting against multiple header inclusion.
Prefix with Py_ and use standard naming convention Py_FILENAME_H.
24 years ago
Jeremy Hylton
f4d32df19d
Remove function definition from cStringIO.h.
xxxPyCObject_Import() seems to be a copy of PyCObject_Import().
24 years ago
Guido van Rossum
2e1c09c1fd
Removed old Digital Creations copyright/license notices (with
permission from Paul Everitt). Also removed a few other references to
Digital Creations and changed the remaining ones to Zope Corporation.
24 years ago
Martin v. Löwis
522cf1f6fb
Patch #536908 : Add missing #include guards/extern "C".
24 years ago
Martin v. Löwis
eefa964932
Cast the result of xxxPyCObject_Import to PycStringIO_CAPI*.
This fixes bug #431557 .
25 years ago
Thomas Wouters
7889010731
Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P
26 years ago
Thomas Wouters
7e47402264
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
26 years ago
Tim Peters
dbd9ba6a6c
Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
26 years ago
Guido van Rossum
7999bfb235
There's a macro PycString_IMPORT which the documentation listed as
PycStringIO_IMPORT. While arguably the name used in the documentation
is more consistent, I think it's probably safer not to change the
macro definition and instead fix the doco.
27 years ago
Guido van Rossum
f0f3600d0b
Undo the change here -- there's no point in declaring a static
function as DL_IMPORT()!
28 years ago
Guido van Rossum
43466ec7b0
Add DL_IMPORT(returntype) for all officially exported functions.
28 years ago
Guido van Rossum
cd8732a482
Remove the last bits of log from the leading comments.
29 years ago
Guido van Rossum
36facb086e
Merge between my version and Jim Fulton's version; removed RCS keywords
but otherwise unchanged.
29 years ago
Guido van Rossum
eec6ef1aa2
Use K&R function prototypes.
29 years ago
Guido van Rossum
142eeb8339
cPickle release 0.3 from Jim Fulton
29 years ago
Guido van Rossum
45c3aaba56
Got rid of the static decl of PyCObject_Import, which was a 1.4
compatibility hack.
29 years ago
Guido van Rossum
0a73dd5f35
Changed the way the C API was exported. Jim Fulton.
29 years ago
Guido van Rossum
d81a1baa5f
Jim's latest version
30 years ago
Guido van Rossum
049cd90b93
Jim F's brainchild
30 years ago