]> granicus.if.org Git - python/log
python
15 years agoMerged revisions 71812 via svnmerge from
Kurt B. Kaiser [Sun, 26 Apr 2009 01:33:55 +0000 (01:33 +0000)]
Merged revisions 71812 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71812 | kurt.kaiser | 2009-04-22 22:36:01 -0400 (Wed, 22 Apr 2009) | 2 lines

  Produce correct version string to access the .chm
  docs on Windows.  Patch 5783 gpolo.  Will port.
........

15 years agoMerged revisions 71947 via svnmerge from
Martin v. Löwis [Sun, 26 Apr 2009 01:02:07 +0000 (01:02 +0000)]
Merged revisions 71947 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71947 | martin.v.loewis | 2009-04-26 02:53:18 +0200 (So, 26 Apr 2009) | 3 lines

  Issue #4971: Fix titlecase for characters that are their own
  titlecase, but not their own uppercase.
........

15 years agoRemove item from NEWS.txt; not checked in yet...
Kurt B. Kaiser [Sat, 25 Apr 2009 22:34:54 +0000 (22:34 +0000)]
Remove item from NEWS.txt; not checked in yet...

15 years agoBlocked revisions 71938 via svnmerge
Eric Smith [Sat, 25 Apr 2009 21:42:04 +0000 (21:42 +0000)]
Blocked revisions 71938 via svnmerge

........
  r71938 | eric.smith | 2009-04-25 17:40:15 -0400 (Sat, 25 Apr 2009) | 5 lines

  Issue #5835, deprecate PyOS_ascii_formatd.

  If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great.

  Will port to py3k with a different strategy.
........

15 years agoinstall idle and pydoc with a 3 suffix #5756
Benjamin Peterson [Sat, 25 Apr 2009 21:11:45 +0000 (21:11 +0000)]
install idle and pydoc with a 3 suffix #5756

15 years agofix some issues with install and altinstall #5818
Benjamin Peterson [Sat, 25 Apr 2009 21:04:19 +0000 (21:04 +0000)]
fix some issues with install and altinstall #5818

1. fullinstall should install 'python'
2. remove link targets if already exist
3. make python3-config
4. install the man in altinstall
5. $(EXE) consistency

Patch by Larry Hastings

15 years agoDoc fix, closing issue 5826
Michael Foord [Sat, 25 Apr 2009 20:47:43 +0000 (20:47 +0000)]
Doc fix, closing issue 5826

15 years agoFix up IDLE's NEWS.txt. Include missed changes, keep 2.7 changes in separate
Kurt B. Kaiser [Sat, 25 Apr 2009 20:14:29 +0000 (20:14 +0000)]
Fix up IDLE's NEWS.txt.  Include missed changes, keep 2.7 changes in separate
section to make merging easier.  Update release dates.

15 years agoDon't try to use x87 assembly on OS X universal builds.
Mark Dickinson [Sat, 25 Apr 2009 18:22:27 +0000 (18:22 +0000)]
Don't try to use x87 assembly on OS X universal builds.

15 years agoMerged revisions 71906 via svnmerge from
Thomas Heller [Sat, 25 Apr 2009 16:49:23 +0000 (16:49 +0000)]
Merged revisions 71906 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71906 | thomas.heller | 2009-04-25 18:37:18 +0200 (Sa, 25 Apr 2009) | 1 line

  Issue #5078: Avoid redundant call to FormatError()
........

15 years agoMerged revisions 71894 via svnmerge from
Walter Dörwald [Sat, 25 Apr 2009 14:13:56 +0000 (14:13 +0000)]
Merged revisions 71894 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71894 | walter.doerwald | 2009-04-25 16:03:16 +0200 (Sa, 25 Apr 2009) | 4 lines

  Issue #5828 (Invalid behavior of unicode.lower): Fixed bogus logic in
  makeunicodedata.py and regenerated the Unicode database (This fixes
  u'\u1d79'.lower() == '\x00').
........

15 years agoMerged revisions 71884 via svnmerge from
Tarek Ziadé [Sat, 25 Apr 2009 12:53:56 +0000 (12:53 +0000)]
Merged revisions 71884 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71884 | tarek.ziade | 2009-04-25 14:51:59 +0200 (Sat, 25 Apr 2009) | 1 line

  #5810: Fixed Distutils test_build_scripts
........

