python_lang:hongbins-mirror.git
8 years agoOn Windows, ctypes does no longer check the stack before and after branch_libffi-3_0_10-win
thomas.heller [Mon, 29 Mar 2010 19:30:33 +0000 (19:30 +0000)]
On Windows, ctypes does no longer check the stack before and after
calling a foreign function.
This allows to use the unmodified libffi library.

git-svn-id: http://svn.python.org/projects/python/branches/branch_libffi-3_0_10-win@79491 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoBuild _ctypes on Win64.
thomas.heller [Thu, 25 Mar 2010 18:28:02 +0000 (18:28 +0000)]
Build _ctypes on Win64.

git-svn-id: http://svn.python.org/projects/python/branches/branch_libffi-3_0_10-win@79424 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoWork in progress. 2 tests fail on x86/win32 because the stack
thomas.heller [Fri, 19 Mar 2010 21:14:47 +0000 (21:14 +0000)]
Work in progress.  2 tests fail on x86/win32 because the stack
checking code in ffi_call_win32 is not yet implemented.

Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...).  Other files are used in the
cross-platform _ctypes/libffi directory.

git-svn-id: http://svn.python.org/projects/python/branches/branch_libffi-3_0_10-win@79115 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoBranch for porting ctypes/windows to libffi 3.0.10
thomas.heller [Fri, 19 Mar 2010 19:49:16 +0000 (19:49 +0000)]
Branch for porting ctypes/windows to libffi 3.0.10

git-svn-id: http://svn.python.org/projects/python/branches/branch_libffi-3_0_10-win@79104 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoupdate libffi to commit 59a259f4d348f593b45f452309f4d020a28051c4 from the
matthias.klose [Fri, 19 Mar 2010 18:59:20 +0000 (18:59 +0000)]
update libffi to commit 59a259f4d348f593b45f452309f4d020a28051c4 from the
trunk (adding msvc port).

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

8 years agoVarious tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp...
florent.xicluna [Fri, 19 Mar 2010 18:34:55 +0000 (18:34 +0000)]
Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown.

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

8 years agoGenerate libffi's Makefiles again to be able to run the libffi testsuite
matthias.klose [Fri, 19 Mar 2010 17:46:33 +0000 (17:46 +0000)]
Generate libffi's Makefiles again to be able to run the libffi testsuite
-- Diese und die folgenden Zeilen werden ignoriert --

M    _ctypes/libffi/configure
M    _ctypes/libffi/configure.ac
M    _ctypes/libffi/aclocal.m4
M    _ctypes/libffi.diff

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

8 years ago- Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.
matthias.klose [Fri, 19 Mar 2010 14:45:06 +0000 (14:45 +0000)]
- Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.

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

8 years agokeep DeprecationWarning from failing test
benjamin.peterson [Fri, 19 Mar 2010 01:06:33 +0000 (01:06 +0000)]
keep DeprecationWarning from failing test

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

8 years agoMake python-config support multiple option flags on the same command line, rather...
collin.winter [Fri, 19 Mar 2010 00:08:44 +0000 (00:08 +0000)]
Make python-config support multiple option flags on the same command line, rather than requiring one invocation per flag.

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

8 years agoAdd a separate python-config make target, useful for testing changes to Misc/python...
collin.winter [Fri, 19 Mar 2010 00:00:30 +0000 (00:00 +0000)]
Add a separate python-config make target, useful for testing changes to Misc/python-config.in.

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

8 years agomake compiler's py3k warning a full deprecation warning #6837
benjamin.peterson [Thu, 18 Mar 2010 23:12:43 +0000 (23:12 +0000)]
make compiler's py3k warning a full deprecation warning #6837

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

8 years agoreignore bad_coding
benjamin.peterson [Thu, 18 Mar 2010 22:55:46 +0000 (22:55 +0000)]
reignore bad_coding

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

8 years agothese lines can now be dispensed with
benjamin.peterson [Thu, 18 Mar 2010 22:44:54 +0000 (22:44 +0000)]
these lines can now be dispensed with

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

8 years agoAdd support for weak references to code objects. This will be used by an optimization...
collin.winter [Thu, 18 Mar 2010 21:54:01 +0000 (21:54 +0000)]
Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT.

