Commit Graph

37410 Commits

Author SHA1 Message Date
Benjamin Peterson 2d8dcdcb06 Blocked revisions 66822 via svnmerge
........
  r66822 | skip.montanaro | 2008-10-06 20:55:20 -0500 (Mon, 06 Oct 2008) | 2 lines

  Simplify individual tests by defining setUp and tearDown methods.
........
2008-10-10 23:15:38 +00:00
Benjamin Peterson bcd8ac3964 Merged revisions 66703,66708 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66703 | gregory.p.smith | 2008-09-30 15:41:13 -0500 (Tue, 30 Sep 2008) | 6 lines

  Works around issue3863: freebsd4/5/6 and os2emx are known to have OS bugs when
  calling fork() from a child thread.  This disables that unit test (with a note
  printed to stderr) on those platforms.

  A caveat about buggy platforms is added to the os.fork documentation.
........
  r66708 | andrew.macintyre | 2008-09-30 22:25:25 -0500 (Tue, 30 Sep 2008) | 9 lines

  fix for issue 3862: test_array fails FreeBSD 7 amd64

  FreeBSD 7's underlying malloc() is behaves differently to earlier versions
  and seriously overcommits available memory on amd64.  This may affect
  other 64bit platforms in some circumstances, so the scale of the
  problematic test is wound back.

  Patch by Mark Dickinson, reviewed by Martin von Loewis.
........
2008-10-10 22:20:52 +00:00
Amaury Forgeot d'Arc cf8016a8d6 Issues #2384 and #3975: Tracebacks were not correctly printed when the source file
contains a ``coding:`` header: the wrong line was displayed, and the encoding was not respected.

Patch by Victor Stinner.
2008-10-09 23:37:48 +00:00
Georg Brandl 76e5538749 Some more notes about bytes/string filename APIs. 2008-10-08 16:34:57 +00:00
Amaury Forgeot d'Arc bcbfa64539 The #warning directive is a gcc extension to standard C,
and Microsoft compilers spells it differently.
2008-10-07 21:27:43 +00:00
Amaury Forgeot d'Arc d0ca955d9f #4004: Missing newline in some startup error messages.
Patch by Victor.
2008-10-07 21:06:18 +00:00
Martin v. Löwis 4e0630cb52 Issue #3740: Null-initialize module state.
Reviewed by Benjamin Peterson.
2008-10-07 13:16:28 +00:00
Martin v. Löwis 651423c1eb More bytes vs. strings documentation. 2008-10-07 07:03:04 +00:00
Martin v. Löwis a731b9929f Patch #3187 (file 11721): Document byte vs. string parameters
and results.
2008-10-07 06:36:31 +00:00
Skip Montanaro a5c2a51c1e merge from trunk 2008-10-07 02:51:48 +00:00
Benjamin Peterson 6ccc703865 Merged revisions 66677,66700 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66677 | brett.cannon | 2008-09-28 22:41:21 -0500 (Sun, 28 Sep 2008) | 7 lines

  The _lsprof module could crash the interpreter if it was given an external
  timer that did not return a float and a timer was still running when the
  Profiler object was garbage collected.

  Fixes issue 3895.
  Code review by Benjamin Peterson.
........
  r66700 | brett.cannon | 2008-09-30 12:46:03 -0500 (Tue, 30 Sep 2008) | 5 lines

  Fix a refleak introduced by r66677.

  Fix suggested by Amaury Forgeot d'Arc.
  Closes issue #4003.
........
2008-10-07 02:32:59 +00:00
Benjamin Peterson f259bc42c6 Unblocked revisions 66677 via svnmerge
........
  r66677 | brett.cannon | 2008-09-28 22:41:21 -0500 (Sun, 28 Sep 2008) | 7 lines

  The _lsprof module could crash the interpreter if it was given an external
  timer that did not return a float and a timer was still running when the
  Profiler object was garbage collected.

  Fixes issue 3895.
  Code review by Benjamin Peterson.
