python_lang:hongbins-mirror.git
8 years agotag 2.7 alpha 4 r27a4
benjamin.peterson [Sat, 6 Mar 2010 20:37:03 +0000 (20:37 +0000)]
tag 2.7 alpha 4

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

8 years agobump version to 2.7a4
benjamin.peterson [Sat, 6 Mar 2010 20:34:14 +0000 (20:34 +0000)]
bump version to 2.7a4

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

8 years agoSkip test_send_signal, test_kill, test_terminate on win32 platforms, for 2.7a4 release.
florent.xicluna [Sat, 6 Mar 2010 19:43:41 +0000 (19:43 +0000)]
Skip test_send_signal, test_kill, test_terminate on win32 platforms, for 2.7a4 release.

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

8 years agoMinor tweaking of previous r78734, and add a NEWS entry.
florent.xicluna [Sat, 6 Mar 2010 18:52:52 +0000 (18:52 +0000)]
Minor tweaking of previous r78734, and add a NEWS entry.

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

8 years agoCreate test_genericpath.CommonTest and reuse it to test other path modules.
florent.xicluna [Sat, 6 Mar 2010 18:07:18 +0000 (18:07 +0000)]
Create test_genericpath.CommonTest and reuse it to test other path modules.

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

8 years agoDo not print the header lines when running a single test.
florent.xicluna [Sat, 6 Mar 2010 17:24:36 +0000 (17:24 +0000)]
Do not print the header lines when running a single test.

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

8 years agoAdded checks for tuples in dictConfig.
vinay.sajip [Sat, 6 Mar 2010 15:56:03 +0000 (15:56 +0000)]
Added checks for tuples in dictConfig.

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

8 years agoAdded schema version test in dictConfig.
vinay.sajip [Sat, 6 Mar 2010 15:12:08 +0000 (15:12 +0000)]
Added schema version test in dictConfig.

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

8 years agoBackport "test.regrtest -R 2:3" syntax from py3k branch, and other minor adjustments.
florent.xicluna [Sat, 6 Mar 2010 14:38:09 +0000 (14:38 +0000)]
Backport "test.regrtest -R 2:3" syntax from py3k branch, and other minor adjustments.

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

8 years ago#6906: TCL_LIBRARY and TK_LIBRARY environment variables should be encoded.
florent.xicluna [Sat, 6 Mar 2010 11:01:08 +0000 (11:01 +0000)]
#6906: TCL_LIBRARY and TK_LIBRARY environment variables should be encoded.

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

8 years ago#2777: Apply same recipe on win32, i.e. do not inherit file handles.
florent.xicluna [Sat, 6 Mar 2010 09:54:14 +0000 (09:54 +0000)]
#2777: Apply same recipe on win32, i.e. do not inherit file handles.

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

8 years agoPrint platform information to stdout, to help troubleshooting platform-specific failures.
florent.xicluna [Sat, 6 Mar 2010 09:11:55 +0000 (09:11 +0000)]
Print platform information to stdout, to help troubleshooting platform-specific failures.

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

8 years agoKeep the test files in the ./build/ subdirectory, if Python is not installed.
florent.xicluna [Sat, 6 Mar 2010 08:07:44 +0000 (08:07 +0000)]
Keep the test files in the ./build/ subdirectory, if Python is not installed.
Remove two hacks which are no longer needed after #7712, because all __file__ attributes are absolute.

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

8 years agoCall setreuid and setregid in a subprocess to avoid altering the test runner's
gregory.p.smith [Sat, 6 Mar 2010 07:35:19 +0000 (07:35 +0000)]
Call setreuid and setregid in a subprocess to avoid altering the test runner's
process state.  Should fix issue8045.

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

8 years agosettscdump is definitely an implementation detail
benjamin.peterson [Sat, 6 Mar 2010 03:13:33 +0000 (03:13 +0000)]
settscdump is definitely an implementation detail

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

8 years agosearch in the alternative location for VCExpress
tarek.ziade [Sat, 6 Mar 2010 02:17:28 +0000 (02:17 +0000)]
search in the alternative location for VCExpress

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

