summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* fix error handling of PyNumber_InPlaceOr #6000Benjamin Peterson2009-05-121-16/+26
|
* bytes -> bytearrayBenjamin Peterson2009-05-101-1/+1
|
* Rename utf8b error handler to surrogateescape.Martin v. Löwis2009-05-101-6/+6
|
* Rename the surrogates error handler to surrogatepass.Martin v. Löwis2009-05-102-8/+8
|
* Merged revisions 72508 via svnmerge fromBenjamin Peterson2009-05-091-12/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72508 | benjamin.peterson | 2009-05-09 11:36:39 -0500 (Sat, 09 May 2009) | 1 line convert some more special methods to use _PyObject_LookupSpecial ........
* these builtins have to be initializedBenjamin Peterson2009-05-091-6/+0
|
* add a replacement API for PyCObject, PyCapsule #5630Benjamin Peterson2009-05-052-15/+35
| | | | | | All stdlib modules with C-APIs now use this. Patch by Larry Hastings
* Issue #5920: Changed format.__float__ and complex.__float__ to use a ↵Eric Smith2009-05-051-33/+13
| | | | precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.
* Issue #5915: Implement PEP 383, Non-decodable Bytes inMartin v. Löwis2009-05-052-16/+105
| | | | System Character Interfaces.
* Merged revisions 72257 via svnmerge fromMark Dickinson2009-05-031-3/+16
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72257 | mark.dickinson | 2009-05-03 23:33:34 +0100 (Sun, 03 May 2009) | 2 lines Don't use PyOS_strnicmp for NaN and Inf detection: it's locale-aware. ........
* Issue #5914: Add new C-API function PyOS_string_to_double, to complementMark Dickinson2009-05-034-39/+124
| | | | PyOS_double_to_string, and deprecate PyOS_ascii_strtod and PyOS_ascii_atof.
* Make PyCodec_SurrogateErrors static.Martin v. Löwis2009-05-021-1/+4
|
* Issue #3672: Reject surrogates in utf-8 codec; add surrogates errorMartin v. Löwis2009-05-022-2/+96
| | | | handler.
* Issue #5859: Remove use of fixed-length buffers for float formattingMark Dickinson2009-05-011-25/+69
| | | | | | in unicodeobject.c and the fallback version of PyOS_double_to_string. As a result, operations like '%.120e' % 12.34 no longer raise an exception.
* Issue #1588: Add complex.__format__.Eric Smith2009-04-301-3/+4
|
* Issue #5864: Fix problem with empty code formatting for floats,Mark Dickinson2009-04-291-78/+114
| | | | where a bogus trailing zero could be added.
* Include files missed in r72044.Eric Smith2009-04-271-0/+214
|
* Merged revisions 72040 via svnmerge fromEric Smith2009-04-271-15/+9
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72040 | eric.smith | 2009-04-27 15:04:37 -0400 (Mon, 27 Apr 2009) | 1 line Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors. ........
* Issue #5835: Deprecate PyOS_ascii_formatd.Eric Smith2009-04-261-3/+19
|
* Merged revisions 71976 via svnmerge fromMark Dickinson2009-04-261-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71976 | mark.dickinson | 2009-04-26 20:54:55 +0100 (Sun, 26 Apr 2009) | 2 lines Fix typo in function name ........
* Internal plumbing changes for float parsing:Mark Dickinson2009-04-261-30/+57
| | | | | | - check for nans and infs within PyOS_ascii_strtod - simplify parsing in PyFloat_FromString, and handle out-of-memory errors properly
* Issue #5816: Simplify code for parsing and printing of complex numbers.Mark Dickinson2009-04-231-10/+13
| | | | | nans and infs are no longer given special treatment; as a result, repr(complex(z)) recovers z for any complex number z.
* Added handling of PyOS_double_to_string out-of-memory errors. Closes issue 5775.Eric Smith2009-04-211-27/+41
|
* The SSE2 detection and enabling could potentially causeMark Dickinson2009-04-181-5/+1
| | | | | | | | problems for binary distributions of Python in situations where the build machine has SSE2 but the target machine does not. Therefore, don't enable SSE2 instructions automatically on x86.
* Merged revisions 71705 via svnmerge fromMark Dickinson2009-04-181-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71705 | mark.dickinson | 2009-04-18 15:13:43 +0100 (Sat, 18 Apr 2009) | 2 lines copysign shouldn't be declared as static in pymath.c ........
* Add check for C99 round function to configure, and defineMark Dickinson2009-04-181-0/+13
| | | | a fallback function if round doesn't exist.
* Removed unused files.Eric Smith2009-04-182-206/+0
|
* Issue 5780: Fix test_float failures for legacy style float repr.Mark Dickinson2009-04-171-4/+61
|
* Silence compiler warnings on VS8.0Mark Dickinson2009-04-171-6/+6
|
* Add reminder to dtoa.c to check for updates regularly.Mark Dickinson2009-04-171-2/+10
| | | | Fix a bug in the memory management in dtoa.c.
* Make sure that marshal and pickle continue to output 17Mark Dickinson2009-04-171-3/+3
| | | | digits of precision for floats.
* Simplify PyOS_double_to_string.Eric Smith2009-04-161-33/+31
|
* The other half of Issue #1580: use short float repr where possible.Eric Smith2009-04-162-64/+558
| | | | | | | | | | | | | | Addresses the float -> string conversion, using David Gay's code which was added in Mark Dickinson's checkin r71663. Also addresses these, which are intertwined with the short repr changes: - Issue #5772: format(1e100, '<') produces '1e+100', not '1.0e+100' - Issue #5515: 'n' formatting with commas no longer works poorly with leading zeros. - PEP 378 Format Specifier for Thousands Separator: implemented for floats.
* Issue #1580: use short float repr where possible.Mark Dickinson2009-04-163-0/+2678
| | | | | | | | | | | | | | | - incorporate and adapt David Gay's dtoa and strtod into the Python core - on platforms where we can use Gay's code (almost all!), repr(float) is based on the shortest sequence of decimal digits that rounds correctly. - add sys.float_repr_style attribute to indicate whether we're using Gay's code or not - add autoconf magic to detect and enable SSE2 instructions on x86/gcc - slight change to repr and str: repr switches to exponential notation at 1e16 instead of 1e17, str switches at 1e11 instead of 1e12
* Merged revisions 71024,71058 via svnmerge fromGeorg Brandl2009-04-111-1/+9
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71024 | georg.brandl | 2009-04-02 04:47:44 +0200 (Do, 02 Apr 2009) | 4 lines In PyErr_GivenExceptionMatches, temporarily bump the recursion limit, so that in the most common case PyObject_IsSubclass will not raise a recursion error we have to ignore anyway. ........ r71058 | georg.brandl | 2009-04-02 20:09:04 +0200 (Do, 02 Apr 2009) | 3 lines PyErr_NormalizeException may not set an error, so convert the PyErr_SetObject call on hitting the recursion limit into just assigning it to the arguments provided. ........
* Merged revisions ↵Benjamin Peterson2009-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70980,71059,71225,71234,71241,71243,71249,71251,71255,71266,71299,71329,71397-71398,71486 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70980 | jack.diederich | 2009-04-01 15:26:13 -0500 (Wed, 01 Apr 2009) | 3 lines bounds check arguments to mmap.move(). All of them. Really. fixes crasher on OS X 10.5 ........ r71059 | mark.dickinson | 2009-04-02 13:39:37 -0500 (Thu, 02 Apr 2009) | 2 lines sys.long_info attributes should be ints, not longs ........ r71225 | georg.brandl | 2009-04-05 06:54:07 -0500 (Sun, 05 Apr 2009) | 1 line #5580: no need to use parentheses when converterr() argument is actually a type description. ........ r71234 | georg.brandl | 2009-04-05 08:16:35 -0500 (Sun, 05 Apr 2009) | 1 line Whitespace normalization. ........ r71241 | georg.brandl | 2009-04-05 09:48:49 -0500 (Sun, 05 Apr 2009) | 1 line #5471: fix expanduser() for $HOME set to "/". ........ r71243 | georg.brandl | 2009-04-05 10:14:29 -0500 (Sun, 05 Apr 2009) | 1 line #5432: make plistlib docstring a raw string, since it contains examples with backslash escapes. ........ r71249 | georg.brandl | 2009-04-05 11:30:43 -0500 (Sun, 05 Apr 2009) | 1 line #5444: adapt make.bat to new htmlhelp output file name. ........ r71251 | georg.brandl | 2009-04-05 12:17:42 -0500 (Sun, 05 Apr 2009) | 1 line #5298: clarify docs about GIL by using more consistent wording. ........ r71255 | georg.brandl | 2009-04-05 13:34:58 -0500 (Sun, 05 Apr 2009) | 1 line #602893: add indicator for current line in cgitb that doesnt rely on styling alone. ........ r71266 | georg.brandl | 2009-04-05 15:23:13 -0500 (Sun, 05 Apr 2009) | 1 line Normalize issue referencing style. ........ r71299 | gregory.p.smith | 2009-04-05 18:43:58 -0500 (Sun, 05 Apr 2009) | 3 lines Fixes issue5705: os.setuid() and friends did not accept the same range of values that pwd.getpwnam() returns. ........ r71329 | benjamin.peterson | 2009-04-06 16:53:33 -0500 (Mon, 06 Apr 2009) | 1 line add create_connection to __all__ #5711 ........ r71397 | georg.brandl | 2009-04-08 11:36:39 -0500 (Wed, 08 Apr 2009) | 1 line Remove redundant backtick. ........ r71398 | georg.brandl | 2009-04-08 11:39:04 -0500 (Wed, 08 Apr 2009) | 1 line Update ignore file for suspicious builder. ........ r71486 | andrew.kuchling | 2009-04-11 11:18:14 -0500 (Sat, 11 Apr 2009) | 1 line Re-word ........
* Removed unused #include.Eric Smith2009-04-071-1/+0
|
* Revert removal of atof.c and strtod.c in r71341. We're not quiteMark Dickinson2009-04-072-0/+206
| | | | | ready for this yet---this removal should happen as part of the py3k-short-float-repr merge.
* Removed unused files in preparation for merging py3k-short-float-repr.Eric Smith2009-04-072-206/+0
|
* Merged revisions 71152 via svnmerge fromMatthias Klose2009-04-041-2/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71152 | matthias.klose | 2009-04-04 16:18:13 +0200 (Sa, 04 Apr 2009) | 3 lines - Issue #3845: In PyRun_SimpleFileExFlags avoid invalid memory access with short file names. ........
* Py_BuildValue's 'c' code should use byte strings #5666Benjamin Peterson2009-04-031-1/+1
|
* Added ',' thousands grouping to int.__format__. See PEP 378.Eric Smith2009-04-031-1/+1
| | | | | | | | | This is incomplete, but I want to get some version into the next alpha. I am still working on: Documentation. More tests. Implement for floats. In addition, there's an existing bug with 'n' formatting that carries forward to thousands grouping (issue 5515).
* Merged revisions 71031 via svnmerge fromBrett Cannon2009-04-021-2/+2
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71031 | brett.cannon | 2009-04-01 20:17:39 -0700 (Wed, 01 Apr 2009) | 6 lines PyImport_AppendInittab() took a char * as a first argument even though that string was stored beyond the life of the call. Changed the signature to be const char * to help make this point. Closes issue #1419652. ........
* remove unused variableBenjamin Peterson2009-04-021-1/+0
|
* rewrite error handling to make senseBenjamin Peterson2009-04-021-3/+7
|
* fix ref leaksBenjamin Peterson2009-04-021-0/+2
|
* make 'c' only accept bytes and 'C' only unicode #5499Benjamin Peterson2009-04-021-10/+4
|
* Merged revisions 70965 via svnmerge fromBrett Cannon2009-04-011-16/+30
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70965 | brett.cannon | 2009-04-01 11:03:59 -0700 (Wed, 01 Apr 2009) | 5 lines _warnings was importing itself to get an attribute. That's bad if warnings gets called in a thread that was spawned by an import itself. Last part to close #1665206. ........
* The BDFL has retired! Long live the FLUFL (Friendly Language Uncle For Life)!Brett Cannon2009-04-013-97/+103
|
* Merged revisions 70908 via svnmerge fromJesse Noller2009-03-311-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70908 | jesse.noller | 2009-03-31 17:20:35 -0500 (Tue, 31 Mar 2009) | 1 line Issue 5619: Pass MS CRT debug flags into subprocesses ........