]> granicus.if.org Git - python/log
python
16 years agoRemove temporary autoconf checks added in revision 62592
Mark Dickinson [Thu, 1 May 2008 21:27:05 +0000 (21:27 +0000)]
Remove temporary autoconf checks added in revision 62592

16 years agoDon't output floats in prime example.
Georg Brandl [Thu, 1 May 2008 18:06:50 +0000 (18:06 +0000)]
Don't output floats in prime example.

16 years agoWhoops. errno should only be tested when the result is finite.
Mark Dickinson [Thu, 1 May 2008 00:19:23 +0000 (00:19 +0000)]
Whoops.  errno should only be tested when the result is finite.

16 years agoMake floating-point exception error messages slightly more verbose: in
Mark Dickinson [Wed, 30 Apr 2008 23:30:57 +0000 (23:30 +0000)]
Make floating-point exception error messages slightly more verbose: in
particular, the error message now allows one to distinguish between a
ValueError arising from a singularity (e.g. log(0.)), which would
usually produce +-infinity in non-stop mode, and a ValueError resulting
from an invalid input (e.g. sqrt(-1.)), which would normally produce a
NaN in non-stop mode.

16 years agoRemoved merge tracking for "svnmerge" for
Thomas Heller [Wed, 30 Apr 2008 22:36:24 +0000 (22:36 +0000)]
Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/python/branches/py3k-ctypes-pep3118

16 years agoMerged revisions 62602 via svnmerge from
Georg Brandl [Wed, 30 Apr 2008 20:06:53 +0000 (20:06 +0000)]
Merged revisions 62602 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62602 | georg.brandl | 2008-04-30 22:02:37 +0200 (Wed, 30 Apr 2008) | 2 lines

  #2727: clarify tp_iternext docs.
........

16 years agoBlock backport of next().
Georg Brandl [Wed, 30 Apr 2008 19:47:55 +0000 (19:47 +0000)]
Block backport of next().

16 years agoFix nits in builtin next().
Georg Brandl [Wed, 30 Apr 2008 19:47:01 +0000 (19:47 +0000)]
Fix nits in builtin next().

16 years agoMerged revisions 60056-60071,60073-60127,60129-60261,60263-60284,60286-62589,62591...
Thomas Heller [Wed, 30 Apr 2008 17:11:46 +0000 (17:11 +0000)]
Merged revisions 60056-60071,60073-60127,60129-60261,60263-60284,60286-62589,62591-62594 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k-ctypes-pep3118

........
  r60059 | thomas.heller | 2008-01-18 22:17:05 +0100 (Fri, 18 Jan 2008) | 1 line

  Implement pep3118 format strings for SimpleCData types.
........
  r60108 | thomas.heller | 2008-01-19 22:56:12 +0100 (Sat, 19 Jan 2008) | 3 lines

  Always use explicit endian specifiers for simple types, and a bug fix
  too.  Add unittest.
........
  r60112 | thomas.heller | 2008-01-19 23:25:14 +0100 (Sat, 19 Jan 2008) | 2 lines

  Fully implement tp_asbuffer for pointer types.
........
  r60261 | thomas.heller | 2008-01-24 22:01:29 +0100 (Thu, 24 Jan 2008) | 4 lines

  Added shape and ndim field to StgDictObject.  Implemented pep3118
  format string, ndim, and shape for array types.  Added a
  buffer_info(type_or_object) for testing.
........
  r60278 | thomas.heller | 2008-01-25 11:53:33 +0100 (Fri, 25 Jan 2008) | 2 lines

  Implement pep3118 format strings for ctypes.Structure and ctypes.Union.
........
  r60288 | thomas.heller | 2008-01-25 17:58:30 +0100 (Fri, 25 Jan 2008) | 2 lines

  All ctypes types now use the same CData_GetBuffer function.
........
  r60289 | thomas.heller | 2008-01-25 19:59:45 +0100 (Fri, 25 Jan 2008) | 2 lines

  Fix format string for structures, and itemsize for arrays.
........
  r60290 | thomas.heller | 2008-01-25 20:09:03 +0100 (Fri, 25 Jan 2008) | 2 lines

  Implement to format string for function pointers.
........
  r60292 | thomas.heller | 2008-01-25 20:32:20 +0100 (Fri, 25 Jan 2008) | 3 lines

  Only structures with native packing implement the pep.  Unions, or
  packed structures do not.
........
  r60293 | thomas.heller | 2008-01-25 20:34:31 +0100 (Fri, 25 Jan 2008) | 2 lines

  Update the test.
........
  r60295 | thomas.heller | 2008-01-25 20:44:41 +0100 (Fri, 25 Jan 2008) | 2 lines

  Fixed a few XXX markers.
........
  r60298 | thomas.heller | 2008-01-25 21:11:08 +0100 (Fri, 25 Jan 2008) | 1 line

  Fix test for 64-bt platform.
........
  r60299 | thomas.heller | 2008-01-25 21:34:11 +0100 (Fri, 25 Jan 2008) | 2 lines

  Add test for the readonly bit.
........
  r60384 | thomas.heller | 2008-01-28 08:45:04 +0100 (Mon, 28 Jan 2008) | 4 lines

  Restructure the test so that it contains little endian format strings.
  On big endian machines, the format strings are converted by replacing
  '<' with '>'.
........
  r60385 | thomas.heller | 2008-01-28 08:58:46 +0100 (Mon, 28 Jan 2008) | 1 line

  Bugfix and test for explicit big and little endian types.
........
  r60428 | thomas.heller | 2008-01-29 22:00:37 +0100 (Tue, 29 Jan 2008) | 1 line

  Add comments to clarify the tests.
........
  r62589 | thomas.heller | 2008-04-30 13:49:46 +0200 (Wed, 30 Apr 2008) | 1 line

  Fix compiler warnings.
........

16 years agoAdd some temporary autoconf checks to try to figure out why test_math is
Mark Dickinson [Wed, 30 Apr 2008 14:21:39 +0000 (14:21 +0000)]
Add some temporary autoconf checks to try to figure out why test_math is
failing on Debian/alpha.  (log(9.88e-324) gives an unexpected ValueError
on that platform).  These checks will be removed again once the source
of the problem is identified.

I hope this is a reasonable way to approach the Debian/alpha buildbot
failures; if there's a better way of debugging buildbot test failures
then please let me know.

16 years agoMerged revisions 62586 via svnmerge from
Eric Smith [Wed, 30 Apr 2008 02:12:09 +0000 (02:12 +0000)]
Merged revisions 62586 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62586 | eric.smith | 2008-04-29 21:09:30 -0400 (Tue, 29 Apr 2008) | 5 lines

  Issue 2526, float.__format__ 'n' specifier does not support thousands grouping.

  Implemented grouping, with tests.
  Cleaned up PyOS_ascii_formatd by breaking reformatting into smaller functions.
........

16 years agoFix var name.
Georg Brandl [Tue, 29 Apr 2008 21:00:18 +0000 (21:00 +0000)]
Fix var name.

16 years agoCleanup the Unicode header documentation and formatting a bit.
Marc-André Lemburg [Tue, 29 Apr 2008 11:14:08 +0000 (11:14 +0000)]
Cleanup the Unicode header documentation and formatting a bit.

