python_lang:hongbins-mirror.git
8 years agotag 2.7 alpha 3 r27a3
benjamin.peterson [Sat, 6 Feb 2010 16:41:20 +0000 (16:41 +0000)]
tag 2.7 alpha 3

git-svn-id: http://svn.python.org/projects/python/tags/r27a3@78021 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agobump version to 2.7a3
benjamin.peterson [Sat, 6 Feb 2010 16:37:32 +0000 (16:37 +0000)]
bump version to 2.7a3

git-svn-id: http://svn.python.org/projects/python/trunk@78020 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoReview sysconfig docs.
georg.brandl [Sat, 6 Feb 2010 10:23:16 +0000 (10:23 +0000)]
Review sysconfig docs.

git-svn-id: http://svn.python.org/projects/python/trunk@78019 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7864: make deprecation notices a bit clearer.
georg.brandl [Sat, 6 Feb 2010 10:08:21 +0000 (10:08 +0000)]
#7864: make deprecation notices a bit clearer.

git-svn-id: http://svn.python.org/projects/python/trunk@78018 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoissue #7728: test_timeout was using a hardcoded port, which was
r.david.murray [Sat, 6 Feb 2010 04:27:21 +0000 (04:27 +0000)]
issue #7728: test_timeout was using a hardcoded port, which was
causing buildbot failures.  Changed to use test_support.bind_port.
Patch by Florent Xicluna.

git-svn-id: http://svn.python.org/projects/python/trunk@78014 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agounittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799.
michael.foord [Sat, 6 Feb 2010 00:22:26 +0000 (00:22 +0000)]
unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799.

git-svn-id: http://svn.python.org/projects/python/trunk@78010 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agotest_logging: minor tweaks to timeouts, listening tests marked as skipped.
vinay.sajip [Fri, 5 Feb 2010 23:43:11 +0000 (23:43 +0000)]
test_logging: minor tweaks to timeouts, listening tests marked as skipped.

git-svn-id: http://svn.python.org/projects/python/trunk@78009 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoMinor doc change.
michael.foord [Fri, 5 Feb 2010 23:28:12 +0000 (23:28 +0000)]
Minor doc change.

git-svn-id: http://svn.python.org/projects/python/trunk@78007 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoCorrection to docstring correction.
michael.foord [Fri, 5 Feb 2010 23:22:37 +0000 (23:22 +0000)]
Correction to docstring correction.

git-svn-id: http://svn.python.org/projects/python/trunk@78005 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoImproving docstrings in unittest.TestCase
michael.foord [Fri, 5 Feb 2010 22:55:09 +0000 (22:55 +0000)]
Improving docstrings in unittest.TestCase

git-svn-id: http://svn.python.org/projects/python/trunk@78003 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdding versionadded to test skipping section of unittest documentation.
michael.foord [Fri, 5 Feb 2010 21:45:12 +0000 (21:45 +0000)]
Adding versionadded to test skipping section of unittest documentation.

git-svn-id: http://svn.python.org/projects/python/trunk@78001 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoExample of using assertRaises as a context manager in the unittest documentation.
michael.foord [Fri, 5 Feb 2010 21:07:38 +0000 (21:07 +0000)]
Example of using assertRaises as a context manager in the unittest documentation.

git-svn-id: http://svn.python.org/projects/python/trunk@77999 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoCloses issue 7030.
michael.foord [Fri, 5 Feb 2010 20:52:14 +0000 (20:52 +0000)]
Closes issue 7030.

git-svn-id: http://svn.python.org/projects/python/trunk@77997 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoResolve bug 7847 by including documentation for -J, -U, and -X under "Options
barry.warsaw [Fri, 5 Feb 2010 18:45:25 +0000 (18:45 +0000)]
Resolve bug 7847 by including documentation for -J, -U, and -X under "Options
you shouldn't use".

git-svn-id: http://svn.python.org/projects/python/trunk@77992 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #5677: Explicitly forbid write operations on read-only file objects,
antoine.pitrou [Fri, 5 Feb 2010 17:05:54 +0000 (17:05 +0000)]
Issue #5677: Explicitly forbid write operations on read-only file objects,
and read operations on write-only file objects.  On Windows, the system C
library would return a bogus result; on Solaris, it was possible to crash
the interpreter.  Patch by Stefan Krah.

