summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #1869 (and 4707, 5118, 5473, 1456775): use the newMark Dickinson2009-04-183-24/+230
| | | | | | | | 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.
* Issue #5781: Only use legacy string<->double conversions whenMark Dickinson2009-04-181-2/+4
| | | | we can't figure out how to get and set the x87 control word.
* The comments at the top of intobject.h say that it will be removed in 3.1.Mark Dickinson2009-04-181-36/+0
| | | | Make it so.
* Removed unused files.Eric Smith2009-04-182-206/+0
|
* Issue 5780: Fix test_float failures for legacy style float repr.Mark Dickinson2009-04-172-12/+65
|
* Sort out some confusion in test_float.py: the twoMark Dickinson2009-04-171-15/+12
| | | | | | separate FormatTestCase classes have been combined, and test_short_repr has been moved from FormatTestCase to the existing ReprTestCase.
* Add porting notes.Raymond Hettinger2009-04-171-0/+29
|
* Silence compiler warnings on VS8.0Mark Dickinson2009-04-171-6/+6
|
* Add more examples.Raymond Hettinger2009-04-171-0/+4
|
* Add dtoc.[ch] to the VS8.0 project file.Raymond Hettinger2009-04-171-0/+8
|
* 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.
* Merged revisions 71674 via svnmerge fromTarek Ziadé2009-04-172-10/+9
| | | | | | | | | | 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 ........
* Nit.Eric Smith2009-04-171-1/+1
|
* Update list of supported types.Raymond Hettinger2009-04-171-2/+2
|
* Nits.Raymond Hettinger2009-04-171-4/+4
|
* Make sure that marshal and pickle continue to output 17Mark Dickinson2009-04-172-4/+4
| | | | digits of precision for floats.
* Ladies and gentlemen, the new float.__repr__() has arrived.Raymond Hettinger2009-04-171-0/+37
|
* Simplify PyOS_double_to_string.Eric Smith2009-04-161-33/+31
|
* Better wording for Issue #5515 entry.Eric Smith2009-04-161-3/+2
|
* The other half of Issue #1580: use short float repr where possible.Eric Smith2009-04-1616-836/+1497
| | | | | | | | | | | | | | 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-1619-19/+3866
| | | | | | | | | | | | | | | - 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 71640-71641 via svnmerge fromThomas Heller2009-04-164-20/+1
| | | | | | | | | | | | | | | 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. ........
* Merged revisions 71651 via svnmerge fromR. David Murray2009-04-161-4/+6
| | | | | | | | | | 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. ........
* Port r71408 to py3k: issue 5665, add more pickling tests.Collin Winter2009-04-162-9/+168
|
* Merged revisions 71631 via svnmerge fromR. David Murray2009-04-151-0/+7
| | | | | | | | | | | | 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. ........
* Merged revisions 71627 via svnmerge fromBenjamin Peterson2009-04-153-1/+12
| | | | | | | | | | | | 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 ........
* reference the io momdule in file and directory sectionBenjamin Peterson2009-04-151-0/+4
|
* other places like this just catch IOErrorBenjamin Peterson2009-04-141-1/+1
|
* Fix linksRaymond Hettinger2009-04-141-3/+4
|
* Fix-up links.Raymond Hettinger2009-04-141-6/+6
|
* New module names are lowercaseRaymond Hettinger2009-04-141-1/+1
|
* Merged revisions 71589 via svnmerge fromTarek Ziadé2009-04-131-10/+6
| | | | | | | | | | 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 ........
* Merged revisions 71585 via svnmerge fromTarek Ziadé2009-04-131-0/+40
| | | | | | | | | | 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 ........
* Move NEWS item to correct section.R. David Murray2009-04-131-6/+6
|
* Merged revisions 71579 via svnmerge fromR. David Murray2009-04-131-0/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71579 | r.david.murray | 2009-04-13 12:56:32 -0400 (Mon, 13 Apr 2009) | 2 lines Add missing NEWS item for issue1161031 fix. ........
* Merged revisions 71569 via svnmerge fromTarek Ziadé2009-04-131-0/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71569 | tarek.ziade | 2009-04-13 14:42:26 +0200 (Mon, 13 Apr 2009) | 1 line deactivate test_search_cpp under win32 ........
* Blocked revisions 70958 via svnmerge (merged manually)Georg Brandl2009-04-130-0/+0
| | | | | | | | | | ........ r70958 | kristjan.jonsson | 2009-04-01 16:08:34 +0000 (Mi, 01 Apr 2009) | 3 lines http://bugs.python.org/issue5623 Dynamically discoverd the size of the ioinfo struct used by the crt for its file descriptors. This should work across all flavors of the CRT. Thanks to Amaury Forgeot d'Arc Needs porting to 3.1 ........
* Merged revisions 71560 via svnmerge fromTarek Ziadé2009-04-132-1/+33
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71560 | tarek.ziade | 2009-04-13 14:34:01 +0200 (Mon, 13 Apr 2009) | 1 line Fixed #5607: Distutils test_get_platform was failing fo Mac OS X fat binaries. ........
* Merging r70958 from the trunk, regarding http://bugs.python.org/issue5623Kristján Valur Jónsson2009-04-131-39/+24
|
* Merged revisions 71553 via svnmerge fromR. David Murray2009-04-131-4/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71553 | r.david.murray | 2009-04-12 21:06:46 -0400 (Sun, 12 Apr 2009) | 3 lines Adjust test_asyncore to account for intentional asyncore behavior change introduced by r70934 that was causing a test failure when run under -O. ........
* Merged revisions 71548 via svnmerge fromEric Smith2009-04-131-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71548 | eric.smith | 2009-04-12 20:29:50 -0400 (Sun, 12 Apr 2009) | 1 line Fixed incorrect object passed into format_float_internal(). This was resulting in a conversion being done twice. ........
* Merged revisions 71539 via svnmerge fromBenjamin Peterson2009-04-121-1/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71539 | benjamin.peterson | 2009-04-12 15:24:56 -0500 (Sun, 12 Apr 2009) | 1 line remove useless import ........
* Merged revisions 71533 via svnmerge fromTarek Ziadé2009-04-121-0/+18
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71533 | tarek.ziade | 2009-04-12 19:02:08 +0200 (Sun, 12 Apr 2009) | 1 line removed string usage and added a test for _clean ........
* Merged revisions 71528 via svnmerge fromTarek Ziadé2009-04-122-0/+16
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71528 | tarek.ziade | 2009-04-12 18:45:32 +0200 (Sun, 12 Apr 2009) | 1 line added a test for finalize_options ........
* Merged revisions 71523 via svnmerge fromTarek Ziadé2009-04-122-4/+14
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71523 | tarek.ziade | 2009-04-12 18:31:24 +0200 (Sun, 12 Apr 2009) | 1 line added a simple test for search_cpp ........
* Add bytes/bytearray.maketrans() to mirror str.maketrans(), and deprecateGeorg Brandl2009-04-1211-32/+134
| | | | string.maketrans() which actually works on bytes. (Also closes #5675.)
* Merged revisions 70873,70904,70934,71490 via svnmerge fromR. David Murray2009-04-123-66/+49
| | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70873 | josiah.carlson | 2009-03-31 15:32:34 -0400 (Tue, 31 Mar 2009) | 2 lines This resolves issue 1161031. Tests pass. ........ r70904 | josiah.carlson | 2009-03-31 17:49:36 -0400 (Tue, 31 Mar 2009) | 3 lines Made handle_expt_event() be called last, so that we don't accidentally read after closing the socket. ........ r70934 | josiah.carlson | 2009-03-31 21:28:11 -0400 (Tue, 31 Mar 2009) | 2 lines Fix for failing asyncore tests. ........ r71490 | r.david.murray | 2009-04-11 13:52:56 -0400 (Sat, 11 Apr 2009) | 4 lines Make test_asyncore tests match code changes introduced by the fix to Issue1161031, refactoring the test to simplify it in the process. ........
* Unblock most recent asyncore commits in preparation for py3k integration.R. David Murray2009-04-120-0/+0
|
* Merged revisions 71513 via svnmerge fromTarek Ziadé2009-04-121-10/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71513 | tarek.ziade | 2009-04-12 17:03:50 +0200 (Sun, 12 Apr 2009) | 1 line pep8-fied the module before adding tests ........
* Merged revisions 71509 via svnmerge fromTarek Ziadé2009-04-122-5/+52
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71509 | tarek.ziade | 2009-04-12 16:53:51 +0200 (Sun, 12 Apr 2009) | 1 line removed the print statements and added a test ........