python_lang:hongbins-mirror.git
7 years agodetermine whether we're on solaris by using sys.platform == 'sunos' instead of 'solaris' asyncore-tests-issue8490
giampaolo.rodola [Fri, 7 May 2010 17:59:50 +0000 (17:59 +0000)]
determine whether we're on solaris by using sys.platform == 'sunos' instead of 'solaris'

git-svn-id: http://svn.python.org/projects/python/branches/asyncore-tests-issue8490@80930 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoworkarounds to make tests pass on solaris: disabled handle_expt test and connect...
giampaolo.rodola [Thu, 6 May 2010 22:46:50 +0000 (22:46 +0000)]
workarounds to make tests pass on solaris: disabled handle_expt test and connect attribute test

git-svn-id: http://svn.python.org/projects/python/branches/asyncore-tests-issue8490@80895 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoTry to set a timeout of 5 seconds to loop() function in hope it solves the failures...
giampaolo.rodola [Fri, 23 Apr 2010 19:52:15 +0000 (19:52 +0000)]
Try to set a timeout of 5 seconds to loop() function in hope it solves the failures raised on Solaris. Also fixed DeprecationWarning caused by a 1 / 0 division.

git-svn-id: http://svn.python.org/projects/python/branches/asyncore-tests-issue8490@80415 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoapplies patch of issue #8490 for testing against builbots
giampaolo.rodola [Thu, 22 Apr 2010 20:19:43 +0000 (20:19 +0000)]
applies patch of issue #8490 for testing against builbots

git-svn-id: http://svn.python.org/projects/python/branches/asyncore-tests-issue8490@80386 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agocreating a branch for the new asyncore tests added in issue 8490
giampaolo.rodola [Thu, 22 Apr 2010 18:22:49 +0000 (18:22 +0000)]
creating a branch for the new asyncore tests added in issue 8490

git-svn-id: http://svn.python.org/projects/python/branches/asyncore-tests-issue8490@80377 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoSkip test on old versions of OpenSSL
antoine.pitrou [Thu, 22 Apr 2010 18:00:41 +0000 (18:00 +0000)]
Skip test on old versions of OpenSSL

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

8 years agoTemporarily display OpenSSL version in verbose run -- trying to diagnose failure...
antoine.pitrou [Thu, 22 Apr 2010 17:44:41 +0000 (17:44 +0000)]
Temporarily display OpenSSL version in verbose run -- trying to diagnose failure on Neal's buildbot.

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

8 years agoChanged tests to only urlparse one, which was enough, addressed Ezio's comment
senthil.kumaran [Thu, 22 Apr 2010 12:10:13 +0000 (12:10 +0000)]
Changed tests to only urlparse one, which was enough, addressed Ezio's comment
on Invalid url check statement and versionchanged string in docs.

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

8 years agoRephrase comment.
ezio.melotti [Thu, 22 Apr 2010 11:53:21 +0000 (11:53 +0000)]
Rephrase comment.

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

8 years agoIssue #8475: Pass absolute interpreter path to
martin.v.loewis [Thu, 22 Apr 2010 11:34:36 +0000 (11:34 +0000)]
Issue #8475: Pass absolute interpreter path to
"make html".

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

8 years ago#8474: fix duplicate test in test_email.
ezio.melotti [Thu, 22 Apr 2010 11:23:31 +0000 (11:23 +0000)]
#8474: fix duplicate test in test_email.

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

8 years agoUpdated the RFCs list in the See Also section of urlparse.rst
senthil.kumaran [Thu, 22 Apr 2010 05:48:35 +0000 (05:48 +0000)]
Updated the RFCs list in the See Also section of urlparse.rst

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

8 years agoIssue #7332: Remove the 16KB stack-based buffer in
antoine.pitrou [Wed, 21 Apr 2010 22:53:29 +0000 (22:53 +0000)]
Issue #7332: Remove the 16KB stack-based buffer in
PyMarshal_ReadLastObjectFromFile, which doesn't bring any noticeable
benefit compared to the dynamic memory allocation fallback.  Patch by
Charles-Fran├žois Natali.

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