git-svn-id: http://svn.python.org/projects/python/trunk@77989 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7857: test_logging: listener tests disabled for now.
vinay.sajip [Fri, 5 Feb 2010 15:40:20 +0000 (15:40 +0000)]
Issue #7857: test_logging: listener tests disabled for now.

git-svn-id: http://svn.python.org/projects/python/trunk@77986 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7857: test_logging: listener test now uses find_unused_port().
vinay.sajip [Fri, 5 Feb 2010 14:52:05 +0000 (14:52 +0000)]
Issue #7857: test_logging: listener test now uses find_unused_port().

git-svn-id: http://svn.python.org/projects/python/trunk@77985 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agonormalize exceptions passed to the __exit__ method #7853
benjamin.peterson [Fri, 5 Feb 2010 02:12:14 +0000 (02:12 +0000)]
normalize exceptions passed to the __exit__ method #7853

In Python 2.x, exceptions in finally blocks are not normalized.  Since with
statements are implemented using finally blocks, ceval.c had to be tweaked to
distinguish between with finally blocks and normal ones.

A test for the finalization of generators containing with statements was also
added.

git-svn-id: http://svn.python.org/projects/python/trunk@77983 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoadd a test for #7853; the exception must be normalized for with
benjamin.peterson [Fri, 5 Feb 2010 01:53:27 +0000 (01:53 +0000)]
add a test for #7853; the exception must be normalized for with

git-svn-id: http://svn.python.org/projects/python/trunk@77980 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdded unit test for cfg:// resolution.
vinay.sajip [Thu, 4 Feb 2010 21:40:56 +0000 (21:40 +0000)]
Added unit test for cfg:// resolution.

git-svn-id: http://svn.python.org/projects/python/trunk@77979 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7851: logging: clarification on logging configuration files.
vinay.sajip [Thu, 4 Feb 2010 20:23:45 +0000 (20:23 +0000)]
Issue #7851: logging: clarification on logging configuration files.

git-svn-id: http://svn.python.org/projects/python/trunk@77973 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #4772: Raise a ValueError when an unknown Bluetooth protocol is
antoine.pitrou [Thu, 4 Feb 2010 20:20:18 +0000 (20:20 +0000)]
Issue #4772: Raise a ValueError when an unknown Bluetooth protocol is
specified, rather than fall through to AF_PACKET (in the `socket` module).
Also, raise ValueError rather than TypeError when an unknown TIPC address
type is specified.  Patch by Brian Curtin.

git-svn-id: http://svn.python.org/projects/python/trunk@77970 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoRemoved spurious print statement.
vinay.sajip [Thu, 4 Feb 2010 20:18:28 +0000 (20:18 +0000)]
Removed spurious print statement.

git-svn-id: http://svn.python.org/projects/python/trunk@77969 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoUse correct assert* methods in the examples.
ezio.melotti [Thu, 4 Feb 2010 20:06:38 +0000 (20:06 +0000)]
Use correct assert* methods in the examples.

git-svn-id: http://svn.python.org/projects/python/trunk@77968 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoLogging: Implemented PEP 391.
vinay.sajip [Thu, 4 Feb 2010 18:48:53 +0000 (18:48 +0000)]
Logging: Implemented PEP 391.

git-svn-id: http://svn.python.org/projects/python/trunk@77967 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdd Chris Rebert to ACKS for issue 6760 Popen doc improvements.
r.david.murray [Thu, 4 Feb 2010 16:33:31 +0000 (16:33 +0000)]
Add Chris Rebert to ACKS for issue 6760 Popen doc improvements.

git-svn-id: http://svn.python.org/projects/python/trunk@77960 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue 6760: Clarify args handling for subprocess.Popen. Patch by Chris Rebert
nick.coghlan [Thu, 4 Feb 2010 12:43:58 +0000 (12:43 +0000)]
Issue 6760: Clarify args handling for subprocess.Popen. Patch by Chris Rebert

git-svn-id: http://svn.python.org/projects/python/trunk@77959 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoFix a typo in a docstring introduced in r77956.
brett.cannon [Wed, 3 Feb 2010 22:13:44 +0000 (22:13 +0000)]
Fix a typo in a docstring introduced in r77956.

git-svn-id: http://svn.python.org/projects/python/trunk@77957 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoUpdate a docstring to suggest using importlib.import_module instead of calling __impo...
brett.cannon [Wed, 3 Feb 2010 22:11:54 +0000 (22:11 +0000)]
Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.