........
2008-10-07 02:22:24 +00:00
Brett Cannon 16512cdda7 Merged revisions 66819 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66819 | brett.cannon | 2008-10-06 15:44:37 -0700 (Mon, 06 Oct 2008) | 4 lines

  Add the 'patchcheck' build target to .PHONY.

  Re-closes issue 3758. Thanks to Ralph Corderoy for the catch.
........
2008-10-06 22:48:11 +00:00
Benjamin Peterson 7d7665384c a trival fix to let test_profile pass if it runs after test_cprofile 2008-10-06 22:05:00 +00:00
Benjamin Peterson 4e299c709b unbreak test_cprofile 2008-10-06 21:03:05 +00:00
Martin v. Löwis d8506df229 Merged revisions 66814 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66814 | martin.v.loewis | 2008-10-06 17:15:40 +0200 (Mo, 06 Okt 2008) | 3 lines

  Issue #4014: Don't claim that Python has an Alpha release status, in addition
  to claiming it is Mature.
........
2008-10-06 15:19:21 +00:00
Hirokazu Yamamoto e1cb87ec36 Blocked revisions 66809-66810 via svnmerge
........
  r66809 | hirokazu.yamamoto | 2008-10-06 10:57:03 +0900 | 1 line

  Added the test for issue3762.
........
  r66810 | hirokazu.yamamoto | 2008-10-06 11:41:59 +0900 | 1 line

  More strict test. Consider the case sys.executable itself is symlink.
........
2008-10-06 04:53:43 +00:00
Hirokazu Yamamoto e674840916 Added the test for issue3762. 2008-10-06 04:51:11 +00:00
Raymond Hettinger eba99dfde8 Issue 3412: Mention fractions and decimal in the tutorial section on floating point. 2008-10-05 17:57:52 +00:00
Raymond Hettinger 9fce0ba9e2 Issue 3288: document as_integer_ratio(), fromhex(), and hex(). 2008-10-05 16:46:29 +00:00
Mark Hammond d12dcaea3e Fix [issue4038] py3k error in distutils file_copy exception handlers. r=martin. 2008-10-05 09:00:28 +00:00
Benjamin Peterson e5384b0886 Merged revisions 66670,66681,66688,66696-66699 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66670 | georg.brandl | 2008-09-28 15:01:36 -0500 (Sun, 28 Sep 2008) | 2 lines

  Don't show version in title.
........
  r66681 | georg.brandl | 2008-09-29 11:51:35 -0500 (Mon, 29 Sep 2008) | 2 lines

  Update nasm location.
........
  r66688 | jesse.noller | 2008-09-29 19:15:45 -0500 (Mon, 29 Sep 2008) | 2 lines

  issue3770: if SEM_OPEN is 0, disable the mp.synchronize module, rev. Nick Coghlan, Damien Miller
........
  r66696 | andrew.kuchling | 2008-09-30 07:31:07 -0500 (Tue, 30 Sep 2008) | 1 line

  Edits, and add markup
........
  r66697 | andrew.kuchling | 2008-09-30 08:00:34 -0500 (Tue, 30 Sep 2008) | 1 line

  Markup fix
........
  r66698 | andrew.kuchling | 2008-09-30 08:00:51 -0500 (Tue, 30 Sep 2008) | 1 line

  Markup fixes
........
  r66699 | andrew.kuchling | 2008-09-30 08:01:46 -0500 (Tue, 30 Sep 2008) | 1 line

  Markup fixes.  (optparse.rst probably needs an entire revision pass.)
