summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versionsAntoine Pitrou2008-07-251-1/+1
|
* Convert from long to Py_ssize_t.Raymond Hettinger2008-07-241-10/+11
|
* Issue #2620: Overflow checking when allocating or reallocating memoryGregory P. Smith2008-07-221-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'Arc2008-07-211-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 wrongNeal Norwitz2008-07-201-2/+2
|
* Backed out r65069, pending fixing it in Windows.Eric Smith2008-07-173-22/+16
|
* Issue 3382: Make '%F' and float.__format__('F') convert results to upper case.Eric Smith2008-07-173-16/+22
|
* Backport part of r65043.Georg Brandl2008-07-161-2/+1
|
* Use _getbytevalue() in init too.Georg Brandl2008-07-161-10/+3
|
* #3156: fix consistency in what type bytearray methods accept as items.Georg Brandl2008-07-161-40/+38
| | | | Also rename confusing "item" parameters to "index".
* Renamed a parameter in calc_number_widths, for consistency with the same ↵Eric Smith2008-07-161-32/+32
| | | | parameter in fill_non_digits.
* Complete issue 3083: add alternate (#) formatting to bin, oct, hex in ↵Eric Smith2008-07-161-30/+68
| | | | str.format().
* Issue #3008: add instance method float.hex and class method float.fromhexMark Dickinson2008-07-151-0/+407
| | | | to convert floats to and from hexadecimal strings respectively.
* Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵Nick Coghlan2008-07-155-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 Smith2008-07-151-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 inRobert Schuppenies2008-07-105-17/+58
| | | | Issue3122.
* Issue 2517: Allow unicode messages in Exceptions again by correctly ↵Nick Coghlan2008-07-082-9/+56
| | | | bypassing the instance dictionary when looking up __unicode__ on new-style classes
* Correct grammar.Skip Montanaro2008-07-071-1/+1
|
* - Issue #2862: Make int and float freelist management consistent with otherGregory P. Smith2008-07-062-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'). ThisMark Dickinson2008-07-051-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 Hettinger2008-06-281-1/+1
|
* Corrected inconsistencies in sizeof tests and addressed issue pointedRobert Schuppenies2008-06-261-1/+1
| | | | out by Jean Brouwers.
* Revert 64424, 64438, and 64439.Raymond Hettinger2008-06-244-83/+7
|
* Fixed formatting with thousands separator and padding. Resolves issue 3140.Eric Smith2008-06-241-13/+13
|
* Typo in comment.Eric Smith2008-06-241-1/+1
|
* Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in ↵Eric Smith2008-06-242-20/+27
| | | | anticipation of fixing issue 3140.
* Docstring typoAndrew M. Kuchling2008-06-211-1/+1
|
* Fix build on FreeBSD gcc.Hye-Shik Chang2008-06-211-6/+6
|
* Issue 3008: hex/oct/bin can show floats exactly.Raymond Hettinger2008-06-211-2/+60
|
* Issue #3004: Minor fix to slice.indices(). slice(-10).indices(9) nowMark Dickinson2008-06-201-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 Hettinger2008-06-203-0/+18
| | | | subclasses can override or so that other classes can support.
* Issue 3110: Crash with weakref subclass,Amaury Forgeot d'Arc2008-06-161-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 Schuppenies2008-06-131-0/+12
|
* Multi-arg form for set.difference() and set.difference_update().Raymond Hettinger2008-06-111-14/+39
|
* Merge in release25-maint r60793:Gregory P. Smith2008-06-113-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 Hettinger2008-06-111-0/+3
|
* Rename bytesobject.c back to stringobject.c to keep with the PyString theme.Gregory P. Smith2008-06-101-0/+0
| | | | Part of reverting most of r63675 per the mailing list discussion.
* More reverting of r63675 per the mailing list discussions. This restoresGregory P. Smith2008-06-102-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 Schuppenies2008-06-101-0/+24
|
* Added better pickling support to xrange objects.Alexandre Vassalotti2008-06-101-3/+3
| | | | Cleaned up the unit test.
* Issue 2582: Fix pickling of xrange objects.Alexandre Vassalotti2008-06-101-0/+11
|
* Let set.intersection() and set.intersection_update() take multiple input ↵Raymond Hettinger2008-06-091-3/+36
| | | | arguments.
* Let set.union() and set.update() accept multiple inputs.Raymond Hettinger2008-06-091-15/+38
|
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-0933-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. Oliphant2008-06-061-6/+0
|
* Fixed complex.__getnewargs__() to not emit another complex object.Alexandre Vassalotti2008-06-041-1/+2
|
* Some style nits. Also clarify in the docstrings what __sizeof__ does.Georg Brandl2008-06-015-5/+5
|
* Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies2008-06-015-0/+69
|
* New environment variable PYTHONIOENCODING.Martin v. Löwis2008-06-011-3/+32
|
* Refactor and clean up str.format() code (and helpers) in advance of ↵Eric Smith2008-05-306-124/+138
| | | | optimizations.