Patch by Reid Kleckner!

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

8 years agoIssue #8024: Update the Unicode database to 5.2
florent.xicluna [Thu, 18 Mar 2010 21:50:06 +0000 (21:50 +0000)]
Issue #8024: Update the Unicode database to 5.2

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

8 years agoinstall tkinter and ttk tests
benjamin.peterson [Thu, 18 Mar 2010 21:32:38 +0000 (21:32 +0000)]
install tkinter and ttk tests

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

8 years agoremove installation of deleted test/output dir
benjamin.peterson [Thu, 18 Mar 2010 21:30:48 +0000 (21:30 +0000)]
remove installation of deleted test/output dir

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

8 years agodon't try to compile anything in lib2to3/tests/data #8169
benjamin.peterson [Thu, 18 Mar 2010 21:20:35 +0000 (21:20 +0000)]
don't try to compile anything in lib2to3/tests/data #8169

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

8 years ago#8155: Preserve backward compatibility for test_support.check_warnings(). Add regres...
florent.xicluna [Thu, 18 Mar 2010 19:51:47 +0000 (19:51 +0000)]
#8155: Preserve backward compatibility for test_support.check_warnings().  Add regression tests.

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

8 years agoFix for Issue8135 - urllib.unquote to support mixed percent escapes
senthil.kumaran [Thu, 18 Mar 2010 12:14:15 +0000 (12:14 +0000)]
Fix for Issue8135 - urllib.unquote to support mixed percent escapes

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

8 years agoMake test_pwd more stable in the face of unusual LDAP/NIS/Kerberos deployments (the...
collin.winter [Thu, 18 Mar 2010 00:10:34 +0000 (00:10 +0000)]
Make test_pwd more stable in the face of unusual LDAP/NIS/Kerberos deployments (the old test was flaky on Google buildslaves).

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

8 years agoIssue #8104: socket.recv_into() and socket.recvfrom_into() now support
antoine.pitrou [Wed, 17 Mar 2010 22:45:39 +0000 (22:45 +0000)]
Issue #8104: socket.recv_into() and socket.recvfrom_into() now support
writing into objects supporting the new buffer API, for example bytearrays
or memoryviews.

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

8 years agoFix a race condition in test_asynchat uncovered by the Unladen Swallow JIT.
collin.winter [Wed, 17 Mar 2010 22:36:26 +0000 (22:36 +0000)]
Fix a race condition in test_asynchat uncovered by the Unladen Swallow JIT.

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

8 years agoprevent lambda functions from having docstrings #8164
benjamin.peterson [Wed, 17 Mar 2010 20:41:42 +0000 (20:41 +0000)]
prevent lambda functions from having docstrings #8164

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

8 years agoFix and check cgi module deprecation warnings. Revert an unwanted rename in test_import.
florent.xicluna [Wed, 17 Mar 2010 20:05:11 +0000 (20:05 +0000)]
Fix and check cgi module deprecation warnings.  Revert an unwanted rename in test_import.

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

8 years agoCleanup some test cases using check_warnings and check_py3k_warnings.
florent.xicluna [Wed, 17 Mar 2010 19:15:56 +0000 (19:15 +0000)]
Cleanup some test cases using check_warnings and check_py3k_warnings.

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

8 years agoCleanup in test_import and test_coding.
florent.xicluna [Wed, 17 Mar 2010 19:05:04 +0000 (19:05 +0000)]
Cleanup in test_import and test_coding.

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

8 years agoAvoid hardcoding refcounts in tests.
collin.winter [Wed, 17 Mar 2010 17:36:16 +0000 (17:36 +0000)]
Avoid hardcoding refcounts in tests.

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

8 years agoIssue #8162: logging: Clarified docstring and documentation for disable function.
vinay.sajip [Wed, 17 Mar 2010 15:05:57 +0000 (15:05 +0000)]
Issue #8162: logging: Clarified docstring and documentation for disable function.

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

8 years agoUse "x in y" instead of y.find(x) != -1.
ezio.melotti [Wed, 17 Mar 2010 14:22:34 +0000 (14:22 +0000)]
Use "x in y" instead of y.find(x) != -1.

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

8 years ago#7092: silence some more py3k warnings.
ezio.melotti [Wed, 17 Mar 2010 13:52:48 +0000 (13:52 +0000)]
#7092: silence some more py3k warnings.

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

8 years agoDelete unused import.
collin.winter [Wed, 17 Mar 2010 03:04:01 +0000 (03:04 +0000)]
Delete unused import.

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

8 years agoStyle cleanup in test_import.
collin.winter [Wed, 17 Mar 2010 02:40:12 +0000 (02:40 +0000)]
Style cleanup in test_import.

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

8 years agoFix a trivial class of (hypothetical, future) false-positive refleaks, discovered...
collin.winter [Wed, 17 Mar 2010 02:02:30 +0000 (02:02 +0000)]
Fix a trivial class of (hypothetical, future) false-positive refleaks, discovered by an optimization in Unladen Swallow's past (which will become CPython's future).

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

