- 26 Ock, 2009 2 kayıt (commit)
-
-
Mark Dickinson yazdı
-
Mark Dickinson yazdı
rewrap a line of length > 79, and update comments.
-
- 25 Ock, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
This change should silence a compiler warning on Windows.
-
- 24 Ock, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
- fix some places where counters into ob_digit were declared as int instead of Py_ssize_t - add (twodigit) casts where necessary - fix code in _PyLong_AsByteArray that uses << on negative values
-
- 17 Ara, 2008 1 kayıt (commit)
-
-
Mark Dickinson yazdı
Thanks Fredrik Johansson and Victor Stinner for code, Raymond Hettinger for review.
-
- 04 Agu, 2008 1 kayıt (commit)
-
-
Mark Dickinson yazdı
long raise ValueError instead of returning 0. Also, change the error message for conversion of an infinity to an integer, replacing 'long' by 'integer', so that it's appropriate for both long(float('inf')) and int(float('inf')).
-
- 31 Tem, 2008 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 10 Tem, 2008 1 kayıt (commit)
-
-
Robert Schuppenies yazdı
Issue3122.
-
- 24 Haz, 2008 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 20 Haz, 2008 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Make bin() implementation parallel oct() and hex() so that int/long subclasses can override or so that other classes can support.
-
- 09 Haz, 2008 1 kayıt (commit)
-
-
Gregory P. Smith yazdı
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
-
- 01 Haz, 2008 2 kayıt (commit)
-
-
Georg Brandl yazdı
-
Robert Schuppenies yazdı
-
- 30 May, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
-
- 26 May, 2008 1 kayıt (commit)
-
-
Christian Heimes yazdı
-
- 18 Nis, 2008 1 kayıt (commit)
-
-
Christian Heimes yazdı
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math. The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
-
- 15 Nis, 2008 1 kayıt (commit)
-
-
Mark Dickinson yazdı
undefined in ANSI C.
-
- 28 Mar, 2008 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Rather than sprinkle casts throughout the code, change Py_CHARMASK to always cast it's result to an unsigned char. This should ensure we do the right thing when accessing an array with the result.
-
- 27 Mar, 2008 1 kayıt (commit)
-
-
Neal Norwitz yazdı
since char is signed on some platforms and unsigned on others.
-
- 18 Mar, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
-
- 17 Mar, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
Added 0b and 0o literals to tokenizer. Modified PyOS_strtoul to support 0b and 0o inputs. Modified PyLong_FromString to support guessing 0b and 0o inputs. Renamed test_hexoct.py to test_int_literal.py and added binary tests. Added upper and lower case 0b, 0O, and 0X tests to test_int_literal.py
-
- 17 Şub, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k).
-
- 10 Şub, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
_PyLong_Format. In longobject.c, changed long_format to _PyLong_Format. In intobject.c, changed uses of PyOS_snprintf to _PyInt_Format instead. _PyLong_Format is similar to py3k's routine of the same name, except it has 2 additional parameters: addL and newstyle. addL was existing in long_format, and controls adding the trailing "L". This is unneeded in py3k. newstyle is used to control whether octal prepends "0" (the pre-2.6 style), or "0o" (the 3.0 sytle). PyNumber_ToBase is needed for PEP 3127 (Integer Literal Support and Syntax) and PEP 3101 (Advanced String Formatting). This changeset does not need merging into py3k.
-
- 25 Ock, 2008 1 kayıt (commit)
-
-
Christian Heimes yazdı
Backport of several functions from Python 3.0 to 2.6 including PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0. First chapter of the Python 3.0 io framework back port: _fileio The next step depends on a working bytearray type which itself depends on a backport of the nwe buffer API.
-
- 18 Ock, 2008 1 kayıt (commit)
-
-
Christian Heimes yazdı
-
- 05 Ock, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
round included: * Revert round to its 2.6 behavior (half away from 0). * Because round, floor, and ceil always return float again, it's no longer necessary to have them delegate to __xxx___, so I've ripped that out of their implementations and the Real ABC. This also helps in implementing types that work in both 2.6 and 3.0: you return int from the __xxx__ methods, and let it get enabled by the version upgrade. * Make pow(-1, .5) raise a ValueError again.
-
- 04 Ock, 2008 2 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
compatibility after r59671 made them return integral types.
-
Christian Heimes yazdı
-
- 03 Ock, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361, r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new documentation. The only significant difference is that round(x) returns a float to preserve backward-compatibility. See http://bugs.python.org/issue1689.
-
- 19 Ara, 2007 1 kayıt (commit)
-
-
Christian Heimes yazdı
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
-
- 19 Eyl, 2007 1 kayıt (commit)
-
-
Facundo Batista yazdı
predictable to being completely predictable. The value of hash(n) is unchanged for any n that's small enough to be representable as an int, and also unchanged for the vast majority of long integers n of reasonable size.
-
- 21 Tem, 2007 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
-
- 03 May, 2007 1 kayıt (commit)
-
-
Kristján Valur Jónsson yazdı
- Reenable modules on x64 that had been disabled aeons ago for Itanium. - Cleared up confusion about compilers for 64 bit windows. There is only Itanium and x64. Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above. - Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms. - Fixed thread_nt.h. The emulated InterlockedCompareExchange function didn´t work on x64, probaby due to the lack of a "volatile" specifier. Anyway, win95 is no longer a target platform. - Itertools module used wrong constant to check for overflow in count() - PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member. - PyLong_FromSsize_t() incorrectly specified that the operand were unsigned. With these changes, the x64 passes the testsuite, for those modules present.
-
- 11 Nis, 2007 1 kayıt (commit)
-
-
Georg Brandl yazdı
Found by Victor Stinner. Will backport when 2.5 branch is unfrozen.
-
- 06 Mar, 2007 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 25 Şub, 2007 1 kayıt (commit)
-
-
Neal Norwitz yazdı
of some of the common builtin types. Use a bit in tp_flags for each common builtin type. Check the bit to determine if any instance is a subclass of these common types. The check avoids a function call and O(n) search of the base classes. The check is done in the various Py*_Check macros rather than calling PyType_IsSubtype(). All the bits are set in tp_flags when the type is declared in the Objects/*object.c files because PyType_Ready() is not called for all the types. Should PyType_Ready() be called for all types? If so and the change is made, the changes to the Objects/*object.c files can be reverted (remove setting the tp_flags). Objects/typeobject.c would also have to be modified to add conditions for Py*_CheckExact() in addition to each the PyType_IsSubtype check.
-
- 04 Eki, 2006 1 kayıt (commit)
-
-
Armin Rigo yazdı
* unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c. * 2.5 specific: fixed a number of places that were still confusing int and Py_ssize_t. Some of them could potentially have caused "real-world" breakage. * list.pop(x): fixing overflow issues on x was messy. I just reverted to PyArg_ParseTuple("n"), which does the right thing. (An obscure test was trying to give a Decimal to list.pop()... doesn't make sense any more IMHO) * trying to write a few tests...
-
- 12 Agu, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
I modified this patch some by fixing style, some error checking, and adding XXX comments. This patch requires review and some changes are to be expected. I'm checking in now to get the greatest possible review and establish a baseline for moving forward. I don't want this to hold up release if possible.
-
- 23 Tem, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Reported by Klocwork #106
-
- 16 Tem, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
z is known to be NULL, nothing to DECREF. Reported by Klockwork, #107.
-