8 years ago- Build the ossaudio extension on GNU/kFreeBSD.
matthias.klose [Wed, 21 Apr 2010 22:18:52 +0000 (22:18 +0000)]
- Build the ossaudio extension on GNU/kFreeBSD.

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

8 years agosetup.py: search ffi.h in include dirs, if LIBFFI_INCLUDEDIR is empty.
matthias.klose [Wed, 21 Apr 2010 21:45:30 +0000 (21:45 +0000)]
setup.py: search ffi.h in include dirs, if LIBFFI_INCLUDEDIR is empty.

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

8 years agoForgot to add the sample certificate (followup to r80314)
antoine.pitrou [Wed, 21 Apr 2010 19:36:23 +0000 (19:36 +0000)]
Forgot to add the sample certificate (followup to r80314)

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

8 years agoIssue #8484: Load all ciphers and digest algorithms when initializing
antoine.pitrou [Wed, 21 Apr 2010 19:28:03 +0000 (19:28 +0000)]
Issue #8484: Load all ciphers and digest algorithms when initializing
the _ssl extension, such that verification of some SSL certificates
doesn't fail because of an "unknown algorithm".

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

8 years agoshutil: removed unused import and fixed attributes names in _call_external_zip
tarek.ziade [Wed, 21 Apr 2010 13:32:26 +0000 (13:32 +0000)]
shutil: removed unused import and fixed attributes names in _call_external_zip

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

8 years agoAdd Tim Golden.
martin.v.loewis [Wed, 21 Apr 2010 06:37:48 +0000 (06:37 +0000)]
Add Tim Golden.

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

8 years agoSync test_plistlib.py with plistlib.py
ronald.oussoren [Wed, 21 Apr 2010 06:00:35 +0000 (06:00 +0000)]
Sync test_plistlib.py with plistlib.py

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

8 years agoIssue #8437: Fix test_gdb failures, patch written by Dave Malcolm
victor.stinner [Tue, 20 Apr 2010 22:28:31 +0000 (22:28 +0000)]
Issue #8437: Fix test_gdb failures, patch written by Dave Malcolm

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

8 years agoremoved ztar support in shutil.make_archive
tarek.ziade [Tue, 20 Apr 2010 21:09:06 +0000 (21:09 +0000)]
removed ztar support in shutil.make_archive

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

8 years agoFix for issue 7852: the DTD for OSX Plists has changed due
ronald.oussoren [Tue, 20 Apr 2010 20:59:37 +0000 (20:59 +0000)]
Fix for issue 7852: the DTD for OSX Plists has changed due
to a change in the company name for Apple.

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

8 years agoIssue2987 - Added additional Invalid URL and changed the Invalid URL checking code...
senthil.kumaran [Tue, 20 Apr 2010 20:37:59 +0000 (20:37 +0000)]
Issue2987 - Added additional Invalid URL and changed the Invalid URL checking code for better.

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

8 years agofix typo in r79533, introduced by the fix for issue #8233
matthias.klose [Tue, 20 Apr 2010 19:45:34 +0000 (19:45 +0000)]
fix typo in r79533, introduced by the fix for issue #8233

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

8 years ago#8472: fix wrong function name in functions.rst: itertools.filterfalse -> itertools...
ezio.melotti [Tue, 20 Apr 2010 16:49:48 +0000 (16:49 +0000)]
#8472: fix wrong function name in functions.rst: itertools.filterfalse -> itertools.ifilterfalse

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

8 years agoAdd version info for os.kill and signal changes from #1220212.
brian.curtin [Tue, 20 Apr 2010 15:23:18 +0000 (15:23 +0000)]
Add version info for os.kill and signal changes from #1220212.

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