git-svn-id: http://svn.python.org/projects/python/trunk@77956 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoFix test_inspect.py data to match recent change to inspect_fodder.py (r77942).
mark.dickinson [Wed, 3 Feb 2010 16:50:14 +0000 (16:50 +0000)]
Fix test_inspect.py data to match recent change to inspect_fodder.py (r77942).

git-svn-id: http://svn.python.org/projects/python/trunk@77952 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoleaving global attributes for backward compat
tarek.ziade [Wed, 3 Feb 2010 15:38:12 +0000 (15:38 +0000)]
leaving global attributes for backward compat

git-svn-id: http://svn.python.org/projects/python/trunk@77949 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoCorrected list of attributes exposed by sys.getwindowsversion.
eric.smith [Wed, 3 Feb 2010 14:17:50 +0000 (14:17 +0000)]
Corrected list of attributes exposed by sys.getwindowsversion.

git-svn-id: http://svn.python.org/projects/python/trunk@77944 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoExplicitly mention the default value for formatdate's usegmt parameter.
r.david.murray [Wed, 3 Feb 2010 13:36:23 +0000 (13:36 +0000)]
Explicitly mention the default value for formatdate's usegmt parameter.

git-svn-id: http://svn.python.org/projects/python/trunk@77943 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7092: Silence more py3k warnings. Patch by Florent Xicluna.
ezio.melotti [Wed, 3 Feb 2010 05:37:26 +0000 (05:37 +0000)]
#7092: Silence more py3k warnings. Patch by Florent Xicluna.

git-svn-id: http://svn.python.org/projects/python/trunk@77942 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdd various items
andrew.kuchling [Wed, 3 Feb 2010 02:19:14 +0000 (02:19 +0000)]
Add various items

git-svn-id: http://svn.python.org/projects/python/trunk@77936 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoadded a note in the whatsnew file for sysconfig
tarek.ziade [Tue, 2 Feb 2010 23:39:40 +0000 (23:39 +0000)]
added a note in the whatsnew file for sysconfig

git-svn-id: http://svn.python.org/projects/python/trunk@77930 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agofixed a typo on distutils.sysconfig. thanks arfever
tarek.ziade [Tue, 2 Feb 2010 22:55:00 +0000 (22:55 +0000)]
fixed a typo on distutils.sysconfig. thanks arfever

git-svn-id: http://svn.python.org/projects/python/trunk@77922 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agosysconfig.get_scheme_names now returns a sorted tuple
tarek.ziade [Tue, 2 Feb 2010 22:54:28 +0000 (22:54 +0000)]
sysconfig.get_scheme_names now returns a sorted tuple

git-svn-id: http://svn.python.org/projects/python/trunk@77921 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agomodule reorganization + missing doctests
tarek.ziade [Tue, 2 Feb 2010 22:50:23 +0000 (22:50 +0000)]
module reorganization + missing doctests

git-svn-id: http://svn.python.org/projects/python/trunk@77919 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7385: Fix a crash in `MemoryView_FromObject` when
antoine.pitrou [Tue, 2 Feb 2010 22:36:17 +0000 (22:36 +0000)]
Issue #7385: Fix a crash in `MemoryView_FromObject` when
`PyObject_GetBuffer` fails.  Patch by Florent Xicluna.

git-svn-id: http://svn.python.org/projects/python/trunk@77916 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agofirst version of the sysconfig module documentation
tarek.ziade [Tue, 2 Feb 2010 22:27:58 +0000 (22:27 +0000)]
first version of the sysconfig module documentation

git-svn-id: http://svn.python.org/projects/python/trunk@77914 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7092: Silence py3k warnings in test_exceptions and test_pep352. Patch by Florent...
ezio.melotti [Tue, 2 Feb 2010 17:34:37 +0000 (17:34 +0000)]
#7092: Silence py3k warnings in test_exceptions and test_pep352. Patch by Florent Xicluna.

git-svn-id: http://svn.python.org/projects/python/trunk@77913 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoFix idioms and a couple of py3k warnings. Patch by Florent Xicluna.
ezio.melotti [Tue, 2 Feb 2010 15:57:45 +0000 (15:57 +0000)]
Fix idioms and a couple of py3k warnings. Patch by Florent Xicluna.

git-svn-id: http://svn.python.org/projects/python/trunk@77912 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoSilence a couple of -3 warnings
ezio.melotti [Tue, 2 Feb 2010 15:12:42 +0000 (15:12 +0000)]
Silence a couple of -3 warnings

