Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions | Antoine Pitrou | 2008-07-25 | 1 | -1/+1 |
| | |||||
* | Convert from long to Py_ssize_t. | Raymond Hettinger | 2008-07-24 | 1 | -10/+11 |
| | |||||
* | Issue #2620: Overflow checking when allocating or reallocating memory | Gregory P. Smith | 2008-07-22 | 1 | -0/+18 |
| | | | | | | | | was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed. | ||||
* | Issue2378: pdb would delete free variables when stepping into a class statement. | Amaury Forgeot d'Arc | 2008-07-21 | 1 | -3/+6 |
| | | | | | The problem was introduced by r53954, the correction is to restore the symmetry between PyFrame_FastToLocals and PyFrame_LocalsToFast | ||||
* | Fix a couple of names in error messages that were wrong | Neal Norwitz | 2008-07-20 | 1 | -2/+2 |
| | |||||
* | Backed out r65069, pending fixing it in Windows. | Eric Smith | 2008-07-17 | 3 | -22/+16 |
| | |||||
* | Issue 3382: Make '%F' and float.__format__('F') convert results to upper case. | Eric Smith | 2008-07-17 | 3 | -16/+22 |
| | |||||
* | Backport part of r65043. | Georg Brandl | 2008-07-16 | 1 | -2/+1 |
| | |||||
* | Use _getbytevalue() in init too. | Georg Brandl | 2008-07-16 | 1 | -10/+3 |
| | |||||
* | #3156: fix consistency in what type bytearray methods accept as items. | Georg Brandl | 2008-07-16 | 1 | -40/+38 |
| | | | | Also rename confusing "item" parameters to "index". | ||||
* | Renamed a parameter in calc_number_widths, for consistency with the same ↵ | Eric Smith | 2008-07-16 | 1 | -32/+32 |
| | | | | parameter in fill_non_digits. | ||||
* | Complete issue 3083: add alternate (#) formatting to bin, oct, hex in ↵ | Eric Smith | 2008-07-16 | 1 | -30/+68 |
| | | | | str.format(). | ||||
* | Issue #3008: add instance method float.hex and class method float.fromhex | Mark Dickinson | 2008-07-15 | 1 | -0/+407 |
| | | | | to convert floats to and from hexadecimal strings respectively. | ||||
* | Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵ | Nick Coghlan | 2008-07-15 | 5 | -50/+35 |
| | | | | be blocked explicitly so that collections.Hashable remains meaningful | ||||
* | Added '#' formatting to integers. This adds the 0b, 0o, or 0x prefix for ↵ | Eric Smith | 2008-07-15 | 1 | -13/+43 |
| | | | | bin, oct, hex. There's still one failing case, and I need to finish the docs. I hope to finish those today. | ||||
* | Added additional __sizeof__ implementations and addressed comments made in | Robert Schuppenies | 2008-07-10 | 5 | -17/+58 |
| | | | | Issue3122. | ||||
* | Issue 2517: Allow unicode messages in Exceptions again by correctly ↵ | Nick Coghlan | 2008-07-08 | 2 | -9/+56 |
| | | | | bypassing the instance dictionary when looking up __unicode__ on new-style classes | ||||
* | Correct grammar. | Skip Montanaro | 2008-07-07 | 1 | -1/+1 |
| | |||||
* | - Issue #2862: Make int and float freelist management consistent with other | Gregory P. Smith | 2008-07-06 | 2 | -61/+42 |
| | | | | | freelists. Changes their CompactFreeList apis into ClearFreeList apis and calls them via gc.collect(). | ||||
* | Issue 3188: accept float('infinity') as well as float('inf'). This | Mark Dickinson | 2008-07-05 | 1 | -0/+3 |
| | | | | | | makes the float constructor behave in the same way as specified by various other language standards, including C99, IEEE 754r, and the IBM Decimal standard. | ||||
* | Issue 3230: Do not the set specific size macro. | Raymond Hettinger | 2008-06-28 | 1 | -1/+1 |
| | |||||
* | Corrected inconsistencies in sizeof tests and addressed issue pointed | Robert Schuppenies | 2008-06-26 | 1 | -1/+1 |
| | | | | out by Jean Brouwers. | ||||
* | Revert 64424, 64438, and 64439. | Raymond Hettinger | 2008-06-24 | 4 | -83/+7 |
| | |||||
* | Fixed formatting with thousands separator and padding. Resolves issue 3140. | Eric Smith | 2008-06-24 | 1 | -13/+13 |
| | |||||
* | Typo in comment. | Eric Smith | 2008-06-24 | 1 | -1/+1 |
| | |||||
* | Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in ↵ | Eric Smith | 2008-06-24 | 2 | -20/+27 |
| | | | | anticipation of fixing issue 3140. | ||||
* | Docstring typo | Andrew M. Kuchling | 2008-06-21 | 1 | -1/+1 |
| | |||||
* | Fix build on FreeBSD gcc. | Hye-Shik Chang | 2008-06-21 | 1 | -6/+6 |
| | |||||
* | Issue 3008: hex/oct/bin can show floats exactly. | Raymond Hettinger | 2008-06-21 | 1 | -2/+60 |
| | |||||
* | Issue #3004: Minor fix to slice.indices(). slice(-10).indices(9) now | Mark Dickinson | 2008-06-20 | 1 | -2/+3 |
| | | | | | returns (0, 0, 1) instead of (0, -1, 1), and slice(None, 10, -1).indices(10) returns (9, 9, -1) instead of (9, 10, -1). | ||||
* | Make bin() implementation parallel oct() and hex() so that int/long ↵ | Raymond Hettinger | 2008-06-20 | 3 | -0/+18 |
| | | | | subclasses can override or so that other classes can support. | ||||
* | Issue 3110: Crash with weakref subclass, | Amaury Forgeot d'Arc | 2008-06-16 | 1 | -4/+12 |
| | | | | | | | | | seen after a "import multiprocessing.reduction" An instance of a weakref subclass can have attributes. If such a weakref holds the only strong reference to the object, deleting the weakref will delete the object. In this case, the callback must not be called, because the ref object is being deleted! | ||||
* | Fixed: sys.getsizeof does not take the actual length of the tuples into account. | Robert Schuppenies | 2008-06-13 | 1 | -0/+12 |
| | |||||
* | Multi-arg form for set.difference() and set.difference_update(). | Raymond Hettinger | 2008-06-11 | 1 | -14/+39 |
| | |||||
* | Merge in release25-maint r60793: | Gregory P. Smith | 2008-06-11 | 3 | -6/+27 |
| | | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code. | ||||
* | Handle the case with zero arguments. | Raymond Hettinger | 2008-06-11 | 1 | -0/+3 |
| | |||||
* | Rename bytesobject.c back to stringobject.c to keep with the PyString theme. | Gregory P. Smith | 2008-06-10 | 1 | -0/+0 |
| | | | | Part of reverting most of r63675 per the mailing list discussion. | ||||
* | More reverting of r63675 per the mailing list discussions. This restores | Gregory P. Smith | 2008-06-10 | 2 | -479/+479 |
| | | | | | occurances of PyBytes_ in the code to their original PyString_ names. The bytesobject.c file will be renamed back to stringobject.c in a future checkin. | ||||
* | Issue 3048: Fixed sys.getsizeof for unicode objects. | Robert Schuppenies | 2008-06-10 | 1 | -0/+24 |
| | |||||
* | Added better pickling support to xrange objects. | Alexandre Vassalotti | 2008-06-10 | 1 | -3/+3 |
| | | | | Cleaned up the unit test. | ||||
* | Issue 2582: Fix pickling of xrange objects. | Alexandre Vassalotti | 2008-06-10 | 1 | -0/+11 |
| | |||||
* | Let set.intersection() and set.intersection_update() take multiple input ↵ | Raymond Hettinger | 2008-06-09 | 1 | -3/+36 |
| | | | | arguments. | ||||
* | Let set.union() and set.update() accept multiple inputs. | Raymond Hettinger | 2008-06-09 | 1 | -15/+38 |
| | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 33 | -610/+610 |
| | | | | | | | 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. | ||||
* | Remove locking part of new buffer protocol. | Travis E. Oliphant | 2008-06-06 | 1 | -6/+0 |
| | |||||
* | Fixed complex.__getnewargs__() to not emit another complex object. | Alexandre Vassalotti | 2008-06-04 | 1 | -1/+2 |
| | |||||
* | Some style nits. Also clarify in the docstrings what __sizeof__ does. | Georg Brandl | 2008-06-01 | 5 | -5/+5 |
| | |||||
* | Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes. | Robert Schuppenies | 2008-06-01 | 5 | -0/+69 |
| | |||||
* | New environment variable PYTHONIOENCODING. | Martin v. Löwis | 2008-06-01 | 1 | -3/+32 |
| | |||||
* | Refactor and clean up str.format() code (and helpers) in advance of ↵ | Eric Smith | 2008-05-30 | 6 | -124/+138 |
| | | | | optimizations. |