8 years agoIntegrate merge.py into msi.py.
martin.v.loewis [Tue, 16 Mar 2010 18:49:28 +0000 (18:49 +0000)]
Integrate merge.py into msi.py.

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

8 years ago- Issue #4961: Inconsistent/wrong result of askyesno function in tkMessageBox
matthias.klose [Tue, 16 Mar 2010 10:48:52 +0000 (10:48 +0000)]
- Issue #4961: Inconsistent/wrong result of askyesno function in tkMessageBox
  with Tcl/Tk-8.5.

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

8 years agoIssue #7783 and #7787: open_urlresource invalidates the outdated files from the local...
florent.xicluna [Mon, 15 Mar 2010 18:08:58 +0000 (18:08 +0000)]
Issue #7783 and #7787: open_urlresource invalidates the outdated files from the local cache.
Use this feature to fix test_normalization.

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

8 years ago- Fix typo in Lib/compileall.py(__all__).
matthias.klose [Mon, 15 Mar 2010 18:00:01 +0000 (18:00 +0000)]
- Fix typo in Lib/compileall.py(__all__).

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

8 years ago- Issue #8140: extend compileall to compile single files. Add -i option.
matthias.klose [Mon, 15 Mar 2010 17:44:12 +0000 (17:44 +0000)]
- Issue #8140: extend compileall to compile single files. Add -i option.

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

8 years agoRemove py3k deprecation warnings from these Unicode tools.
florent.xicluna [Mon, 15 Mar 2010 14:00:58 +0000 (14:00 +0000)]
Remove py3k deprecation warnings from these Unicode tools.

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

8 years ago- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
matthias.klose [Mon, 15 Mar 2010 13:42:23 +0000 (13:42 +0000)]
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
  the locale.

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

8 years agoIssue #6716: Quote -x arguments of compileall in MSI installer.
martin.v.loewis [Mon, 15 Mar 2010 13:00:17 +0000 (13:00 +0000)]
Issue #6716: Quote -x arguments of compileall in MSI installer.

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

8 years ago- Issue #6949: Allow the _bsddb extension to be built with db-4.8.x.
matthias.klose [Mon, 15 Mar 2010 12:46:18 +0000 (12:46 +0000)]
- Issue #6949: Allow the _bsddb extension to be built with db-4.8.x.

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

8 years agoclean up files correctly
benjamin.peterson [Mon, 15 Mar 2010 03:02:37 +0000 (03:02 +0000)]
clean up files correctly

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

8 years agoremove mac 9 code
benjamin.peterson [Mon, 15 Mar 2010 03:00:35 +0000 (03:00 +0000)]
remove mac 9 code

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

8 years agothis little exception dance is pointless
benjamin.peterson [Mon, 15 Mar 2010 02:58:24 +0000 (02:58 +0000)]
this little exception dance is pointless

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

8 years agoBackport from the libffi trunk:
matthias.klose [Mon, 15 Mar 2010 00:36:18 +0000 (00:36 +0000)]
Backport from the libffi trunk:

2010-02-15  Matthias Klose  <doko@ubuntu.com>

        * src/arm/sysv.S (__ARM_ARCH__): Define for processor
        __ARM_ARCH_7EM__.

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

8 years ago- Issue #8142: Update libffi to the 3.0.9 release.
matthias.klose [Mon, 15 Mar 2010 00:02:36 +0000 (00:02 +0000)]
- Issue #8142: Update libffi to the 3.0.9 release.
-- Diese und die folgenden Zeilen werden ignoriert --