git-svn-id: http://svn.python.org/projects/python/trunk@77911 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7092: silence py3k warnings for bsddb. Patch by Florent Xicluna.
ezio.melotti [Tue, 2 Feb 2010 08:37:35 +0000 (08:37 +0000)]
#7092: silence py3k warnings for bsddb. Patch by Florent Xicluna.

git-svn-id: http://svn.python.org/projects/python/trunk@77910 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdd various items
andrew.kuchling [Mon, 1 Feb 2010 02:04:26 +0000 (02:04 +0000)]
Add various items

git-svn-id: http://svn.python.org/projects/python/trunk@77902 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoMerged revisions 77855-77856,77870 via svnmerge from
martin.v.loewis [Mon, 1 Feb 2010 01:15:39 +0000 (01:15 +0000)]
Merged revisions 77855-77856,77870 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r77855 | benjamin.peterson | 2010-01-30 17:32:05 +0100 (Sa, 30 Jan 2010) | 1 line

  don't return node if it is not changed
........
  r77856 | benjamin.peterson | 2010-01-30 17:35:29 +0100 (Sa, 30 Jan 2010) | 1 line

  return None to indicate no change
........
  r77870 | benjamin.peterson | 2010-01-31 02:21:26 +0100 (So, 31 Jan 2010) | 1 line

  never return the original node given to transform()
........

git-svn-id: http://svn.python.org/projects/python/trunk@77898 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7819: Check sys.call_tracing() arguments types.
victor.stinner [Sun, 31 Jan 2010 22:32:15 +0000 (22:32 +0000)]
Issue #7819: Check sys.call_tracing() arguments types.

py3k was already patched by issue #3661.

git-svn-id: http://svn.python.org/projects/python/trunk@77892 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago- Issue #6939: Fix file I/O objects in the `io` module to keep the original
antoine.pitrou [Sun, 31 Jan 2010 22:26:04 +0000 (22:26 +0000)]
- Issue #6939: Fix file I/O objects in the `io` module to keep the original
  file position when calling `truncate()`.  It would previously change the
  file position to the given argument, which goes against the tradition of
  ftruncate() and other truncation APIs.  Patch by Pascal Chambon.

git-svn-id: http://svn.python.org/projects/python/trunk@77890 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoMinor modification to unittest documentation.
michael.foord [Sun, 31 Jan 2010 19:59:26 +0000 (19:59 +0000)]
Minor modification to unittest documentation.

git-svn-id: http://svn.python.org/projects/python/trunk@77889 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoFix-up ftplib documentation:
georg.brandl [Sun, 31 Jan 2010 18:51:49 +0000 (18:51 +0000)]
Fix-up ftplib documentation:
move exception descriptions to toplevel, not inside a class
remove attribution in "versionadded"
spell and grammar check docstring of FTP_TLS

git-svn-id: http://svn.python.org/projects/python/trunk@77887 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agomove distutils.rst to different toc
benjamin.peterson [Sun, 31 Jan 2010 18:09:34 +0000 (18:09 +0000)]
move distutils.rst to different toc

git-svn-id: http://svn.python.org/projects/python/trunk@77886 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agofix windows buildbot
benjamin.peterson [Sun, 31 Jan 2010 18:02:35 +0000 (18:02 +0000)]
fix windows buildbot

git-svn-id: http://svn.python.org/projects/python/trunk@77885 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago- Fix typo in os.execvp docstring.
matthias.klose [Sun, 31 Jan 2010 16:46:26 +0000 (16:46 +0000)]
- Fix typo in os.execvp docstring.

git-svn-id: http://svn.python.org/projects/python/trunk@77879 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago- Update python manual page (options -B, -O0, -s, environment variables
matthias.klose [Sun, 31 Jan 2010 16:05:13 +0000 (16:05 +0000)]
- Update python manual page (options -B, -O0, -s, environment variables
  PYTHONDONTWRITEBYTECODE, PYTHONNOUSERSITE).

git-svn-id: http://svn.python.org/projects/python/trunk@77875 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7092: silence more -3 and -Wd warnings
ezio.melotti [Sun, 31 Jan 2010 11:46:54 +0000 (11:46 +0000)]
#7092: silence more -3 and -Wd warnings

git-svn-id: http://svn.python.org/projects/python/trunk@77871 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agobe robust against test being run over and over (such as -R)
benjamin.peterson [Sat, 30 Jan 2010 23:28:38 +0000 (23:28 +0000)]
be robust against test being run over and over (such as -R)