8 years agoThis patch fixes the handling of a weak-linked
ronald.oussoren [Tue, 20 Apr 2010 08:54:48 +0000 (08:54 +0000)]
This patch fixes the handling of a weak-linked
variable and should fix issue #8095.

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

8 years agoThe PythonLauncher change is needed due
ronald.oussoren [Tue, 20 Apr 2010 08:53:12 +0000 (08:53 +0000)]
The PythonLauncher change is needed due
to changes in how the BASECFLAGS and CFLAGS
variables get filled by configure.

The Mac/Makefile.in change ensures that
pythonw gets build with the rigth deployment
targets.

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

8 years ago1) The timeout in the itimer tests was too low for slow or heavily
stefan.krah [Tue, 20 Apr 2010 07:59:10 +0000 (07:59 +0000)]
1) The timeout in the itimer tests was too low for slow or heavily
   loaded machines.

2) Even with the increased timeout, the OS does not guarantee that
   a process will get a certain amount of virtual time in 60s, so
   the failure is changed to a diagnostic.

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

8 years agoFix Issue8460: Victor's patch to add timeout in test_urllib2net test_urls.
senthil.kumaran [Tue, 20 Apr 2010 06:54:59 +0000 (06:54 +0000)]
Fix Issue8460: Victor's patch to add timeout in test_urllib2net test_urls.

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

8 years agoExplicitly set system default for $PATH to
ronald.oussoren [Tue, 20 Apr 2010 05:50:44 +0000 (05:50 +0000)]
Explicitly set system default for $PATH to
ensure we have a clean build environment (OSX installer)

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

8 years agoFix Issue #4841: timeout is now applied for connections resulting from PORT/EPRT...
giampaolo.rodola [Mon, 19 Apr 2010 21:46:28 +0000 (21:46 +0000)]
Fix Issue #4841: timeout is now applied for connections resulting from PORT/EPRT commands

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

8 years agoFixed #8463: added missing reference to bztar in shutil's documentation.
tarek.ziade [Mon, 19 Apr 2010 21:28:21 +0000 (21:28 +0000)]
Fixed #8463: added missing reference to bztar in shutil's documentation.

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

8 years agofew pep8 fixes
tarek.ziade [Mon, 19 Apr 2010 21:13:03 +0000 (21:13 +0000)]
few pep8 fixes

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

8 years agoIssue #8438: Remove reference to the missing "surrogateescape" encoding
antoine.pitrou [Mon, 19 Apr 2010 18:52:43 +0000 (18:52 +0000)]
Issue #8438: Remove reference to the missing "surrogateescape" encoding
error handler from the new IO library.

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

8 years agoIssue 8436: set.__init__ accepts keyword args
raymond.hettinger [Sun, 18 Apr 2010 22:57:57 +0000 (22:57 +0000)]
Issue 8436: set.__init__ accepts keyword args

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

8 years agoFix catastrophic file opening and closing logic in test_linecache
antoine.pitrou [Sun, 18 Apr 2010 19:14:38 +0000 (19:14 +0000)]
Fix catastrophic file opening and closing logic in test_linecache

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

8 years agoRevert r80166 (and r80171), restore Lib/platform.py. subprocess cannot be used in...
victor.stinner [Sun, 18 Apr 2010 18:22:25 +0000 (18:22 +0000)]
Revert r80166 (and r80171), restore Lib/platform.py. subprocess cannot be used in platform.py

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

8 years agoAdd the OSX universal binary related options
ronald.oussoren [Sun, 18 Apr 2010 17:59:37 +0000 (17:59 +0000)]
Add the OSX universal binary related options
to CFLAGS instead of BASECFLAGS.

This fixes issue 8366 and is needed due to
changes introduced in the fix for issue 1628484.

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

8 years agoAdd check to build-installer.py to ensure that
ronald.oussoren [Sun, 18 Apr 2010 14:01:05 +0000 (14:01 +0000)]
Add check to build-installer.py to ensure that
the right version of Tcl/Tk is available (on OSX)

Fixes issue #5651

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