8 years agofixed various failures and environment alterations in distutils.test_build_ext
tarek.ziade [Sat, 6 Mar 2010 02:11:14 +0000 (02:11 +0000)]
fixed various failures and environment alterations in distutils.test_build_ext

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

8 years agofiles used by win32 tests
tarek.ziade [Sat, 6 Mar 2010 01:27:09 +0000 (01:27 +0000)]
files used by win32 tests

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

8 years agosimplified the fallback case
tarek.ziade [Sat, 6 Mar 2010 01:23:21 +0000 (01:23 +0000)]
simplified the fallback case

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

8 years agoprovide a fallback for xxmodule.c in case the buildir is not present
tarek.ziade [Sat, 6 Mar 2010 01:18:27 +0000 (01:18 +0000)]
provide a fallback for xxmodule.c in case the buildir is not present

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

8 years agocopied back the build_ext tests from 2.6
tarek.ziade [Sat, 6 Mar 2010 01:04:14 +0000 (01:04 +0000)]
copied back the build_ext tests from 2.6

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

8 years ago#2777: Apply same recipe for test_terminate and test_kill, i.e. close or redirect...
florent.xicluna [Sat, 6 Mar 2010 00:16:57 +0000 (00:16 +0000)]
#2777: Apply same recipe for test_terminate and test_kill, i.e. close or redirect fds.

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

8 years agoFactored out time usage determination into a method, to facilitate alternative format...
vinay.sajip [Fri, 5 Mar 2010 22:11:24 +0000 (22:11 +0000)]
Factored out time usage determination into a method, to facilitate alternative formatting implementations in the future.

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

8 years ago#2777: Handle fds more carefully to try to fix some x86-Linux failures (namely, neal...
florent.xicluna [Fri, 5 Mar 2010 19:31:21 +0000 (19:31 +0000)]
#2777: Handle fds more carefully to try to fix some x86-Linux failures (namely, neal bot and twisted bot).

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

8 years agoRemove the redundant #define: PY_STRUCT_FLOAT_COERCE
mark.dickinson [Fri, 5 Mar 2010 14:50:22 +0000 (14:50 +0000)]
Remove the redundant #define: PY_STRUCT_FLOAT_COERCE

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

8 years agoFix incorrect stacklevel for DeprecationWarnings originating from the struct module.
mark.dickinson [Fri, 5 Mar 2010 14:36:20 +0000 (14:36 +0000)]
Fix incorrect stacklevel for DeprecationWarnings originating from the struct module.
Also clean up related tests in test_struct.
The stacklevel fix should be backported to 2.6 once that branch is unfrozen.

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

8 years agoMerged code from pysqlite 2.6.0.
gerhard.haering [Fri, 5 Mar 2010 09:12:37 +0000 (09:12 +0000)]
Merged code from pysqlite 2.6.0.

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

8 years agoMerged revisions 78679,78681 via svnmerge from
benjamin.peterson [Fri, 5 Mar 2010 03:24:17 +0000 (03:24 +0000)]
Merged revisions 78679,78681 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r78679 | benjamin.peterson | 2010-03-04 21:10:46 -0600 (Thu, 04 Mar 2010) | 1 line

  set svn:eol-style
........
  r78681 | benjamin.peterson | 2010-03-04 21:19:06 -0600 (Thu, 04 Mar 2010) | 1 line

  remove svn:executable property
........

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

8 years agoremove the svn:executable property from files that don't have shebang lines
benjamin.peterson [Fri, 5 Mar 2010 03:20:06 +0000 (03:20 +0000)]
remove the svn:executable property from files that don't have shebang lines

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

8 years agoset svn:eol-style on Lib files
benjamin.peterson [Fri, 5 Mar 2010 03:15:07 +0000 (03:15 +0000)]
set svn:eol-style on Lib files

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

8 years agoset svn:eol-style
benjamin.peterson [Fri, 5 Mar 2010 03:07:59 +0000 (03:07 +0000)]
set svn:eol-style

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

8 years agoThese line should not be there.
florent.xicluna [Fri, 5 Mar 2010 01:12:14 +0000 (01:12 +0000)]
These line should not be there.

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

8 years agoLet's use assertIsNone / assertIsNotNone. It's hype.
florent.xicluna [Fri, 5 Mar 2010 01:05:55 +0000 (01:05 +0000)]
Let's use assertIsNone / assertIsNotNone. It's hype.

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