........
2008-10-04 22:00:42 +00:00
Benjamin Peterson 7d8d9a588c Merged revisions 66797 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r66797 | benjamin.peterson | 2008-10-04 15:55:50 -0500 (Sat, 04 Oct 2008) | 19 lines

  Merged revisions 66707,66775,66782 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r66707 | benjamin.peterson | 2008-09-30 18:27:10 -0500 (Tue, 30 Sep 2008) | 1 line

    fix #4001: fix_imports didn't check for __init__.py before converting to relative imports
  ........
    r66775 | collin.winter | 2008-10-03 12:08:26 -0500 (Fri, 03 Oct 2008) | 4 lines

    Add an alternative iterative pattern matching system that, while slower, correctly parses files that cause the faster recursive pattern matcher to fail with a recursion error. lib2to3 falls back to the iterative matcher if the recursive one fails.

    Fixes http://bugs.python.org/issue2532. Thanks to Nick Edds.
  ........
    r66782 | benjamin.peterson | 2008-10-03 17:51:36 -0500 (Fri, 03 Oct 2008) | 1 line

    add Victor Stinner's fixer for os.getcwdu -> os.getcwd #4023
  ........
................
2008-10-04 21:04:36 +00:00
Georg Brandl b76a2b1305 #4029: fix typo. 2008-10-04 18:37:20 +00:00
Georg Brandl 0df797943c #4000: fix several 2.x atavisms. 2008-10-04 18:33:26 +00:00
Amaury Forgeot d'Arc b186f34384 Issue3187 for Macintosh platform:
macpath.py now accepts both unicode string and bytes as file names.
Also add more tests for these functions.

Reviewed by Benjamin.
2008-10-03 21:57:20 +00:00
Benjamin Peterson f60fe81030 Blocked revisions 66714,66721,66763-66765 via svnmerge
........
  r66714 | barry.warsaw | 2008-10-01 16:46:40 -0500 (Wed, 01 Oct 2008) | 2 lines

  Bumping to 2.6 final.
........
  r66721 | barry.warsaw | 2008-10-01 22:33:51 -0500 (Wed, 01 Oct 2008) | 1 line

  Bump to 2.7a0
........
  r66763 | neal.norwitz | 2008-10-02 23:13:08 -0500 (Thu, 02 Oct 2008) | 1 line

  Update the version to 2.7.  Hopefully this fixes the test_distutils failure
........
  r66764 | martin.v.loewis | 2008-10-03 03:59:41 -0500 (Fri, 03 Oct 2008) | 2 lines

  Bump version to 2.7. Regenerate.
........
  r66765 | martin.v.loewis | 2008-10-03 05:59:55 -0500 (Fri, 03 Oct 2008) | 1 line

  Update version number to 2.7.
........
2008-10-03 21:35:48 +00:00
Amaury Forgeot d'Arc 3b44e6114e Issue3187 again: test_ntpath failed when run with the -bb option
(BytesWarning: Comparison between bytes and string)
2008-10-03 20:32:33 +00:00
Amaury Forgeot d'Arc 84e1715dd7 Make the test more robust in face of remaining files. 2008-10-03 19:34:30 +00:00
Amaury Forgeot d'Arc c72ef8b6df Second part of #3187, for windows:
os and os.path functions now accept both unicode and byte strings for file names.

Reviewed by Guido.
2008-10-03 18:38:26 +00:00
Guido van Rossum 3f2291f802 Change fnmatch.py to use separate caches for str and bytes keys.
This is necessary to pass the tests with -bb.
2008-10-03 16:38:30 +00:00
Hirokazu Yamamoto 7ed519603f Blocked revisions 66768 via svnmerge
........
  r66768 | hirokazu.yamamoto | 2008-10-04 01:07:28 +0900 | 1 line

  Follows to python's version change (VC6)
........
2008-10-03 16:16:20 +00:00
Martin v. Löwis 04dc25c537 Issue #3187: Add sys.setfilesystemencoding. 2008-10-03 16:09:28 +00:00
Benjamin Peterson efb14a8857 update pydoc-topics 2008-10-02 21:02:27 +00:00
Benjamin Peterson 0fe89a0b60 Blocked revisions 66756 via svnmerge
........
  r66756 | benjamin.peterson | 2008-10-02 15:46:58 -0500 (Thu, 02 Oct 2008) | 1 line

  update pydoc topics
