- 01 Mar, 2006 1 commit
-
-
Martin v. Löwis authored
-
- 16 Feb, 2006 1 commit
-
-
Martin v. Löwis authored
-
- 15 Feb, 2006 1 commit
-
-
Martin v. Löwis authored
-
- 24 Dec, 2005 1 commit
-
-
Tim Peters authored
compiler warnings about mixing signed and unsigned types in comparisons.
-
- 10 Dec, 2005 1 commit
-
-
Jeremy Hylton authored
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 *.
-
- 24 Nov, 2005 1 commit
-
-
Georg Brandl authored
-
- 20 Nov, 2005 1 commit
-
-
Neal Norwitz authored
Document more info about the benefits of configuring without pymalloc when running valgrind
-
- 14 Jul, 2004 1 commit
-
-
Michael W. Hudson authored
[ 984722 ] Py_BuildValue loses reference counts on error I'm ever-so-slightly uneasy at the amount of work this can do with an exception pending, but I don't think that this can result in anything more serious than a strange error message.
-
- 19 Nov, 2003 1 commit
-
-
Jack Jansen authored
-
- 24 Oct, 2003 1 commit
-
-
Martin v. Löwis authored
-
- 21 Jun, 2003 1 commit
-
-
Jeremy Hylton authored
-
- 17 Apr, 2003 1 commit
-
-
Jack Jansen authored
-
- 29 Mar, 2003 1 commit
-
-
Martin v. Löwis authored
-
- 31 Jan, 2003 1 commit
-
-
Jeremy Hylton authored
__module__ is the string name of the module the function was defined in, just like __module__ of classes. In some cases, particularly for C functions, the __module__ may be None. Change PyCFunction_New() from a function to a macro, but keep an unused copy of the function around so that we don't change the binary API. Change pickle's save_global() to use whichmodule() if __module__ is None, but add the __module__ logic to whichmodule() since it might be used outside of pickle.
-
- 30 Jan, 2003 1 commit
-
-
Fred Drake authored
-
- 15 Dec, 2002 1 commit
-
-
Just van Rossum authored
-
- 14 Aug, 2002 1 commit
-
-
Fred Drake authored
sense now that extension types can support __init__ directly rather than requiring function constructors.
-
- 28 Jul, 2002 1 commit
-
-
Martin v. Löwis authored
-
- 17 Jun, 2002 1 commit
-
-
Fred Drake authored
Closes SF bug #523473.
-
- 28 Mar, 2002 1 commit
-
-
Fred Drake authored
descriptor, as used for the tp_methods slot of a type. These new flag bits are both optional, and mutually exclusive. Most methods will not use either. These flags are used to create special method types which exist in the same namespace as normal methods without having to use tedious construction code to insert the new special method objects in the type's tp_dict after PyType_Ready() has been called. If METH_CLASS is specified, the method will represent a class method like that returned by the classmethod() built-in. If METH_STATIC is specified, the method will represent a static method like that returned by the staticmethod() built-in. These flags may not be used in the PyMethodDef table for modules since these special method types are not meaningful in that case; a ValueError will be raised if these flags are found in that context.
-
- 17 Aug, 2001 1 commit
-
-
Martin v. Löwis authored
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
-
- 04 Aug, 2001 1 commit
-
-
Fred Drake authored
the object being inserted was not being DECREFed. This closes SF bug #444486.
-
- 31 Jul, 2001 1 commit
-
-
Marc-André Lemburg authored
Python warning which can be catched by means of the Python warning framework. It also adds two new APIs which hopefully make it easier for Python to switch to buffer overflow safe [v]snprintf() APIs for error reporting et al. The two new APIs are PyOS_snprintf() and PyOS_vsnprintf() and work just like the standard ones in many C libs. On platforms which have snprintf(), the native APIs are used, on all other an emulation with snprintf() tries to do its best.
-
- 12 Mar, 2001 1 commit
-
-
Fred Drake authored
a Py_complex C value. Patch by Walter Dörwald. This partially closes SF patch #407148.
-
- 26 Sep, 2000 1 commit
-
-
Fred Drake authored
Add definitions of INT_MAX and LONG_MAX to pyport.h. Remove includes of limits.h and conditional definitions of INT_MAX and LONG_MAX elsewhere. This closes SourceForge patch #101659 and bug #115323.
-
- 23 Sep, 2000 1 commit
-
-
Fred Drake authored
Add three new convenience functions to the PyModule_*() family: PyModule_AddObject(), PyModule_AddIntConstant(), PyModule_AddStringConstant(). This closes SourceForge patch #101233.
-
- 15 Sep, 2000 1 commit
-
-
Jack Jansen authored
B format char.
-
- 01 Sep, 2000 1 commit
-
-
Guido van Rossum authored
This should match the situation in the 1.6b1 tree.
-
- 04 Aug, 2000 1 commit
-
-
Guido van Rossum authored
python-dev discussion. This should catch future version incompatibilities on Windows. Alas, this doesn't help for 1.5 vs. 1.6; but it will help for 1.6 vs. 2.0.
-
- 22 Jul, 2000 1 commit
-
-
Thomas Wouters authored
declarations yet, those come later.
-
- 09 Jul, 2000 1 commit
-
-
Tim Peters authored
-
- 06 Jul, 2000 1 commit
-
-
Jack Jansen authored
Py_BuildValue.
-
- 03 Jul, 2000 1 commit
-
-
Jack Jansen authored
-
- 30 Jun, 2000 2 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
- 28 Jun, 2000 1 commit
-
-
Guido van Rossum authored
tests.
-
- 28 Apr, 2000 1 commit
-
-
Fred Drake authored
Here's a patch which changes modsupport to add 'u' and 'u#', to support building Unicode objects from a null-terminated Py_UNICODE *, and a Py_UNICODE * with length, respectively. [Conversion from 'U' to 'u' by Fred, based on python-dev comments.] Note that the use of None for NULL values of the Py_UNICODE* value is still in; I'm not sure of the conclusion on that issue.
-
- 25 Jan, 1999 1 commit
-
-
Guido van Rossum authored
-
- 23 Dec, 1998 2 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
Patch and suggestion by Greg Couch.
-