Commit Graph

41094 Commits

Author SHA1 Message Date
Nick Coghlan 1bedacbfbe Blocked revisions 71799 via svnmerge
........
  r71799 | nick.coghlan | 2009-04-23 01:26:04 +1000 (Thu, 23 Apr 2009) | 1 line

  Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation)
........
2009-04-22 15:39:45 +00:00
Eric Smith 6da6317c9d Blocked revisions 71796 via svnmerge
........
  r71796 | eric.smith | 2009-04-22 09:29:05 -0400 (Wed, 22 Apr 2009) | 20 lines

  Backport of some of the work in r71665 to trunk. This reworks much of
  int, long, and float __format__(), and it keeps their implementation
  in sync with py3k.

  Also added PyOS_double_to_string. This is the "fallback" version
  that's also available in trunk, and should be kept in sync with that
  code. I'll add an issue to document PyOS_double_to_string in the C
  API.

  There are many internal cleanups. Externally visible changes include:

  - Implement PEP 378, Format Specifier for Thousands Separator, for
    floats, ints, and longs.

  - Issue #5515: 'n' formatting for ints, longs, and floats handles
    leading zero formatting poorly.

  - Issue #5772: For float.__format__, don't add a trailing ".0" if
    we're using no type code and we have an exponent.
........
2009-04-22 13:30:24 +00:00
Vinay Sajip ae7c4a0a42 Issue #5170: Fixed regression caused when fixing #5768. 2009-04-22 12:12:43 +00:00
Eric Smith 6b67846356 Blocked revisions 71788 via svnmerge
........
  r71788 | eric.smith | 2009-04-21 20:47:00 -0400 (Tue, 21 Apr 2009) | 1 line

  Documentation for issue 5237, auto-numbered format fields. Contributed by Terry J. Reedy.
........
2009-04-22 00:48:42 +00:00
Mark Dickinson 24b089bdb7 Blocked revisions 71776 via svnmerge
........
  r71776 | mark.dickinson | 2009-04-20 22:41:04 +0100 (Mon, 20 Apr 2009) | 2 lines

  Nit: integer division should use //, not /
........
2009-04-20 21:41:28 +00:00
Mark Dickinson 1480507762 Blocked revisions 71772 via svnmerge
........
  r71772 | mark.dickinson | 2009-04-20 22:13:33 +0100 (Mon, 20 Apr 2009) | 5 lines

  Issue #3166: Make long -> float (and int -> float) conversions
  correctly rounded, using round-half-to-even.  This ensures that the
  value of float(n) doesn't depend on whether we're using 15-bit digits
  or 30-bit digits for Python longs.
........
2009-04-20 21:38:54 +00:00
Raymond Hettinger ceecb8d3d8 Fix typo 2009-04-20 18:23:26 +00:00
Tarek Ziadé f581215b69 Blocked revisions 71766 via svnmerge
........
  r71766 | tarek.ziade | 2009-04-20 16:29:42 +0200 (Mon, 20 Apr 2009) | 1 line

  adding a NEWS note for #5795 (previously checked via the buildbot)
........
2009-04-20 14:31:45 +00:00
Tarek Ziadé 45d192b6d1 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:48:47 +00:00
Tarek Ziadé 8c7e99c52e 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:17:15 +00:00
Benjamin Peterson c485361f61 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 7b5adc066a Blocked revisions 71750 via svnmerge
........
  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:12:41 +00:00
Ronald Oussoren 8572e7ba16 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:39:21 +00:00
Raymond Hettinger fd2405415b Remove duplicate recipe. 2009-04-18 23:58:45 +00:00
Benjamin Peterson 4585ca9428 Merged revisions 71722,71725 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
........
  r71725 | benjamin.peterson | 2009-04-18 15:25:25 -0500 (Sat, 18 Apr 2009) | 1 line

  initalize -> initialize
........
2009-04-18 20:50:24 +00:00
Mark Dickinson 9ea1852fb5 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:00:18 +00:00
Mark Dickinson bd8cde482b 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:49 +00:00
Mark Dickinson 9cbb143a70 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:19:58 +00:00
Tarek Ziadé e532c4d680 Blocked revisions 71674 via svnmerge
........
  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:33:43 +00:00
Tarek Ziadé 3b735704de Blocked revisions 71589 via svnmerge
........
  r71589 | tarek.ziade | 2009-04-13 22:14:54 +0200 (Mon, 13 Apr 2009) | 1 line

  pep8-fied
........
2009-04-17 14:32:46 +00:00
Vinay Sajip 03d327d8ae Issue #5768: Change to Unicode output logic and test case for same. 2009-04-16 19:14:09 +00:00
Thomas Heller 33fcecac4b 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 19:13:35 +00:00
Vinay Sajip cbe744ae43 Issue #5768: Change to Unicode output logic and test case for same. 2009-04-16 19:11:35 +00:00
R. David Murray b729135eee 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:17:55 +00:00
Hirokazu Yamamoto ad37e68227 Merged revisions 71380 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71380 | raymond.hettinger | 2009-04-08 06:43:51 +0900 | 1 line

  Fix make.bat to match makefile changes
........
2009-04-16 03:25:44 +00:00
Barry Warsaw 43c2ccc941 Post release version tweak. 2009-04-16 00:49:46 +00:00
R. David Murray 7cd8f2bea3 Merged revisions 70873,70904,70934,71490,71553,71579 via svnmerge from
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.
........
  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.
........
  r71579 | r.david.murray | 2009-04-13 12:56:32 -0400 (Mon, 13 Apr 2009) | 2 lines

  Add missing NEWS item for issue1161031 fix.