15 years agoMerged revisions 71875 via svnmerge from
Walter Dörwald [Sat, 25 Apr 2009 12:48:43 +0000 (12:48 +0000)]
Merged revisions 71875 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71875 | walter.doerwald | 2009-04-25 14:15:07 +0200 (Sa, 25 Apr 2009) | 7 lines

  Issue #5837: Certain sequences of calls to set() and unset() for
  support.EnvironmentVarGuard objects restored the environment variables
  incorrectly on __exit__.

  Fix this by recording the initial value of each environment variable on the
  first access in set() or unset().
........

15 years agoMerged revisions 71878 via svnmerge from
Tarek Ziadé [Sat, 25 Apr 2009 12:39:56 +0000 (12:39 +0000)]
Merged revisions 71878 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71878 | tarek.ziade | 2009-04-25 14:38:08 +0200 (Sat, 25 Apr 2009) | 1 line

  Issue #4951: Fixed failure in test_httpservers
........

15 years agoMerged revisions 71869 via svnmerge from
Mark Dickinson [Sat, 25 Apr 2009 10:11:40 +0000 (10:11 +0000)]
Merged revisions 71869 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71869 | mark.dickinson | 2009-04-25 10:47:00 +0100 (Sat, 25 Apr 2009) | 2 lines

  Fix typo in complex parsing code;  expand tests.
........

15 years agoMerged revisions 71860 via svnmerge from
Benjamin Peterson [Sat, 25 Apr 2009 01:08:45 +0000 (01:08 +0000)]
Merged revisions 71860 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71860 | benjamin.peterson | 2009-04-24 19:41:22 -0500 (Fri, 24 Apr 2009) | 1 line

  fix a segfault when setting __class__ in __del__ #5283
........

15 years agothese tests must call gc_collect() for non-refcounting gcs
Benjamin Peterson [Fri, 24 Apr 2009 23:26:21 +0000 (23:26 +0000)]
these tests must call gc_collect() for non-refcounting gcs

15 years agomake sure to close files
Benjamin Peterson [Fri, 24 Apr 2009 23:14:50 +0000 (23:14 +0000)]
make sure to close files

15 years agoreadline() args must be an int #3521
Benjamin Peterson [Fri, 24 Apr 2009 22:59:52 +0000 (22:59 +0000)]
readline() args must be an int #3521

15 years agoMerged revisions 71853 via svnmerge from
Thomas Heller [Fri, 24 Apr 2009 20:50:00 +0000 (20:50 +0000)]
Merged revisions 71853 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71853 | thomas.heller | 2009-04-24 22:31:47 +0200 (Fr, 24 Apr 2009) | 3 lines

  Issue #3102: All global symbols that the _ctypes extension defines are
  now prefixed with 'Py' or '_ctypes'.
........

15 years agoFix merge accident.
Thomas Heller [Fri, 24 Apr 2009 20:10:24 +0000 (20:10 +0000)]
Fix merge accident.

15 years agoMerged revisions 71847 via svnmerge from
Thomas Heller [Fri, 24 Apr 2009 20:05:20 +0000 (20:05 +0000)]
Merged revisions 71847 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71847 | thomas.heller | 2009-04-24 22:00:41 +0200 (Fr, 24 Apr 2009) | 2 lines

  Issue 5041: ctypes unwilling to allow pickling wide character.
........

15 years agoRemove leftover word.
Georg Brandl [Fri, 24 Apr 2009 19:06:29 +0000 (19:06 +0000)]
Remove leftover word.

15 years agoIssue 5830: Events are now comparable when the time and type are the same.
Raymond Hettinger [Fri, 24 Apr 2009 18:43:43 +0000 (18:43 +0000)]
Issue 5830: Events are now comparable when the time and type are the same.

15 years agoMerged revisions 71842 via svnmerge from
Thomas Heller [Fri, 24 Apr 2009 18:27:10 +0000 (18:27 +0000)]
Merged revisions 71842 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71842 | thomas.heller | 2009-04-24 20:10:46 +0200 (Fr, 24 Apr 2009) | 3 lines

  Issue #5161: wrong paths for ctypes cleanup when Python is built in a
  directory other than the source directory.
........

15 years agoMerged revisions 71837-71838 via svnmerge from
Mark Dickinson [Fri, 24 Apr 2009 16:39:07 +0000 (16:39 +0000)]
Merged revisions 71837-71838 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71837 | mark.dickinson | 2009-04-24 17:34:14 +0100 (Fri, 24 Apr 2009) | 4 lines

  Issue #5593: Use more robust test for double-rounding in test_fsum.
  While we're at it, use new unittest.skipUnless decorator to
  implement skipping for that test.
