- 10 Ara, 2005 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
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 *.
-
- 01 Şub, 2003 1 kayıt (commit)
-
-
Tim Peters yazdı
attr, and copy_reg.safe_constructors.
-
- 18 Ara, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Check return values after memory allocation. Also use Py_True instead of PyInt_FromLong(1) for bool value. Backport candidate.
-
- 16 Eki, 2002 2 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
Use integers in stat tuple, optionally floats in named fields.
-
- 12 Nis, 2002 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
- 22 Mar, 2002 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
- 07 Mar, 2002 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
-
- 06 Mar, 2002 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 526072 ] pickling os.stat results round II structseq's constructors can now take "invisible" fields in a dict. Gave the constructors better error messages. their __reduce__ method puts these fields in a dict. (this is all in aid of getting os.stat_result's to pickle portably) Also fixes [ 526039 ] devious code can crash structseqs Thought needed about how much of this counts as a bugfix. Certainly #526039 needs to be fixed.
-
- 05 Mar, 2002 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 496873 ] structseqs unpicklable by adding a __reduce__ method to structseqs. Will also commit this to the 2.2.1 branch momentarily.
-
- 28 Kas, 2001 1 kayıt (commit)
-
-
Barry Warsaw yazdı
overrun avoidance.
-
- 30 Eki, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Jack Jansen on python-dev. Add simple test case. Move vereq() from test_descr to test_support (it's handy!).
-
- 18 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-