Tarek Ziadé
fbd7757b4b
Merged revisions 71759 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71759 | tarek.ziade | 2009-04-20 12:33:47 +0200 (Mon, 20 Apr 2009) | 1 line
making BuildWinInstTestCase silent in case bdist_wininst is not run under win32
........
2009-04-20 12:37:58 +00:00
Tarek Ziadé
7d3a62629f
Merged revisions 71758 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71758 | tarek.ziade | 2009-04-20 09:53:55 +0200 (Mon, 20 Apr 2009) | 1 line
#5795 sysconfig._config_vars was shadowed in tearDown
........
2009-04-20 12:18:08 +00:00
Benjamin Peterson
fd838e6c84
Merged revisions 71734,71738-71739 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71734 | benjamin.peterson | 2009-04-18 17:15:26 -0500 (Sat, 18 Apr 2009) | 1 line
many more types to initialize (I had to expose some of them)
........
r71738 | benjamin.peterson | 2009-04-18 21:32:42 -0500 (Sat, 18 Apr 2009) | 1 line
initialize weakref some weakref types
........
r71739 | benjamin.peterson | 2009-04-18 21:40:43 -0500 (Sat, 18 Apr 2009) | 1 line
make errors consistent
........
2009-04-20 02:09:13 +00:00
Mark Dickinson
ea835e7a87
Issue #5463 : Remove deprecated float coercion from struct module, along
...
with the _PY_STRUCT_FLOAT_COERCE constant. Simplify tests accordingly,
and reenable (now-fixed) broken tests.
2009-04-19 20:40:33 +00:00
Mark Dickinson
769ba47bb2
Merged revisions 71750 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71750 | mark.dickinson | 2009-04-19 18:10:47 +0100 (Sun, 19 Apr 2009) | 3 lines
Automatic conversion of floats to integers for struct.pack integer codes
is deprecated. Use an explicit int() instead.
........
2009-04-19 17:14:11 +00:00
Mark Dickinson
a4262b93eb
Add comments to pyport.h explaining how to enable support for short
...
float repr on platforms that don't currently support it, and
reorganize the defines slightly to make adding support easier.
2009-04-19 11:35:55 +00:00
Ronald Oussoren
1cc369ca86
Merged revisions 71743 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71743 | ronald.oussoren | 2009-04-19 12:38:20 +0200 (Sun, 19 Apr 2009) | 2 lines
Fix for issue5657.
........
2009-04-19 10:40:48 +00:00
Benjamin Peterson
1fea321502
use NULL for the ends of tables
2009-04-19 03:15:20 +00:00
Benjamin Peterson
cee5663068
make python3 alias in altbininstall
2009-04-19 03:14:50 +00:00
Antoine Pitrou
c50cb8e9c1
Fix use of test skipping API.
2009-04-19 00:10:36 +00:00
Antoine Pitrou
cf4c749680
Issue #5734 : BufferedRWPair was poorly tested and had several glaring bugs.
...
Patch by Brian Quinlan.
2009-04-19 00:09:36 +00:00
Benjamin Peterson
561f36068f
Blocked revisions 71725 via svnmerge
...
........
r71725 | benjamin.peterson | 2009-04-18 15:25:25 -0500 (Sat, 18 Apr 2009) | 1 line
initalize -> initialize
........
2009-04-18 21:24:33 +00:00
Mark Dickinson
1068307fd8
Move configure check for broken sem_getvalue outside the
...
LIBS="$LIBS $LIBM" section.
2009-04-18 21:18:19 +00:00
Benjamin Peterson
ae937c021d
Merged revisions 71722 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71722 | benjamin.peterson | 2009-04-18 15:12:47 -0500 (Sat, 18 Apr 2009) | 1 line
try to initalize all builtin types with PyType_Ready to avoid problems like #5787
........
2009-04-18 20:54:08 +00:00
Mark Dickinson
332424777f
Revert accidental changes to Objects/floatobject.c
2009-04-18 20:19:17 +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
Benjamin Peterson
153c70f6d7
Merged revisions 71719 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71719 | benjamin.peterson | 2009-04-18 10:31:34 -0500 (Sat, 18 Apr 2009) | 1 line
rename internal bytes_ functions to bytearray
........
2009-04-18 15:42:12 +00:00
Benjamin Peterson
80688efd6c
rename internal methods of the bytes object to bytes_
2009-04-18 15:17:02 +00:00
Mark Dickinson
97a0a6e13e
Blocked revisions 71715 via svnmerge
...
........
r71715 | mark.dickinson | 2009-04-18 15:59:42 +0100 (Sat, 18 Apr 2009) | 2 lines
Issue #1869 : Fix a couple of minor round() issues.
........
2009-04-18 15:01:12 +00:00
Benjamin Peterson
20c3b55622
use the more offical skipping api
2009-04-18 14:49:19 +00:00
Benjamin Peterson
9990e8c264
add annotations to open()
2009-04-18 14:47:50 +00:00
Mark Dickinson
67d28f774d
Blocked revisions 71710 via svnmerge
...
........
r71710 | mark.dickinson | 2009-04-18 15:41:37 +0100 (Sat, 18 Apr 2009) | 2 lines
Backport r71704 (add configure check for C99 round function) to trunk.
........
2009-04-18 14:42:41 +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
Hirokazu Yamamoto
f498113f3f
Added Python/dtoa.c to project files.
2009-04-18 13:10:51 +00:00
Mark Dickinson
e6a076d86c
Issue #1869 (and 4707, 5118, 5473, 1456775): use the new
...
string <-> float conversion routines to make round(x, n) correctly
rounded for floats x, so that it always agrees with format(x, '.<n>f').
Also fix some other round nuisances, like round(123.456, 1-2**31) giving
an integer rather than a float.
2009-04-18 11:48:33 +00:00
Mark Dickinson
60fd0999cc
Issue #5781 : Only use legacy string<->double conversions when
...
we can't figure out how to get and set the x87 control word.
2009-04-18 10:16:35 +00:00
Mark Dickinson
3800d15772
The comments at the top of intobject.h say that it will be removed in 3.1.
...
Make it so.
2009-04-18 10:12:16 +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
7efad9ec5a
Sort out some confusion in test_float.py: the two
...
separate FormatTestCase classes have been combined,
and test_short_repr has been moved from FormatTestCase
to the existing ReprTestCase.
2009-04-17 20:59:58 +00:00
Raymond Hettinger
1a6b73dcdf
Add porting notes.
2009-04-17 20:55:52 +00:00
Mark Dickinson
fd2ad8b4f2
Silence compiler warnings on VS8.0
2009-04-17 19:29:46 +00:00
Raymond Hettinger
0422e14155
Add more examples.
2009-04-17 18:58:06 +00:00
Raymond Hettinger
b687e763eb
Add dtoc.[ch] to the VS8.0 project file.
2009-04-17 18:47:01 +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
Tarek Ziadé
f633ff4546
Merged revisions 71674 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71674 | tarek.ziade | 2009-04-17 16:29:56 +0200 (Fri, 17 Apr 2009) | 1 line
DistutilsSetupError was not raised when one single warning occured
........
2009-04-17 14:34:49 +00:00
Eric Smith
86c06bc47f
Nit.
2009-04-17 12:33:24 +00:00
Raymond Hettinger
c548b6e724
Update list of supported types.
2009-04-17 10:09:27 +00:00
Raymond Hettinger
fee346b5c4
Nits.
2009-04-17 09:45:19 +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
Raymond Hettinger
8648e501d8
Ladies and gentlemen, the new float.__repr__() has arrived.
2009-04-17 00:11:54 +00:00
Eric Smith
193125ad19
Simplify PyOS_double_to_string.
2009-04-16 22:08:31 +00:00
Eric Smith
35e84728c0
Better wording for Issue #5515 entry.
2009-04-16 20:21:28 +00:00
Eric Smith
0923d1d8d7
The other half of Issue #1580 : use short float repr where possible.
...
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.
2009-04-16 20:16:10 +00:00
Mark Dickinson
b08a53a99d
Issue #1580 : use short float repr where possible.
...
- 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
2009-04-16 19:52:09 +00:00
Thomas Heller
579b65c2d6
Merged revisions 71640-71641 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71640 | thomas.heller | 2009-04-16 08:26:33 +0200 (Do, 16 Apr 2009) | 1 line
Remove unneeded code.
........
r71641 | thomas.heller | 2009-04-16 08:42:02 +0200 (Do, 16 Apr 2009) | 2 lines
Remove duplicated function declaration.
Make _pagesize static.
........
2009-04-16 18:37:24 +00:00
R. David Murray
1055e89a25
Merged revisions 71651 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71651 | r.david.murray | 2009-04-16 14:12:53 -0400 (Thu, 16 Apr 2009) | 2 lines
Less red ink (warning->note) and add link to def of side-by-side assembly.
........
2009-04-16 18:15:32 +00:00
Collin Winter
771d8341cd
Port r71408 to py3k: issue 5665, add more pickling tests.
2009-04-16 03:18:06 +00:00
R. David Murray
f4ac1494dc
Merged revisions 71631 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71631 | r.david.murray | 2009-04-15 18:33:07 -0400 (Wed, 15 Apr 2009) | 4 lines
Fix for issue3440: add warning to subprocess discussion of
env parameter that on Windows SystemRoot is required in order
to run side-by-side assemblies.
........
2009-04-15 22:35:15 +00:00