8 years agoFix for issue #7072
ronald.oussoren [Sun, 18 Apr 2010 13:47:49 +0000 (13:47 +0000)]
Fix for issue #7072

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

8 years agoFix Issue #3817: 225 is now considered a valid response code for ABOR
giampaolo.rodola [Sun, 18 Apr 2010 12:55:03 +0000 (12:55 +0000)]
Fix Issue #3817: 225 is now considered a valid response code for ABOR

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

8 years agoFix bootstrap after r80166
antoine.pitrou [Sun, 18 Apr 2010 11:16:24 +0000 (11:16 +0000)]
Fix bootstrap after r80166

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

8 years agoplatform: use subprocess.Popen() instead of os.popen() in _syscmd_file()
victor.stinner [Sun, 18 Apr 2010 09:07:49 +0000 (09:07 +0000)]
platform: use subprocess.Popen() instead of os.popen() in _syscmd_file()

 * Popen() avoids ugly shell escape: target.replace('"', '\\"')
 * Use proc.communicate() instead of f.stdout.read()
 * Get output from stdout by splitting with ": " instead of splitting by spaces
   to support filename with spaces

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

8 years agoIssue #8279: Fix test_gdb failures.
martin.v.loewis [Sat, 17 Apr 2010 22:40:40 +0000 (22:40 +0000)]
Issue #8279: Fix test_gdb failures.

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

8 years agoIssue #8263: On freebsd6 the unittest 'break' test stops regrtest; skip it.
r.david.murray [Sat, 17 Apr 2010 21:59:26 +0000 (21:59 +0000)]
Issue #8263: On freebsd6 the unittest 'break' test stops regrtest; skip it.

This is presumably related to issue 3864, and appears to be due
to a platform bug on freebsd6.

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

8 years agoAdd Giampaolo.
martin.v.loewis [Sat, 17 Apr 2010 17:10:55 +0000 (17:10 +0000)]
Add Giampaolo.

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

8 years agoIssue #8322: Add a *ciphers* argument to SSL sockets, so as to change the
antoine.pitrou [Sat, 17 Apr 2010 17:10:38 +0000 (17:10 +0000)]
Issue #8322: Add a *ciphers* argument to SSL sockets, so as to change the
available cipher list.  Helps fix test_ssl with OpenSSL 1.0.0.

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

8 years agoUpdate link to Apple Publication Style guide.
r.david.murray [Sat, 17 Apr 2010 15:45:38 +0000 (15:45 +0000)]
Update link to Apple Publication Style guide.

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

8 years agoFix Issue5650 - Update the RFC List in the urlparse module.
senthil.kumaran [Sat, 17 Apr 2010 14:30:53 +0000 (14:30 +0000)]
Fix Issue5650 - Update the RFC List in the urlparse module.

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

8 years agoIssue #3864: Skip three test_signal tests on freebsd6 due to platform bug.
r.david.murray [Sat, 17 Apr 2010 05:26:26 +0000 (05:26 +0000)]
Issue #3864: Skip three test_signal tests on freebsd6 due to platform bug.

Two itimer tests and an interprocess signal test fail on FreeBSD 6 if
any test that starts a thread runs before test_signal.  Since FreeBSD7
does not show this behavior, the bug is most likely a platform bug,
so this patch just skips the failing tests on freebsd6.

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

8 years agotiny simplification
benjamin.peterson [Fri, 16 Apr 2010 22:52:44 +0000 (22:52 +0000)]
tiny simplification

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

8 years agohave a clear error when passing something > sys.maxsize to bytearray
benjamin.peterson [Fri, 16 Apr 2010 22:35:38 +0000 (22:35 +0000)]
have a clear error when passing something > sys.maxsize to bytearray

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

8 years agofix typo
benjamin.peterson [Fri, 16 Apr 2010 22:25:57 +0000 (22:25 +0000)]
fix typo

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

8 years agobytearray -> type2test
benjamin.peterson [Fri, 16 Apr 2010 22:24:16 +0000 (22:24 +0000)]
bytearray -> type2test

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