M    Misc/NEWS
A    Modules/_ctypes/libffi/m4
A    Modules/_ctypes/libffi/m4/ltsugar.m4
A    Modules/_ctypes/libffi/m4/libtool.m4
A    Modules/_ctypes/libffi/m4/ltversion.m4
A    Modules/_ctypes/libffi/m4/lt~obsolete.m4
A    Modules/_ctypes/libffi/m4/ltoptions.m4
A    Modules/_ctypes/libffi/ChangeLog.libffi
M    Modules/_ctypes/libffi/configure
M    Modules/_ctypes/libffi/Makefile.in
M    Modules/_ctypes/libffi/fficonfig.h.in
M    Modules/_ctypes/libffi/src/arm/sysv.S
M    Modules/_ctypes/libffi/src/powerpc/ffitarget.h
M    Modules/_ctypes/libffi/src/powerpc/aix.S
M    Modules/_ctypes/libffi/src/powerpc/ffi.c
M    Modules/_ctypes/libffi/src/powerpc/sysv.S
M    Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c
M    Modules/_ctypes/libffi/src/powerpc/aix_closure.S
A    Modules/_ctypes/libffi/src/closures.c
D    Modules/_ctypes/libffi/src/darwin/ffitarget.h
M    Modules/_ctypes/libffi/src/sh64/ffi.c
M    Modules/_ctypes/libffi/src/sh64/sysv.S
M    Modules/_ctypes/libffi/src/x86/ffi64.c
M    Modules/_ctypes/libffi/src/x86/ffitarget.h
M    Modules/_ctypes/libffi/src/x86/win32.S
M    Modules/_ctypes/libffi/src/x86/darwin.S
M    Modules/_ctypes/libffi/src/x86/ffi.c
M    Modules/_ctypes/libffi/src/x86/sysv.S
A    Modules/_ctypes/libffi/src/x86/win64.S
M    Modules/_ctypes/libffi/src/x86/unix64.S
A    Modules/_ctypes/libffi/src/types.c
A    Modules/_ctypes/libffi/src/avr32
A    Modules/_ctypes/libffi/src/avr32/ffitarget.h
A    Modules/_ctypes/libffi/src/avr32/ffi.c
A    Modules/_ctypes/libffi/src/avr32/sysv.S
M    Modules/_ctypes/libffi/src/frv/ffi.c
M    Modules/_ctypes/libffi/src/s390/sysv.S
M    Modules/_ctypes/libffi/src/pa/ffi.c
A    Modules/_ctypes/libffi/src/raw_api.c
A    Modules/_ctypes/libffi/src/java_raw_api.c
A    Modules/_ctypes/libffi/src/debug.c
M    Modules/_ctypes/libffi/src/sparc/ffi.c
M    Modules/_ctypes/libffi/src/sparc/v8.S
M    Modules/_ctypes/libffi/src/mips/ffitarget.h
M    Modules/_ctypes/libffi/src/mips/n32.S
M    Modules/_ctypes/libffi/src/mips/o32.S
M    Modules/_ctypes/libffi/src/mips/ffi.c
A    Modules/_ctypes/libffi/src/dlmalloc.c
M    Modules/_ctypes/libffi/src/sh/ffi.c
M    Modules/_ctypes/libffi/src/sh/sysv.S
AM   Modules/_ctypes/libffi/depcomp
AM   Modules/_ctypes/libffi/compile
M    Modules/_ctypes/libffi/config.guess
AM   Modules/_ctypes/libffi/ltmain.sh
M    Modules/_ctypes/libffi/config.sub
AM   Modules/_ctypes/libffi/mdate-sh
M    Modules/_ctypes/libffi/configure.ac
A    Modules/_ctypes/libffi/doc
A    Modules/_ctypes/libffi/doc/libffi.texi
A    Modules/_ctypes/libffi/doc/stamp-vti
A    Modules/_ctypes/libffi/doc/libffi.info
A    Modules/_ctypes/libffi/doc/version.texi
A    Modules/_ctypes/libffi/texinfo.tex
A    Modules/_ctypes/libffi/man
A    Modules/_ctypes/libffi/man/ffi_call.3
A    Modules/_ctypes/libffi/man/Makefile.in
A    Modules/_ctypes/libffi/man/ffi.3
A    Modules/_ctypes/libffi/man/Makefile.am
A    Modules/_ctypes/libffi/man/ffi_prep_cif.3
A    Modules/_ctypes/libffi/ChangeLog.libgcj
M    Modules/_ctypes/libffi/LICENSE
M    Modules/_ctypes/libffi/include/ffi.h.in
M    Modules/_ctypes/libffi/include/Makefile.in
M    Modules/_ctypes/libffi/include/ffi_common.h
M    Modules/_ctypes/libffi/include/Makefile.am
A    Modules/_ctypes/libffi/libtool-version
A    Modules/_ctypes/libffi/ChangeLog
A    Modules/_ctypes/libffi/testsuite
A    Modules/_ctypes/libffi/testsuite/Makefile.in
A    Modules/_ctypes/libffi/testsuite/libffi.call
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_multi_ushort.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/stret_medium.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_uint16.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_uc.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct3.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct5.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/err_bad_abi.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct3.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_7_1_byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct5.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_double.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct7.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_sl.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct7.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct9.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_sint.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct9.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_pointer.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/many_win32.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_20byte1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_multi_sshortchar.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_fl.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_sint64.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/many.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/strlen.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_3byte2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_ldl.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/stret_large.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_multi_schar.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_multi_uchar.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_9byte1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/err_bad_typedef.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_19byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_float.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_fn1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_longdouble_split.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/problem1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_fl1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_fn3.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_dbl2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_sshort.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_fl3.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_fn5.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_double.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_2byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/promotion.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/float2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct10.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_ll1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_4byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/float4.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_6byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_longdouble.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/huge_struct.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_8byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_multi_sshort.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_uint32.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_sint16.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_double_va.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_sc.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/float.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_20byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_float.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_pointer_stack.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_5_1_byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct4.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_24byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct6.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct4.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_loc_fn0.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/struct8.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct6.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/testclosure.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct8.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_64byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_ul.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_uint.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_dbls_struct.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/strlen_win32.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/pyobjc-tc.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/stret_large2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_multi_ushortchar.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_dbl.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_schar.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_uchar.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_uint64.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_longdouble.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_ulonglong.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_1_1byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_ll.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_3_1byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_12byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_4_1byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_3byte1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/ffitest.h
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_6_1_byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_16byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_18byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_fn0.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_9byte2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_longdouble_va.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_dbl1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_fn2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_stdcall.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/return_fl2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/stret_medium2.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_fn4.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/negint.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_ushort.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/call.exp
A    Modules/_ctypes/libffi/testsuite/libffi.call/closure_fn6.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/float1.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/float3.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_5byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_7byte.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_pointer.c
A    Modules/_ctypes/libffi/testsuite/libffi.call/cls_align_sint32.c
A    Modules/_ctypes/libffi/testsuite/config
A    Modules/_ctypes/libffi/testsuite/config/default.exp
A    Modules/_ctypes/libffi/testsuite/lib
A    Modules/_ctypes/libffi/testsuite/lib/target-libpath.exp
A    Modules/_ctypes/libffi/testsuite/lib/wrapper.exp
A    Modules/_ctypes/libffi/testsuite/lib/libffi-dg.exp
A    Modules/_ctypes/libffi/testsuite/Makefile.am
A    Modules/_ctypes/libffi/testsuite/libffi.special
A    Modules/_ctypes/libffi/testsuite/libffi.special/unwindtest_ffi_call.cc
A    Modules/_ctypes/libffi/testsuite/libffi.special/unwindtest.cc
A    Modules/_ctypes/libffi/testsuite/libffi.special/special.exp
A    Modules/_ctypes/libffi/testsuite/libffi.special/ffitestcxx.h
M    Modules/_ctypes/libffi/README
A    Modules/_ctypes/libffi/libffi.pc.in
M    Modules/_ctypes/libffi/Makefile.am
M    Modules/_ctypes/libffi/missing
A    Modules/_ctypes/libffi/ChangeLog.v1
M    Modules/_ctypes/libffi/aclocal.m4
M    Modules/_ctypes/libffi.diff

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