16 years agoDocument the fact that '\U' and '\u' escapes are not treated specially in 3.0 (see...
Benjamin Peterson [Mon, 28 Apr 2008 21:05:10 +0000 (21:05 +0000)]
Document the fact that '\U' and '\u' escapes are not treated specially in 3.0 (see issue 2541)

16 years agoBlocked revisions 62536 via svnmerge
Benjamin Peterson [Sun, 27 Apr 2008 18:44:04 +0000 (18:44 +0000)]
Blocked revisions 62536 via svnmerge

........
  r62536 | benjamin.peterson | 2008-04-27 13:40:21 -0500 (Sun, 27 Apr 2008) | 2 lines

  A little reformating of Py3k warnings
........

16 years agoBlocked revisions 62517-62518 via svnmerge
Benjamin Peterson [Sun, 27 Apr 2008 03:02:57 +0000 (03:02 +0000)]
Blocked revisions 62517-62518 via svnmerge

........
  r62517 | benjamin.peterson | 2008-04-26 21:28:02 -0500 (Sat, 26 Apr 2008) | 2 lines

  Added PyErr_WarnPy3k function. (issue 2671) I will be converting current Py3k warnings to the use of this function soon.
........
  r62518 | benjamin.peterson | 2008-04-26 22:01:45 -0500 (Sat, 26 Apr 2008) | 2 lines

  Use PyErr_WarnPy3k throughout
........

16 years agoMerged revisions 62499 via svnmerge from
Mark Dickinson [Sat, 26 Apr 2008 20:48:56 +0000 (20:48 +0000)]
Merged revisions 62499 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62499 | mark.dickinson | 2008-04-25 12:11:04 -0400 (Fri, 25 Apr 2008) | 7 lines

  Issue #1496032.  Add -mieee to BASECFLAGS on alpha, when gcc is
  the compiler.  This should(?) help to fix failures in test_math
  and test_cmath on Linux/alpha.

  Also add configure message reporting the result of uname -m, as
  a debugging aid.
........

16 years agoBlock 2.6-only doc change.
Georg Brandl [Sat, 26 Apr 2008 18:28:08 +0000 (18:28 +0000)]
Block 2.6-only doc change.

16 years ago#2689 Fix indentation in Objects/rangeobject.c
Benjamin Peterson [Fri, 25 Apr 2008 21:15:37 +0000 (21:15 +0000)]
#2689 Fix indentation in Objects/rangeobject.c

16 years agoRemove duplicated code in pydoc.py, probably a merge conflict some months ago.
Amaury Forgeot d'Arc [Fri, 25 Apr 2008 20:47:52 +0000 (20:47 +0000)]
Remove duplicated code in pydoc.py, probably a merge conflict some months ago.

Spotted by Humberto Diogenes.

16 years agoMerged revisions 62490 via svnmerge from
Benjamin Peterson [Fri, 25 Apr 2008 01:59:09 +0000 (01:59 +0000)]
Merged revisions 62490 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62490 | benjamin.peterson | 2008-04-24 20:29:10 -0500 (Thu, 24 Apr 2008) | 2 lines

  reformat some documentation of classes so methods and attributes are under the class directive
........

16 years agoCorrect recently merged tests:
Amaury Forgeot d'Arc [Thu, 24 Apr 2008 21:00:04 +0000 (21:00 +0000)]
Correct recently merged tests:
- two bugs in pydoc.py
- remove test about classic classes

16 years agoMerged revisions 62486-62487 via svnmerge from
Amaury Forgeot d'Arc [Thu, 24 Apr 2008 20:48:12 +0000 (20:48 +0000)]
Merged revisions 62486-62487 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62486 | amaury.forgeotdarc | 2008-04-24 16:22:26 -0400 (Thu, 24 Apr 2008) | 7 lines

  Add a few tests for pydoc.

  This is a modified version of a patch proposed by Humberto Diogenes
  in the discussion of issue1883.

  I will merge manually this change into the py3k branch: the tests must be adapted.
........
  r62487 | amaury.forgeotdarc | 2008-04-24 16:41:50 -0400 (Thu, 24 Apr 2008) | 2 lines

  Use absolute import for test package
........

16 years agoMerged revisions 62481 via svnmerge from
Thomas Heller [Thu, 24 Apr 2008 18:39:36 +0000 (18:39 +0000)]
Merged revisions 62481 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62481 | thomas.heller | 2008-04-24 20:14:19 +0200 (Do, 24 Apr 2008) | 3 lines

  Remove cyclic reference in CFuncPtr instances; see issue #2682.

  Backport candidate for the release25-maint branch.
........

16 years agoObvious simplification, now that "long" has disappeared.
Amaury Forgeot d'Arc [Thu, 24 Apr 2008 18:26:53 +0000 (18:26 +0000)]
Obvious simplification, now that "long" has disappeared.

16 years agoThere is no reason for imp.get_magic() to return a mutable bytearray
Amaury Forgeot d'Arc [Thu, 24 Apr 2008 18:23:22 +0000 (18:23 +0000)]
There is no reason for imp.get_magic() to return a mutable bytearray

16 years agoRemoved documentation for future_builtins
Benjamin Peterson [Thu, 24 Apr 2008 02:43:56 +0000 (02:43 +0000)]
Removed documentation for future_builtins

16 years agoremove some old versionchanged and versionadded directives
Benjamin Peterson [Thu, 24 Apr 2008 02:34:53 +0000 (02:34 +0000)]
remove some old versionchanged and versionadded directives

16 years agoIssue 2440: remove the guard around the handling of case 'n' in getargs.c's convertsi...
Trent Nelson [Tue, 22 Apr 2008 19:02:40 +0000 (19:02 +0000)]
Issue 2440: remove the guard around the handling of case 'n' in getargs.c's convertsimple() such that we always treat it as an index type, regardless of whether or not sizeof(size_t) == sizeof(long).  Fix the test_args2.Signed_TestCase.test_n() such that it tests for adherence to PEP 357 (don't try and coerce objects that don't have nb_index slots but do have nb_int slots (i.e. floats) into indexes 'just because we can').  Three other commits are related to this one: r62269 and r62279, which were changes to PyNumber_Index (among other things) to check for nb_int slots when we lack nb_index slots -- and r62292, which is when I reverted these changes after various people pointed out that the test was in fact wrong, not the code.

16 years agodumps() and loads() work in terms of bytes objects not strings.
Mark Summerfield [Mon, 21 Apr 2008 14:47:45 +0000 (14:47 +0000)]
dumps() and loads() work in terms of bytes objects not strings.

16 years agoMerged revisions 62420-62421,62423-62424 via svnmerge from
Christian Heimes [Mon, 21 Apr 2008 13:08:03 +0000 (13:08 +0000)]
Merged revisions 62420-62421,62423-62424 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62420 | mark.dickinson | 2008-04-20 20:30:05 +0200 (Sun, 20 Apr 2008) | 3 lines

  Even more fixes for alpha Tru64, this time for
  the phase and polar methods.
........
  r62421 | mark.dickinson | 2008-04-20 22:38:48 +0200 (Sun, 20 Apr 2008) | 2 lines

  Add test for tanh(-0.) == -0. on IEEE 754 systems
........
  r62423 | amaury.forgeotdarc | 2008-04-20 23:02:21 +0200 (Sun, 20 Apr 2008) | 3 lines

  Correct an apparent refleak in test_pkgutil: zipimport._zip_directory_cache contains
  info for all processed zip files, even when they are no longer used.
........
  r62424 | mark.dickinson | 2008-04-20 23:39:04 +0200 (Sun, 20 Apr 2008) | 4 lines

  math.atan2 is misbehaving on Windows;  this patch
  should fix the problem in the same way that
  the cmath.phase problems were fixed.
........

16 years agoBlocked revisions 62431 via svnmerge
Benjamin Peterson [Mon, 21 Apr 2008 11:59:36 +0000 (11:59 +0000)]
Blocked revisions 62431 via svnmerge

........
  r62431 | benjamin.peterson | 2008-04-21 06:57:40 -0500 (Mon, 21 Apr 2008) | 2 lines

  Moved io doc changes back
........

16 years agoA lot of small detailed revisions to the io module's doc.
Mark Summerfield [Mon, 21 Apr 2008 10:29:45 +0000 (10:29 +0000)]
A lot of small detailed revisions to the io module's doc.

16 years agoMerged revisions 62386-62387,62389-62393,62396,62400-62402,62407,62409-62410,62412...
Christian Heimes [Sun, 20 Apr 2008 21:01:16 +0000 (21:01 +0000)]
Merged revisions 62386-62387,62389-62393,62396,62400-62402,62407,62409-62410,62412-62414,62418-62419 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62386 | christian.heimes | 2008-04-19 04:23:57 +0200 (Sat, 19 Apr 2008) | 2 lines

  Added kill, terminate and send_signal to subprocess.Popen
  The bits and pieces for the Windows side were already in place. The POSIX side is trivial (as usual) and uses os.kill().
........
  r62387 | georg.brandl | 2008-04-19 10:23:59 +0200 (Sat, 19 Apr 2008) | 2 lines

  Fix-up docs for revision 62386.
........
  r62389 | georg.brandl | 2008-04-19 18:57:43 +0200 (Sat, 19 Apr 2008) | 2 lines

  #2369: clarify that copyfile() doesn't take a target directory.
........
  r62390 | georg.brandl | 2008-04-19 18:58:28 +0200 (Sat, 19 Apr 2008) | 2 lines

  #2634: clarify meaning of env parameter to spawn/exec*e.
........
  r62391 | georg.brandl | 2008-04-19 18:58:49 +0200 (Sat, 19 Apr 2008) | 2 lines

  #2633: clarify meaning of env parameter.
........
  r62392 | georg.brandl | 2008-04-19 18:59:16 +0200 (Sat, 19 Apr 2008) | 2 lines

  #2631: clarify IMPORT_NAME semantics.
........
  r62393 | georg.brandl | 2008-04-19 19:00:14 +0200 (Sat, 19 Apr 2008) | 2 lines

  :func: et al. should *not* include the parens.
........
  r62396 | mark.dickinson | 2008-04-19 20:51:48 +0200 (Sat, 19 Apr 2008) | 5 lines

  Additional tests for math.pow, and extra special-case
  handling code in math.pow, in the hope of making all
  tests pass on the alpha Tru64 buildbot.
........
  r62400 | mark.dickinson | 2008-04-19 21:41:52 +0200 (Sat, 19 Apr 2008) | 3 lines

  Additional special-case handling for math.pow.
  Windows/VS2008 doesn't like (-1)**(+-inf).
........
  r62401 | benjamin.peterson | 2008-04-19 21:47:34 +0200 (Sat, 19 Apr 2008) | 2 lines

  Complete documentation for errors argument of io's open and TextIOWrapper
........
  r62402 | mark.dickinson | 2008-04-19 22:31:16 +0200 (Sat, 19 Apr 2008) | 2 lines

  Document updates to math and cmath modules.
........
  r62407 | georg.brandl | 2008-04-19 23:28:38 +0200 (Sat, 19 Apr 2008) | 2 lines

  Update template for newest Sphinx.
........
  r62409 | mark.dickinson | 2008-04-19 23:35:35 +0200 (Sat, 19 Apr 2008) | 5 lines

  Correct documentation for math.pow;
  0**nan is nan, not 0.  (But nan**0 and 1**nan are 1.)

  Also fix minor typo: 'quite NaN' -> 'quiet NaN'
........
  r62410 | mark.dickinson | 2008-04-19 23:49:22 +0200 (Sat, 19 Apr 2008) | 4 lines

  Move asinh documentation to the proper place.
  Remove meaningless 'in radians' from inverse
  hyperbolic functions.
........
  r62412 | mark.dickinson | 2008-04-20 03:22:30 +0200 (Sun, 20 Apr 2008) | 5 lines

  Report additional diagnostic information in
  test_math, to help track down debian-alpha
  buildbot failure.
........
  r62413 | mark.dickinson | 2008-04-20 03:39:24 +0200 (Sun, 20 Apr 2008) | 3 lines

  FreeBSD doesn't follow C99 for modf(inf); so add explicit
  special-value handling to math.modf code.
........
  r62414 | mark.dickinson | 2008-04-20 06:13:13 +0200 (Sun, 20 Apr 2008) | 5 lines

  Yet more explicit special case handling to make
  math.pow behave on alpha Tru64.  All IEEE 754
  special values are now handled directly; only
  the finite**finite case is handled by libm.
........
  r62418 | mark.dickinson | 2008-04-20 18:13:17 +0200 (Sun, 20 Apr 2008) | 7 lines

  Issue 2662: Initialize special value tables dynamically (i.e. when
  cmath module is loaded) instead of statically. This fixes compile-time
  problems on platforms where HUGE_VAL is an extern variable rather than
  a constant.

  Thanks Hirokazu Yamamoto for the patch.
........
  r62419 | andrew.kuchling | 2008-04-20 18:54:02 +0200 (Sun, 20 Apr 2008) | 1 line

  Move description of math module changes; various edits to description of cmath changes
........

16 years agoRemove duplicated reduce() entry.
Georg Brandl [Sat, 19 Apr 2008 22:18:33 +0000 (22:18 +0000)]
Remove duplicated reduce() entry.

16 years agoReverted 62397; no versionadded/changed in 3.0 docs
Benjamin Peterson [Sat, 19 Apr 2008 21:24:29 +0000 (21:24 +0000)]
Reverted 62397; no versionadded/changed in 3.0 docs

16 years agoBlocked revisions 62398 via svnmerge
Benjamin Peterson [Sat, 19 Apr 2008 19:38:00 +0000 (19:38 +0000)]
Blocked revisions 62398 via svnmerge

........
  r62398 | benjamin.peterson | 2008-04-19 14:34:05 -0500 (Sat, 19 Apr 2008) | 2 lines

  Copy io documentation back from py3k branch so changes can be merged into it.
........

16 years agothe io module was added in 2.6 (I know not really, but the end user isn't going to...
Benjamin Peterson [Sat, 19 Apr 2008 19:32:08 +0000 (19:32 +0000)]
the io module was added in 2.6 (I know not really, but the end user isn't going to care about backporting.)

16 years agoMerged revisions 62350-62355,62358-62359,62364-62365,62370,62372-62375,62378-62379...
Christian Heimes [Sat, 19 Apr 2008 00:55:37 +0000 (00:55 +0000)]
Merged revisions 62350-62355,62358-62359,62364-62365,62370,62372-62375,62378-62379,62381 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62350 | nick.coghlan | 2008-04-15 12:25:31 +0200 (Tue, 15 Apr 2008) | 1 line

  Issue 2439: add pkgutils.get_data() as a convenience wrapper for the PEP 302 get_data() API (contributed by Paul Moore)
........
  r62351 | nick.coghlan | 2008-04-15 12:28:14 +0200 (Tue, 15 Apr 2008) | 1 line

  Add test file missing from rev 62350
........
  r62352 | benjamin.peterson | 2008-04-15 13:58:46 +0200 (Tue, 15 Apr 2008) | 2 lines

  Add myself to Doc/ACKS.txt
........
  r62353 | andrew.kuchling | 2008-04-15 15:10:07 +0200 (Tue, 15 Apr 2008) | 6 lines

  Add *,**,@ to index, as suggested by
  http://farmdev.com/thoughts/24/what-does-the-def-star-variable-or-def-asterisk-parameter-syntax-do-in-python-/

  The right entry type to use isn't clear; operator seems wrong, because *,**,@
  aren't being used in expressions here.  I put them as 'statement'; 'syntax'
  might be better.
........
  r62354 | andrew.kuchling | 2008-04-15 15:10:41 +0200 (Tue, 15 Apr 2008) | 1 line

  Typo fix
........
  r62355 | mark.dickinson | 2008-04-15 22:51:18 +0200 (Tue, 15 Apr 2008) | 3 lines

  Fix for possible signed overflow:  the behaviour of -LONG_MIN is
  undefined in ANSI C.
........
  r62358 | jeroen.ruigrok | 2008-04-16 14:47:01 +0200 (Wed, 16 Apr 2008) | 2 lines

  Reformat to 80 columns prior to adding documentation.
........
  r62359 | jeroen.ruigrok | 2008-04-16 14:57:43 +0200 (Wed, 16 Apr 2008) | 2 lines

  Add details about the return value for mmap.flush().
........
  r62364 | raymond.hettinger | 2008-04-17 12:48:31 +0200 (Thu, 17 Apr 2008) | 1 line

  Issue 2648: Add leading zero to money format recipe in the docs.
........
  r62365 | jeroen.ruigrok | 2008-04-17 14:39:45 +0200 (Thu, 17 Apr 2008) | 2 lines

  Be consistent in the use of read-only.
........
  r62370 | andrew.kuchling | 2008-04-17 22:44:06 +0200 (Thu, 17 Apr 2008) | 1 line

  Typo fixes
........
  r62372 | andrew.kuchling | 2008-04-18 04:40:47 +0200 (Fri, 18 Apr 2008) | 1 line

  Use correct parameter name
........
  r62373 | andrew.kuchling | 2008-04-18 18:53:09 +0200 (Fri, 18 Apr 2008) | 1 line

  #2654: fix typo
........
  r62374 | andrew.kuchling | 2008-04-18 20:28:23 +0200 (Fri, 18 Apr 2008) | 4 lines

  Remove personal note from Jim Roskind; it no longer applies, and the
  e-mail address is for a previous employer.

  Can we move the big long copyright statement into a sidebar or something?
........
  r62375 | andrew.kuchling | 2008-04-18 20:39:55 +0200 (Fri, 18 Apr 2008) | 1 line

  Rewrite introductory section, and remove old section.  (It was already commented-out, but why keep it?)
........
  r62378 | skip.montanaro | 2008-04-18 22:35:46 +0200 (Fri, 18 Apr 2008) | 1 line

  resolve issue 2014
........
  r62379 | benjamin.peterson | 2008-04-18 22:45:33 +0200 (Fri, 18 Apr 2008) | 2 lines

  Fix indentation in sysmodule.c
........
  r62381 | amaury.forgeotdarc | 2008-04-19 01:31:33 +0200 (Sat, 19 Apr 2008) | 3 lines

  Some tests did not pass on repeated calls (regrtest -R::)
  Perform additional cleanup, mostly deleting from sys.modules, or clearing the warnings registry.
........

16 years agoMerged revisions 62380,62382-62383 via svnmerge from
Christian Heimes [Sat, 19 Apr 2008 00:31:39 +0000 (00:31 +0000)]
Merged revisions 62380,62382-62383 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62380 | christian.heimes | 2008-04-19 01:13:07 +0200 (Sat, 19 Apr 2008) | 3 lines

  I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.

  The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
........
  r62382 | christian.heimes | 2008-04-19 01:40:40 +0200 (Sat, 19 Apr 2008) | 2 lines

  Added new files to Windows project files
  More Windows related fixes are coming soon
........
  r62383 | christian.heimes | 2008-04-19 01:49:11 +0200 (Sat, 19 Apr 2008) | 1 line

  Stupid me. Py_RETURN_NAN should actually return something ...
........

16 years agoHave test_coding conditionally remove test files instead of assuming that they
Brett Cannon [Thu, 17 Apr 2008 04:21:10 +0000 (04:21 +0000)]
Have test_coding conditionally remove test files instead of assuming that they
are always there.

16 years agoPyLong_FromSsize_t was incorrect when sizeof(size_t) > sizeof(long);
Mark Dickinson [Tue, 15 Apr 2008 21:42:42 +0000 (21:42 +0000)]
PyLong_FromSsize_t was incorrect when sizeof(size_t) > sizeof(long);
rewrite it so that it doesn't care about relative sizes of size_t,
long and long long.

The rewrite is modeled on PyLong_FromLong, instead of using
PyLong_FromByteArray;  this makes the algorithm simpler and
more direct, and possibly also slightly faster.

16 years agoMerged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464...
Neal Norwitz [Tue, 15 Apr 2008 06:43:13 +0000 (06:43 +0000)]
Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62128,62130,62132,62134-62135,62137,62139-62140,62144,62146,62151,62155,62157,62162-62166,62171-62172,62175-62176,62178,62181-62186,62188-62192,62196,62200-62203,62206,62211-62213,62215-62218,62222,62224-62226,62228,62232,62236,62240-62245,62248,62250-62254,62256-62258,62262,62264-62265,62267-62270,62272-62276,62280-62288,62291-62292,62299-62301,62307,62312,62316-62318,62322-62331,62333-62337,62339-62344,62346-62348 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62323 | brett.cannon | 2008-04-13 10:09:43 -0700 (Sun, 13 Apr 2008) | 3 lines

  Add an explicit check for output in a test to try to diagnose a failure on
  Windows.
........
  r62324 | brett.cannon | 2008-04-13 10:41:31 -0700 (Sun, 13 Apr 2008) | 3 lines

  Fix spliting on colons on Windows machines with a file path by limiting the
  number of splits.
........
  r62329 | benjamin.peterson | 2008-04-13 13:35:56 -0700 (Sun, 13 Apr 2008) | 2 lines

  #2627 Let it be known what pgen generates
........
  r62330 | benjamin.peterson | 2008-04-13 13:40:03 -0700 (Sun, 13 Apr 2008) | 2 lines

  Added an ignore file for Bazaar #2510
........
  r62331 | georg.brandl | 2008-04-13 13:50:29 -0700 (Sun, 13 Apr 2008) | 2 lines

  Improve -X error message.
........
  r62334 | andrew.kuchling | 2008-04-13 15:39:12 -0700 (Sun, 13 Apr 2008) | 1 line

  Add example
........
  r62340 | amaury.forgeotdarc | 2008-04-14 12:55:40 -0700 (Mon, 14 Apr 2008) | 2 lines

  Update project files for all Windows supported compilers
........
  r62341 | amaury.forgeotdarc | 2008-04-14 13:07:48 -0700 (Mon, 14 Apr 2008) | 6 lines

  Correct a refleak found by "regrtest.py -R:: test_structmembers"

  Some other minor updates in _warnings.c:
  - make a function static
  - rename a shadowing local variable
........
  r62347 | andrew.kuchling | 2008-04-14 19:24:15 -0700 (Mon, 14 Apr 2008) | 1 line

  Various items; begin writing the SSL section
........
  r62348 | neal.norwitz | 2008-04-14 20:46:21 -0700 (Mon, 14 Apr 2008) | 1 line

  Prevent namespace pollution, add static for internal functions
........

16 years agoRecorded merge of revisions 62345 via svnmerge from
Alexandre Vassalotti [Mon, 14 Apr 2008 22:46:41 +0000 (22:46 +0000)]
Recorded merge of revisions 62345 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62345 | alexandre.vassalotti | 2008-04-14 18:40:08 -0400 (Mon, 14 Apr 2008) | 2 lines

  Backport manually r62342 from the py3k branch to the trunk.
........

16 years agoFix problems in the io docs noted by Alexandre Vassalotti
Benjamin Peterson [Mon, 14 Apr 2008 21:30:21 +0000 (21:30 +0000)]
Fix problems in the io docs noted by Alexandre Vassalotti

16 years agoRe-indented bytes_getbuffer() and bytes_releasebuffer() to 4-space
Alexandre Vassalotti [Mon, 14 Apr 2008 20:53:13 +0000 (20:53 +0000)]
Re-indented bytes_getbuffer() and bytes_releasebuffer() to 4-space
indents.

16 years agoImproved bytes_extend() to avoid making a full copy of the temporary
Alexandre Vassalotti [Mon, 14 Apr 2008 20:51:05 +0000 (20:51 +0000)]
Improved bytes_extend() to avoid making a full copy of the temporary
buffer. This also makes the code slightly cleaner.

16 years agoMerged revisions 62338 via svnmerge from
Thomas Heller [Mon, 14 Apr 2008 16:17:33 +0000 (16:17 +0000)]
Merged revisions 62338 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62338 | thomas.heller | 2008-04-14 18:10:07 +0200 (Mo, 14 Apr 2008) | 3 lines

  Issue #2616: Implement ctypes.pointer() and ctypes.POINTER() in C for
  better performance.
........

16 years agoIssue #2058: Remove the buf attribute and add __slots__ to the
Lars Gustäbel [Mon, 14 Apr 2008 10:05:48 +0000 (10:05 +0000)]
Issue #2058: Remove the buf attribute and add __slots__ to the
TarInfo class in order to reduce tarfile's memory usage.

16 years agoAnother io doc fix
Benjamin Peterson [Sun, 13 Apr 2008 23:46:27 +0000 (23:46 +0000)]
Another io doc fix

16 years agoMerged revisions 62332 via svnmerge from
Benjamin Peterson [Sun, 13 Apr 2008 23:11:15 +0000 (23:11 +0000)]
Merged revisions 62332 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62332 | georg.brandl | 2008-04-13 15:51:27 -0500 (Sun, 13 Apr 2008) | 2 lines

  Check out Jinja as a separate step now that it's not included in the Sphinx package anymore.
........

16 years agoA few io doc fixes
Benjamin Peterson [Sun, 13 Apr 2008 21:39:58 +0000 (21:39 +0000)]
A few io doc fixes

16 years agoMerged revisions 62260-62261,62266,62271,62277-62279,62289-62290,62293-62298,62302...
Christian Heimes [Sun, 13 Apr 2008 13:53:33 +0000 (13:53 +0000)]
Merged revisions 62260-62261,62266,62271,62277-62279,62289-62290,62293-62298,62302-62306,62308,62311,62313-62315,62319-62321 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62260 | gregory.p.smith | 2008-04-10 01:11:56 +0200 (Thu, 10 Apr 2008) | 2 lines

  better diagnostics
........
  r62261 | gregory.p.smith | 2008-04-10 01:16:37 +0200 (Thu, 10 Apr 2008) | 3 lines

  Raise SystemError when size < 0 is passed into PyString_FromStringAndSize,
  PyBytes_FromStringAndSize or PyUnicode_FromStringAndSize.  [issue2587]
........
  r62266 | neal.norwitz | 2008-04-10 07:46:39 +0200 (Thu, 10 Apr 2008) | 5 lines

  Remove the test file before writing it in case there is no write permission.
  This might help fix some of the failures on Windows box(es).  It doesn't hurt
  either way and ensure the tests are a little more self contained (ie have
  less assumptions).
........
  r62271 | gregory.p.smith | 2008-04-10 21:50:36 +0200 (Thu, 10 Apr 2008) | 2 lines

  get rid of assert (size >= 0) now that an explicit if (size < 0) is in the code.
........
  r62277 | andrew.kuchling | 2008-04-10 23:27:10 +0200 (Thu, 10 Apr 2008) | 1 line

  Remove forward-looking statement
........
  r62278 | andrew.kuchling | 2008-04-10 23:28:51 +0200 (Thu, 10 Apr 2008) | 1 line

  Add punctuation
........
  r62279 | andrew.kuchling | 2008-04-10 23:29:01 +0200 (Thu, 10 Apr 2008) | 1 line

  Use issue directive
........
  r62289 | thomas.heller | 2008-04-11 15:05:38 +0200 (Fri, 11 Apr 2008) | 3 lines

  Move backwards compatibility macro to the correct place;
  PyIndex_Check() was introduced in Python 2.5.
........
  r62290 | thomas.heller | 2008-04-11 16:20:26 +0200 (Fri, 11 Apr 2008) | 2 lines

  Performance improvements.
........
  r62293 | christian.heimes | 2008-04-12 15:03:03 +0200 (Sat, 12 Apr 2008) | 2 lines

  Applied patch #2617 from Frank Wierzbicki wit some extras from me
  -J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
........
  r62294 | georg.brandl | 2008-04-12 20:11:18 +0200 (Sat, 12 Apr 2008) | 2 lines

  Use absolute path in sys.path.
........
  r62295 | georg.brandl | 2008-04-12 20:36:09 +0200 (Sat, 12 Apr 2008) | 2 lines

  #2615: small consistency update by Jeroen Ruigrok van der Werven.
........
  r62296 | georg.brandl | 2008-04-12 21:00:20 +0200 (Sat, 12 Apr 2008) | 2 lines

  Add Jeroen.
........
  r62297 | georg.brandl | 2008-04-12 21:05:37 +0200 (Sat, 12 Apr 2008) | 2 lines

  Don't offend snake lovers.
........
  r62298 | gregory.p.smith | 2008-04-12 22:37:48 +0200 (Sat, 12 Apr 2008) | 2 lines

  fix compiler warnings
........
  r62302 | gregory.p.smith | 2008-04-13 00:24:04 +0200 (Sun, 13 Apr 2008) | 3 lines

  socket.error inherits from IOError, it no longer needs listing in
  the all_errors tuple.
........
  r62303 | brett.cannon | 2008-04-13 01:44:07 +0200 (Sun, 13 Apr 2008) | 8 lines

  Re-implement the 'warnings' module in C. This allows for usage of the
  'warnings' code in places where it was previously not possible (e.g., the
  parser). It could also potentially lead to a speed-up in interpreter start-up
  if the C version of the code (_warnings) is imported over the use of the
  Python version in key places.

  Closes issue #1631171.
........
  r62304 | gregory.p.smith | 2008-04-13 02:03:25 +0200 (Sun, 13 Apr 2008) | 3 lines

  Adds a profile-opt target for easy compilation of a python binary using
  gcc's profile guided optimization.
........
  r62305 | brett.cannon | 2008-04-13 02:18:44 +0200 (Sun, 13 Apr 2008) | 3 lines

  Fix a bug in PySys_HasWarnOption() where it was not properly checking the
  length of the list storing the warning options.
........
  r62306 | brett.cannon | 2008-04-13 02:25:15 +0200 (Sun, 13 Apr 2008) | 2 lines

  Fix an accidental bug of an non-existent init function.
........
  r62308 | andrew.kuchling | 2008-04-13 03:05:59 +0200 (Sun, 13 Apr 2008) | 1 line

  Mention -J, -X
........
  r62311 | benjamin.peterson | 2008-04-13 04:20:05 +0200 (Sun, 13 Apr 2008) | 2 lines

  Give the "Interactive Interpreter Changes" section in 2.6 whatsnew a unique link name
........
  r62313 | brett.cannon | 2008-04-13 04:42:36 +0200 (Sun, 13 Apr 2008) | 3 lines

  Fix test_warnings by making the state of things more consistent for each test
  when it is run.
........
  r62314 | skip.montanaro | 2008-04-13 05:17:30 +0200 (Sun, 13 Apr 2008) | 2 lines

  spelling
........
  r62315 | georg.brandl | 2008-04-13 09:07:44 +0200 (Sun, 13 Apr 2008) | 2 lines

  Fix markup.
........
  r62319 | christian.heimes | 2008-04-13 11:30:17 +0200 (Sun, 13 Apr 2008) | 1 line

  Fix compiler warning Include/warnings.h:19:28: warning: no newline at end of file
........
  r62320 | christian.heimes | 2008-04-13 11:33:24 +0200 (Sun, 13 Apr 2008) | 1 line

  Use PyString_InternFromString instead of PyString_FromString for static vars
........
  r62321 | christian.heimes | 2008-04-13 11:37:05 +0200 (Sun, 13 Apr 2008) | 1 line

  Added new files to the pcbuild files
........

16 years agoBlocked revisions 62309-62310 via svnmerge
Benjamin Peterson [Sun, 13 Apr 2008 02:21:12 +0000 (02:21 +0000)]
Blocked revisions 62309-62310 via svnmerge

........
  r62309 | benjamin.peterson | 2008-04-12 21:01:27 -0500 (Sat, 12 Apr 2008) | 2 lines

  Backported io module docs
........
  r62310 | benjamin.peterson | 2008-04-12 21:05:48 -0500 (Sat, 12 Apr 2008) | 2 lines

  Backport the removal of a __repr__ from 62251
........

16 years agoFleshed out docstrings in the io module, improving the reST one as I went.
Benjamin Peterson [Sun, 13 Apr 2008 00:27:46 +0000 (00:27 +0000)]
Fleshed out docstrings in the io module, improving the reST one as I went.

16 years agoRemoved unused variable.
Alexandre Vassalotti [Sat, 12 Apr 2008 21:40:56 +0000 (21:40 +0000)]
Removed unused variable.

16 years agoIssue 2440: revert r62269 and r62279. These changes were made in an effort to fix...
Trent Nelson [Fri, 11 Apr 2008 23:02:37 +0000 (23:02 +0000)]
Issue 2440: revert r62269 and r62279.  These changes were made in an effort to fix test_args2.Signed_TestCase.test_n(), which was failing on Windows x64 on the following line:  'self.failUnlessEqual(99, getargs_n(Long()))'.  Although the two commits *did* fix the test on Windows x64, it's become clear that it's the test that's incorrect, and the changes to PyNumber_Index() in particular were not warranted (and actually violate PEP 357).  This commit will get us back to where we were at r62268, before I started butchering things.

16 years agoSynced builtin open and io.open documentation, taking the best of each
Benjamin Peterson [Fri, 11 Apr 2008 21:17:32 +0000 (21:17 +0000)]
Synced builtin open and io.open documentation, taking the best of each

16 years agoFix change to PyNumber_Index() made in r62269, which incorrectly allowed floats to...
Trent Nelson [Thu, 10 Apr 2008 22:21:23 +0000 (22:21 +0000)]
Fix change to PyNumber_Index() made in r62269, which incorrectly allowed floats to be interpreted as longs.  Thanks to Benjamin Peterson for picking this up.

16 years agoAdd a NEWS entry for issue2221.
Amaury Forgeot d'Arc [Thu, 10 Apr 2008 21:03:09 +0000 (21:03 +0000)]
Add a NEWS entry for issue2221.

Also don't flush stdout on each call to exec() or eval().
Only interactive input really needs it.

16 years agoUpdate test_ssl.py to reflect the new approach for writing network-oriented tests...
Trent Nelson [Thu, 10 Apr 2008 20:54:35 +0000 (20:54 +0000)]
Update test_ssl.py to reflect the new approach for writing network-oriented tests in such a way that contention for ports is eliminated, thus allowing multiple instances of the same test to be run in parallel without issue (import for buildbots to run smoothly).  This change is in line with the changes made to network-oriented tests in trunk in r62234.  test_ssl.py is an odd case because the py3k version was newer than trunk.  When the most recent svnmerge was run from trunk to py3k in r62242, the older trunk version was brought over on top of the newer py3k version.  So, the plan was/is: revert the recent svnmerged version (done), manually make the changes to improve running in parallel (done with this commit), copy this version back to trunk and manually 3to2 it (to do next), check that in, then svnmerge block it.  Then when future changes need to be made to test_ssl.py, we can make them against trunk, and hopefully the merge to py3k should be a lot less painful.

16 years agoRevert r62242: trunk's test_ssl.py isn't as up-to-date as py3k's, and should't have...
Trent Nelson [Thu, 10 Apr 2008 20:12:06 +0000 (20:12 +0000)]
Revert r62242: trunk's test_ssl.py isn't as up-to-date as py3k's, and should't have been brought over in the merge.

16 years agoBug #2606: Avoid calling .sort() on a dict_keys object.
Martin v. Löwis [Thu, 10 Apr 2008 19:02:25 +0000 (19:02 +0000)]
Bug #2606: Avoid calling .sort() on a dict_keys object.

16 years agoIssue 2440: fix the handling of %n in Python/getargs.c's convertsimple(), extend...
Trent Nelson [Thu, 10 Apr 2008 16:25:37 +0000 (16:25 +0000)]
Issue 2440: fix the handling of %n in Python/getargs.c's convertsimple(), extend Objects/abstract.c's PyNumber_Index() to accept PyObjects that have nb_int slots, and update test_getargs2 to test that an exception is thrown when __int__() returns a non-int object.

16 years agoMerged revisions 62246-62259 via svnmerge from
Martin v. Löwis [Thu, 10 Apr 2008 03:06:53 +0000 (03:06 +0000)]
Merged revisions 62246-62259 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62246 | georg.brandl | 2008-04-09 19:57:38 +0200 (Mi, 09 Apr 2008) | 2 lines

  #2585: initialize code attribute of HTTPError.
........
  r62247 | georg.brandl | 2008-04-09 19:58:56 +0200 (Mi, 09 Apr 2008) | 2 lines

  Add :issue: directive for easy linking to bugs.python.org.
........
  r62249 | gregory.p.smith | 2008-04-09 20:18:43 +0200 (Mi, 09 Apr 2008) | 2 lines

  Add a note about the zlib.decompressobj().flush() fix.
........
  r62255 | martin.v.loewis | 2008-04-09 20:56:20 +0200 (Mi, 09 Apr 2008) | 2 lines

  Package wininst*.exe from distutils/command.
........
  r62259 | andrew.kuchling | 2008-04-10 00:28:43 +0200 (Do, 10 Apr 2008) | 1 line

  Try out the new issue role.  Thanks, Georg!
........

16 years agoMerged revisions 62263 via svnmerge from
Martin v. Löwis [Thu, 10 Apr 2008 02:50:50 +0000 (02:50 +0000)]
Merged revisions 62263 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r62263 | martin.v.loewis | 2008-04-10 04:48:01 +0200 (Do, 10 Apr 2008) | 19 lines

  Merged revisions 62080-62262 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r62092 | collin.winter | 2008-04-01 18:27:10 +0200 (Di, 01 Apr 2008) | 1 line

    Add get_prev_sibling() to complement pytree's get_next_sibling().
  ........
    r62226 | collin.winter | 2008-04-08 21:07:56 +0200 (Di, 08 Apr 2008) | 1 line

    Add min() and max() to the list of special contexts that don't require adding list() calls around dict methods.
  ........
    r62232 | collin.winter | 2008-04-09 00:12:38 +0200 (Mi, 09 Apr 2008) | 4 lines

    Fix for http://bugs.python.org/issue2596

    This extends fix_xrange to know about the (mostly) same special contexts as fix_dict (where a special context is something that is guaranteed to fully consume the iterable), adding list() calls where appropriate. It also special-cases "x in range(y)".
  ........
................

16 years agozap the last of the class.method typos in io docs
Benjamin Peterson [Wed, 9 Apr 2008 21:38:38 +0000 (21:38 +0000)]
zap the last of the class.method typos in io docs

16 years ago#2575: bininteger missing in production list.
Georg Brandl [Wed, 9 Apr 2008 18:46:46 +0000 (18:46 +0000)]
#2575: bininteger missing in production list.

16 years ago#2580: int() docs revision.
Georg Brandl [Wed, 9 Apr 2008 18:45:14 +0000 (18:45 +0000)]
#2580: int() docs revision.

16 years ago#2530: io module documentation.
Georg Brandl [Wed, 9 Apr 2008 18:40:51 +0000 (18:40 +0000)]
#2530: io module documentation.

16 years agoRemove __repr__ that doesn't have any advantage compared to the standard one.
Georg Brandl [Wed, 9 Apr 2008 18:40:09 +0000 (18:40 +0000)]
Remove __repr__ that doesn't have any advantage compared to the standard one.

16 years agoMerged revisions 62194,62197-62198,62204-62205,62214,62219-62221,62227,62229-62231...
Christian Heimes [Wed, 9 Apr 2008 08:37:03 +0000 (08:37 +0000)]
Merged revisions 62194,62197-62198,62204-62205,62214,62219-62221,62227,62229-62231,62233-62235,62237-62239 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62194 | jeffrey.yasskin | 2008-04-07 01:04:28 +0200 (Mon, 07 Apr 2008) | 7 lines

  Add enough debugging information to diagnose failures where the
  HandlerBException is ignored, and fix one such problem, where it was thrown
  during the __del__ method of the previous Popen object.

  We may want to find a better way of printing verbose information so it's not
  spammy when the test passes.
........
  r62197 | mark.hammond | 2008-04-07 03:53:39 +0200 (Mon, 07 Apr 2008) | 2 lines

  Issue #2513: enable 64bit cross compilation on windows.
........
  r62198 | mark.hammond | 2008-04-07 03:59:40 +0200 (Mon, 07 Apr 2008) | 2 lines

  correct heading underline for new "Cross-compiling on Windows" section
........
  r62204 | gregory.p.smith | 2008-04-07 08:33:21 +0200 (Mon, 07 Apr 2008) | 4 lines

  Use the new PyFile_IncUseCount & PyFile_DecUseCount calls appropriatly
  within the standard library.  These modules use PyFile_AsFile and later
  release the GIL while operating on the previously returned FILE*.
........
  r62205 | mark.summerfield | 2008-04-07 09:39:23 +0200 (Mon, 07 Apr 2008) | 4 lines

  changed "2500 components" to "several thousand" since the number keeps
  growning:-)
........
  r62214 | georg.brandl | 2008-04-07 20:51:59 +0200 (Mon, 07 Apr 2008) | 2 lines

  #2525: update timezone info examples in the docs.
........
  r62219 | andrew.kuchling | 2008-04-08 01:57:07 +0200 (Tue, 08 Apr 2008) | 1 line

  Write PEP 3127 section; add items
........
  r62220 | andrew.kuchling | 2008-04-08 01:57:21 +0200 (Tue, 08 Apr 2008) | 1 line

  Typo fix
........
  r62221 | andrew.kuchling | 2008-04-08 03:33:10 +0200 (Tue, 08 Apr 2008) | 1 line

  Typographical fix: 32bit -> 32-bit, 64bit -> 64-bit
........
  r62227 | andrew.kuchling | 2008-04-08 23:22:53 +0200 (Tue, 08 Apr 2008) | 1 line

  Add items
........
  r62229 | amaury.forgeotdarc | 2008-04-08 23:27:42 +0200 (Tue, 08 Apr 2008) | 7 lines

  Issue2564: Prevent a hang in "import test.autotest", which runs the entire test
  suite as a side-effect of importing the module.

  - in test_capi, a thread tried to import other modules
  - re.compile() imported sre_parse again on every call.
........
  r62230 | amaury.forgeotdarc | 2008-04-08 23:51:57 +0200 (Tue, 08 Apr 2008) | 2 lines

  Prevent an error when inspect.isabstract() is called with something else than a new-style class.
........
  r62231 | amaury.forgeotdarc | 2008-04-09 00:07:05 +0200 (Wed, 09 Apr 2008) | 8 lines

  Issue 2408: remove the _types module
  It was only used as a helper in types.py to access types (GetSetDescriptorType and MemberDescriptorType),
  when they can easily be obtained with python code.
  These expressions even work with Jython.

  I don't know what the future of the types module is; (cf. discussion in http://bugs.python.org/issue1605 )
  at least this change makes it simpler.
........
  r62233 | amaury.forgeotdarc | 2008-04-09 01:10:07 +0200 (Wed, 09 Apr 2008) | 2 lines

  Add a NEWS entry for previous checkin
........
  r62234 | trent.nelson | 2008-04-09 01:47:30 +0200 (Wed, 09 Apr 2008) | 37 lines

  - Issue #2550: The approach used by client/server code for obtaining ports
    to listen on in network-oriented tests has been refined in an effort to
    facilitate running multiple instances of the entire regression test suite
    in parallel without issue.  test_support.bind_port() has been fixed such
    that it will always return a unique port -- which wasn't always the case
    with the previous implementation, especially if socket options had been
    set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT).  The
    new implementation of bind_port() will actually raise an exception if it
    is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or
    SO_REUSEPORT socket option set.  Furthermore, if available, bind_port()
    will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed.
    This currently only applies to Windows.  This option prevents any other
    sockets from binding to the host/port we've bound to, thus removing the
    possibility of the 'non-deterministic' behaviour, as Microsoft puts it,
    that occurs when a second SOCK_STREAM socket binds and accepts to a
    host/port that's already been bound by another socket.  The optional
    preferred port parameter to bind_port() has been removed.  Under no
    circumstances should tests be hard coding ports!

    test_support.find_unused_port() has also been introduced, which will pass
    a temporary socket object to bind_port() in order to obtain an unused port.
    The temporary socket object is then closed and deleted, and the port is
    returned.  This method should only be used for obtaining an unused port
    in order to pass to an external program (i.e. the -accept [port] argument
    to openssl's s_server mode) or as a parameter to a server-oriented class
    that doesn't give you direct access to the underlying socket used.

    Finally, test_support.HOST has been introduced, which should be used for
    the host argument of any relevant socket calls (i.e. bind and connect).

    The following tests were updated to following the new conventions:
      test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
      test_poplib, test_ftplib, test_telnetlib, test_socketserver,
      test_asynchat and test_socket_ssl.

    It is now possible for multiple instances of the regression test suite to
    run in parallel without issue.
........
  r62235 | gregory.p.smith | 2008-04-09 02:25:17 +0200 (Wed, 09 Apr 2008) | 3 lines

  Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
  It tried to allocate negative or zero memory.  That fails.
........
  r62237 | trent.nelson | 2008-04-09 02:34:53 +0200 (Wed, 09 Apr 2008) | 1 line

  Fix typo with regards to self.PORT shadowing class variables with the same name.
........
  r62238 | andrew.kuchling | 2008-04-09 03:08:32 +0200 (Wed, 09 Apr 2008) | 1 line

  Add items
........
  r62239 | jerry.seutter | 2008-04-09 07:07:58 +0200 (Wed, 09 Apr 2008) | 1 line

  Changed test so it no longer runs as a side effect of importing.
........

16 years agoMore docstring fixes, and an XXX.
Georg Brandl [Wed, 9 Apr 2008 07:33:01 +0000 (07:33 +0000)]
More docstring fixes, and an XXX.

16 years agoClarify xrange() entry.
Georg Brandl [Wed, 9 Apr 2008 07:32:07 +0000 (07:32 +0000)]
Clarify xrange() entry.

16 years agoSuppress compilation of lib2to3 py2_ test files.
Martin v. Löwis [Tue, 8 Apr 2008 17:17:46 +0000 (17:17 +0000)]
Suppress compilation of lib2to3 py2_ test files.

16 years agoTentatively Blocked revisions 62223 via svnmerge,
Martin v. Löwis [Tue, 8 Apr 2008 16:53:25 +0000 (16:53 +0000)]
Tentatively Blocked revisions 62223 via svnmerge,
as compilation of py3_ should work in py3k.

........
  r62223 | martin.v.loewis | 2008-04-08 18:48:35 +0200 (Di, 08 Apr 2008) | 1 line

  Suppress compilation of py3_ files upon installation.
........

16 years agoBlocked revisions 62195 via svnmerge
Christian Heimes [Tue, 8 Apr 2008 09:44:14 +0000 (09:44 +0000)]
Blocked revisions 62195 via svnmerge

........
  r62195 | gregory.p.smith | 2008-04-07 01:11:17 +0200 (Mon, 07 Apr 2008) | 10 lines

  Make file objects as thread safe as the underlying libc FILE* implementation.
  close() will now raise an IOError if any operations on the file object
  are currently in progress in other threads.

  Most code was written by Antoine Pitrou (pitrou).  Additional testing,
  documentation and test suite cleanup done by me (gregory.p.smith).

  Fixes issue 815646 and 595601 (as well as many other bugs and
  references to this problem dating back to the dawn of Python).
........

16 years agofixed outdated annotation of readinto in io
Benjamin Peterson [Mon, 7 Apr 2008 22:27:34 +0000 (22:27 +0000)]
fixed outdated  annotation of readinto in io

16 years agoMerged revisions 62207-62210 via svnmerge from
Martin v. Löwis [Mon, 7 Apr 2008 21:14:19 +0000 (21:14 +0000)]
Merged revisions 62207-62210 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62207 | martin.v.loewis | 2008-04-07 16:53:34 +0200 (Mo, 07 Apr 2008) | 1 line

  Delete ALLUSERS property merged from CRT merge module, so that per-user installations become possible again.
........
  r62208 | martin.v.loewis | 2008-04-07 16:54:16 +0200 (Mo, 07 Apr 2008) | 1 line

  Make private_crt feature object a global variable.
........
  r62209 | martin.v.loewis | 2008-04-07 16:55:53 +0200 (Mo, 07 Apr 2008) | 1 line

  Drop support for 7.1 CRT.
........
  r62210 | martin.v.loewis | 2008-04-07 18:34:04 +0200 (Mo, 07 Apr 2008) | 2 lines

  Make the "private CRT" case work, by editing the
  manifest in DLLs to refer to the root copy of the CRT.
........

16 years ago#2567: remove new-style/old-style class docs.
Georg Brandl [Mon, 7 Apr 2008 19:17:06 +0000 (19:17 +0000)]
#2567: remove new-style/old-style class docs.

16 years ago"make install" is now an alias for "make altinstall", to prevent
Guido van Rossum [Mon, 7 Apr 2008 18:37:41 +0000 (18:37 +0000)]
"make install" is now an alias for "make altinstall", to prevent
accidentally overwriting a Python 2.x installation.
Use "make fullinstall" to force Python 3.0 to be installed as
"python".

16 years agoAdd uuids for 3.0a4 and 3.0a5.
Martin v. Löwis [Mon, 7 Apr 2008 16:44:13 +0000 (16:44 +0000)]
Add uuids for 3.0a4 and 3.0a5.

16 years agoBug #2565: The repr() of type objects now calls them 'class',
Martin v. Löwis [Mon, 7 Apr 2008 05:43:42 +0000 (05:43 +0000)]
Bug #2565: The repr() of type objects now calls them 'class',
not 'type' - whether they are builtin types or not.

16 years agoMerged revisions 62199 via svnmerge from
Martin v. Löwis [Mon, 7 Apr 2008 03:22:07 +0000 (03:22 +0000)]
Merged revisions 62199 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62199 | martin.v.loewis | 2008-04-07 05:08:28 +0200 (Mo, 07 Apr 2008) | 2 lines

  Bug #2388: Fix gcc warnings when compiling with --enable-unicode=ucs4.
........

16 years agoMerged revisions 62177-62178,62180-62193 via svnmerge from
Martin v. Löwis [Mon, 7 Apr 2008 03:17:54 +0000 (03:17 +0000)]
Merged revisions 62177-62178,62180-62193 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62177 | skip.montanaro | 2008-04-05 21:47:47 +0200 (Sa, 05 Apr 2008) | 2 lines

  Declare inittimezone static.
........
  r62180 | mark.hammond | 2008-04-06 03:42:06 +0200 (So, 06 Apr 2008) | 4 lines

  From issue 1753245 - better _winreg support for x64.
  Adds _winreg.DisableReflectionKey, EnableReflectionKey, QueryReflectionKey,
  KEY_WOW64_64KEY and KEY_WOW64_32KEY.
........
  r62187 | skip.montanaro | 2008-04-06 19:05:57 +0200 (So, 06 Apr 2008) | 1 line

  type
........
  r62193 | trent.nelson | 2008-04-06 22:51:23 +0200 (So, 06 Apr 2008) | 1 line

  Don't run kill_python as part of the build process.  Change the buildbots so they have to call it explicitly instead.
........

16 years agoMerged revisions 62179 via svnmerge from
Thomas Wouters [Mon, 7 Apr 2008 00:25:59 +0000 (00:25 +0000)]
Merged revisions 62179 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62179 | thomas.wouters | 2008-04-06 01:39:15 +0200 (Sun, 06 Apr 2008) | 10 lines

  Fix test_distutils to not fail when running 'make test' from a Python build
  directory that is not the source directory (ie, one created using
  '/path/to/source/configure'.) Leaves this test very slightly degraded in
  that particular case, compared to the build-in-sourcedir case, but that case
  isn't a particularly strong test either: neither test the actual path that
  will be used after installing. There isn't a particularly good way to test
  this, and a poor test beats a failing test.
........

16 years agoDocstring fix.
Georg Brandl [Sun, 6 Apr 2008 20:27:02 +0000 (20:27 +0000)]
Docstring fix.

16 years agoConvert another %s to %ls.
Martin v. Löwis [Sun, 6 Apr 2008 17:57:16 +0000 (17:57 +0000)]
Convert another %s to %ls.

16 years agofix typo in doc string
Benjamin Peterson [Sun, 6 Apr 2008 16:47:13 +0000 (16:47 +0000)]
fix typo in doc string

16 years ago#2558: document pickle protocol version 3. Thanks to Guilherme Polo.
Georg Brandl [Sun, 6 Apr 2008 08:39:37 +0000 (08:39 +0000)]
#2558: document pickle protocol version 3. Thanks to Guilherme Polo.

16 years agoChange command line processing API to use wchar_t.
Martin v. Löwis [Sat, 5 Apr 2008 20:41:37 +0000 (20:41 +0000)]
Change command line processing API to use wchar_t.
Fixes #2128.

16 years agoRemove baseName argument from Tkapp_New, as it apparently
Martin v. Löwis [Sat, 5 Apr 2008 19:47:23 +0000 (19:47 +0000)]
Remove baseName argument from Tkapp_New, as it apparently
isn't used anymore.

16 years agoMerged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464...
Martin v. Löwis [Sat, 5 Apr 2008 18:58:09 +0000 (18:58 +0000)]
Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62128,62130,62132,62134-62135,62137,62139-62140,62144,62146,62151,62155,62157,62162-62174 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62167 | martin.v.loewis | 2008-04-05 17:45:25 +0200 (Sa, 05 Apr 2008) | 1 line

  Extend sizes of various fields, to support the CRT90 merge module.
........
  r62168 | martin.v.loewis | 2008-04-05 17:48:36 +0200 (Sa, 05 Apr 2008) | 1 line

  Add two features to distinguish between private and SxS CRT.
........
  r62169 | martin.v.loewis | 2008-04-05 17:50:58 +0200 (Sa, 05 Apr 2008) | 1 line

  Add script to merge msvcr90.
........
  r62170 | andrew.kuchling | 2008-04-05 17:57:46 +0200 (Sa, 05 Apr 2008) | 1 line

  Markup fixes; write PEP 3118 section
........
  r62173 | georg.brandl | 2008-04-05 19:45:58 +0200 (Sa, 05 Apr 2008) | 2 lines

  Mention that the tuple returned by __reduce__ is pickled as normal.
........
  r62174 | andrew.kuchling | 2008-04-05 20:15:30 +0200 (Sa, 05 Apr 2008) | 1 line

  Write PEP 3119 section
........

16 years agoceil and floor return ints in 3k.
Georg Brandl [Sat, 5 Apr 2008 17:37:09 +0000 (17:37 +0000)]
ceil and floor return ints in 3k.

16 years agoAdded a test to make sure raw strings don't get unicode escapes
Benjamin Peterson [Sat, 5 Apr 2008 15:09:30 +0000 (15:09 +0000)]
Added a test to make sure raw strings don't get unicode escapes

16 years agoReverted r62128 on Guido's orders
Benjamin Peterson [Sat, 5 Apr 2008 14:49:54 +0000 (14:49 +0000)]
Reverted r62128 on Guido's orders

16 years agoChange \u which is causing a syntax error. I'm not sure if that should be, but
Neal Norwitz [Sat, 5 Apr 2008 06:16:50 +0000 (06:16 +0000)]
Change \u which is causing a syntax error.  I'm not sure if that should be, but
at least this should let the build get farther on amd64 machines.

16 years agoMerged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464...
Neal Norwitz [Sat, 5 Apr 2008 04:47:45 +0000 (04:47 +0000)]
Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62127-62128,62130,62132,62134-62137,62139-62142,62144,62146-62148,62150-62152,62155-62161 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62127 | trent.nelson | 2008-04-03 08:39:17 -0700 (Thu, 03 Apr 2008) | 1 line

  Remove the building of Berkeley DB step; _bsddb44.vcproj takes care of this for us now.
........
  r62136 | amaury.forgeotdarc | 2008-04-03 16:07:55 -0700 (Thu, 03 Apr 2008) | 9 lines

  #1733757: the interpreter would hang on shutdown, if the function set by sys.settrace
  calls threading.currentThread.

  The correction somewhat improves the code, but it was close.
  Many thanks to the "with" construct, which turns python code into C calls.

  I wonder if it is not better to sys.settrace(None) just after
  running the __main__ module and before finalization.
........
  r62141 | jeffrey.yasskin | 2008-04-03 21:51:19 -0700 (Thu, 03 Apr 2008) | 5 lines

  Doh! os.read() raises an OSError, not an IOError when it's interrupted.

  And fix some flakiness in test_itimer_prof, which could detect that the timer
  had reached 0 before the signal arrived announcing that fact.
........
  r62142 | fred.drake | 2008-04-03 22:41:30 -0700 (Thu, 03 Apr 2008) | 4 lines

  - Issue #2385: distutils.core.run_script() makes __file__ available, so the
    controlled environment will more closely mirror the typical script
    environment.  This supports setup.py scripts that refer to data files.
........
  r62147 | fred.drake | 2008-04-04 04:31:14 -0700 (Fri, 04 Apr 2008) | 6 lines

  my previous change did what I said it should not: it changed the current
  directory to the directory in which the setup.py script lived (which made
  __file__ wrong)

  fixed, with test that the script is run in the current directory of the caller
........
  r62148 | fred.drake | 2008-04-04 04:38:51 -0700 (Fri, 04 Apr 2008) | 2 lines

  stupid, stupid, stupid!
........
  r62150 | jeffrey.yasskin | 2008-04-04 09:48:19 -0700 (Fri, 04 Apr 2008) | 2 lines

  Oops again. EINTR is in errno, not signal.
........
  r62158 | andrew.kuchling | 2008-04-04 19:42:20 -0700 (Fri, 04 Apr 2008) | 1 line

  Minor edits
........
  r62159 | andrew.kuchling | 2008-04-04 19:47:07 -0700 (Fri, 04 Apr 2008) | 1 line

  Markup fix; explain what interval timers do; typo fix
........
  r62160 | andrew.kuchling | 2008-04-04 20:38:39 -0700 (Fri, 04 Apr 2008) | 1 line

  Various edits
........
  r62161 | neal.norwitz | 2008-04-04 21:26:31 -0700 (Fri, 04 Apr 2008) | 9 lines

  Prevent test_sqlite from hanging on older versions of sqlite.
  The problem is that when trying to do the second insert, sqlite seems to sleep
  for a very long time.  Here is the output from strace:

    read(6, "SQLite format 3\0\4\0\1\1\0@  \0\0\0\1\0\0\0\0"..., 1024) = 1024
    nanosleep({4294, 966296000},  <unfinished ...>

  I don't know which version this was fixed in, but 3.2.1 definitely fails.
........

16 years agoIssue2221: in Idle, exec('xx') raised a SystemError('error return without exception...
Amaury Forgeot d'Arc [Fri, 4 Apr 2008 23:25:27 +0000 (23:25 +0000)]
Issue2221: in Idle, exec('xx') raised a SystemError('error return without exception set')
instead of the expected NameError

This happens when sys.stdout is redirected to something that cannot flush().
the flush_io() function must be exception-neutral: don't raise, and don't clear exceptions.

Next step: exec() is not supposed to flush sys.stdout...

16 years agoMerged revisions 62149, 62153, 62154 via svnmerge from
Thomas Heller [Fri, 4 Apr 2008 19:53:14 +0000 (19:53 +0000)]
Merged revisions 62149, 62153, 62154 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

Sync with files from the just released libffi 3.0.5 version.

More files from libffi 3.0.5.
Removed libffi.pc.in because it is not needed for ctypes.

News entry for: Sync with files from the just released libffi 3.0.5 version.