........
  r71838 | mark.dickinson | 2009-04-24 17:37:22 +0100 (Fri, 24 Apr 2009) | 2 lines

  Remove unnecessary double negative
........

15 years agoMerged revisions 71832 via svnmerge from
Mark Dickinson [Fri, 24 Apr 2009 14:06:19 +0000 (14:06 +0000)]
Merged revisions 71832 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71832 | mark.dickinson | 2009-04-24 14:56:07 +0100 (Fri, 24 Apr 2009) | 3 lines

  Issue #5812: The two-argument form of the Fraction constructor
  now accepts arbitrary Rational instances.
........

15 years agoBlocked revisions 71827 via svnmerge
Mark Dickinson [Fri, 24 Apr 2009 13:26:14 +0000 (13:26 +0000)]
Blocked revisions 71827 via svnmerge

........
  r71827 | mark.dickinson | 2009-04-24 14:14:07 +0100 (Fri, 24 Apr 2009) | 2 lines

  Fix missing 'return NULL'
........

15 years agoMake sure that complex parsing code and corresponding tests
Mark Dickinson [Fri, 24 Apr 2009 13:25:20 +0000 (13:25 +0000)]
Make sure that complex parsing code and corresponding tests
match for 2.7 and 3.1, and that 3.1 continues to
accept complex('j') and complex('4-j')

15 years agoBlocked revisions 71824 via svnmerge
Mark Dickinson [Fri, 24 Apr 2009 12:53:02 +0000 (12:53 +0000)]
Blocked revisions 71824 via svnmerge

........
  r71824 | mark.dickinson | 2009-04-24 13:46:53 +0100 (Fri, 24 Apr 2009) | 7 lines

  Issue #5816:
   - simplify parsing and printing of complex numbers
   - make complex(repr(z)) round-tripping work for complex
     numbers involving nans, infs, or negative zeros
   - don't accept some of the stranger complex strings
     that were previously allowed---e.g., complex('1..1j')
........

15 years agoUpdate for the new float.__repr__()
Raymond Hettinger [Fri, 24 Apr 2009 03:09:06 +0000 (03:09 +0000)]
Update for the new float.__repr__()

15 years agoUpdate decimal docs for the new floating point repr().
Raymond Hettinger [Thu, 23 Apr 2009 22:06:12 +0000 (22:06 +0000)]
Update decimal docs for the new floating point repr().

15 years agoFix int/long confusion in Misc/NEWS entry.
Mark Dickinson [Thu, 23 Apr 2009 19:15:48 +0000 (19:15 +0000)]
Fix int/long confusion in Misc/NEWS entry.

15 years agoIssue #5816: Simplify code for parsing and printing of complex numbers.
Mark Dickinson [Thu, 23 Apr 2009 19:14:16 +0000 (19:14 +0000)]
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.

15 years agoBlocked revisions 71808 via svnmerge
Mark Dickinson [Wed, 22 Apr 2009 18:17:29 +0000 (18:17 +0000)]
Blocked revisions 71808 via svnmerge

........
  r71808 | mark.dickinson | 2009-04-22 19:15:25 +0100 (Wed, 22 Apr 2009) | 2 lines

  Issue #5812: make Fraction('1e-6') valid.  Backport of r71806.
........

15 years agoIssue #5812: Make Fraction('1e6') valid. The Fraction constructor now
Mark Dickinson [Wed, 22 Apr 2009 17:50:21 +0000 (17:50 +0000)]
Issue #5812: Make Fraction('1e6') valid.  The Fraction constructor now
accepts all strings accepted by the float and Decimal constructors,
with the exception of strings representing NaNs or infinities.

15 years agoMerged revisions 71802 via svnmerge from
Eric Smith [Wed, 22 Apr 2009 17:04:27 +0000 (17:04 +0000)]
Merged revisions 71802 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71802 | eric.smith | 2009-04-22 12:20:47 -0400 (Wed, 22 Apr 2009) | 1 line

  Fixed issue 5782: formatting with commas didn't work if no specifier type code was given.
........

15 years agoMerged revisions 71799 via svnmerge from
Nick Coghlan [Wed, 22 Apr 2009 16:13:36 +0000 (16:13 +0000)]
Merged revisions 71799 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  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)
........