8 years agoDo not hardcode Expat version. It's possible to build Python with --with-system...
florent.xicluna [Sun, 14 Mar 2010 15:20:59 +0000 (15:20 +0000)]
Do not hardcode Expat version.  It's possible to build Python with --with-system-expat option.

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

8 years agofix quotes
benjamin.peterson [Sun, 14 Mar 2010 15:06:14 +0000 (15:06 +0000)]
fix quotes

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

8 years agofix freebsd linking #7705
benjamin.peterson [Sun, 14 Mar 2010 14:24:31 +0000 (14:24 +0000)]
fix freebsd linking #7705

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

8 years agoAdd a link about the Public Review Issue #29
ezio.melotti [Sun, 14 Mar 2010 10:13:49 +0000 (10:13 +0000)]
Add a link about the Public Review Issue #29

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

8 years ago#8137: add iso-8859-16 to the standard encodings table.
georg.brandl [Sun, 14 Mar 2010 09:55:08 +0000 (09:55 +0000)]
#8137: add iso-8859-16 to the standard encodings table.

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

8 years agoFormat and rewrap 2.7 NEWS consistently.
georg.brandl [Sun, 14 Mar 2010 09:50:54 +0000 (09:50 +0000)]
Format and rewrap 2.7 NEWS consistently.

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

