Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | There is no macro named SIZEOF_SSIZE_T. Should use SIZEOF_SIZE_T instead. | Hirokazu Yamamoto | 2009-03-21 | 1 | -1/+1 |
| | |||||
* | Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms. | Mark Dickinson | 2009-03-20 | 1 | -0/+49 |
| | | | | Backport of r70459. | ||||
* | fix strange errors when setting attributes on tracebacks #4034 | Benjamin Peterson | 2009-03-18 | 1 | -1/+11 |
| | |||||
* | Issue 4474: On platforms with sizeof(wchar_t) == 4 and | Mark Dickinson | 2009-03-18 | 1 | -0/+58 |
| | | | | | | | | | sizeof(Py_UNICODE) == 2, PyUnicode_FromWideChar now converts each character outside the BMP to the appropriate surrogate pair. Thanks Victor Stinner for the patch. (backport of r70452 from py3k to trunk) | ||||
* | Fix a small nit in the error message if bool() falls back on __len__ and it ↵ | Georg Brandl | 2009-03-15 | 1 | -1/+5 |
| | | | | returns the wrong type: it would tell the user that __nonzero__ should return bool or int. | ||||
* | fix tuple.index() error message #5495 | Benjamin Peterson | 2009-03-15 | 1 | -1/+1 |
| | |||||
* | Issue 5237, Allow auto-numbered replacement fields in str.format() strings. | Eric Smith | 2009-03-14 | 1 | -44/+129 |
| | | | | | | | | | | | | | | | | | For simple uses for str.format(), this makes the typing easier. Hopfully this will help in the adoption of str.format(). For example: 'The {} is {}'.format('sky', 'blue') You can mix and matcth auto-numbering and named replacement fields: 'The {} is {color}'.format('sky', color='blue') But you can't mix and match auto-numbering and specified numbering: 'The {0} is {}'.format('sky', 'blue') ValueError: cannot switch from manual field specification to automatic field numbering Will port to 3.1. | ||||
* | fix funky indentation | Benjamin Peterson | 2009-03-08 | 1 | -4/+4 |
| | |||||
* | Fixed memory leak on failure. | Hirokazu Yamamoto | 2009-03-05 | 1 | -1/+1 |
| | |||||
* | Replace long with twodigits, to avoid depending | Mark Dickinson | 2009-02-25 | 1 | -1/+1 |
| | | | | on sizeof(digit) < sizeof(long) | ||||
* | Issue #5341: Fix a variety of spelling errors. | Mark Dickinson | 2009-02-21 | 4 | -4/+4 |
| | |||||
* | Issue #5247: Improve error message when unknown format codes are used when ↵ | Eric Smith | 2009-02-20 | 1 | -17/+31 |
| | | | | using str.format() with str, unicode, long, int, and float arguments. | ||||
* | A few more minor fixes in longobject.c | Mark Dickinson | 2009-02-15 | 1 | -5/+4 |
| | |||||
* | Issue #5260: Various portability and standards compliance fixes, optimizations | Mark Dickinson | 2009-02-15 | 1 | -46/+35 |
| | | | | | | | and cleanups in Objects/longobject.c. The most significant change is that longs now use less memory: average savings are 2 bytes per long on 32-bit systems and 6 bytes per long on 64-bit systems. (This memory saving already exists in py3k.) | ||||
* | Fix compiler warning (gcc) | Antoine Pitrou | 2009-02-13 | 1 | -1/+1 |
| | |||||
* | Issue #5186: Reduce hash collisions for objects with no __hash__ method by | Antoine Pitrou | 2009-02-13 | 1 | -15/+7 |
| | | | | rotating the object pointer by 4 bits to the right. | ||||
* | Fix warnings GCC emits where the argument of PyErr_Format is a single variable. | Georg Brandl | 2009-02-13 | 1 | -3/+3 |
| | |||||
* | Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError for | Mark Dickinson | 2009-02-10 | 1 | -1/+1 |
| | | | | | | negative arguments. Previously, it raised TypeError. Thanks Lisandro Dalcin. | ||||
* | Issue 4804. Add a function to test the validity of file descriptors on ↵ | Kristján Valur Jónsson | 2009-02-10 | 1 | -34/+0 |
| | | | | Windows, and stop using global runtime settings to silence the warnings / assertions. | ||||
* | Issue #789290: make sure that hash(2**63) == hash(2.**63) on 64-bit | Mark Dickinson | 2009-02-08 | 1 | -1/+1 |
| | | | | | | | | | | | platforms. The previous code was fragile, depending on the twin accidents that: (1) in C, casting the double value 2.**63 to long returns the integer value -2**63, and (2) in Python, hash(-2**63) == hash(2**63). There's already a test for this in test_hash. | ||||
* | Remove redundant assignment in _PyObject_LengthHint | Mark Dickinson | 2009-02-08 | 1 | -1/+1 |
| | |||||
* | issue 4804: Provide checks for the format string of strftime, and for the ↵ | Kristján Valur Jónsson | 2009-02-04 | 1 | -1/+88 |
| | | | | "mode" string of fopen on Windows. These strings are user provided from python and so we can avoid invoking the C runtime invalid parameter handler by first checking that they are valid. | ||||
* | Validate that __length_hint__ returns a usable result. | Raymond Hettinger | 2009-02-03 | 1 | -1/+1 |
| | |||||
* | Issue 1242657: list(obj) can swallow KeyboardInterrupt. | Raymond Hettinger | 2009-02-02 | 3 | -14/+27 |
| | |||||
* | fix indentation in comment | Benjamin Peterson | 2009-01-31 | 1 | -2/+2 |
| | |||||
* | fix indentation; looks like all I managed to do the first time is make ↵ | Benjamin Peterson | 2009-01-31 | 1 | -2558/+2558 |
| | | | | things uglier | ||||
* | fix indentation | Benjamin Peterson | 2009-01-31 | 1 | -2/+2 |
| | |||||
* | completely detabify unicodeobject.c | Benjamin Peterson | 2009-01-31 | 1 | -3010/+3010 |
| | |||||
* | Fix comment. | Mark Dickinson | 2009-01-26 | 1 | -3/+3 |
| | |||||
* | Fix undefined behaviour (left shift of negative value) in long_hash. Also, | Mark Dickinson | 2009-01-26 | 1 | -9/+10 |
| | | | | rewrap a line of length > 79, and update comments. | ||||
* | No need for carry to be type twodigits in _PyLong_AsByteArray; digit is ↵ | Mark Dickinson | 2009-01-25 | 1 | -1/+1 |
| | | | | | | large enough. This change should silence a compiler warning on Windows. | ||||
* | Fixed compile error on windows. | Hirokazu Yamamoto | 2009-01-25 | 1 | -1/+1 |
| | |||||
* | fix building the core with --disable-unicode | Benjamin Peterson | 2009-01-25 | 3 | -17/+48 |
| | | | | | I changed some bytearray methods to use strings instead of unicode like bytes_repr Also, bytearray.fromhex() can take strings as well as unicode | ||||
* | Issue #4393: fix 3 classes of potential portability problems in longobject.c: | Mark Dickinson | 2009-01-24 | 1 | -23/+20 |
| | | | | | | | - 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 | ||||
* | fix url | Benjamin Peterson | 2009-01-20 | 1 | -1/+1 |
| | |||||
* | #4077: No need to append \n when calling Py_FatalError | Amaury Forgeot d'Arc | 2009-01-17 | 1 | -1/+1 |
| | | | | + fix a declaration to make it match the one in pythonrun.h | ||||
* | #4930: Slightly cleaner (and faster) code in type creation: | Amaury Forgeot d'Arc | 2009-01-17 | 1 | -2/+2 |
| | | | | compare slots by address, not by name. | ||||
* | Issue #4935: The overflow checking code in the expandtabs() method common | Antoine Pitrou | 2009-01-13 | 1 | -37/+30 |
| | | | | | to str, bytes and bytearray could be optimized away by the compiler, letting the interpreter segfault instead of raising an error. | ||||
* | #3720: Interpreter crashes when an evil iterator removes its own next function. | Amaury Forgeot d'Arc | 2009-01-12 | 3 | -2/+19 |
| | | | | | | Now the slot is filled with a function that always raises. Will not backport: extensions compiled with 2.6.x would not run on 2.6.0. | ||||
* | Issue #4850: Change COUNT_ALLOCS variables to Py_ssize_t. | Martin v. Löwis | 2009-01-07 | 4 | -12/+18 |
| | |||||
* | Issue #3680: Reference cycles created through a dict, set or deque iterator ↵ | Antoine Pitrou | 2009-01-01 | 2 | -12/+29 |
| | | | | did not get collected. | ||||
* | Issue #4701: implicitly call PyType_Ready from PyObject_Hash | Nick Coghlan | 2008-12-30 | 1 | -0/+11 |
| | |||||
* | #4764 set IOError.filename when trying to open a directory on POSIX platforms | Benjamin Peterson | 2008-12-29 | 1 | -2/+2 |
| | |||||
* | Backport r67974: | Georg Brandl | 2008-12-28 | 1 | -16/+25 |
| | | | | | | #4759: allow None as first argument of bytearray.translate(), for consistency with bytes.translate(). Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6. | ||||
* | Remove unnecessary casts related to unicode_decode_call_errorhandler. | Alexandre Vassalotti | 2008-12-27 | 1 | -27/+29 |
| | | | | | | Make the _PyUnicode_Resize macro a static function. These changes are needed to avoid breaking strict aliasing rules. | ||||
* | add py3k warnings to frame.f_exc_* | Benjamin Peterson | 2008-12-22 | 1 | -3/+35 |
| | |||||
* | Issue #3439: add bit_length method to int and long. | Mark Dickinson | 2008-12-17 | 2 | -0/+107 |
| | | | | | Thanks Fredrik Johansson and Victor Stinner for code, Raymond Hettinger for review. | ||||
* | #3632: the "pyo" macro from gdbinit can now run when the GIL is released. | Amaury Forgeot d'Arc | 2008-12-15 | 1 | -0/+3 |
| | | | | Patch by haypo. | ||||
* | Issue #4509: bugs in bytearray with exports (buffer protocol) | Antoine Pitrou | 2008-12-06 | 1 | -11/+31 |
| | |||||
* | Issue #4445: save 3 bytes (on average, on a typical machine) per | Mark Dickinson | 2008-12-05 | 1 | -13/+21 |
| | | | | string allocation. |