git-svn-id: http://svn.python.org/projects/python/trunk@77867 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agomove test outside WITH_THREAD section
benjamin.peterson [Sat, 30 Jan 2010 23:26:05 +0000 (23:26 +0000)]
move test outside WITH_THREAD section

git-svn-id: http://svn.python.org/projects/python/trunk@77866 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7802: fix invalid example (heh).
georg.brandl [Sat, 30 Jan 2010 17:57:48 +0000 (17:57 +0000)]
#7802: fix invalid example (heh).

git-svn-id: http://svn.python.org/projects/python/trunk@77858 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoUse the correct markup for args
ezio.melotti [Sat, 30 Jan 2010 13:27:05 +0000 (13:27 +0000)]
Use the correct markup for args

git-svn-id: http://svn.python.org/projects/python/trunk@77851 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoRelocate a couple of stars and remove redundant backticks
ezio.melotti [Sat, 30 Jan 2010 13:08:54 +0000 (13:08 +0000)]
Relocate a couple of stars and remove redundant backticks

git-svn-id: http://svn.python.org/projects/python/trunk@77850 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoMerged revisions 77419,77435 via svnmerge from
martin.v.loewis [Sat, 30 Jan 2010 10:56:23 +0000 (10:56 +0000)]
Merged revisions 77419,77435 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r77419 | benjamin.peterson | 2010-01-10 21:39:48 +0100 (So, 10 Jan 2010) | 1 line

  enclose path in quotes to handle paths with spaces correctly #7666
........
  r77435 | alexandre.vassalotti | 2010-01-12 01:36:54 +0100 (Di, 12 Jan 2010) | 2 lines

  Issue #1967: Add fixer for dictionary views.
........

git-svn-id: http://svn.python.org/projects/python/trunk@77846 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, a
mark.dickinson [Sat, 30 Jan 2010 10:08:33 +0000 (10:08 +0000)]
Issue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, a
long long variant of PyLong_AsLongAndOverflow.  Patch by Case Van
Horsen.

git-svn-id: http://svn.python.org/projects/python/trunk@77842 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7092: silence py3k warnings for deprecated modules
ezio.melotti [Sat, 30 Jan 2010 07:22:54 +0000 (07:22 +0000)]
#7092: silence py3k warnings for deprecated modules

git-svn-id: http://svn.python.org/projects/python/trunk@77841 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7801: fix xmlrpclib binary example, open the picture in binary mode
victor.stinner [Sat, 30 Jan 2010 02:00:26 +0000 (02:00 +0000)]
#7801: fix xmlrpclib binary example, open the picture in binary mode

git-svn-id: http://svn.python.org/projects/python/trunk@77836 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdd Victor Stinner.
martin.v.loewis [Sat, 30 Jan 2010 00:15:44 +0000 (00:15 +0000)]
Add Victor Stinner.

git-svn-id: http://svn.python.org/projects/python/trunk@77834 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoFix typo in assertSequenceEqual docstring.
r.david.murray [Fri, 29 Jan 2010 19:35:39 +0000 (19:35 +0000)]
Fix typo in assertSequenceEqual docstring.

git-svn-id: http://svn.python.org/projects/python/trunk@77828 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7788: Fix a crash produced by deleting a list slice with huge
mark.dickinson [Fri, 29 Jan 2010 17:11:39 +0000 (17:11 +0000)]
Issue #7788: Fix a crash produced by deleting a list slice with huge
step value.  Patch by Marcin Bachry.

git-svn-id: http://svn.python.org/projects/python/trunk@77821 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoChange error report when the object passed to suite.addTest is not
r.david.murray [Thu, 28 Jan 2010 21:16:33 +0000 (21:16 +0000)]
Change error report when the object passed to suite.addTest is not
callable to include the repr of the invalid object.

git-svn-id: http://svn.python.org/projects/python/trunk@77815 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoavoid a py3k warning from __hash__
benjamin.peterson [Thu, 28 Jan 2010 02:18:25 +0000 (02:18 +0000)]
avoid a py3k warning from __hash__

git-svn-id: http://svn.python.org/projects/python/trunk@77812 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoan -> a
benjamin.peterson [Thu, 28 Jan 2010 02:15:02 +0000 (02:15 +0000)]
an -> a