8 years agoMinor documentation updates for xml.etree.
florent.xicluna [Sun, 14 Mar 2010 01:22:09 +0000 (01:22 +0000)]
Minor documentation updates for xml.etree.

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

8 years agoIssue #7993: Add a test of IO packet processing bandwidth to ccbench.
antoine.pitrou [Sat, 13 Mar 2010 21:21:30 +0000 (21:21 +0000)]
Issue #7993: Add a test of IO packet processing bandwidth to ccbench.
It measures the number of UDP packets processed per second depending on
the number of background CPU-bound Python threads.

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

8 years agoAdd the keyword argument "method=None" to the .write() method and the tostring/tostri...
florent.xicluna [Sat, 13 Mar 2010 20:30:15 +0000 (20:30 +0000)]
Add the keyword argument "method=None" to the .write() method and the tostring/tostringlist functions.
Update the function, class and method signatures, according to the new convention.

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

8 years agoUpdate some parts of the xml.etree documentation.
florent.xicluna [Sat, 13 Mar 2010 17:56:19 +0000 (17:56 +0000)]
Update some parts of the xml.etree documentation.

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

8 years agoAdd 2.6 uuids.
martin.v.loewis [Sat, 13 Mar 2010 17:53:02 +0000 (17:53 +0000)]
Add 2.6 uuids.

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

8 years agoFix incorrect error checks in structmember.c (backport of r78920 from py3k).
mark.dickinson [Sat, 13 Mar 2010 14:18:34 +0000 (14:18 +0000)]
Fix incorrect error checks in structmember.c (backport of r78920 from py3k).

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

8 years agoUpdate for new download location.
georg.brandl [Sat, 13 Mar 2010 13:41:58 +0000 (13:41 +0000)]
Update for new download location.

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

8 years agoChange/fix handling of docs download location: for daily builds, put them right next...
georg.brandl [Sat, 13 Mar 2010 13:39:46 +0000 (13:39 +0000)]
Change/fix handling of docs download location: for daily builds, put them right next to the HTML.

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

8 years agoDo not chdir when running test_xml_etree, and enhance the findfile helper.
florent.xicluna [Sat, 13 Mar 2010 12:41:48 +0000 (12:41 +0000)]
Do not chdir when running test_xml_etree, and enhance the findfile helper.

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

8 years agoMove the xml test data to their own directory.
florent.xicluna [Sat, 13 Mar 2010 11:18:49 +0000 (11:18 +0000)]
Move the xml test data to their own directory.

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

8 years agoBump externals versions for doc build.
georg.brandl [Sat, 13 Mar 2010 10:54:12 +0000 (10:54 +0000)]
Bump externals versions for doc build.

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