15 years agoBlocked revisions 71796 via svnmerge
Eric Smith [Wed, 22 Apr 2009 13:30:56 +0000 (13:30 +0000)]
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.
........

15 years agoMerged revisions 71785 via svnmerge from
R. David Murray [Wed, 22 Apr 2009 02:24:39 +0000 (02:24 +0000)]
Merged revisions 71785 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71785 | r.david.murray | 2009-04-21 09:06:04 -0400 (Tue, 21 Apr 2009) | 4 lines

  Restore skips of posix and pty tests on Windows by calling the
  test_support.import_module on the appropriate modules
  before any other imports.
........

15 years agoMerged revisions 71788 via svnmerge from
Eric Smith [Wed, 22 Apr 2009 00:53:01 +0000 (00:53 +0000)]
Merged revisions 71788 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  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.
........

15 years agoAdded handling of PyOS_double_to_string out-of-memory errors. Closes issue 5775.
Eric Smith [Tue, 21 Apr 2009 11:57:38 +0000 (11:57 +0000)]
Added handling of PyOS_double_to_string out-of-memory errors. Closes issue 5775.

15 years agoUpdate links and version info.
Raymond Hettinger [Tue, 21 Apr 2009 03:43:15 +0000 (03:43 +0000)]
Update links and version info.

15 years agoForward port r70471: Add object_pairs_hook. Issue 5381.
Raymond Hettinger [Tue, 21 Apr 2009 03:27:12 +0000 (03:27 +0000)]
Forward port r70471: Add object_pairs_hook.  Issue 5381.

15 years agoForward port r70471: Add object_pairs_hook. Issue 5381.
Raymond Hettinger [Tue, 21 Apr 2009 03:09:17 +0000 (03:09 +0000)]
Forward port r70471: Add object_pairs_hook.  Issue 5381.

15 years agoBlocked revisions 71776 via svnmerge
Mark Dickinson [Mon, 20 Apr 2009 21:42:04 +0000 (21:42 +0000)]
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 /
........

15 years agoMerged revisions 71772 via svnmerge from
Mark Dickinson [Mon, 20 Apr 2009 21:38:00 +0000 (21:38 +0000)]
Merged revisions 71772 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  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.
........

15 years agoMerged revisions 71766 via svnmerge from
Tarek Ziadé [Mon, 20 Apr 2009 14:33:15 +0000 (14:33 +0000)]
Merged revisions 71766 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  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)
........

15 years agoMerged revisions 71759 via svnmerge from
Tarek Ziadé [Mon, 20 Apr 2009 12:37:58 +0000 (12:37 +0000)]
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
........

15 years agoMerged revisions 71758 via svnmerge from
Tarek Ziadé [Mon, 20 Apr 2009 12:18:08 +0000 (12:18 +0000)]
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
........

15 years agoMerged revisions 71734,71738-71739 via svnmerge from
Benjamin Peterson [Mon, 20 Apr 2009 02:09:13 +0000 (02:09 +0000)]
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
........

15 years agoIssue #5463: Remove deprecated float coercion from struct module, along
Mark Dickinson [Sun, 19 Apr 2009 20:40:33 +0000 (20:40 +0000)]
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.

15 years agoMerged revisions 71750 via svnmerge from
Mark Dickinson [Sun, 19 Apr 2009 17:14:11 +0000 (17:14 +0000)]
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.
........

15 years agoAdd comments to pyport.h explaining how to enable support for short
Mark Dickinson [Sun, 19 Apr 2009 11:35:55 +0000 (11:35 +0000)]
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.

15 years agoMerged revisions 71743 via svnmerge from
Ronald Oussoren [Sun, 19 Apr 2009 10:40:48 +0000 (10:40 +0000)]
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.
........

15 years agouse NULL for the ends of tables
Benjamin Peterson [Sun, 19 Apr 2009 03:15:20 +0000 (03:15 +0000)]
use NULL for the ends of tables

15 years agomake python3 alias in altbininstall
Benjamin Peterson [Sun, 19 Apr 2009 03:14:50 +0000 (03:14 +0000)]
make python3 alias in altbininstall

15 years agoFix use of test skipping API.
Antoine Pitrou [Sun, 19 Apr 2009 00:10:36 +0000 (00:10 +0000)]
Fix use of test skipping API.

