Commit Graph

37428 Commits

Author SHA1 Message Date
Barry Warsaw e94a37f3a1 Benjamin Peterson's patch to fix bug 3661, sys.call_tracing segfaults. 2008-10-17 01:29:56 +00:00
Barry Warsaw 460ce2abf7 Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in
OpenBSD 4.4.
2008-10-17 01:15:29 +00:00
Benjamin Peterson 9b6df6afe0 add tests for PyInstanceMethod_Type 2008-10-16 23:56:29 +00:00
Benjamin Peterson a3b341f142 Blocked revisions 66386 via svnmerge
........
  r66386 | nick.coghlan | 2008-09-11 07:11:06 -0500 (Thu, 11 Sep 2008) | 1 line

  Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
........
2008-10-16 23:52:53 +00:00
Benjamin Peterson fcf5d639f5 forward port r66386 2008-10-16 23:24:44 +00:00
Benjamin Peterson d31fdc547b Unblocked revisions 66386 via svnmerge
........
  r66386 | nick.coghlan | 2008-09-11 07:11:06 -0500 (Thu, 11 Sep 2008) | 1 line

  Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
........
2008-10-16 22:49:08 +00:00
Benjamin Peterson 8e8c2152fb Merged revisions 66938,66942 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66938 | benjamin.peterson | 2008-10-16 16:27:54 -0500 (Thu, 16 Oct 2008) | 1 line

  fix possible ref leak
........
  r66942 | benjamin.peterson | 2008-10-16 16:48:06 -0500 (Thu, 16 Oct 2008) | 1 line

  fix more possible ref leaks in _json and use Py_CLEAR
........
2008-10-16 21:56:24 +00:00
Benjamin Peterson a13d475901 merge r66932 and add a few py3k only checks 2008-10-16 21:17:24 +00:00
Benjamin Peterson 60192084c4 remove some more references to __cmp__ #1717 2008-10-16 19:34:46 +00:00
Benjamin Peterson aaebe1c11d use bytes throughout telnetlib docs 2008-10-15 22:28:54 +00:00
Benjamin Peterson 3de7fb86fc Victor Stinner's patch to make telnetlib use bytes 3725 2008-10-15 20:54:24 +00:00
Martin v. Löwis 33b6450d23 Issue #4072: Restore build_py_2to3. Add a distutils demo for
build_py_2to3.
2008-10-15 05:58:17 +00:00
Benjamin Peterson aa3066925a correct changed import 2008-10-15 03:09:45 +00:00
Benjamin Peterson 6c940d6159 Merged revisions 66894 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66894 | benjamin.peterson | 2008-10-14 17:37:18 -0500 (Tue, 14 Oct 2008) | 1 line

  remove set compat cruft
........
2008-10-14 23:07:40 +00:00
Martin v. Löwis f63921f9d0 Merged revisions 66881 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66881 | martin.v.loewis | 2008-10-13 13:23:35 +0200 (Mo, 13 Okt 2008) | 2 lines

  Issue #4018: Disable "for me" installations on Vista.
........
2008-10-13 11:30:30 +00:00
Benjamin Peterson 1c9313f7db remove a mention of backtick repr 2008-10-12 12:51:12 +00:00
Benjamin Peterson 1bc15c21d6 fix merge boo-boo 2008-10-11 02:19:18 +00:00
Benjamin Peterson f10a79aad4 merge from trunk 2008-10-11 00:49:57 +00:00
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