8 years agoremove check for unicode
benjamin.peterson [Fri, 16 Apr 2010 21:55:10 +0000 (21:55 +0000)]
remove check for unicode

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

8 years agoIgnore jinja2
antoine.pitrou [Fri, 16 Apr 2010 21:34:02 +0000 (21:34 +0000)]
Ignore jinja2

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

8 years agoFix issue2987: RFC2732 support for urlparse (IPv6 addresses)
senthil.kumaran [Fri, 16 Apr 2010 02:46:46 +0000 (02:46 +0000)]
Fix issue2987: RFC2732 support for urlparse (IPv6 addresses)

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

8 years agoadd space
benjamin.peterson [Thu, 15 Apr 2010 21:42:16 +0000 (21:42 +0000)]
add space

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

8 years agoAdd various items
andrew.kuchling [Thu, 15 Apr 2010 01:42:27 +0000 (01:42 +0000)]
Add various items

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

8 years agoFix os.kill tests to be more robust and work with slower machines.
brian.curtin [Thu, 15 Apr 2010 00:40:40 +0000 (00:40 +0000)]
Fix os.kill tests to be more robust and work with slower machines.

Rather than depending on some sleep value, start up an interpreter
as a subprocess and communicate with it. Because subprocess pipes
can't be read from until EOF and I want to read from them before that,
use ctypes to peek by using PeekNamedPipe. Once the subprocess has
written the message, then it is ready to roll and accept signals.
After that, kill it.

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

8 years agoAdd various items; correct argparse output
andrew.kuchling [Wed, 14 Apr 2010 23:55:17 +0000 (23:55 +0000)]
Add various items; correct argparse output

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

8 years agoFix missing.
georg.brandl [Wed, 14 Apr 2010 21:46:45 +0000 (21:46 +0000)]
Fix missing.

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

8 years ago#8370: fix module name in backported doc addition.
georg.brandl [Wed, 14 Apr 2010 21:36:49 +0000 (21:36 +0000)]
#8370: fix module name in backported doc addition.

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

8 years ago#5250: document __instancecheck__ and __subclasscheck__. I hope the part about the...
georg.brandl [Wed, 14 Apr 2010 21:34:44 +0000 (21:34 +0000)]
#5250: document __instancecheck__ and __subclasscheck__.  I hope the part about the class/metaclass distinction is understandable.

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

8 years ago#8399: add note about Windows and O_BINARY.
georg.brandl [Wed, 14 Apr 2010 19:16:38 +0000 (19:16 +0000)]
#8399: add note about Windows and O_BINARY.

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

8 years agoAdd some text
andrew.kuchling [Wed, 14 Apr 2010 14:28:31 +0000 (14:28 +0000)]
Add some text

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

8 years agoAdd an x-ref to where the O_ constants are documented and move the SEEK_ constants...
georg.brandl [Wed, 14 Apr 2010 13:50:31 +0000 (13:50 +0000)]
Add an x-ref to where the O_ constants are documented and move the SEEK_ constants after lseek().

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

8 years ago#5341: fix typo and adapt docstring syntax.
georg.brandl [Wed, 14 Apr 2010 08:56:01 +0000 (08:56 +0000)]
#5341: fix typo and adapt docstring syntax.

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

8 years ago#5341: typo.
georg.brandl [Wed, 14 Apr 2010 08:53:38 +0000 (08:53 +0000)]
#5341: typo.

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

8 years agoAdd a small sleep to let a subprocess start before terminating it.
brian.curtin [Wed, 14 Apr 2010 02:24:24 +0000 (02:24 +0000)]
Add a small sleep to let a subprocess start before terminating it.

David Bolen's buildbot isn't know for it's speed, and it seems that we
may have been trying to kill the subprocess before it was fully
initialized. I ran with this change on the bot itself and it seemed to work.

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