........
2008-10-02 20:52:36 +00:00
Martin v. Löwis 5771c55366 Add UUID for 3.0b4. 2008-10-02 20:10:40 +00:00
Martin v. Löwis fc972498d7 Add UUID for 3.1. 2008-10-02 20:09:47 +00:00
Martin v. Löwis 7a63fc4d21 Merged revisions 66752 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66752 | martin.v.loewis | 2008-10-02 22:04:47 +0200 (Do, 02 Okt 2008) | 2 lines

  Add UUID for 2.7.
........
2008-10-02 20:09:01 +00:00
Christian Heimes 1a8501c648 Merged revisions 66748 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66748 | christian.heimes | 2008-10-02 21:47:50 +0200 (Thu, 02 Oct 2008) | 1 line

  Fixed a couple more C99 comments and one occurence of inline.
........

+ another // comment in bytesobject
2008-10-02 19:56:01 +00:00
Benjamin Peterson c472532c0c Blocked revisions 66744 via svnmerge
........
  r66744 | benjamin.peterson | 2008-10-02 14:00:31 -0500 (Thu, 02 Oct 2008) | 1 line

  we're in 2.7 now
........
2008-10-02 19:10:18 +00:00
Guido van Rossum f0af3e30db Issue #3187: Better support for "undecodable" filenames. Code by Victor
Stinner, with small tweaks by GvR.
2008-10-02 18:55:37 +00:00
Christian Heimes fefeca53ee Merged revisions 66739 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66739 | christian.heimes | 2008-10-02 20:33:41 +0200 (Thu, 02 Oct 2008) | 1 line

  Fixed a comment to C89 style as of http://drj11.wordpress.com/2008/10/02/python-and-bragging-about-c89/
........
2008-10-02 18:38:11 +00:00
Guido van Rossum ecc3336f44 Fix svn:ignore properties on these two directories. 2008-10-02 16:57:05 +00:00
Martin v. Löwis f7cef62419 Merged revisions 66722 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66722 | martin.v.loewis | 2008-10-02 13:44:17 +0200 (Do, 02 Okt 2008) | 1 line

  Use CRT 9 policy files.
........
2008-10-02 11:46:09 +00:00
Martin v. Löwis fe21884a60 Merged revisions 66710 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66710 | martin.v.loewis | 2008-10-01 13:19:50 +0200 (Mi, 01 Okt 2008) | 2 lines

  Bug #3989: Package the 2to3 script (as 2to3.py) in the Windows
  installer.
........
2008-10-01 11:22:32 +00:00
Amaury Forgeot d'Arc 58fb905ad0 Fix a probable merge glitch in r66695:
a redundant check that actually belongs to another function.
2008-09-30 20:22:44 +00:00
Benjamin Peterson c9e435ee2b check for errors after PyLong_Ssize_t
patch from Victor Stinner #3977
reviewed by Amaury
2008-09-30 02:22:04 +00:00
Benjamin Peterson a8a93042dc Merged revisions 66693 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66693 | benjamin.peterson | 2008-09-29 21:11:07 -0500 (Mon, 29 Sep 2008) | 4 lines

  Victor Stinner's patches to check the return result of PyLong_Ssize_t

  reviewed by Amaury
........
2008-09-30 02:18:09 +00:00
Benjamin Peterson cb9a5517d0 remove a trace of the cmp argument for list.sort 2008-09-30 02:08:36 +00:00
Benjamin Peterson 05c262171f Blocked revisions 66676,66682,66689 via svnmerge
........
  r66676 | jesus.cea | 2008-09-28 18:24:19 -0500 (Sun, 28 Sep 2008) | 1 line

  bsddb4.7.3pre9 renamed to 4.7.3
........
  r66682 | bill.janssen | 2008-09-29 13:56:38 -0500 (Mon, 29 Sep 2008) | 1 line

  fix for release blocker 3910, 2.6 regression in socket.ssl method
........
  r66689 | benjamin.peterson | 2008-09-29 20:31:49 -0500 (Mon, 29 Sep 2008) | 5 lines

  fix security issue 2: imageop's poor validation of arguments could result in segfaults

  patch by Victor Stinner
  reviewed by myself and Brett
........
2008-09-30 01:53:10 +00:00