15 years agoIssue #5734: BufferedRWPair was poorly tested and had several glaring bugs.
Antoine Pitrou [Sun, 19 Apr 2009 00:09:36 +0000 (00:09 +0000)]
Issue #5734: BufferedRWPair was poorly tested and had several glaring bugs.
Patch by Brian Quinlan.

15 years agoBlocked revisions 71725 via svnmerge
Benjamin Peterson [Sat, 18 Apr 2009 21:24:33 +0000 (21:24 +0000)]
Blocked revisions 71725 via svnmerge

........
  r71725 | benjamin.peterson | 2009-04-18 15:25:25 -0500 (Sat, 18 Apr 2009) | 1 line

  initalize -> initialize
........

15 years agoMove configure check for broken sem_getvalue outside the
Mark Dickinson [Sat, 18 Apr 2009 21:18:19 +0000 (21:18 +0000)]
Move configure check for broken sem_getvalue outside the
LIBS="$LIBS $LIBM" section.

15 years agoMerged revisions 71722 via svnmerge from
Benjamin Peterson [Sat, 18 Apr 2009 20:54:08 +0000 (20:54 +0000)]
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
........

15 years agoRevert accidental changes to Objects/floatobject.c
Mark Dickinson [Sat, 18 Apr 2009 20:19:17 +0000 (20:19 +0000)]
Revert accidental changes to Objects/floatobject.c

15 years agoThe SSE2 detection and enabling could potentially cause
Mark Dickinson [Sat, 18 Apr 2009 20:17:52 +0000 (20:17 +0000)]
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.

15 years agoMerged revisions 71719 via svnmerge from
Benjamin Peterson [Sat, 18 Apr 2009 15:42:12 +0000 (15:42 +0000)]
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
........

15 years agorename internal methods of the bytes object to bytes_
Benjamin Peterson [Sat, 18 Apr 2009 15:17:02 +0000 (15:17 +0000)]
rename internal methods of the bytes object to bytes_

15 years agoBlocked revisions 71715 via svnmerge
Mark Dickinson [Sat, 18 Apr 2009 15:01:12 +0000 (15:01 +0000)]
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.
........

15 years agouse the more offical skipping api
Benjamin Peterson [Sat, 18 Apr 2009 14:49:19 +0000 (14:49 +0000)]
use the more offical skipping api

15 years agoadd annotations to open()
Benjamin Peterson [Sat, 18 Apr 2009 14:47:50 +0000 (14:47 +0000)]
add annotations to open()

15 years agoBlocked revisions 71710 via svnmerge
Mark Dickinson [Sat, 18 Apr 2009 14:42:41 +0000 (14:42 +0000)]
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.
........

15 years agoMerged revisions 71705 via svnmerge from
Mark Dickinson [Sat, 18 Apr 2009 14:14:48 +0000 (14:14 +0000)]
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
........

15 years agoAdd check for C99 round function to configure, and define
Mark Dickinson [Sat, 18 Apr 2009 13:58:18 +0000 (13:58 +0000)]
Add check for C99 round function to configure, and define
a fallback function if round doesn't exist.

15 years agoAdded Python/dtoa.c to project files.
Hirokazu Yamamoto [Sat, 18 Apr 2009 13:10:51 +0000 (13:10 +0000)]
Added Python/dtoa.c to project files.

15 years agoIssue #1869 (and 4707, 5118, 5473, 1456775): use the new
Mark Dickinson [Sat, 18 Apr 2009 11:48:33 +0000 (11:48 +0000)]
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.

15 years agoIssue #5781: Only use legacy string<->double conversions when
Mark Dickinson [Sat, 18 Apr 2009 10:16:35 +0000 (10:16 +0000)]
Issue #5781: Only use legacy string<->double conversions when
we can't figure out how to get and set the x87 control word.

15 years agoThe comments at the top of intobject.h say that it will be removed in 3.1.
Mark Dickinson [Sat, 18 Apr 2009 10:12:16 +0000 (10:12 +0000)]
The comments at the top of intobject.h say that it will be removed in 3.1.
Make it so.

15 years agoRemoved unused files.
Eric Smith [Sat, 18 Apr 2009 00:10:04 +0000 (00:10 +0000)]
Removed unused files.

15 years agoIssue 5780: Fix test_float failures for legacy style float repr.
Mark Dickinson [Fri, 17 Apr 2009 22:40:53 +0000 (22:40 +0000)]
Issue 5780: Fix test_float failures for legacy style float repr.

