Commit Graph

38876 Commits

Author SHA1 Message Date
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
Benjamin Peterson
2808d3c418 Merged revisions 71627 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71627 | benjamin.peterson | 2009-04-15 16:26:36 -0500 (Wed, 15 Apr 2009) | 4 lines

  call __float__ on str subclasses #5759

  tests by R. David Murray
........
2009-04-15 21:34:27 +00:00
Benjamin Peterson
50a1469557 reference the io momdule in file and directory section 2009-04-15 20:34:30 +00:00
Benjamin Peterson
54f963e5bf other places like this just catch IOError 2009-04-14 22:02:08 +00:00
Raymond Hettinger
55fc9ce7e1 Fix links 2009-04-14 20:45:17 +00:00
Raymond Hettinger
d621dd7ecd Fix-up links. 2009-04-14 08:16:50 +00:00
Raymond Hettinger
7f5d746cdf New module names are lowercase 2009-04-14 08:05:31 +00:00
Tarek Ziadé
3a794c4add Merged revisions 71589 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71589 | tarek.ziade | 2009-04-13 22:14:54 +0200 (Mon, 13 Apr 2009) | 1 line

  pep8-fied
........
2009-04-13 20:19:58 +00:00
Tarek Ziadé
c44865a345 Merged revisions 71585 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71585 | tarek.ziade | 2009-04-13 22:03:44 +0200 (Mon, 13 Apr 2009) | 1 line

  improved test coverage for distutils.cmd
........
2009-04-13 20:07:23 +00:00
R. David Murray
9e94ddfb57 Move NEWS item to correct section. 2009-04-13 17:06:33 +00:00