summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.Georg Brandl2010-12-041-1/+1
|
* Removed static function complex_format, moved it into complex_repr. Modified ↵Eric Smith2010-12-041-10/+8
| | | | tests to check both str and repr, which are the same for complex.
* Use copysign to produce appropriately signed zeros instead of trying to worm ↵Mark Dickinson2010-12-041-12/+5
| | | | around possible compiler optimizations.
* Issue #10596: Fix float.__mod__ to have the same behaviour asMark Dickinson2010-12-041-4/+14
| | | | float.__divmod__ with respect to signed zeros.
* Remove some unecessary '#ifdef Py_NAN's from floatobject.cMark Dickinson2010-12-041-6/+0
|
* Fix indentation in Objects/longobject.cMark Dickinson2010-12-041-3/+3
|
* Regenerate.Martin v. Löwis2010-12-041-0/+1
|
* Add Revision keyword.Martin v. Löwis2010-12-041-0/+1
|
* Make script 2-vs-3-agnostic.Martin v. Löwis2010-12-041-1/+1
|
* Issue #10557: Fixed error messages from float() and other numericAlexander Belopolsky2010-12-044-48/+106
| | | | | | types. Added a new API function, PyUnicode_TransformDecimalToASCII(), which transforms non-ASCII decimal digits in a Unicode string to their ASCII equivalents.
* Merge branches/pep-0384.Martin v. Löwis2010-12-0315-20/+186
|
* #6780: fix complex() constructor TypeError messageVictor Stinner2010-12-031-1/+1
|
* Issue 2690: Add support for slicing and negative indices to range objects ↵Nick Coghlan2010-12-031-100/+184
| | | | | | (includes precalculation and storage of the range length). Refer to the tracker issue for the language moratorium implications of this change
* Remove redundant check for PyBytes in unicode_encode.Georg Brandl2010-12-031-17/+1
|
* code styleBenjamin Peterson2010-12-031-5/+10
|
* Issue9915: speeding up sorting with a keyDaniel Stutzbach2010-12-021-225/+238
|
* #7475: add (un)transform method to bytes/bytearray and str, add back codecs ↵Georg Brandl2010-12-023-1/+182
| | | | that can be used with them from Python 2.
* Issue #8685: Speed up set difference `a - b` when source set `a` isAntoine Pitrou2010-11-301-7/+22
| | | | much larger than operand `b`. Patch by Andrew Bennetts.
* Remove redundant includes of headers that are already included by Python.h.Georg Brandl2010-11-305-6/+0
|
* Include structseq.h in Python.h, and remove now-redundant includes in ↵Georg Brandl2010-11-303-3/+0
| | | | individual sources.
* Indentation cleanup.Stefan Krah2010-11-261-9/+9
|
* Issue #7094: Add alternate ('#') flag to __format__ methods for float, ↵Eric Smith2010-11-251-16/+6
| | | | complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon.
* pep 7 actually wants the brace on a new lineBenjamin Peterson2010-11-201-22/+44
|
* code style and simplificationBenjamin Peterson2010-11-201-72/+31
|
* Add error handling in range_count.Georg Brandl2010-11-201-1/+4
|
* count() should return integers #10474Benjamin Peterson2010-11-201-2/+2
|
* code styleBenjamin Peterson2010-11-201-8/+4
|
* #1574217: only swallow AttributeErrors in isinstance, not everything.R. David Murray2010-11-201-3/+12
| | | | Patch and tests by Brian Harring, with improvements by Ralf Schmitt.
* handle dict subclasses gracefully in PyArg_ValidateKeywordArgumentsBenjamin Peterson2010-11-171-1/+1
|
* Issue #10359: Remove ";" after function definition, invalid in ISO CVictor Stinner2010-11-091-1/+1
|
* PyUnicode_DecodeFSDefaultAndSize() raises MemoryError if _Py_char2wchar() failsVictor Stinner2010-11-081-1/+1
|
* PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() failsVictor Stinner2010-11-081-3/+20
| | | | | | * Add error_pos optional argument to _Py_wchar2char() * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if _Py_wchar2char() fails
* str, bytes, bytearray docstring: remove unnecessary [...]Victor Stinner2010-11-073-3/+3
|
* Fix encode/decode method doc of str, bytes, bytearray typesVictor Stinner2010-11-073-9/+9
| | | | | | * Specify the default encoding: write 'utf-8' instead of sys.getdefaultencoding(), because the default encoding is now constant * Specify the default errors value
* Added more to docstrings for str.format, format_map, and __format__.Eric Smith2010-11-061-3/+5
|
* Issue #10288: The deprecated family of "char"-handling macrosDavid Malcolm2010-11-052-24/+24
| | | | | (ISLOWER()/ISUPPER()/etc) have now been removed: use Py_ISLOWER() etc instead.
* Followup to r86170: fix reference leak in str.formatAntoine Pitrou2010-11-051-1/+0
|
* Issue #10293: Remove obsolete field in the PyMemoryView structure,Antoine Pitrou2010-11-041-44/+1
| | | | | unused undocumented value PyBUF_SHADOW, and strangely-looking code in PyMemoryView_GetContiguous.
* Issue #6081: Add str.format_map. str.format_map(mapping) is similar to ↵Eric Smith2010-11-042-1/+16
| | | | str.format(**mapping), except mapping does not get converted to a dict.
* deuglifyBenjamin Peterson2010-11-031-2/+3
|
* Issue 10221: Improve error message for dict.pop().Raymond Hettinger2010-10-301-2/+1
|
* Issue #5437: A preallocated MemoryError instance should not hold tracebackAntoine Pitrou2010-10-281-10/+87
| | | | data (including local variables caught in the stack trace) alive infinitely.
* Simplify PyUnicode_Encode/DecodeFSDefault on Windows/Mac OS XVictor Stinner2010-10-271-16/+18
| | | | | * Windows always uses mbcs * Mac OS X always uses utf-8
* Add a new warning gategory, ResourceWarning, as discussed on python-dev. It ↵Georg Brandl2010-10-241-0/+10
| | | | | | | | is silent by default, except when configured --with-pydebug. Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
* Follow up to #9778: fix regressions on 64-bit Windows buildsAntoine Pitrou2010-10-232-16/+7
|
* follow up to #9778: define and use an unsigned hash typeBenjamin Peterson2010-10-235-18/+18
|
* Revert r85797 (and r85798): it broke the Windows buildbots because ofAntoine Pitrou2010-10-221-48/+30
| | | | test_multiprocessing's misbehaviour.
* Issue #9935: Speed up pickling of instances of user-defined classes.Antoine Pitrou2010-10-221-30/+48
|
* Issue #4388: On Mac OS X, decode command line arguments from UTF-8, instead ofVictor Stinner2010-10-201-0/+114
| | | | | | | the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable is not set, the locale encoding is ISO-8859-1, whereas most programs (including Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and to encode command line arguments on this OS.
* PyUnicode_FromFormatV(): Fix %A formatVictor Stinner2010-10-181-0/+1
| | | | It was not completly implemented. Add a test.