15 years agoSort out some confusion in test_float.py: the two
Mark Dickinson [Fri, 17 Apr 2009 20:59:58 +0000 (20:59 +0000)]
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.

15 years agoAdd porting notes.
Raymond Hettinger [Fri, 17 Apr 2009 20:55:52 +0000 (20:55 +0000)]
Add porting notes.

15 years agoSilence compiler warnings on VS8.0
Mark Dickinson [Fri, 17 Apr 2009 19:29:46 +0000 (19:29 +0000)]
Silence compiler warnings on VS8.0

15 years agoAdd more examples.
Raymond Hettinger [Fri, 17 Apr 2009 18:58:06 +0000 (18:58 +0000)]
Add more examples.

15 years agoAdd dtoc.[ch] to the VS8.0 project file.
Raymond Hettinger [Fri, 17 Apr 2009 18:47:01 +0000 (18:47 +0000)]
Add dtoc.[ch] to the VS8.0 project file.

15 years agoAdd reminder to dtoa.c to check for updates regularly.
Mark Dickinson [Fri, 17 Apr 2009 16:06:28 +0000 (16:06 +0000)]
Add reminder to dtoa.c to check for updates regularly.
Fix a bug in the memory management in dtoa.c.

15 years agoMerged revisions 71674 via svnmerge from
Tarek Ziadé [Fri, 17 Apr 2009 14:34:49 +0000 (14:34 +0000)]
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
........

15 years agoNit.
Eric Smith [Fri, 17 Apr 2009 12:33:24 +0000 (12:33 +0000)]
Nit.

15 years agoUpdate list of supported types.
Raymond Hettinger [Fri, 17 Apr 2009 10:09:27 +0000 (10:09 +0000)]
Update list of supported types.

15 years agoNits.
Raymond Hettinger [Fri, 17 Apr 2009 09:45:19 +0000 (09:45 +0000)]
Nits.

15 years agoMake sure that marshal and pickle continue to output 17
Mark Dickinson [Fri, 17 Apr 2009 08:41:23 +0000 (08:41 +0000)]
Make sure that marshal and pickle continue to output 17
digits of precision for floats.

15 years agoLadies and gentlemen, the new float.__repr__() has arrived.
Raymond Hettinger [Fri, 17 Apr 2009 00:11:54 +0000 (00:11 +0000)]
Ladies and gentlemen, the new float.__repr__() has arrived.

15 years agoSimplify PyOS_double_to_string.
Eric Smith [Thu, 16 Apr 2009 22:08:31 +0000 (22:08 +0000)]
Simplify PyOS_double_to_string.

15 years agoBetter wording for Issue #5515 entry.
Eric Smith [Thu, 16 Apr 2009 20:21:28 +0000 (20:21 +0000)]
Better wording for Issue #5515 entry.

15 years agoThe other half of Issue #1580: use short float repr where possible.
Eric Smith [Thu, 16 Apr 2009 20:16:10 +0000 (20:16 +0000)]
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.

15 years agoIssue #1580: use short float repr where possible.
Mark Dickinson [Thu, 16 Apr 2009 19:52:09 +0000 (19:52 +0000)]
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

15 years agoMerged revisions 71640-71641 via svnmerge from
Thomas Heller [Thu, 16 Apr 2009 18:37:24 +0000 (18:37 +0000)]
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.
........

15 years agoMerged revisions 71651 via svnmerge from
R. David Murray [Thu, 16 Apr 2009 18:15:32 +0000 (18:15 +0000)]
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.
........

15 years agoPort r71408 to py3k: issue 5665, add more pickling tests.
Collin Winter [Thu, 16 Apr 2009 03:18:06 +0000 (03:18 +0000)]
Port r71408 to py3k: issue 5665, add more pickling tests.

15 years agoMerged revisions 71631 via svnmerge from
R. David Murray [Wed, 15 Apr 2009 22:35:15 +0000 (22:35 +0000)]
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.
........

15 years agoMerged revisions 71627 via svnmerge from
Benjamin Peterson [Wed, 15 Apr 2009 21:34:27 +0000 (21:34 +0000)]
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
........

15 years agoreference the io momdule in file and directory section
Benjamin Peterson [Wed, 15 Apr 2009 20:34:30 +0000 (20:34 +0000)]
reference the io momdule in file and directory section