8 years agoWorkaround #3137: Retry SIGINT if it is not received the first time.
florent.xicluna [Fri, 5 Mar 2010 00:47:40 +0000 (00:47 +0000)]
Workaround #3137: Retry SIGINT if it is not received the first time.
test_send_signal should not hang anymore on various Linux distributions.

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

8 years agoreverted the usage of compiler_obj in Python's setup.py
tarek.ziade [Fri, 5 Mar 2010 00:29:38 +0000 (00:29 +0000)]
reverted the usage of compiler_obj in Python's setup.py

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

8 years agoreverting partially distutils to its 2.6.x state so 2.7a4 looks more like the 2.7b1...
tarek.ziade [Fri, 5 Mar 2010 00:16:02 +0000 (00:16 +0000)]
reverting partially distutils to its 2.6.x state so 2.7a4 looks more like the 2.7b1 in this. the whole revert will occur after a4 is tagged

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

8 years ago#2777: Enable test_send_signal, test_kill and test_terminate on all platforms.
florent.xicluna [Thu, 4 Mar 2010 21:31:58 +0000 (21:31 +0000)]
#2777: Enable test_send_signal, test_kill and test_terminate on all platforms.

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

8 years agoCleanup.
florent.xicluna [Thu, 4 Mar 2010 19:40:48 +0000 (19:40 +0000)]
Cleanup.

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

8 years agoTry to fix buildbot breakage from r78384.
dirkjan.ochtman [Thu, 4 Mar 2010 19:21:53 +0000 (19:21 +0000)]
Try to fix buildbot breakage from r78384.

Thanks bitdancer and briancurtin for the help.

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

8 years agoFix documentation of email.Message.get_filename to match
r.david.murray [Thu, 4 Mar 2010 17:34:05 +0000 (17:34 +0000)]
Fix documentation of email.Message.get_filename to match
the fix applied in Issue 7082.

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

8 years ago#7805: wait until all workers are started before collecting their PIDs
florent.xicluna [Thu, 4 Mar 2010 15:58:54 +0000 (15:58 +0000)]
#7805: wait until all workers are started before collecting their PIDs

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

8 years agoFix transient refleak in test_popen2.
florent.xicluna [Thu, 4 Mar 2010 15:57:20 +0000 (15:57 +0000)]
Fix transient refleak in test_popen2.

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

8 years agoIssue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review
victor.stinner [Thu, 4 Mar 2010 12:09:33 +0000 (12:09 +0000)]
Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review
Issue #29.

PR #29 was released in february 2004!

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

8 years agoset svn:executable on all regen scripts
benjamin.peterson [Thu, 4 Mar 2010 02:07:55 +0000 (02:07 +0000)]
set svn:executable on all regen scripts

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

8 years agoIssue #7494: fix a crash in _lsprof (cProfile) after clearing the profiler,
victor.stinner [Thu, 4 Mar 2010 00:10:12 +0000 (00:10 +0000)]
Issue #7494: fix a crash in _lsprof (cProfile) after clearing the profiler,
reset also the pointer to the current pointer context.

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

8 years agoIssue #7544: Preallocate thread memory before creating the thread to avoid a
victor.stinner [Wed, 3 Mar 2010 23:20:25 +0000 (23:20 +0000)]
Issue #7544: Preallocate thread memory before creating the thread to avoid a
fatal error in low memory condition.

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

8 years agoIssue #3299: fix curses.panel.new_panel() error handler, replace PyObject_DEL()
victor.stinner [Wed, 3 Mar 2010 21:53:41 +0000 (21:53 +0000)]
Issue #3299: fix curses.panel.new_panel() error handler, replace PyObject_DEL()
by Py_DECREF() to avoid a crash in pydebug mode.

Use po->wo==NULL to detect than the panel is in the lop list or not.

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

8 years agorephrase
benjamin.peterson [Wed, 3 Mar 2010 21:28:25 +0000 (21:28 +0000)]
rephrase

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

8 years agoIssue #7232: Add support for the context manager protocol
lars.gustaebel [Wed, 3 Mar 2010 11:55:48 +0000 (11:55 +0000)]
Issue #7232: Add support for the context manager protocol
to the TarFile class.

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

