Benjamin Peterson
b173f7853e
add a replacement API for PyCObject, PyCapsule #5630
...
All stdlib modules with C-APIs now use this.
Patch by Larry Hastings
2009-05-05 22:31:58 +00:00
Eric Smith
63376228a3
Issue #5920 : Changed format.__float__ and complex.__float__ to use a 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.
2009-05-05 14:04:18 +00:00
Martin v. Löwis
011e842033
Issue #5915 : Implement PEP 383, Non-decodable Bytes in
...
System Character Interfaces.
2009-05-05 04:43:17 +00:00
Mark Dickinson
129ab1d809
Merged revisions 72257 via svnmerge from
...
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.
........
2009-05-03 22:36:01 +00:00
Mark Dickinson
725bfd8489
Issue #5914 : Add new C-API function PyOS_string_to_double, to complement
...
PyOS_double_to_string, and deprecate PyOS_ascii_strtod and PyOS_ascii_atof.
2009-05-03 20:33:40 +00:00
Martin v. Löwis
aef3fb082c
Make PyCodec_SurrogateErrors static.
2009-05-02 19:27:30 +00:00
Martin v. Löwis
db12d454e6
Issue #3672 : Reject surrogates in utf-8 codec; add surrogates error
...
handler.
2009-05-02 18:52:14 +00:00
Mark Dickinson
f489caf5da
Issue #5859 : Remove use of fixed-length buffers for float formatting
...
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.
2009-05-01 11:42:00 +00:00
Eric Smith
58a42244cf
Issue #1588 : Add complex.__format__.
2009-04-30 01:00:33 +00:00
Mark Dickinson
d3ca557150
Issue #5864 : Fix problem with empty code formatting for floats,
...
where a bogus trailing zero could be added.
2009-04-29 18:47:07 +00:00
Eric Smith
8374981fb4
Include files missed in r72044.
2009-04-27 20:54:42 +00:00
Eric Smith
6dc46f5eaa
Merged revisions 72040 via svnmerge from
...
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.
........
2009-04-27 20:39:49 +00:00
Eric Smith
cc32a11976
Issue #5835 : Deprecate PyOS_ascii_formatd.
2009-04-26 21:35:14 +00:00
Mark Dickinson
ce95e5646b
Merged revisions 71976 via svnmerge from
...
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
........
2009-04-26 20:02:24 +00:00
Mark Dickinson
6d65df1e8a
Internal plumbing changes for float parsing:
...
- check for nans and infs within PyOS_ascii_strtod
- simplify parsing in PyFloat_FromString, and handle out-of-memory
errors properly
2009-04-26 15:30:47 +00:00
Mark Dickinson
ad476dab09
Issue #5816 : Simplify code for parsing and printing of complex numbers.
...
nans and infs are no longer given special treatment; as a result,
repr(complex(z)) recovers z for any complex number z.
2009-04-23 19:14:16 +00:00
Eric Smith
b1a03cf716
Added handling of PyOS_double_to_string out-of-memory errors. Closes issue 5775.
2009-04-21 11:57:38 +00:00
Mark Dickinson
7abf8d4066
The SSE2 detection and enabling could potentially cause
...
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.
2009-04-18 20:17:52 +00:00
Mark Dickinson
23b6286e8f
Merged revisions 71705 via svnmerge from
...
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
........
2009-04-18 14:14:48 +00:00
Mark Dickinson
f253786a80
Add check for C99 round function to configure, and define
...
a fallback function if round doesn't exist.
2009-04-18 13:58:18 +00:00
Eric Smith
241cb4cff5
Removed unused files.
2009-04-18 00:10:04 +00:00
Mark Dickinson
3370cce4dd
Issue 5780: Fix test_float failures for legacy style float repr.
2009-04-17 22:40:53 +00:00
Mark Dickinson
fd2ad8b4f2
Silence compiler warnings on VS8.0
2009-04-17 19:29:46 +00:00
Mark Dickinson
7f0ea323ee
Add reminder to dtoa.c to check for updates regularly.
...
Fix a bug in the memory management in dtoa.c.
2009-04-17 16:06:28 +00:00
Mark Dickinson
3e09f43e06
Make sure that marshal and pickle continue to output 17
...
digits of precision for floats.
2009-04-17 08:41:23 +00:00