8 years agoAdd Makefile targets for automatic doc build. Add script that will be used for daily...
georg.brandl [Sat, 13 Mar 2010 10:12:39 +0000 (10:12 +0000)]
Add Makefile targets for automatic doc build.  Add script that will be used for daily build.

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

8 years agoSilence compiler warnings.
ezio.melotti [Sat, 13 Mar 2010 04:39:51 +0000 (04:39 +0000)]
Silence compiler warnings.

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

8 years agosqlite3: Fix a segfault on calling a connection with something else than a
victor.stinner [Sat, 13 Mar 2010 03:27:07 +0000 (03:27 +0000)]
sqlite3: Fix a segfault on calling a connection with something else than a
string. Initialize all attributes to be able to call the statement destructor
on error.

Avoid also a duplicate connection in some tests: setUp() does already open a
connection (":memory:").

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

8 years ago#8011: use exc.tb_lineno instead of traceback.tb_lineno() and pep8ify variable names.
ezio.melotti [Sat, 13 Mar 2010 01:21:34 +0000 (01:21 +0000)]
#8011: use exc.tb_lineno instead of traceback.tb_lineno() and pep8ify variable names.

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

8 years agofix broken links
ezio.melotti [Sat, 13 Mar 2010 00:15:36 +0000 (00:15 +0000)]
fix broken links

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

8 years agoIssue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set.
victor.stinner [Sat, 13 Mar 2010 00:13:22 +0000 (00:13 +0000)]
Issue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set.

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

8 years agoDeactivate automatic upload of the docs to python.org, they will now be built by...
georg.brandl [Fri, 12 Mar 2010 21:27:23 +0000 (21:27 +0000)]
Deactivate automatic upload of the docs to python.org, they will now be built by a job on that machine.

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

8 years agoNEWS: issue #7774 is related to Library (sys), not Core and Builtins
victor.stinner [Fri, 12 Mar 2010 14:30:26 +0000 (14:30 +0000)]
NEWS: issue #7774 is related to Library (sys), not Core and Builtins

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

8 years agoFix warnings from "make check".
georg.brandl [Fri, 12 Mar 2010 10:02:03 +0000 (10:02 +0000)]
Fix warnings from "make check".

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

8 years agoGet rid of backticks.
georg.brandl [Fri, 12 Mar 2010 09:57:43 +0000 (09:57 +0000)]
Get rid of backticks.

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

8 years agoIssue #8117: Updated NEWS entry and added to logging documentation.
vinay.sajip [Fri, 12 Mar 2010 09:16:10 +0000 (09:16 +0000)]
Issue #8117: Updated NEWS entry and added to logging documentation.

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

8 years agoIssue #8117: logging: Improved algorithm for computing initial rollover time.
vinay.sajip [Fri, 12 Mar 2010 06:01:21 +0000 (06:01 +0000)]
Issue #8117: logging: Improved algorithm for computing initial rollover time.

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

8 years agoremove shebang line from non-executable test
benjamin.peterson [Thu, 11 Mar 2010 22:34:12 +0000 (22:34 +0000)]
remove shebang line from non-executable test

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

8 years agonormalize shebang lines to #!/usr/bin/env python
benjamin.peterson [Thu, 11 Mar 2010 22:33:25 +0000 (22:33 +0000)]
normalize shebang lines to #!/usr/bin/env python

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

8 years agorevert r78842 cgi.py change
benjamin.peterson [Thu, 11 Mar 2010 22:03:45 +0000 (22:03 +0000)]
revert r78842 cgi.py change

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

8 years agouse proper shebang lines
benjamin.peterson [Thu, 11 Mar 2010 21:53:25 +0000 (21:53 +0000)]
use proper shebang lines

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

8 years agoremove executable property from doc files
benjamin.peterson [Thu, 11 Mar 2010 21:50:45 +0000 (21:50 +0000)]
remove executable property from doc files

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

8 years agoFix repr of tree Element on windows.
florent.xicluna [Thu, 11 Mar 2010 15:55:11 +0000 (15:55 +0000)]
Fix repr of tree Element on windows.

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

8 years agoIssue #6472: The xml.etree package is updated to ElementTree 1.3. The cElementTree...
florent.xicluna [Thu, 11 Mar 2010 14:36:19 +0000 (14:36 +0000)]
Issue #6472: The xml.etree package is updated to ElementTree 1.3.  The cElementTree module is updated too.

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