8 years agoRevert a nonexistent docstring typo, r42805.
florent.xicluna [Wed, 3 Mar 2010 11:49:53 +0000 (11:49 +0000)]
Revert a nonexistent docstring typo, r42805.

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

8 years agofix Sphinx warnings
benjamin.peterson [Wed, 3 Mar 2010 02:04:24 +0000 (02:04 +0000)]
fix Sphinx warnings

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

8 years agoedit for style
benjamin.peterson [Wed, 3 Mar 2010 01:55:09 +0000 (01:55 +0000)]
edit for style

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

8 years agoIssue #3299: fix thread.allocate_lock() error handler, replace PyObject_Del()
victor.stinner [Wed, 3 Mar 2010 00:43:44 +0000 (00:43 +0000)]
Issue #3299: fix thread.allocate_lock() error handler, replace PyObject_Del()
by Py_DECREF() to fix a crash in pydebug mode.

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

8 years agoFix wording.
florent.xicluna [Tue, 2 Mar 2010 23:56:38 +0000 (23:56 +0000)]
Fix wording.

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

8 years agoplug ref leaks
benjamin.peterson [Tue, 2 Mar 2010 23:43:47 +0000 (23:43 +0000)]
plug ref leaks

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

8 years agoIssue #7820: The parser tokenizer restores all bytes in the right if the BOM
victor.stinner [Tue, 2 Mar 2010 23:20:02 +0000 (23:20 +0000)]
Issue #7820: The parser tokenizer restores all bytes in the right if the BOM
check fails.

Fix an assertion in pydebug mode.

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

8 years agoremove cross-version compatibility code
benjamin.peterson [Tue, 2 Mar 2010 23:02:02 +0000 (23:02 +0000)]
remove cross-version compatibility code

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

8 years agoremove code to avoid BaseException.message bug
benjamin.peterson [Tue, 2 Mar 2010 22:58:01 +0000 (22:58 +0000)]
remove code to avoid BaseException.message bug

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

8 years agoIssue #2973: Fix gcc warning on the 2nd argument of ASN1_item_d2i() and
victor.stinner [Tue, 2 Mar 2010 22:44:42 +0000 (22:44 +0000)]
Issue #2973: Fix gcc warning on the 2nd argument of ASN1_item_d2i() and
method->d2i(): OpenSSL API changed in OpenSSL 0.9.6m. Patch written by Daniel
Black.

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

8 years agoTest test_pep277 is only relevant for Unicode-friendly filesystems.
florent.xicluna [Tue, 2 Mar 2010 22:34:11 +0000 (22:34 +0000)]
Test test_pep277 is only relevant for Unicode-friendly filesystems.

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

8 years agoconvert deprecated fail* methods to assert* variants
benjamin.peterson [Tue, 2 Mar 2010 22:26:25 +0000 (22:26 +0000)]
convert deprecated fail* methods to assert* variants

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

8 years agouse test_main() in __main__ section
benjamin.peterson [Tue, 2 Mar 2010 22:24:30 +0000 (22:24 +0000)]
use test_main() in __main__ section

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

8 years agoprevent warning filter adjustment from altering other tests
benjamin.peterson [Tue, 2 Mar 2010 22:23:33 +0000 (22:23 +0000)]
prevent warning filter adjustment from altering other tests

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

8 years agoenable running of argparse tests and fix two that failed in the new environment
benjamin.peterson [Tue, 2 Mar 2010 22:20:10 +0000 (22:20 +0000)]
enable running of argparse tests and fix two that failed in the new environment

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

8 years agoAdd some x-refs.
georg.brandl [Tue, 2 Mar 2010 22:17:38 +0000 (22:17 +0000)]
Add some x-refs.

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

8 years agoremove another coding cookie
benjamin.peterson [Tue, 2 Mar 2010 22:08:40 +0000 (22:08 +0000)]
remove another coding cookie

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

8 years agoset svn:eol-style
benjamin.peterson [Tue, 2 Mar 2010 22:05:59 +0000 (22:05 +0000)]
set svn:eol-style

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

