- 01 Mar, 2006 1 kayıt (commit)
-
-
Thomas Wouters yazdı
available %zd format character. Mark with an XXX comment so we can fix this, later.
-
- 27 Şub, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 15 Şub, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 08 Ock, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 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 *.
-
- 05 Ara, 2005 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 1346144 ] Segfaults from unaligned loads in floatobject.c by using memcpy and not just blinding casting char* to double*. Thanks to Rune Holm for the report.
-
- 30 Haz, 2005 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
float y = x; when x is a double. Go figure.
-
- 27 May, 2005 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 1181301 ] make float packing copy bytes when they can which hasn't been reviewed, despite numerous threats to check it in anyway if noone reviews it. Please read the diff on the checkin list, at least! The basic idea is to examine the bytes of some 'probe values' to see if the current platform is a IEEE 754-ish platform, and if so _PyFloat_{Pack,Unpack}{4,8} just copy bytes around. The rest is hair for testing, and tests.
-
- 26 Nis, 2005 1 kayıt (commit)
-
-
Brett Cannon yazdı
conversion using the proper magic slot (e.g., __int__()). Also move conversion code out of PyNumber_*() functions in the C API into the nb_* function. Applied patch #1109424. Thanks Walter Doewald.
-
- 23 Eyl, 2004 2 kayıt (commit)
-
-
Tim Peters yazdı
platforms where that macro works, NaN compared to an int or long works the same as NaN compared to a finite float.
-
Tim Peters yazdı
When an integer is compared to a float now, the int isn't coerced to float. This avoids spurious overflow exceptions and insane results. This should compute correct results, without raising spurious exceptions, in all cases now -- although I expect that what happens when an int/long is compared to a NaN is still a platform accident. Note that we had potential problems here even with "short" ints, on boxes where sizeof(long)==8. There's #ifdef'ed code here to handle that, but I can't test it as intended. I tested it by changing the #ifdef to trigger on my 32-bit box instead. I suppose this is a bugfix candidate, but I won't backport it. It's long-winded (for speed) and messy (because the problem is messy). Note that this also depends on a previous 2.4 patch that introduced _Py_SwappedOp[] as an extern.
-
- 08 Tem, 2004 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 08 Haz, 2004 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 26 May, 2004 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 899109 ] 1==float('nan') which can now finally be closed, I think.
-
- 26 Şub, 2004 2 kayıt (commit)
-
-
Michael W. Hudson yazdı
-
Michael W. Hudson yazdı
float_richcompare. Reported on c.l.py by Helmut Jarausch.
-
- 19 Şub, 2004 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
recent gcc on Linux/x86) [ 899109 ] 1==float('nan') by implementing rich comparisons for floats. Seems to make comparisons involving NaNs somewhat less surprising when the underlying C compiler actually implements C99 semantics.
-
- 17 Ock, 2004 1 kayıt (commit)
-
-
Skip Montanaro yazdı
Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition).
-
- 20 Kas, 2003 1 kayıt (commit)
-
-
Jack Jansen yazdı
-
- 28 Haz, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Submitted By: Christopher A. Craig Fillin some missing decrefs.
-
- 24 May, 2003 1 kayıt (commit)
-
-
Tim Peters yazdı
float_pow(): Don't let the platform pow() raise -1.0 to an integer power anymore; at least glibc gets it wrong in some cases. Note that math.pow() will continue to deliver wrong (but platform-native) results in such cases.
-
- 21 Mar, 2003 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 20 Mar, 2003 1 kayıt (commit)
-
-
Tim Peters yazdı
refactoring to get all the duplicates of this delicate code out of the cPickle and struct modules.
-
- 29 Ock, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
types. The special handling for these can now be removed from save_newobj(). Add some testing for this. Also add support for setting the 'fast' flag on the Python Pickler class, which suppresses use of the memo.
-
- 28 Ock, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Check return value of PyLong_AsDouble(), it can return an error.
-
- 21 Kas, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
long but the double is too big to fit in a long. Prevent that. This closes some recent bug or patch on SF, but SF is down now so I can't say which. Bugfix candidate.
-
- 19 Kas, 2002 1 kayıt (commit)
-
-
Walter Dörwald yazdı
that is outside the integer range no longer raises OverflowError, but returns a long object instead. This fixes SF bug http://www.python.org/sf/635115
-
- 18 Kas, 2002 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
have a nb_float slot. This matches what PyInt_AsLong does.
-
- 19 Agu, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
comments everywhere that bugged me: /* Foo is inlined */ instead of /* Inline Foo */. Somehow the "is inlined" phrase always confused me for half a second (thinking, "No it isn't" until I added the missing "here"). The new phrase is hopefully unambiguous.
-
- 17 Tem, 2002 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
-
- 13 Haz, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 02 May, 2002 1 kayıt (commit)
-
-
Skip Montanaro yazdı
strings or numbers
-
- 09 Mar, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
Another year in the quest to out-guess random C behavior. Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y). The latter is useful for functions with complex results. Two corrections to errno- after-libm-call are attempted: 1. If the platform set errno to ERANGE due to underflow, clear errno. Some unknown subset of libm versions and link options do this. It's allowed by C89, but I never figured anyone would do it. 2. If the platform did not set errno but overflow occurred, force errno to ERANGE. C89 required setting errno to ERANGE, but C99 doesn't. Some unknown subset of libm versions and link options do it the C99 way now. Bugfix candidate, but hold off until some Linux people actually try it, with and without -lieee. I'll send a help plea to Python-Dev.
-
- 11 Ara, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
delivered bizarre results. Check float_divmod for a Py_NotImplemented return and pass it along (instead of treating Py_NotImplemented as a 2-tuple). CONVERT_TO_DOUBLE: Added comments; this macro is obscure.
-
Tim Peters yazdı
division functions, and rename to float_floor_div.
-
- 28 Kas, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
pass the buffer length. Stop using it. It should be deprecated, but too late in the release cycle to do that now. New static format_float() does the same thing but requires passing the buffer length too. Use it instead.
-
Barry Warsaw yazdı
buffer overrun avoidance.
-
- 01 Kas, 2001 3 kayıt (commit)
-
-
Tim Peters yazdı
from optimizing away mod's sign adjustment when mod == 0; so it got the intended result only in the debug build.
-
Tim Peters yazdı
Try to ensure that divmod(-0.0, 1.0) -> (-0.0, +0.0) across platforms. It always did on Windows, and still does. It didn't on Linux. Alas, there's no platform-independent way to write a test case for this. Bugfix candidate.
-
Tim Peters yazdı
presence of NaNs. So pass the issue on to the platform libm fabs(); after all, fabs() is a std C function because you can't implement it correctly in portable C89.
-