8 years agoAnother fix to test_executable() of test_sys: set the current working to avoid
victor.stinner [Thu, 11 Mar 2010 13:46:06 +0000 (13:46 +0000)]
Another fix to test_executable() of test_sys: set the current working to avoid
the #7774 bug.

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

8 years agoFix test_executable introduce in previous commit (r78835): Windows is able to
victor.stinner [Thu, 11 Mar 2010 13:27:35 +0000 (13:27 +0000)]
Fix test_executable introduce in previous commit (r78835): Windows is able to
retrieve the absolute Python path even if argv[0] has been set to a non
existent program name.

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

8 years agoIssue #7774: Set sys.executable to an empty string if argv[0] has been
victor.stinner [Thu, 11 Mar 2010 12:34:39 +0000 (12:34 +0000)]
Issue #7774: Set sys.executable to an empty string if argv[0] has been
set to an non existent program name and Python is unable to retrieve the real
program name.

Fix also sysconfig: if sys.executable is an empty string, use the current
working directory.

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

8 years agoRevert r78830: realpath() should really be applied to sys.executable.
florent.xicluna [Thu, 11 Mar 2010 01:50:48 +0000 (01:50 +0000)]
Revert r78830: realpath() should really be applied to sys.executable.

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

8 years agoIt is not optimal to test sys.stderr on a debug build.
florent.xicluna [Thu, 11 Mar 2010 01:39:55 +0000 (01:39 +0000)]
It is not optimal to test sys.stderr on a debug build.

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

8 years agoFix the test_subprocess failure when sys.executable is meaningless: '' or a directory.
florent.xicluna [Thu, 11 Mar 2010 00:56:59 +0000 (00:56 +0000)]
Fix the test_subprocess failure when sys.executable is meaningless: '' or a directory.
It does not fix #7774.

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

8 years agoIssue #7880: Fix sysconfig when the python executable is a symbolic link.
florent.xicluna [Wed, 10 Mar 2010 23:58:42 +0000 (23:58 +0000)]
Issue #7880: Fix sysconfig when the python executable is a symbolic link.

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

8 years agoooops, fix error message in execusercustomize()
victor.stinner [Wed, 10 Mar 2010 22:45:04 +0000 (22:45 +0000)]
ooops, fix error message in execusercustomize()

Copy/paste failure :-)

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

8 years agoIssue #3137: Don't ignore errors at startup, especially a keyboard interrupt
victor.stinner [Wed, 10 Mar 2010 22:30:19 +0000 (22:30 +0000)]
Issue #3137: Don't ignore errors at startup, especially a keyboard interrupt
(SIGINT). If an error occurs while importing the site module, the error is
printed and Python exits. Initialize the GIL before importing the site
module.

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

8 years agofix ugly configure output (follow up to #6943)
benjamin.peterson [Tue, 9 Mar 2010 21:46:54 +0000 (21:46 +0000)]
fix ugly configure output (follow up to #6943)

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

8 years agohandle an empty OPT variable correctly #8100
benjamin.peterson [Tue, 9 Mar 2010 21:43:36 +0000 (21:43 +0000)]
handle an empty OPT variable correctly #8100

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

8 years ago#7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag.
florent.xicluna [Tue, 9 Mar 2010 19:57:01 +0000 (19:57 +0000)]
#7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag.

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

8 years agoImprove code clarity a bit.
raymond.hettinger [Tue, 9 Mar 2010 11:29:10 +0000 (11:29 +0000)]
Improve code clarity a bit.

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

8 years agoHave links in OrderedDicts be native Python lists instead
raymond.hettinger [Tue, 9 Mar 2010 09:58:53 +0000 (09:58 +0000)]
Have links in OrderedDicts be native Python lists instead
of a custom class with __slots__.  This simplifies the
code a bit, reduces memory consumption, improves speed,
and eliminates the need for weak reference proxies.

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

8 years agoAdd nicer docstrings to namedtuples().
raymond.hettinger [Tue, 9 Mar 2010 09:01:46 +0000 (09:01 +0000)]
Add nicer docstrings to namedtuples().
Provides better tooltips and looks better in help().

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