8 years agoremove coding cookie as mandated by PEP 8
benjamin.peterson [Tue, 2 Mar 2010 22:03:03 +0000 (22:03 +0000)]
remove coding cookie as mandated by PEP 8

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

8 years agoTentatively enable test_pep277 on all platforms.
florent.xicluna [Tue, 2 Mar 2010 21:34:45 +0000 (21:34 +0000)]
Tentatively enable test_pep277 on all platforms.

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

8 years agoRefactor test_dict using assertRaises.
florent.xicluna [Tue, 2 Mar 2010 16:00:00 +0000 (16:00 +0000)]
Refactor test_dict using assertRaises.

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

8 years agoLink correction in documentation.
michael.foord [Tue, 2 Mar 2010 14:22:15 +0000 (14:22 +0000)]
Link correction in documentation.

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

8 years agoAdd an item
andrew.kuchling [Tue, 2 Mar 2010 13:55:33 +0000 (13:55 +0000)]
Add an item

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

8 years agoInitial commit of the argparse library, based on argparse 1.1.
steven.bethard [Tue, 2 Mar 2010 08:38:09 +0000 (08:38 +0000)]
Initial commit of the argparse library, based on argparse 1.1.
Docs still need some updating to make getopt and optparse match the wording promised in the PEP.
There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.

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

8 years agoremove CVS id
benjamin.peterson [Mon, 1 Mar 2010 23:25:13 +0000 (23:25 +0000)]
remove CVS id

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

8 years agoManually copy patch for bug 7250 from the release26-maint branch. I suck
barry.warsaw [Mon, 1 Mar 2010 21:46:51 +0000 (21:46 +0000)]
Manually copy patch for bug 7250 from the release26-maint branch.  I suck
because I did this in the wrong order and couldn't smack svnmerge into
submission.

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

8 years ago#7808: Fix reference leaks in _bsddb and related tests.
florent.xicluna [Mon, 1 Mar 2010 20:45:01 +0000 (20:45 +0000)]
#7808: Fix reference leaks in _bsddb and related tests.

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

8 years ago#7637: avoid repeated-concatenation antipattern in example
andrew.kuchling [Mon, 1 Mar 2010 20:11:57 +0000 (20:11 +0000)]
#7637: avoid repeated-concatenation antipattern in example

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

8 years ago#7191: describe more details of wbits parameter
andrew.kuchling [Mon, 1 Mar 2010 19:51:43 +0000 (19:51 +0000)]
#7191: describe more details of wbits parameter

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

8 years ago#7637: update discussion of minidom.unlink() and garbage collection
andrew.kuchling [Mon, 1 Mar 2010 19:45:21 +0000 (19:45 +0000)]
#7637: update discussion of minidom.unlink() and garbage collection

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

8 years agoIssue 3892 again. The bsddb3 replication test still fails randomly.
r.david.murray [Mon, 1 Mar 2010 19:14:16 +0000 (19:14 +0000)]
Issue 3892 again.  The bsddb3 replication test still fails randomly.
Since this module is unmaintained in the library and gone in py3k,
this patch skips the remainder of the replication test if a
second timeout occurs, as it randomly does.  This should improve buildbot
stability.

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

8 years agoFix test to be skipped on windows.
gregory.p.smith [Mon, 1 Mar 2010 06:01:02 +0000 (06:01 +0000)]
Fix test to be skipped on windows.

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

8 years agoFixes issue #7999: os.setreuid() and os.setregid() would refuse to accept
gregory.p.smith [Mon, 1 Mar 2010 05:43:43 +0000 (05:43 +0000)]
Fixes issue #7999: os.setreuid() and os.setregid() would refuse to accept
a -1 parameter on some platforms such as OS X.

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

8 years agoAdds c_ssize_t to ctypes. issue 6729.
gregory.p.smith [Mon, 1 Mar 2010 04:56:12 +0000 (04:56 +0000)]
Adds c_ssize_t to ctypes.  issue 6729.

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

8 years agoCleanup the test added in r78517 based on Ezio Melotti's feedback.
gregory.p.smith [Mon, 1 Mar 2010 03:09:19 +0000 (03:09 +0000)]
Cleanup the test added in r78517 based on Ezio Melotti's feedback.

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

