summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* #2999: fix name of third parameter in unicode.replace()'s docstring.Georg Brandl2008-05-301-3/+3
|
* Issue 2855: Fix obscure crasher by slowing down the entire module. Mimics ↵Raymond Hettinger2008-05-301-0/+4
| | | | what was done to dictionaries in r59223.
* Revert #2990 patch; it's not necessary as Armin showed.Georg Brandl2008-05-291-7/+5
|
* #2990: prevent inconsistent state while updating method cache.Georg Brandl2008-05-281-5/+7
|
* #2989: add PyType_Modified().Georg Brandl2008-05-281-10/+9
|
* Renamed bytesobject.c to bytearrayobject.cChristian Heimes2008-05-263-8054/+8054
| | | | | Renamed stringobject.c to bytesobject.c Fixed Windows builds
* Renamed PyString to PyBytesChristian Heimes2008-05-2635-1094/+1094
|
* First step of the C API rename:Christian Heimes2008-05-264-241/+241
| | | | | | renamed Include/bytesobject.h to Include/bytearrayobject.h renamed Include/stringobject.h to Include/bytesobject.h added Include/stringobject.h with aliases
* #2592: delegate nb_index and the floor/truediv slots in weakref.proxy.Georg Brandl2008-05-201-0/+10
|
* Revert copy_reg -> copyreg rename.Georg Brandl2008-05-201-3/+3
|
* #2353: raise Py3k warning in file.xreadlines().Georg Brandl2008-05-171-3/+12
|
* Patch by Quentin Gallet-Gilles: Renaming leftovers for 2.6.Alexandre Vassalotti2008-05-161-1/+1
| | | | | This fixes the omissions of configparser, copyreg, queue and socketserver renaming.
* Don't allow keyword arguments to reversed().Georg Brandl2008-05-161-1/+4
|
* Make generator repr consistent with function and code object repr.Georg Brandl2008-05-161-1/+1
|
* #2863: add gen.__name__ and add this name to generator repr().Georg Brandl2008-05-151-2/+32
|
* #2831: add start argument to enumerate(). Patch by Scott Dial and me.Georg Brandl2008-05-131-5/+23
|
* #2809 followup: even better split docstring.Georg Brandl2008-05-112-4/+4
|
* Addresses issue 2802: 'n' formatting for integers.Eric Smith2008-05-115-3/+154
| | | | | | | | | | | | | | Adds 'n' as a format specifier for integers, to mirror the same specifier which is already available for floats. 'n' is the same as 'd', but inserts the current locale-specific thousands grouping. I added this as a stringlib function, but it's only used by str type, not unicode. This is because of an implementation detail in unicode.format(), which does its own str->unicode conversion. But the unicode version will be needed in 3.0, and it may be needed by other code eventually in 2.6 (maybe decimal?), so I left it as a stringlib implementation. As long as the unicode version isn't instantiated, there's no overhead for this.
* #2809: elaborate str.split docstring a bit.Georg Brandl2008-05-112-3/+5
|
* Added module stub for copy_reg renaming in 3.0.Alexandre Vassalotti2008-05-111-22/+22
| | | | | | Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact.
* Backport fast alternate io.BytesIO implementation.Alexandre Vassalotti2008-05-091-2/+2
| | | | | Merged r62778, r62779, r62802, r62806, r62807, r62808, r62809, r62844, r62846, r62952, r62956.
* Issue #2801: fix bug in float.is_integer where ValueErrorMark Dickinson2008-05-091-0/+1
| | | | | | could be incorrectly raised. This is a backport of the Py3k fix in r62939. (Should really have been fixed in the trunk first and svnmerged into py3k.)
* Frozensets do not benefit from autoconversion.Raymond Hettinger2008-05-081-3/+3
|
* A little reformating of Py3k warningsBenjamin Peterson2008-04-277-18/+16
|