8 years agoAdd argparse example
andrew.kuchling [Wed, 14 Apr 2010 01:14:59 +0000 (01:14 +0000)]
Add argparse example

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

8 years agoIssue #5277: Fix quote counting when parsing RFC 2231 encoded parameters.
r.david.murray [Tue, 13 Apr 2010 20:57:40 +0000 (20:57 +0000)]
Issue #5277: Fix quote counting when parsing RFC 2231 encoded parameters.

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

8 years agoFix overzealous patterns in .hgignore, which used to hide files containing e.g. ...
antoine.pitrou [Tue, 13 Apr 2010 17:36:07 +0000 (17:36 +0000)]
Fix overzealous patterns in .hgignore, which used to hide files containing e.g. "python".

(also an occasional source of bugs on the hgsvn-generated hg mirrors)

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

8 years agoIn test_winsound, don't try to import _winreg until after checking that winsound...
mark.dickinson [Tue, 13 Apr 2010 11:37:23 +0000 (11:37 +0000)]
In test_winsound, don't try to import _winreg until after checking that winsound is supported.

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

8 years agoGet rid of multi-row cells.
georg.brandl [Tue, 13 Apr 2010 06:43:54 +0000 (06:43 +0000)]
Get rid of multi-row cells.

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

8 years agoFix #7306. Add skips to test_winsound when no default sound is configured.
brian.curtin [Tue, 13 Apr 2010 02:25:20 +0000 (02:25 +0000)]
Fix #7306. Add skips to test_winsound when no default sound is configured.

These failures occur on a Windows Server 2003 machine I test on.

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

8 years agoAdd an item; stray edit
andrew.kuchling [Tue, 13 Apr 2010 01:32:51 +0000 (01:32 +0000)]
Add an item; stray edit

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

8 years agoFix #8364. Update the setquit docstring and change a built-in to builtin.
brian.curtin [Mon, 12 Apr 2010 23:30:49 +0000 (23:30 +0000)]
Fix #8364. Update the setquit docstring and change a built-in to builtin.

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

8 years agoAdd usage notes for collections.Counter().
raymond.hettinger [Mon, 12 Apr 2010 21:12:06 +0000 (21:12 +0000)]
Add usage notes for collections.Counter().

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

8 years agoMore struct doc tweaks.
mark.dickinson [Mon, 12 Apr 2010 20:38:36 +0000 (20:38 +0000)]
More struct doc tweaks.

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

8 years agoRewrap some long lines in struct module doc source.
mark.dickinson [Mon, 12 Apr 2010 19:46:20 +0000 (19:46 +0000)]
Rewrap some long lines in struct module doc source.

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

8 years agoIssue #7355: Various improvements to struct module documentation.
mark.dickinson [Mon, 12 Apr 2010 19:25:32 +0000 (19:25 +0000)]
Issue #7355: Various improvements to struct module documentation.

 - note early on that the result of struct.pack includes padding
   bytes by default

 - add examples showing how order of struct fields can affect size
   (due to padding)

 - better headers and references; introduction to format strings

 - integrate packing notes into table

Many thanks to Meador Inge for the patch.

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

8 years agoUpdate the Windows FAQ's text about os.kill (#1220212).
brian.curtin [Mon, 12 Apr 2010 18:07:21 +0000 (18:07 +0000)]
Update the Windows FAQ's text about os.kill (#1220212).

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

8 years agoIssue #7585: use tab between components in unified and context diff headers.
r.david.murray [Mon, 12 Apr 2010 16:35:19 +0000 (16:35 +0000)]
Issue #7585: use tab between components in unified and context diff headers.

Instead of spaces between the filename and date (or whatever the string
is that follows the filename, if any) use tabs.  This is what the unix
'diff' command does, for example, and difflib was intended to follow
the 'standard' way of doing diffs.  This improves compatibility with
patch tools.  The docs and examples are also changed to recommended that
the date format used be the ISO 8601 format, which is what modern diff
tools emit by default.