8 years agoFix the new test on windows (skip it, its posix only)
gregory.p.smith [Mon, 1 Mar 2010 02:53:24 +0000 (02:53 +0000)]
Fix the new test on windows (skip it, its posix only)

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

8 years agoFix for r78527. It left out updating forkpty.
gregory.p.smith [Mon, 1 Mar 2010 02:31:33 +0000 (02:31 +0000)]
Fix for r78527.  It left out updating forkpty.

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

8 years agoAdds the hashlib.algorithms attribute. See issue7418.
gregory.p.smith [Mon, 1 Mar 2010 02:01:47 +0000 (02:01 +0000)]
Adds the hashlib.algorithms attribute.  See issue7418.

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

8 years agoIssue #7242: On Solaris 9 and earlier calling os.fork() from within a
gregory.p.smith [Mon, 1 Mar 2010 01:22:39 +0000 (01:22 +0000)]
Issue #7242: On Solaris 9 and earlier calling os.fork() from within a
thread could raise an incorrect RuntimeError about not holding the import
lock.  The import lock is now reinitialized after fork.

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

8 years agoIssue #1068268: The subprocess module now handles EINTR in internal
gregory.p.smith [Mon, 1 Mar 2010 00:05:08 +0000 (00:05 +0000)]
Issue #1068268: The subprocess module now handles EINTR in internal
os.waitpid and os.read system calls where appropriate.

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

8 years ago#8030: more docstring fix for builtin types.
ezio.melotti [Sun, 28 Feb 2010 23:59:00 +0000 (23:59 +0000)]
#8030: more docstring fix for builtin types.

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

8 years agoIssue #7481: When a threading.Thread failed to start it would leave the
gregory.p.smith [Sun, 28 Feb 2010 18:36:09 +0000 (18:36 +0000)]
Issue #7481: When a threading.Thread failed to start it would leave the
instance stuck in initial state and present in threading.enumerate().

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

8 years agoThe set types can also be called without arguments.
georg.brandl [Sun, 28 Feb 2010 18:26:37 +0000 (18:26 +0000)]
The set types can also be called without arguments.

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

8 years ago#8030: make builtin type docstrings more consistent: use "iterable" instead of "seq...
georg.brandl [Sun, 28 Feb 2010 18:19:17 +0000 (18:19 +0000)]
#8030: make builtin type docstrings more consistent: use "iterable" instead of "seq(uence)", use "new" to show that set() always returns a new object.

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

8 years agoPep8ify test names in the examples.
ezio.melotti [Sun, 28 Feb 2010 03:11:07 +0000 (03:11 +0000)]
Pep8ify test names in the examples.

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

8 years agoFix an oversight in r78508: p.wait() should be compared to 0
florent.xicluna [Sat, 27 Feb 2010 21:15:27 +0000 (21:15 +0000)]
Fix an oversight in r78508: p.wait() should be compared to 0

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

8 years agoClean test_subprocess: use assertRaises, skipIf, skipUnless helpers and a custom...
florent.xicluna [Sat, 27 Feb 2010 19:20:50 +0000 (19:20 +0000)]
Clean test_subprocess: use assertRaises, skipIf, skipUnless helpers and a custom helper assertStderrEqual.

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

8 years ago#7793: Fix RuntimeError when running "regrtest -R" for multibyte codecs.
florent.xicluna [Sat, 27 Feb 2010 15:10:19 +0000 (15:10 +0000)]
#7793: Fix RuntimeError when running "regrtest -R" for multibyte codecs.

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

8 years agoLink to http://www.python.org/dev/workflow/ from bugs page.
georg.brandl [Sat, 27 Feb 2010 14:58:08 +0000 (14:58 +0000)]
Link to python.org/dev/workflow/ from bugs page.

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

8 years agoFix missing parenthesis.
ezio.melotti [Sat, 27 Feb 2010 13:50:35 +0000 (13:50 +0000)]
Fix missing parenthesis.

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

8 years agoIssue #1729305: Fix doctest to handle encode error with "backslashreplace". It fixes...
florent.xicluna [Sat, 27 Feb 2010 13:31:23 +0000 (13:31 +0000)]
Issue #1729305: Fix doctest to handle encode error with "backslashreplace".  It fixes #7667 too.

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