git-svn-id: http://svn.python.org/projects/python/trunk@77811 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoavoid to use zlib when the compress type is not ZIP_DEFLATED
ezio.melotti [Thu, 28 Jan 2010 01:41:30 +0000 (01:41 +0000)]
avoid to use zlib when the compress type is not ZIP_DEFLATED

git-svn-id: http://svn.python.org/projects/python/trunk@77809 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoadd compat note
benjamin.peterson [Thu, 28 Jan 2010 01:24:46 +0000 (01:24 +0000)]
add compat note

git-svn-id: http://svn.python.org/projects/python/trunk@77806 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7610: Reworked implementation of the internal
antoine.pitrou [Wed, 27 Jan 2010 20:59:50 +0000 (20:59 +0000)]
Issue #7610: Reworked implementation of the internal
:class:`zipfile.ZipExtFile` class used to represent files stored inside
an archive.  The new implementation is significantly faster and can
be wrapped in a :class:`io.BufferedReader` object for more speedups.
It also solves an issue where interleaved calls to `read()` and
`readline()` give wrong results.  Patch by Nir Aides.

git-svn-id: http://svn.python.org/projects/python/trunk@77798 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7765: typos
ezio.melotti [Wed, 27 Jan 2010 20:25:11 +0000 (20:25 +0000)]
#7765: typos

git-svn-id: http://svn.python.org/projects/python/trunk@77796 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #6963: Added maxtasksperchild argument to multiprocessing.Pool
jesse.noller [Wed, 27 Jan 2010 03:05:57 +0000 (03:05 +0000)]
Issue #6963: Added maxtasksperchild argument to multiprocessing.Pool

git-svn-id: http://svn.python.org/projects/python/trunk@77794 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoraise a clear TypeError when trying to register a non-class
benjamin.peterson [Wed, 27 Jan 2010 02:16:42 +0000 (02:16 +0000)]
raise a clear TypeError when trying to register a non-class

git-svn-id: http://svn.python.org/projects/python/trunk@77789 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agofor UserDict to be compatible with abcs, it must subclass object
benjamin.peterson [Wed, 27 Jan 2010 02:15:28 +0000 (02:15 +0000)]
for UserDict to be compatible with abcs, it must subclass object

git-svn-id: http://svn.python.org/projects/python/trunk@77788 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdded named (but not numbered) attributes to sys.getwindowsversion() test.
eric.smith [Wed, 27 Jan 2010 02:06:25 +0000 (02:06 +0000)]
Added named (but not numbered) attributes to sys.getwindowsversion() test.

git-svn-id: http://svn.python.org/projects/python/trunk@77784 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoSwitch to test_support.get_attribute.
eric.smith [Wed, 27 Jan 2010 01:21:15 +0000 (01:21 +0000)]
Switch to test_support.get_attribute.

git-svn-id: http://svn.python.org/projects/python/trunk@77775 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoRemoved unneeded test.
eric.smith [Wed, 27 Jan 2010 00:58:43 +0000 (00:58 +0000)]
Removed unneeded test.

git-svn-id: http://svn.python.org/projects/python/trunk@77771 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoFix type on getwindowsversion documentation. Thanks Taggnostr.
eric.smith [Wed, 27 Jan 2010 00:55:16 +0000 (00:55 +0000)]
Fix type on getwindowsversion documentation. Thanks Taggnostr.

git-svn-id: http://svn.python.org/projects/python/trunk@77767 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7766: Change sys.getwindowsversion() return value to a named tuple and add...
eric.smith [Wed, 27 Jan 2010 00:28:29 +0000 (00:28 +0000)]
Issue #7766: Change sys.getwindowsversion() return value to a named tuple and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type.

git-svn-id: http://svn.python.org/projects/python/trunk@77763 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoadded local get_platform/set_platform APIs in distutils.sysconfig
tarek.ziade [Tue, 26 Jan 2010 22:46:15 +0000 (22:46 +0000)]
added local get_platform/set_platform APIs in distutils.sysconfig

git-svn-id: http://svn.python.org/projects/python/trunk@77761 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoreintroduced the names in Distutils for APIs that were relocated
tarek.ziade [Tue, 26 Jan 2010 21:21:54 +0000 (21:21 +0000)]
reintroduced the names in Distutils for APIs that were relocated

git-svn-id: http://svn.python.org/projects/python/trunk@77759 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agofixed bdist_msi imports and added a test module for distutils.command.bdist_msi
tarek.ziade [Tue, 26 Jan 2010 17:20:37 +0000 (17:20 +0000)]
fixed bdist_msi imports and added a test module for distutils.command.bdist_msi