Patch by Anatoly Techtonik.

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

8 years agoIssue #8367: Fix spurious test failure on systems without a sound card.
stefan.krah [Mon, 12 Apr 2010 15:21:25 +0000 (15:21 +0000)]
Issue #8367: Fix spurious test failure on systems without a sound card.

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

8 years agotypo
barry.warsaw [Mon, 12 Apr 2010 14:40:49 +0000 (14:40 +0000)]
typo

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

8 years agoIssue #7472: ISO-2022 charsets now consistently use 7bit CTE.
r.david.murray [Mon, 12 Apr 2010 14:26:06 +0000 (14:26 +0000)]
Issue #7472: ISO-2022 charsets now consistently use 7bit CTE.

Fixed a typo in the email.encoders module so that messages output using
an ISO-2022 character set will use a content-transfer-encoding of
7bit consistently.  Previously if the input data had any eight bit
characters the output data would get marked as 8bit even though it
was actually 7bit.

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

8 years agoAdding additional examples of valid urls as per RFC 3986 (for issue8339)
senthil.kumaran [Mon, 12 Apr 2010 06:50:24 +0000 (06:50 +0000)]
Adding additional examples of valid urls as per RFC 3986 (for issue8339)

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

8 years agoRe-enable all tests, to see which ones fail on the buildbots.
martin.v.loewis [Mon, 12 Apr 2010 05:22:25 +0000 (05:22 +0000)]
Re-enable all tests, to see which ones fail on the buildbots.

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

8 years agoIssue #8330: Fix expected output in test_gdb.
martin.v.loewis [Mon, 12 Apr 2010 05:18:16 +0000 (05:18 +0000)]
Issue #8330: Fix expected output in test_gdb.

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

8 years agoIt is possible to add extra testing options using EXTRATESTOPTS.
antoine.pitrou [Mon, 12 Apr 2010 00:10:46 +0000 (00:10 +0000)]
It is possible to add extra testing options using EXTRATESTOPTS.
When such extra options include "-x testname", subsequent arguments
are all taken as test names to ignore. Therefore, standard options
must be passed before *TESTOPTS.

(witnessed on the ARM buildbots)

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

8 years agoFix misplaced items and incorrect title.
antoine.pitrou [Sun, 11 Apr 2010 22:45:47 +0000 (22:45 +0000)]
Fix misplaced items and incorrect title.

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

8 years agoIssue #8374: Update the internal alias table in the :mod:`locale` module
antoine.pitrou [Sun, 11 Apr 2010 22:32:39 +0000 (22:32 +0000)]
Issue #8374: Update the internal alias table in the :mod:`locale` module
to cover recent locale changes and additions.

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

8 years agoAdd several items
andrew.kuchling [Sun, 11 Apr 2010 20:40:09 +0000 (20:40 +0000)]
Add several items

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

8 years agoMinor factoring
raymond.hettinger [Sun, 11 Apr 2010 20:39:28 +0000 (20:39 +0000)]
Minor factoring

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

8 years agoFix for issues #3581, #1481 and #7650:
stefan.krah [Sun, 11 Apr 2010 15:15:54 +0000 (15:15 +0000)]
Fix for issues #3581, #1481 and #7650:

1. The assumptions in check_node() were too restrictive:

     - Hardware addresses with universal_local_bit=1 are valid
       (locally administered).

     - Many of the tested functions (including uuid.getnode())
       may return valid RFC 4122 random node IDs. These are pretty
       much random 48-bit values with the multicast bit set to 1.

2. _unixdll_getnode() calls _uuid_generate_time(), which may be None
   on some platforms. The resulting TypeError is now caught.

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

8 years agoAdd two items
andrew.kuchling [Sun, 11 Apr 2010 12:49:37 +0000 (12:49 +0000)]
Add two items

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

8 years agoTwo typo fixes
andrew.kuchling [Sun, 11 Apr 2010 12:48:08 +0000 (12:48 +0000)]
Two typo fixes

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