........
2009-04-15 23:00:41 +00:00
R. David Murray 0ec635138f 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:34:30 +00:00
Benjamin Peterson c843a4765a 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:46:14 +00:00
Georg Brandl 8b18e2853b Remove NEWS item for issue that wasnt actually backported. 2009-04-15 19:44:57 +00:00
Barry Warsaw 5eb06613f9 Tagging 2.6.2 (final) 2009-04-14 13:17:30 +00:00
Barry Warsaw 63a976e114 Bumping to 2.6.2 (final). 2009-04-14 13:16:19 +00:00
Tarek Ziadé c3e0d0410e Blocked revisions 71585 via svnmerge
........
  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:05:17 +00:00
Tarek Ziadé d98a86bfbf Blocked revisions 71569 via svnmerge
........
  r71569 | tarek.ziade | 2009-04-13 14:42:26 +0200 (Mon, 13 Apr 2009) | 1 line

  deactivate test_search_cpp under win32
........
2009-04-13 12:57:10 +00:00
Georg Brandl 59e93c9652 Merged revisions 71564 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71564 | georg.brandl | 2009-04-13 12:36:24 +0000 (Mo, 13 Apr 2009) | 1 line

  #5741 followup: should also allow %%(blah)s.
........
2009-04-13 12:37:59 +00:00
Tarek Ziadé 6c40b32338 Blocked revisions 71560 via svnmerge
........
  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.
........
2009-04-13 12:35:51 +00:00
Hirokazu Yamamoto c3ffc549e5 Merged revisions 71554-71555 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71554 | hirokazu.yamamoto | 2009-04-13 10:07:06 +0900 | 1 line

  Fixed typo. (email.Utils => email.utils)
........
  r71555 | hirokazu.yamamoto | 2009-04-13 10:21:56 +0900 | 1 line

  Fixed another typos. (email.Utils => email.utils)
........
2009-04-13 03:51:11 +00:00
Eric Smith 248b2af33f Merged revisions 71548 via svnmerge from
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.
........
2009-04-13 00:32:15 +00:00
Georg Brandl dcfed0e316 Merged revisions 71537 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71537 | georg.brandl | 2009-04-12 19:24:11 +0200 (So, 12 Apr 2009) | 1 line

  #5741: dont disallow double percent signs in SafeConfigParser.set() keys.
........
2009-04-12 17:26:19 +00:00
Tarek Ziadé 8a31eba939 Blocked revisions 71533 via svnmerge
........
  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
........
2009-04-12 17:02:55 +00:00
Tarek Ziadé 3110dc6a9e Blocked revisions 71528 via svnmerge
........
  r71528 | tarek.ziade | 2009-04-12 18:45:32 +0200 (Sun, 12 Apr 2009) | 1 line

  added a test for finalize_options
........
2009-04-12 16:46:41 +00:00
Tarek Ziadé 4a4183be2e Blocked revisions 71523 via svnmerge
........
  r71523 | tarek.ziade | 2009-04-12 18:31:24 +0200 (Sun, 12 Apr 2009) | 1 line

  added a simple test for search_cpp
........
2009-04-12 16:32:20 +00:00
Tarek Ziadé 5173ced23e Blocked revisions 71513 via svnmerge
........
  r71513 | tarek.ziade | 2009-04-12 17:03:50 +0200 (Sun, 12 Apr 2009) | 1 line

  pep8-fied the module before adding tests
........
2009-04-12 15:04:56 +00:00
Tarek Ziadé 3cd69383bc Blocked revisions 71509 via svnmerge
........
  r71509 | tarek.ziade | 2009-04-12 16:53:51 +0200 (Sun, 12 Apr 2009) | 1 line

  removed the print statements and added a test
........
2009-04-12 14:54:50 +00:00
Georg Brandl adf681526c Add a monkeypatching hack so that the docs can still be built with Sphinx 0.5. 2009-04-11 20:34:17 +00:00
Tarek Ziadé e91c6d7a9f Blocked revisions 71478 via svnmerge
........
  r71478 | tarek.ziade | 2009-04-11 17:14:17 +0200 (Sat, 11 Apr 2009) | 1 line

  testing a full check case
........
2009-04-11 15:15:32 +00:00
Tarek Ziadé 9ee9ae78da Blocked revisions 71473 via svnmerge
........
  r71473 | tarek.ziade | 2009-04-11 16:55:07 +0200 (Sat, 11 Apr 2009) | 1 line

  #5732: added the check command into Distutils
........
2009-04-11 14:56:12 +00:00
Tarek Ziadé 36eded9c6a Merged revisions 71467 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71467 | tarek.ziade | 2009-04-11 15:59:05 +0200 (Sat, 11 Apr 2009) | 1 line

  fixed link
........
2009-04-11 14:31:24 +00:00
Nick Coghlan c22fd1d77c Blocked revisions 71465 via svnmerge
........
  r71465 | nick.coghlan | 2009-04-11 23:31:31 +1000 (Sat, 11 Apr 2009) | 1 line

  Issue 5354: Provide a standardised testing mechanism for doing fresh imports of modules, including the ability to block extension modules in order to test the pure Python fallbacks
........
2009-04-11 13:39:18 +00:00
Guilherme Polo a17f5926eb Blocked revisions 71210 via svnmerge
........
  r71210 | guilherme.polo | 2009-04-04 23:11:19 -0300 (Sat, 04 Apr 2009) | 1 line

  Include tkinter.h only after including tk.h (or the equivalent for another platform).
........
2009-04-10 22:21:35 +00:00