git-svn-id: http://svn.python.org/projects/python/trunk@77756 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7092: fix DeprecationWarnings for json when the tests are run with -3 -Wd.
ezio.melotti [Tue, 26 Jan 2010 15:57:21 +0000 (15:57 +0000)]
#7092: fix DeprecationWarnings for json when the tests are run with -3 -Wd.

git-svn-id: http://svn.python.org/projects/python/trunk@77755 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoswitched the call order so this call works without suffering from issue #7774
tarek.ziade [Mon, 25 Jan 2010 23:19:56 +0000 (23:19 +0000)]
switched the call order so this call works without suffering from issue #7774

git-svn-id: http://svn.python.org/projects/python/trunk@77752 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdd a news entry for the functions verify and vereq that have been removed in r77729...
ezio.melotti [Mon, 25 Jan 2010 12:37:02 +0000 (12:37 +0000)]
Add a news entry for the functions verify and vereq that have been removed in r77729 and r77731

git-svn-id: http://svn.python.org/projects/python/trunk@77749 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7775: fixed docstring for rpartition
ezio.melotti [Mon, 25 Jan 2010 11:24:37 +0000 (11:24 +0000)]
#7775: fixed docstring for rpartition

git-svn-id: http://svn.python.org/projects/python/trunk@77743 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoAdded a note about Event.is_set() syntax being new to 2.6
facundo.batista [Mon, 25 Jan 2010 06:15:01 +0000 (06:15 +0000)]
Added a note about Event.is_set() syntax being new to 2.6

git-svn-id: http://svn.python.org/projects/python/trunk@77741 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agocompare types with is not ==
benjamin.peterson [Mon, 25 Jan 2010 03:58:21 +0000 (03:58 +0000)]
compare types with is not ==

git-svn-id: http://svn.python.org/projects/python/trunk@77740 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agomention from_float() in error message
benjamin.peterson [Mon, 25 Jan 2010 03:52:52 +0000 (03:52 +0000)]
mention from_float() in error message

git-svn-id: http://svn.python.org/projects/python/trunk@77739 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agofix an UnboundLocalError when the release file is empty #7773
benjamin.peterson [Mon, 25 Jan 2010 03:31:13 +0000 (03:31 +0000)]
fix an UnboundLocalError when the release file is empty #7773

git-svn-id: http://svn.python.org/projects/python/trunk@77735 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#7269: fix failures in test_bsddb3. Patch by Florent Xicluna.
ezio.melotti [Sun, 24 Jan 2010 21:47:59 +0000 (21:47 +0000)]
#7269: fix failures in test_bsddb3. Patch by Florent Xicluna.

git-svn-id: http://svn.python.org/projects/python/trunk@77733 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoremove archaic functions from test_support
ezio.melotti [Sun, 24 Jan 2010 20:48:35 +0000 (20:48 +0000)]
remove archaic functions from test_support

git-svn-id: http://svn.python.org/projects/python/trunk@77729 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agouse assert[Not]IsInstance where appropriate
ezio.melotti [Sun, 24 Jan 2010 16:58:36 +0000 (16:58 +0000)]
use assert[Not]IsInstance where appropriate

git-svn-id: http://svn.python.org/projects/python/trunk@77727 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoFixed #7748: now upload and register commands don't need to force the encoding anymor...
tarek.ziade [Sun, 24 Jan 2010 00:33:32 +0000 (00:33 +0000)]
Fixed #7748: now upload and register commands don't need to force the encoding anymore : DistributionMetada returns utf8 strings

git-svn-id: http://svn.python.org/projects/python/trunk@77717 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agouse assert[Not]In where appropriate
ezio.melotti [Sat, 23 Jan 2010 23:04:36 +0000 (23:04 +0000)]
use assert[Not]In where appropriate

git-svn-id: http://svn.python.org/projects/python/trunk@77715 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agodtoa.c fix from upstream that fixes incorrectly rounded results for certain subnormal...
mark.dickinson [Sat, 23 Jan 2010 21:25:53 +0000 (21:25 +0000)]
dtoa.c fix from upstream that fixes incorrectly rounded results for certain subnormals that are also halfway cases.

git-svn-id: http://svn.python.org/projects/python/trunk@77714 6015fed2-1504-0410-9fe1-9d1591cc4771