summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* fix funky indentationBenjamin Peterson2009-03-081-4/+4
|
* Fixed memory leak on failure.Hirokazu Yamamoto2009-03-051-1/+1
|
* Replace long with twodigits, to avoid dependingMark Dickinson2009-02-251-1/+1
| | | | on sizeof(digit) < sizeof(long)
* Issue #5341: Fix a variety of spelling errors.Mark Dickinson2009-02-214-4/+4
|
* Issue #5247: Improve error message when unknown format codes are used when ↵Eric Smith2009-02-201-17/+31
| | | | using str.format() with str, unicode, long, int, and float arguments.
* A few more minor fixes in longobject.cMark Dickinson2009-02-151-5/+4
|
* Issue #5260: Various portability and standards compliance fixes, optimizationsMark Dickinson2009-02-151-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 Pitrou2009-02-131-1/+1
|
* Issue #5186: Reduce hash collisions for objects with no __hash__ method byAntoine Pitrou2009-02-131-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 Brandl2009-02-131-3/+3
|
* Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError forMark Dickinson2009-02-101-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ónsson2009-02-101-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-bitMark Dickinson2009-02-081-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_LengthHintMark Dickinson2009-02-081-1/+1
|
* issue 4804: Provide checks for the format string of strftime, and for the ↵Kristján Valur Jónsson2009-02-041-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 Hettinger2009-02-031-1/+1
|
* Issue 1242657: list(obj) can swallow KeyboardInterrupt.Raymond Hettinger2009-02-023-14/+27
|
* fix indentation in commentBenjamin Peterson2009-01-311-2/+2
|
* fix indentation; looks like all I managed to do the first time is make ↵Benjamin Peterson2009-01-311-2558/+2558
| | | | things uglier
* fix indentationBenjamin Peterson2009-01-311-2/+2
|
* completely detabify unicodeobject.cBenjamin Peterson2009-01-311-3010/+3010
|
* Fix comment.Mark Dickinson2009-01-261-3/+3
|
* Fix undefined behaviour (left shift of negative value) in long_hash. Also,Mark Dickinson2009-01-261-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 Dickinson2009-01-251-1/+1
| | | | | | large enough. This change should silence a compiler warning on Windows.
* Fixed compile error on windows.Hirokazu Yamamoto2009-01-251-1/+1
|
* fix building the core with --disable-unicodeBenjamin Peterson2009-01-253-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 Dickinson2009-01-241-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 urlBenjamin Peterson2009-01-201-1/+1
|
* #4077: No need to append \n when calling Py_FatalErrorAmaury Forgeot d'Arc2009-01-171-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'Arc2009-01-171-2/+2
| | | | compare slots by address, not by name.
* Issue #4935: The overflow checking code in the expandtabs() method commonAntoine Pitrou2009-01-131-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'Arc2009-01-123-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öwis2009-01-074-12/+18
|
* Issue #3680: Reference cycles created through a dict, set or deque iterator ↵Antoine Pitrou2009-01-012-12/+29
| | | | did not get collected.
* Issue #4701: implicitly call PyType_Ready from PyObject_HashNick Coghlan2008-12-301-0/+11
|
* #4764 set IOError.filename when trying to open a directory on POSIX platformsBenjamin Peterson2008-12-291-2/+2
|
* Backport r67974:Georg Brandl2008-12-281-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 Vassalotti2008-12-271-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 Peterson2008-12-221-3/+35
|
* Issue #3439: add bit_length method to int and long.Mark Dickinson2008-12-172-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'Arc2008-12-151-0/+3
| | | | Patch by haypo.
* Issue #4509: bugs in bytearray with exports (buffer protocol)Antoine Pitrou2008-12-061-11/+31
|
* Issue #4445: save 3 bytes (on average, on a typical machine) perMark Dickinson2008-12-051-13/+21
| | | | string allocation.
* Backport r67478Raymond Hettinger2008-12-031-8/+9
|
* Fix a small typo in docstringAmaury Forgeot d'Arc2008-11-291-1/+1
|
* make sure that bytearray methods return a new bytearray even if there is no ↵Benjamin Peterson2008-11-191-21/+3
| | | | | | | change Fixes #4348 Reviewed by Brett
* when __getattr__ is a descriptor, call it correctly; fixes #4230Benjamin Peterson2008-11-171-3/+36
| | | | patch from Ziga Seilnacht
* #4069: aSet.remove(otherSet) would always report the empty frozenset([]) as ↵Amaury Forgeot d'Arc2008-10-071-4/+7
| | | | | | | | the missing key. Now it correctly refers to the initial otherset. Reviewed by Raymond. Will backport to 2.6.
* Punctuation fix; expand dict.update docstring to be clearerAndrew M. Kuchling2008-10-041-4/+6
|
* Docstring change for *partition: use same tense as other docstrings.Andrew M. Kuchling2008-10-042-13/+13
| | | | | Hyphenate left- and right-justified. Fix 'registerd' typo