From buildbot at python.org Sat Dec 1 00:49:15 2007
From: buildbot at python.org (buildbot at python.org)
Date: Fri, 30 Nov 2007 23:49:15 +0000
Subject: [Python-checkins] buildbot failure in alpha Tru64 5.1 2.5
Message-ID: <20071130234915.E38901E4021@bag.python.org>
The Buildbot has detected a new failure of alpha Tru64 5.1 2.5.
Full details are available at:
http://www.python.org/dev/buildbot/all/alpha%20Tru64%205.1%202.5/builds/368
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-tru64
Build Reason:
Build Source Stamp: [branch branches/release25-maint] HEAD
Blamelist: amaury.forgeotdarc
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_socket
======================================================================
FAIL: testInterruptedTimeout (test.test_socket.TCPTimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/net/taipan/scratch1/nnorwitz/python/2.5.norwitz-tru64/build/Lib/test/test_socket.py", line 879, in testInterruptedTimeout
self.fail("got Alarm in wrong place")
AssertionError: got Alarm in wrong place
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 1 00:50:42 2007
From: buildbot at python.org (buildbot at python.org)
Date: Fri, 30 Nov 2007 23:50:42 +0000
Subject: [Python-checkins] buildbot failure in sparc solaris10 gcc 3.0
Message-ID: <20071130235043.24C461E4021@bag.python.org>
The Buildbot has detected a new failure of sparc solaris10 gcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/sparc%20solaris10%20gcc%203.0/builds/349
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-sun
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_bigmem test_codecmaps_jp
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/test/test_bigmem.py", line 74
s = u'.' * size
^
SyntaxError: invalid syntax
Re-running test 'test_codecmaps_jp' in verbose mode
sincerely,
-The Buildbot
From python-checkins at python.org Sat Dec 1 02:03:20 2007
From: python-checkins at python.org (christian.heimes)
Date: Sat, 1 Dec 2007 02:03:20 +0100 (CET)
Subject: [Python-checkins] r59253 - in python/trunk: PC/pyconfig.h
PCbuild9/pythoncore.vcproj
Message-ID: <20071201010320.DC30E1E4021@bag.python.org>
Author: christian.heimes
Date: Sat Dec 1 02:03:20 2007
New Revision: 59253
Modified:
python/trunk/PC/pyconfig.h
python/trunk/PCbuild9/pythoncore.vcproj
Log:
Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro.
Modified: python/trunk/PC/pyconfig.h
==============================================================================
--- python/trunk/PC/pyconfig.h (original)
+++ python/trunk/PC/pyconfig.h Sat Dec 1 02:03:20 2007
@@ -23,9 +23,11 @@
NOTE: The following symbols are deprecated:
-NT, WIN32, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT
+NT, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT
MS_CORE_DLL.
+WIN32 is still required for the locale module.
+
*/
#ifdef _WIN32_WCE
Modified: python/trunk/PCbuild9/pythoncore.vcproj
==============================================================================
--- python/trunk/PCbuild9/pythoncore.vcproj (original)
+++ python/trunk/PCbuild9/pythoncore.vcproj Sat Dec 1 02:03:20 2007
@@ -44,7 +44,7 @@
Name="VCCLCompilerTool"
AdditionalOptions="/Zm200 "
AdditionalIncludeDirectories="..\Python;..\Modules\zlib"
- PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED"
+ PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED;WIN32"
RuntimeLibrary="2"
/>
The Buildbot has detected a new failure of g4 osx.4 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/g4%20osx.4%203.0/builds/306
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: psf-g4
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bigmem
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/test/test_bigmem.py", line 74
s = u'.' * size
^
SyntaxError: invalid syntax
[765872 refs]
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 1 02:46:16 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 01:46:16 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071201014617.14EBD1E4035@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/332
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bigmem
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_bigmem.py", line 74
s = u'.' * size
^
SyntaxError: invalid syntax
[709274 refs]
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 1 03:31:22 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 02:31:22 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071201023122.72C6B1E4003@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/311
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bigmem
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_bigmem.py", line 74
s = u'.' * size
^
SyntaxError: invalid syntax
[701323 refs]
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 1 07:28:31 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 06:28:31 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable 3.0
Message-ID: <20071201062831.5DAC41E4003@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%203.0/builds/324
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_bigmem test_timeout
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/test/test_bigmem.py", line 74
s = u'.' * size
^
SyntaxError: invalid syntax
Re-running test 'test_timeout' in verbose mode
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Sat Dec 1 12:20:11 2007
From: python-checkins at python.org (christian.heimes)
Date: Sat, 1 Dec 2007 12:20:11 +0100 (CET)
Subject: [Python-checkins] r59254 - in python/trunk: Doc/c-api/concrete.rst
Doc/library/sys.rst Include/floatobject.h
Lib/test/test_sys.py Misc/NEWS Objects/floatobject.c
Python/sysmodule.c
Message-ID: <20071201112011.689461E4003@bag.python.org>
Author: christian.heimes
Date: Sat Dec 1 12:20:10 2007
New Revision: 59254
Modified:
python/trunk/Doc/c-api/concrete.rst
python/trunk/Doc/library/sys.rst
python/trunk/Include/floatobject.h
python/trunk/Lib/test/test_sys.py
python/trunk/Misc/NEWS
python/trunk/Objects/floatobject.c
python/trunk/Python/sysmodule.c
Log:
Feature #1534
Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API.
Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
Modified: python/trunk/Doc/c-api/concrete.rst
==============================================================================
--- python/trunk/Doc/c-api/concrete.rst (original)
+++ python/trunk/Doc/c-api/concrete.rst Sat Dec 1 12:20:10 2007
@@ -557,6 +557,23 @@
without error checking.
+.. cfunction:: PyObject* PyFloat_GetInfo(void)
+
+ Return a :ctype:`PyDictObject` object which contains information about the
+ precision, minimum and maximum values of a float. It's a thin wrapper
+ around the header file :file:`float.h`.
+
+
+.. cfunction:: double PyFloat_GetMax(void)
+
+ Return the maximum representable finite float *DBL_MAX* as C :ctype:`double`.
+
+
+.. cfunction:: double PyFloat_GetMin(void)
+
+ Return the minimum normalized positive float *DBL_MIN* as C :ctype:`double`.
+
+
.. _complexobjects:
Complex Number Objects
Modified: python/trunk/Doc/library/sys.rst
==============================================================================
--- python/trunk/Doc/library/sys.rst (original)
+++ python/trunk/Doc/library/sys.rst Sat Dec 1 12:20:10 2007
@@ -240,6 +240,48 @@
Use :mod:`atexit` instead.
+.. data:: float_info
+
+ A dict holding information about the float type. It contains low level
+ information about the precision and internal representation. Please study
+ your system's :file:`float.h` for more information.
+
+ +---------------------+--------------------------------------------------+
+ | key | explanation |
+ +=====================+==================================================+
+ | :const:`epsilon` | Difference between 1 and the next representable |
+ | | floating point number |
+ +---------------------+--------------------------------------------------+
+ | :const:`dig` | digits (see :file:`float.h`) |
+ +---------------------+--------------------------------------------------+
+ | :const:`mant_dig` | mantissa digits (see :file:`float.h`) |
+ +---------------------+--------------------------------------------------+
+ | :const:`max` | maximum representable finite float |
+ +---------------------+--------------------------------------------------+
+ | :const:`max_exp` | maximum int e such that radix**(e-1) is in the |
+ | | range of finite representable floats |
+ +---------------------+--------------------------------------------------+
+ | :const:`max_10_exp` | maximum int e such that 10**e is in the |
+ | | range of finite representable floats |
+ +---------------------+--------------------------------------------------+
+ | :const:`min` | Minimum positive normalizer float |
+ +---------------------+--------------------------------------------------+
+ | :const:`min_exp` | minimum int e such that radix**(e-1) is a |
+ | | normalized float |
+ +---------------------+--------------------------------------------------+
+ | :const:`min_10_exp` | minimum int e such that 10**e is a normalized |
+ | | float |
+ +---------------------+--------------------------------------------------+
+ | :const:`radix` | radix of exponent |
+ +---------------------+--------------------------------------------------+
+ | :const:`rounds` | addition rounds (see :file:`float.h`) |
+ +---------------------+--------------------------------------------------+
+
+ .. note::
+
+ The information in the table is simplified.
+
+
.. function:: getcheckinterval()
Return the interpreter's "check interval"; see :func:`setcheckinterval`.
Modified: python/trunk/Include/floatobject.h
==============================================================================
--- python/trunk/Include/floatobject.h (original)
+++ python/trunk/Include/floatobject.h Sat Dec 1 12:20:10 2007
@@ -21,6 +21,10 @@
#define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
#define PyFloat_CheckExact(op) (Py_Type(op) == &PyFloat_Type)
+PyAPI_FUNC(double) PyFloat_GetMax(void);
+PyAPI_FUNC(double) PyFloat_GetMin(void);
+PyAPI_FUNC(PyObject *) PyFloat_GetInfo(void);
+
/* Return Python float from string PyObject. Second argument ignored on
input, and, if non-NULL, NULL is stored into *junk (this tried to serve a
purpose once but can't be made to work as intended). */
Modified: python/trunk/Lib/test/test_sys.py
==============================================================================
--- python/trunk/Lib/test/test_sys.py (original)
+++ python/trunk/Lib/test/test_sys.py Sat Dec 1 12:20:10 2007
@@ -329,6 +329,8 @@
self.assert_(isinstance(sys.copyright, basestring))
self.assert_(isinstance(sys.exec_prefix, basestring))
self.assert_(isinstance(sys.executable, basestring))
+ self.assert_(isinstance(sys.float_info, dict))
+ self.assertEqual(len(sys.float_info), 11)
self.assert_(isinstance(sys.hexversion, int))
self.assert_(isinstance(sys.maxint, int))
if test.test_support.have_unicode:
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sat Dec 1 12:20:10 2007
@@ -12,6 +12,9 @@
Core and builtins
-----------------
+- Issue #1534: Added ``PyFloat_GetMax()``, ``PyFloat_GetMin()`` and
+ ``PyFloat_GetInfo()`` to the float API.
+
- Issue #1521: On 64bit platforms, using PyArgs_ParseTuple with the t# of w#
format code incorrectly truncated the length to an int, even when
PY_SSIZE_T_CLEAN is set. The str.decode method used to return incorrect
@@ -301,6 +304,9 @@
Library
-------
+- Issue #1534: Added a dictionary sys.float_info with information about the
+ internal floating point type to the sys module.
+
- Issue 1429818: patch for trace and doctest modules so they play nicely
together.
Modified: python/trunk/Objects/floatobject.c
==============================================================================
--- python/trunk/Objects/floatobject.c (original)
+++ python/trunk/Objects/floatobject.c Sat Dec 1 12:20:10 2007
@@ -7,6 +7,7 @@
#include "Python.h"
#include
+#include
#if !defined(__STDC__)
extern double fmod(double, double);
@@ -46,6 +47,52 @@
return p + N_FLOATOBJECTS - 1;
}
+double
+PyFloat_GetMax(void)
+{
+ return DBL_MAX;
+}
+
+double
+PyFloat_GetMin(void)
+{
+ return DBL_MIN;
+}
+
+PyObject *
+PyFloat_GetInfo(void)
+{
+ PyObject *d, *tmp;
+
+#define SET_FLOAT_CONST(d, key, const) \
+ tmp = PyFloat_FromDouble(const); \
+ if (tmp == NULL) return NULL; \
+ if (PyDict_SetItemString(d, key, tmp)) return NULL; \
+ Py_DECREF(tmp)
+#define SET_INT_CONST(d, key, const) \
+ tmp = PyInt_FromLong(const); \
+ if (tmp == NULL) return NULL; \
+ if (PyDict_SetItemString(d, key, tmp)) return NULL; \
+ Py_DECREF(tmp)
+
+ d = PyDict_New();
+
+ SET_FLOAT_CONST(d, "max", DBL_MAX);
+ SET_INT_CONST(d, "max_exp", DBL_MAX_EXP);
+ SET_INT_CONST(d, "max_10_exp", DBL_MAX_10_EXP);
+ SET_FLOAT_CONST(d, "min", DBL_MIN);
+ SET_INT_CONST(d, "min_exp", DBL_MIN_EXP);
+ SET_INT_CONST(d, "min_10_exp", DBL_MIN_10_EXP);
+ SET_INT_CONST(d, "dig", DBL_DIG);
+ SET_INT_CONST(d, "mant_dig", DBL_MANT_DIG);
+ SET_FLOAT_CONST(d, "epsilon", DBL_EPSILON);
+ SET_INT_CONST(d, "radix", FLT_RADIX);
+ SET_INT_CONST(d, "rounds", FLT_ROUNDS);
+
+ return d;
+}
+
+
PyObject *
PyFloat_FromDouble(double fval)
{
Modified: python/trunk/Python/sysmodule.c
==============================================================================
--- python/trunk/Python/sysmodule.c (original)
+++ python/trunk/Python/sysmodule.c Sat Dec 1 12:20:10 2007
@@ -1169,6 +1169,8 @@
PyInt_FromLong(PyInt_GetMax()));
SET_SYS_FROM_STRING("py3kwarning",
PyBool_FromLong(Py_Py3kWarningFlag));
+ SET_SYS_FROM_STRING("float_info",
+ PyFloat_GetInfo());
#ifdef Py_USING_UNICODE
SET_SYS_FROM_STRING("maxunicode",
PyInt_FromLong(PyUnicode_GetMax()));
From buildbot at python.org Sat Dec 1 13:02:55 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 12:02:55 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-4 trunk
Message-ID: <20071201120255.A1EB01E4014@bag.python.org>
The Buildbot has detected a new failure of x86 XP-4 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-4%20trunk/builds/238
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 1 13:56:18 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 12:56:18 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable trunk
Message-ID: <20071201125618.361CB1E4003@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%20trunk/builds/395
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 1 14:01:51 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 13:01:51 +0000
Subject: [Python-checkins] buildbot failure in PPC64 Debian trunk
Message-ID: <20071201130151.BDC1E1E4003@bag.python.org>
The Buildbot has detected a new failure of PPC64 Debian trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/PPC64%20Debian%20trunk/builds/391
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc64
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
Traceback (most recent call last):
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 378, in writerThread
self.doWrite(d, name, x, min(stop, x+step))
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 366, in doWrite
txn.abort()
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: DB_NOTFOUND: No matching key/data pair found')
Traceback (most recent call last):
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 421, in readerThread
rec = c.first()
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: fatal region error detected; run recovery')
Traceback (most recent call last):
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 421, in readerThread
rec = c.first()
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery')
Traceback (most recent call last):
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 378, in writerThread
self.doWrite(d, name, x, min(stop, x+step))
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 358, in doWrite
d.put(key, self.makeData(key), txn)
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery')
Traceback (most recent call last):
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 421, in readerThread
rec = c.first()
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: fatal region error detected; run recovery')
Traceback (most recent call last):
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 421, in readerThread
rec = c.first()
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: fatal region error detected; run recovery')
Traceback (most recent call last):
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 378, in writerThread
self.doWrite(d, name, x, min(stop, x+step))
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 358, in doWrite
d.put(key, self.makeData(key), txn)
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: fatal region error detected; run recovery')
Traceback (most recent call last):
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea64/trunk.klose-debian-ppc64/build/Lib/bsddb/test/test_thread.py", line 421, in readerThread
rec = c.first()
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: fatal region error detected; run recovery')
1 test failed:
test_bsddb3
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Sat Dec 1 14:23:04 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 1 Dec 2007 14:23:04 +0100 (CET)
Subject: [Python-checkins] r59256 - python/trunk/Doc/c-api/concrete.rst
Message-ID: <20071201132304.AA2EA1E4003@bag.python.org>
Author: georg.brandl
Date: Sat Dec 1 14:23:04 2007
New Revision: 59256
Modified:
python/trunk/Doc/c-api/concrete.rst
Log:
Add versionadded tags missing in r59254. Do NOT merge to Py3k.
Modified: python/trunk/Doc/c-api/concrete.rst
==============================================================================
--- python/trunk/Doc/c-api/concrete.rst (original)
+++ python/trunk/Doc/c-api/concrete.rst Sat Dec 1 14:23:04 2007
@@ -563,16 +563,22 @@
precision, minimum and maximum values of a float. It's a thin wrapper
around the header file :file:`float.h`.
+ .. versionadded:: 2.6
+
.. cfunction:: double PyFloat_GetMax(void)
Return the maximum representable finite float *DBL_MAX* as C :ctype:`double`.
+ .. versionadded:: 2.6
+
.. cfunction:: double PyFloat_GetMin(void)
Return the minimum normalized positive float *DBL_MIN* as C :ctype:`double`.
+ .. versionadded:: 2.6
+
.. _complexobjects:
From python-checkins at python.org Sat Dec 1 16:40:22 2007
From: python-checkins at python.org (christian.heimes)
Date: Sat, 1 Dec 2007 16:40:22 +0100 (CET)
Subject: [Python-checkins] r59258 - python/trunk/Doc/library/sys.rst
Message-ID: <20071201154022.57A5B1E4006@bag.python.org>
Author: christian.heimes
Date: Sat Dec 1 16:40:22 2007
New Revision: 59258
Modified:
python/trunk/Doc/library/sys.rst
Log:
Added one more missing versionadded tag
Modified: python/trunk/Doc/library/sys.rst
==============================================================================
--- python/trunk/Doc/library/sys.rst (original)
+++ python/trunk/Doc/library/sys.rst Sat Dec 1 16:40:22 2007
@@ -281,6 +281,8 @@
The information in the table is simplified.
+ .. versionadded:: 2.6
+
.. function:: getcheckinterval()
From buildbot at python.org Sat Dec 1 17:26:47 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 16:26:47 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071201162647.E4BAA1E4006@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/335
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_urllib2 test_urllib2net
======================================================================
ERROR: testURLread (test.test_urllib2net.URLTimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 24, in testURLread
f = urllib2.urlopen("http://www.python.org/")
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_bad_address (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 145, in test_bad_address
urllib2.urlopen, "http://www.python.invalid./")
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/unittest.py", line 311, in failUnlessRaises
callableObj(*args, **kwargs)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_basic (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 103, in test_basic
open_url = urllib2.urlopen("http://www.python.org/")
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_geturl (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 127, in test_geturl
open_url = urllib2.urlopen(URL)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_info (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 114, in test_info
open_url = urllib2.urlopen("http://www.python.org/")
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_file (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 185, in test_file
self._test_urls(urls, self._extra_handlers())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 233, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 173, in test_ftp
self._test_urls(urls, self._extra_handlers())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 233, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 197, in test_http
self._test_urls(urls, self._extra_handlers())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 233, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_range (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 158, in test_range
result = urllib2.urlopen(req)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_close (test.test_urllib2net.CloseSocketTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 76, in test_close
response = urllib2.urlopen("http://www.python.org/")
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp_NoneNodefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 304, in test_ftp_NoneNodefault
timeout=None)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp_NoneWithdefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 297, in test_ftp_NoneWithdefault
timeout=None)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp_Value (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 308, in test_ftp_Value
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=60)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp_basic (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 289, in test_ftp_basic
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/")
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http_NoneNodefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 285, in test_http_NoneNodefault
u = urllib2.urlopen("http://www.python.org", timeout=None)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http_NoneWithdefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 275, in test_http_NoneWithdefault
u = urllib2.urlopen("http://www.python.org", timeout=None)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http_Value (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 281, in test_http_Value
u = urllib2.urlopen("http://www.python.org", timeout=120)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http_basic (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_urllib2net.py", line 268, in test_http_basic
u = urllib2.urlopen("http://www.python.org")
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Sat Dec 1 22:02:13 2007
From: python-checkins at python.org (lars.gustaebel)
Date: Sat, 1 Dec 2007 22:02:13 +0100 (CET)
Subject: [Python-checkins] r59260 - in python/trunk: Lib/tarfile.py
Lib/test/test_tarfile.py Misc/NEWS
Message-ID: <20071201210213.43F5A1E4031@bag.python.org>
Author: lars.gustaebel
Date: Sat Dec 1 22:02:12 2007
New Revision: 59260
Modified:
python/trunk/Lib/tarfile.py
python/trunk/Lib/test/test_tarfile.py
python/trunk/Misc/NEWS
Log:
Issue #1531: Read fileobj from the current offset, do not seek to
the start.
(will backport to 2.5)
Modified: python/trunk/Lib/tarfile.py
==============================================================================
--- python/trunk/Lib/tarfile.py (original)
+++ python/trunk/Lib/tarfile.py Sat Dec 1 22:02:12 2007
@@ -1558,7 +1558,8 @@
self.closed = False
self.members = [] # list of members as TarInfo objects
self._loaded = False # flag if all members have been read
- self.offset = 0L # current position in the archive file
+ self.offset = self.fileobj.tell()
+ # current position in the archive file
self.inodes = {} # dictionary caching the inodes of
# archive members already added
Modified: python/trunk/Lib/test/test_tarfile.py
==============================================================================
--- python/trunk/Lib/test/test_tarfile.py (original)
+++ python/trunk/Lib/test/test_tarfile.py Sat Dec 1 22:02:12 2007
@@ -160,6 +160,38 @@
tar = tarfile.open(fileobj=fobj, mode=self.mode)
self.assertEqual(tar.name, None)
+ def test_fileobj_with_offset(self):
+ # Skip the first member and store values from the second member
+ # of the testtar.
+ tar = tarfile.open(self.tarname, mode=self.mode)
+ tar.next()
+ t = tar.next()
+ name = t.name
+ offset = t.offset
+ data = tar.extractfile(t).read()
+ tar.close()
+
+ # Open the testtar and seek to the offset of the second member.
+ if self.mode.endswith(":gz"):
+ _open = gzip.GzipFile
+ elif self.mode.endswith(":bz2"):
+ _open = bz2.BZ2File
+ else:
+ _open = open
+ fobj = _open(self.tarname, "rb")
+ fobj.seek(offset)
+
+ # Test if the tarfile starts with the second member.
+ tar = tar.open(self.tarname, mode="r:", fileobj=fobj)
+ t = tar.next()
+ self.assertEqual(t.name, name)
+ # Read to the end of fileobj and test if seeking back to the
+ # beginning works.
+ tar.getmembers()
+ self.assertEqual(tar.extractfile(t).read(), data,
+ "seek back did not work")
+ tar.close()
+
def test_fail_comp(self):
# For Gzip and Bz2 Tests: fail with a ReadError on an uncompressed file.
if self.mode == "r:":
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sat Dec 1 22:02:12 2007
@@ -304,6 +304,9 @@
Library
-------
+- Issue #1531: tarfile.py: Read fileobj from the current offset, do not
+ seek to the start.
+
- Issue #1534: Added a dictionary sys.float_info with information about the
internal floating point type to the sys module.
From python-checkins at python.org Sat Dec 1 22:06:06 2007
From: python-checkins at python.org (lars.gustaebel)
Date: Sat, 1 Dec 2007 22:06:06 +0100 (CET)
Subject: [Python-checkins] r59261 - in python/branches/release25-maint:
Lib/tarfile.py Lib/test/test_tarfile.py Misc/NEWS
Message-ID: <20071201210606.CAD471E4006@bag.python.org>
Author: lars.gustaebel
Date: Sat Dec 1 22:06:06 2007
New Revision: 59261
Modified:
python/branches/release25-maint/Lib/tarfile.py
python/branches/release25-maint/Lib/test/test_tarfile.py
python/branches/release25-maint/Misc/NEWS
Log:
Issue #1531: Read fileobj from the current offset, do not seek to
the start.
(backport from r59260)
Modified: python/branches/release25-maint/Lib/tarfile.py
==============================================================================
--- python/branches/release25-maint/Lib/tarfile.py (original)
+++ python/branches/release25-maint/Lib/tarfile.py Sat Dec 1 22:06:06 2007
@@ -1065,7 +1065,8 @@
self.closed = False
self.members = [] # list of members as TarInfo objects
self._loaded = False # flag if all members have been read
- self.offset = 0L # current position in the archive file
+ self.offset = self.fileobj.tell()
+ # current position in the archive file
self.inodes = {} # dictionary caching the inodes of
# archive members already added
Modified: python/branches/release25-maint/Lib/test/test_tarfile.py
==============================================================================
--- python/branches/release25-maint/Lib/test/test_tarfile.py (original)
+++ python/branches/release25-maint/Lib/test/test_tarfile.py Sat Dec 1 22:06:06 2007
@@ -260,6 +260,38 @@
mode = self.mode + self.sep + "*"
self.tar = tarfile.open(tarname(self.comp), mode)
+class ReadFileobjTest(BaseTest):
+
+ def test_fileobj_with_offset(self):
+ # Skip the first member and store values from the second member
+ # of the testtar.
+ self.tar.next()
+ t = self.tar.next()
+ name = t.name
+ offset = t.offset
+ data = self.tar.extractfile(t).read()
+ self.tar.close()
+
+ # Open the testtar and seek to the offset of the second member.
+ if self.comp == "gz":
+ _open = gzip.GzipFile
+ elif self.comp == "bz2":
+ _open = bz2.BZ2File
+ else:
+ _open = open
+ fobj = _open(tarname(self.comp), "rb")
+ fobj.seek(offset)
+
+ # Test if the tarfile starts with the second member.
+ self.tar = tarfile.open(tarname(self.comp), "r:", fileobj=fobj)
+ t = self.tar.next()
+ self.assertEqual(t.name, name)
+ # Read to the end of fileobj and test if seeking back to the
+ # beginning works.
+ self.tar.getmembers()
+ self.assertEqual(self.tar.extractfile(t).read(), data,
+ "seek back did not work")
+
class WriteTest(BaseTest):
mode = 'w'
@@ -624,6 +656,8 @@
comp = "gz"
class ReadStreamAsteriskTestGzip(ReadStreamAsteriskTest):
comp = "gz"
+class ReadFileobjTestGzip(ReadFileobjTest):
+ comp = "gz"
# Filemode test cases
@@ -680,6 +714,8 @@
comp = "bz2"
class ReadStreamAsteriskTestBzip2(ReadStreamAsteriskTest):
comp = "bz2"
+ class ReadFileobjTestBzip2(ReadFileobjTest):
+ comp = "bz2"
# If importing gzip failed, discard the Gzip TestCases.
if not gzip:
@@ -713,6 +749,7 @@
ReadDetectFileobjTest,
ReadAsteriskTest,
ReadStreamAsteriskTest,
+ ReadFileobjTest,
WriteTest,
Write100Test,
WriteSize0Test,
@@ -730,7 +767,8 @@
ReadTestGzip, ReadStreamTestGzip,
WriteTestGzip, WriteStreamTestGzip,
ReadDetectTestGzip, ReadDetectFileobjTestGzip,
- ReadAsteriskTestGzip, ReadStreamAsteriskTestGzip
+ ReadAsteriskTestGzip, ReadStreamAsteriskTestGzip,
+ ReadFileobjTestGzip
])
if bz2:
@@ -738,7 +776,8 @@
ReadTestBzip2, ReadStreamTestBzip2,
WriteTestBzip2, WriteStreamTestBzip2,
ReadDetectTestBzip2, ReadDetectFileobjTestBzip2,
- ReadAsteriskTestBzip2, ReadStreamAsteriskTestBzip2
+ ReadAsteriskTestBzip2, ReadStreamAsteriskTestBzip2,
+ ReadFileobjTestBzip2
])
try:
test_support.run_unittest(*tests)
Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS (original)
+++ python/branches/release25-maint/Misc/NEWS Sat Dec 1 22:06:06 2007
@@ -46,6 +46,9 @@
Library
-------
+- Issue #1531: tarfile.py: Read fileobj from the current offset, do not
+ seek to the start.
+
- Issue 1429818: patch for trace and doctest modules so they play nicely
together.
From buildbot at python.org Sat Dec 1 22:58:13 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 21:58:13 +0000
Subject: [Python-checkins] buildbot failure in x86 OpenBSD 2.5
Message-ID: <20071201215813.3FB121E4006@bag.python.org>
The Buildbot has detected a new failure of x86 OpenBSD 2.5.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20OpenBSD%202.5/builds/28
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: cortesi
Build Reason:
Build Source Stamp: [branch branches/release25-maint] HEAD
Blamelist: lars.gustaebel
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_urllib2 test_urllib2net
======================================================================
ERROR: test_trivial (test.test_urllib2.TrivialTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2.py", line 19, in test_trivial
self.assertRaises(ValueError, urllib2.urlopen, 'bogus url')
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 123, in urlopen
_opener = build_opener()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_file (test.test_urllib2.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2.py", line 617, in test_file
r = h.file_open(Request(url))
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 1203, in file_open
return self.open_local_file(req)
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 1222, in open_local_file
localfile = url2pathname(file)
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 55, in url2pathname
return unquote(pathname)
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_http (test.test_urllib2.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2.py", line 721, in test_http
r.read; r.readline # wrapped MockFile methods
AttributeError: addinfourl instance has no attribute 'read'
======================================================================
ERROR: test_build_opener (test.test_urllib2.MiscTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2.py", line 1019, in test_build_opener
o = build_opener(FooHandler, BarHandler)
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: testURLread (test.test_urllib2net.URLTimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 24, in testURLread
f = urllib2.urlopen("http://www.python.org/")
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 123, in urlopen
_opener = build_opener()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_bad_address (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 147, in test_bad_address
urllib2.urlopen, "http://www.python.invalid./")
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 123, in urlopen
_opener = build_opener()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_basic (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 105, in test_basic
open_url = urllib2.urlopen("http://www.python.org/")
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 123, in urlopen
_opener = build_opener()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_geturl (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 129, in test_geturl
open_url = urllib2.urlopen(URL)
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 123, in urlopen
_opener = build_opener()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_info (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 116, in test_info
open_url = urllib2.urlopen("http://www.python.org/")
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 123, in urlopen
_opener = build_opener()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_file (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 202, in test_file
self._test_urls(urls, self._extra_handlers())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 250, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 174, in test_ftp
self._test_urls(urls, self._extra_handlers())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 250, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_gopher (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 187, in test_gopher
self._test_urls(urls, self._extra_handlers())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 250, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 214, in test_http
self._test_urls(urls, self._extra_handlers())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 250, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_range (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 160, in test_range
result = urllib2.urlopen(req)
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 123, in urlopen
_opener = build_opener()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_close (test.test_urllib2net.CloseSocketTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/test/test_urllib2net.py", line 76, in test_close
response = urllib2.urlopen("http://www.python.org/")
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 123, in urlopen
_opener = build_opener()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 462, in build_opener
opener.add_handler(klass())
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib2.py", line 669, in __init__
proxies = getproxies()
File "/home/buildbot/buildbot/2.5.cortesi/build/Lib/urllib.py", line 1289, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
sincerely,
-The Buildbot
From python-checkins at python.org Sat Dec 1 23:24:47 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 1 Dec 2007 23:24:47 +0100 (CET)
Subject: [Python-checkins] r59262 - in python/trunk/Doc: ACKS.txt
c-api/init.rst c-api/utilities.rst c-api/veryhigh.rst
extending/extending.rst
Message-ID: <20071201222447.7A8D71E4006@bag.python.org>
Author: georg.brandl
Date: Sat Dec 1 23:24:47 2007
New Revision: 59262
Modified:
python/trunk/Doc/ACKS.txt
python/trunk/Doc/c-api/init.rst
python/trunk/Doc/c-api/utilities.rst
python/trunk/Doc/c-api/veryhigh.rst
python/trunk/Doc/extending/extending.rst
Log:
Document PyEval_* functions from ceval.c.
Credits to Michael Sloan from GHOP.
Modified: python/trunk/Doc/ACKS.txt
==============================================================================
--- python/trunk/Doc/ACKS.txt (original)
+++ python/trunk/Doc/ACKS.txt Sat Dec 1 23:24:47 2007
@@ -162,6 +162,7 @@
* Justin Sheehy
* Michael Simcich
* Ionel Simionescu
+* Michael Sloan
* Gregory P. Smith
* Roy Smith
* Clay Spence
Modified: python/trunk/Doc/c-api/init.rst
==============================================================================
--- python/trunk/Doc/c-api/init.rst (original)
+++ python/trunk/Doc/c-api/init.rst Sat Dec 1 23:24:47 2007
@@ -621,6 +621,14 @@
deadlock ensues. (This function is available even when thread support is
disabled at compile time.)
+
+.. cfunction:: void PyEval_ReInitThreads()
+
+ This function is called from :cfunc:`PyOS_AfterFork` to ensure that newly
+ created child processes don't hold locks referring to threads which
+ are not running in the child process.
+
+
The following macros are normally used without a trailing semicolon; look for
example usage in the Python source distribution.
@@ -892,6 +900,46 @@
:cfunc:`PyEval_SetProfile`, except the tracing function does receive line-number
events.
+.. cfunction:: PyObject* PyEval_GetCallStats(PyObject *self)
+
+ Return a tuple of function call counts. There are constants defined for the
+ positions within the tuple:
+
+ +-------------------------------+-------+
+ | Name | Value |
+ +===============================+=======+
+ | :const:`PCALL_ALL` | 0 |
+ +-------------------------------+-------+
+ | :const:`PCALL_FUNCTION` | 1 |
+ +-------------------------------+-------+
+ | :const:`PCALL_FAST_FUNCTION` | 2 |
+ +-------------------------------+-------+
+ | :const:`PCALL_FASTER_FUNCTION`| 3 |
+ +-------------------------------+-------+
+ | :const:`PCALL_METHOD` | 4 |
+ +-------------------------------+-------+
+ | :const:`PCALL_BOUND_METHOD` | 5 |
+ +-------------------------------+-------+
+ | :const:`PCALL_CFUNCTION` | 6 |
+ +-------------------------------+-------+
+ | :const:`PCALL_TYPE` | 7 |
+ +-------------------------------+-------+
+ | :const:`PCALL_GENERATOR` | 8 |
+ +-------------------------------+-------+
+ | :const:`PCALL_OTHER` | 9 |
+ +-------------------------------+-------+
+ | :const:`PCALL_POP` | 10 |
+ +-------------------------------+-------+
+
+ :const:`PCALL_FAST_FUNCTION` means no argument tuple needs to be created.
+ :const:`PCALL_FASTER_FUNCTION` means that the fast-path frame setup code is used.
+
+ If there is a method call where the call can be optimized by changing
+ the argument tuple and calling the function directly, it gets recorded
+ twice.
+
+ This function is only present if Python is compiled with :const:`CALL_PROFILE`
+ defined.
.. _advanced-debugging:
Modified: python/trunk/Doc/c-api/utilities.rst
==============================================================================
--- python/trunk/Doc/c-api/utilities.rst (original)
+++ python/trunk/Doc/c-api/utilities.rst Sat Dec 1 23:24:47 2007
@@ -1015,3 +1015,52 @@
See the Unix man page :manpage:`atof(2)` for details.
+
+.. _reflection:
+
+Reflection
+==========
+
+.. cfunction:: PyObject* PyEval_GetBuiltins()
+
+ Return a dictionary of the builtins in the current execution frame,
+ or the interpreter of the thread state if no frame is currently executing.
+
+
+.. cfunction:: PyObject* PyEval_GetLocals()
+
+ Return a dictionary of the local variables in the current execution frame,
+ or *NULL* if no frame is currently executing.
+
+
+.. cfunction:: PyObject* PyEval_GetGlobals()
+
+ Return a dictionary of the global variables in the current execution frame,
+ or *NULL* if no frame is currently executing.
+
+
+.. cfunction:: PyFrameObject* PyEval_GetFrame()
+
+ Return the current thread state's frame, which is *NULL* if no frame is
+ currently executing.
+
+
+.. cfunction:: int PyEval_GetRestricted()
+
+ If there is a current frame and it is executing in restricted mode, return true,
+ otherwise false.
+
+
+.. cfunction:: const char* PyEval_GetFuncName(PyObject *func)
+
+ Return the name of *func* if it is a function, class or instance object, else the
+ name of *func*\s type.
+
+
+.. cfunction:: const char* PyEval_GetFuncDesc(PyObject *func)
+
+ Return a description string, depending on the type of *func*.
+ Return values include "()" for functions and methods, " constructor",
+ " instance", and " object". Concatenated with the result of
+ :cfunc:`PyEval_GetFuncName`, the result will be a description of
+ *func*.
Modified: python/trunk/Doc/c-api/veryhigh.rst
==============================================================================
--- python/trunk/Doc/c-api/veryhigh.rst (original)
+++ python/trunk/Doc/c-api/veryhigh.rst Sat Dec 1 23:24:47 2007
@@ -229,6 +229,43 @@
be parsed or compiled.
+.. cfunction:: PyObject* PyEval_EvalCode(PyCodeObject *co, PyObject *globals, PyObject *locals)
+
+ This is a simplified interface to :cfunc:`PyEval_EvalCodeEx`, with just
+ the code object, and the dictionaries of global and local variables.
+ The other arguments are set to *NULL*.
+
+
+.. cfunction:: PyObject* PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals, PyObject **args, int argcount, PyObject **kws, int kwcount, PyObject **defs, int defcount, PyObject *closure)
+
+ Evaluate a precompiled code object, given a particular environment for its
+ evaluation. This environment consists of dictionaries of global and local
+ variables, arrays of arguments, keywords and defaults, and a closure tuple of
+ cells.
+
+
+.. cfunction:: PyObject* PyEval_EvalFrame(PyFrameObject *f)
+
+ Evaluate an execution frame. This is a simplified interface to
+ PyEval_EvalFrameEx, for backward compatibility.
+
+
+.. cfunction:: PyObject* PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
+
+ This is the main, unvarnished function of Python interpretation. It is
+ literally 2000 lines long. The code object associated with the execution
+ frame *f* is executed, interpreting bytecode and executing calls as needed.
+ The additional *throwflag* parameter can mostly be ignored - if true, then
+ it causes an exception to immediately be thrown; this is used for the
+ :meth:`throw` methods of generator objects.
+
+
+.. cfunction:: int PyEval_MergeCompilerFlags(PyCompilerFlags *cf)
+
+ This function changes the flags of the current evaluation frame, and returns
+ true on success, false on failure.
+
+
.. cvar:: int Py_eval_input
.. index:: single: Py_CompileString()
Modified: python/trunk/Doc/extending/extending.rst
==============================================================================
--- python/trunk/Doc/extending/extending.rst (original)
+++ python/trunk/Doc/extending/extending.rst Sat Dec 1 23:24:47 2007
@@ -471,10 +471,10 @@
:cfunc:`PyEval_CallObject`. This function has two arguments, both pointers to
arbitrary Python objects: the Python function, and the argument list. The
argument list must always be a tuple object, whose length is the number of
-arguments. To call the Python function with no arguments, pass an empty tuple;
-to call it with one argument, pass a singleton tuple. :cfunc:`Py_BuildValue`
-returns a tuple when its format string consists of zero or more format codes
-between parentheses. For example::
+arguments. To call the Python function with no arguments, pass in NULL, or
+an empty tuple; to call it with one argument, pass a singleton tuple.
+:cfunc:`Py_BuildValue` returns a tuple when its format string consists of zero
+or more format codes between parentheses. For example::
int arg;
PyObject *arglist;
@@ -532,9 +532,22 @@
Py_DECREF(result);
Note the placement of ``Py_DECREF(arglist)`` immediately after the call, before
-the error check! Also note that strictly spoken this code is not complete:
+the error check! Also note that strictly speaking this code is not complete:
:cfunc:`Py_BuildValue` may run out of memory, and this should be checked.
+You may also call a function with keyword arguments by using
+:cfunc:`PyEval_CallObjectWithKeywords`. As in the above example, we use
+:cfunc:`Py_BuildValue` to construct the dictionary. ::
+
+ PyObject *dict;
+ ...
+ dict = Py_BuildValue("{s:i}", "name", val);
+ result = PyEval_CallObjectWithKeywords(my_callback, NULL, dict);
+ Py_DECREF(dict);
+ if (result == NULL)
+ return NULL; /* Pass error back */
+ /* Here maybe use the result */
+ Py_DECREF(result);
.. _parsetuple:
From python-checkins at python.org Sat Dec 1 23:27:56 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 1 Dec 2007 23:27:56 +0100 (CET)
Subject: [Python-checkins] r59263 - python/trunk/Doc/data/refcounts.dat
Message-ID: <20071201222757.017121E4025@bag.python.org>
Author: georg.brandl
Date: Sat Dec 1 23:27:56 2007
New Revision: 59263
Modified:
python/trunk/Doc/data/refcounts.dat
Log:
Add a few refcount data entries.
Modified: python/trunk/Doc/data/refcounts.dat
==============================================================================
--- python/trunk/Doc/data/refcounts.dat (original)
+++ python/trunk/Doc/data/refcounts.dat Sat Dec 1 23:27:56 2007
@@ -313,6 +313,11 @@
PyEval_AcquireThread:void:::
PyEval_AcquireThread:PyThreadState*:tstate::
+PyEval_GetBuiltins:PyObject*::0:
+PyEval_GetLocals:PyObject*::0:
+PyEval_GetGlobals:PyObject*::0:
+PyEval_GetFrame:PyObject*::0:
+
PyEval_InitThreads:void:::
PyEval_ReleaseLock:void:::
From python-checkins at python.org Sat Dec 1 23:38:48 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 1 Dec 2007 23:38:48 +0100 (CET)
Subject: [Python-checkins] r59264 - in python/trunk: Lib/test/test_cmd.py
Misc/ACKS
Message-ID: <20071201223848.A62831E501F@bag.python.org>
Author: georg.brandl
Date: Sat Dec 1 23:38:48 2007
New Revision: 59264
Added:
python/trunk/Lib/test/test_cmd.py
Modified:
python/trunk/Misc/ACKS
Log:
Add test suite for cmd module.
Written by Michael Schneider for GHOP.
Added: python/trunk/Lib/test/test_cmd.py
==============================================================================
--- (empty file)
+++ python/trunk/Lib/test/test_cmd.py Sat Dec 1 23:38:48 2007
@@ -0,0 +1,186 @@
+#!/usr/bin/env python
+"""
+Test script for the 'cmd' module
+Original by Michael Schneider
+"""
+
+
+from test import test_support
+import cmd
+import sys
+
+class samplecmdclass(cmd.Cmd):
+ """
+ Instance the sampleclass:
+ >>> mycmd = samplecmdclass()
+
+ Test for the function parseline():
+ >>> mycmd.parseline("")
+ (None, None, '')
+ >>> mycmd.parseline("?")
+ ('help', '', 'help ')
+ >>> mycmd.parseline("?help")
+ ('help', 'help', 'help help')
+ >>> mycmd.parseline("!")
+ ('shell', '', 'shell ')
+ >>> mycmd.parseline("!command")
+ ('shell', 'command', 'shell command')
+ >>> mycmd.parseline("func")
+ ('func', '', 'func')
+ >>> mycmd.parseline("func arg1")
+ ('func', 'arg1', 'func arg1')
+
+
+ Test for the function onecmd():
+ >>> mycmd.onecmd("")
+ >>> mycmd.onecmd("add 4 5")
+ 9
+ >>> mycmd.onecmd("")
+ 9
+ >>> mycmd.onecmd("test")
+ *** Unknown syntax: test
+
+ Test for the function emptyline():
+ >>> mycmd.emptyline()
+ *** Unknown syntax: test
+
+ Test for the function default():
+ >>> mycmd.default("default")
+ *** Unknown syntax: default
+
+ Test for the function completedefault():
+ >>> mycmd.completedefault()
+ This is the completedefault methode
+ >>> mycmd.completenames("a")
+ ['add']
+
+ Test for the function completenames():
+ >>> mycmd.completenames("12")
+ []
+ >>> mycmd.completenames("help")
+ ['help', 'help']
+
+ Test for the function complete_help():
+ >>> mycmd.complete_help("a")
+ ['add']
+ >>> mycmd.complete_help("he")
+ ['help', 'help']
+ >>> mycmd.complete_help("12")
+ []
+
+ Test for the function do_help():
+ >>> mycmd.do_help("testet")
+ *** No help on testet
+ >>> mycmd.do_help("add")
+ help text for add
+ >>> mycmd.onecmd("help add")
+ help text for add
+ >>> mycmd.do_help("")
+
+ Documented commands (type help ):
+ ========================================
+ add
+
+ Undocumented commands:
+ ======================
+ exit help shell
+
+
+ Test for the function print_topics():
+ >>> mycmd.print_topics("header", ["command1", "command2"], 2 ,10)
+ header
+ ======
+ command1
+ command2
+
+
+ Test for the function columnize():
+ >>> mycmd.columnize([str(i) for i in xrange(20)])
+ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
+ >>> mycmd.columnize([str(i) for i in xrange(20)], 10)
+ 0 7 14
+ 1 8 15
+ 2 9 16
+ 3 10 17
+ 4 11 18
+ 5 12 19
+ 6 13
+
+ This is a interactive test, put some commands in the cmdqueue attribute
+ and let it execute
+ This test includes the preloop(), postloop(), default(), emptyline(),
+ parseline(), do_help() functions
+ >>> mycmd.use_rawinput=0
+ >>> mycmd.cmdqueue=["", "add", "add 4 5", "help", "help add","exit"]
+ >>> mycmd.cmdloop()
+ Hello from preloop
+ help text for add
+ *** invalid number of arguments
+ 9
+
+ Documented commands (type help ):
+ ========================================
+ add
+
+ Undocumented commands:
+ ======================
+ exit help shell
+
+ help text for add
+ Hello from postloop
+ """
+
+ def preloop(self):
+ print "Hello from preloop"
+
+ def postloop(self):
+ print "Hello from postloop"
+
+ def completedefault(self, *ignored):
+ print "This is the completedefault methode"
+ return
+
+ def complete_command(self):
+ print "complete command"
+ return
+
+ def do_shell(self):
+ pass
+
+ def do_add(self, s):
+ l = s.split()
+ if len(l) != 2:
+ print "*** invalid number of arguments"
+ return
+ try:
+ l = [int(i) for i in l]
+ except ValueError:
+ print "*** arguments should be numbers"
+ return
+ print l[0]+l[1]
+
+ def help_add(self):
+ print "help text for add"
+ return
+
+ def do_exit(self, arg):
+ return True
+
+def test_main(verbose=None):
+ from test import test_support, test_cmd
+ test_support.run_doctest(test_cmd, verbose)
+
+import trace, sys,re,StringIO
+def test_coverage(coverdir):
+ tracer=trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
+ trace=0, count=1)
+ tracer.run('reload(cmd);test_main()')
+ r=tracer.results()
+ print "Writing coverage results..."
+ r.write_results(show_missing=True, summary=True, coverdir=coverdir)
+
+if __name__ == "__main__":
+ if "-c" in sys.argv:
+ test_coverage('/tmp/cmd.cover')
+ else:
+ test_main()
Modified: python/trunk/Misc/ACKS
==============================================================================
--- python/trunk/Misc/ACKS (original)
+++ python/trunk/Misc/ACKS Sat Dec 1 23:38:48 2007
@@ -575,6 +575,7 @@
David Scherer
Gregor Schmid
Ralf Schmitt
+Michael Schneider
Peter Schneider-Kamp
Arvin Schnell
Chad J. Schroeder
From nnorwitz at gmail.com Sat Dec 1 23:42:19 2007
From: nnorwitz at gmail.com (Neal Norwitz)
Date: Sat, 1 Dec 2007 17:42:19 -0500
Subject: [Python-checkins] Python Regression Test Failures refleak (1)
Message-ID: <20071201224219.GA29483@python.psfb.org>
test_popen2 leaked [26, 0, -26] references, sum=0
test_poplib leaked [0, 0, 94] references, sum=94
test_urllib2_localnet leaked [3, 3, 3] references, sum=9
From python-checkins at python.org Sat Dec 1 23:42:47 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 1 Dec 2007 23:42:47 +0100 (CET)
Subject: [Python-checkins] r59265 -
python/trunk/Doc/library/xml.etree.elementtree.rst
Message-ID: <20071201224247.12C521E548D@bag.python.org>
Author: georg.brandl
Date: Sat Dec 1 23:42:46 2007
New Revision: 59265
Modified:
python/trunk/Doc/library/xml.etree.elementtree.rst
Log:
Add examples to the ElementTree documentation.
Written by h4wk.cz for GHOP.
Modified: python/trunk/Doc/library/xml.etree.elementtree.rst
==============================================================================
--- python/trunk/Doc/library/xml.etree.elementtree.rst (original)
+++ python/trunk/Doc/library/xml.etree.elementtree.rst Sat Dec 1 23:42:46 2007
@@ -33,6 +33,9 @@
A C implementation of this API is available as :mod:`xml.etree.cElementTree`.
+See http://effbot.org/zone/element-index.htm for tutorials and links to other
+docs. Fredrik Lundh's page is also the location of the development version of the
+xml.etree.ElementTree.
.. _elementtree-functions:
@@ -357,6 +360,33 @@
object opened for writing. *encoding* is the output encoding (default is
US-ASCII).
+This is the XML file that is going to be manipulated::
+
+
+
+ Example page
+
+
+ Moved to example.org
+ or example.com.
+
+
+
+Example of changing the attribute "target" of every link in first paragraph::
+
+ >>> from xml.etree.ElementTree import ElementTree
+ >>> tree = ElementTree()
+ >>> tree.parse("index.xhtml")
+
+ >>> p = tree.find("body/p") # Finds first occurrence of tag p in body
+ >>> p
+
+ >>> links = p.getiterator("a") # Returns list of all links
+ >>> links
+ [, ]
+ >>> for i in links: # Iterates through all found links
+ ... i.attrib["target"] = "blank"
+ >>> tree.write("output.xhtml")
.. _elementtree-qname-objects:
@@ -442,3 +472,41 @@
Feeds data to the parser. *data* is encoded data.
+:meth:`XMLTreeBuilder.feed` calls *target*\'s :meth:`start` method
+for each opening tag, its :meth:`end` method for each closing tag,
+and data is processed by method :meth:`data`. :meth:`XMLTreeBuilder.close`
+calls *target*\'s method :meth:`close`.
+:class:`XMLTreeBuilder` can be used not only for building a tree structure.
+This is an example of counting the maximum depth of an XML file::
+
+ >>> from xml.etree.ElementTree import XMLTreeBuilder
+ >>> class MaxDepth: # The target object of the parser
+ ... maxDepth = 0
+ ... depth = 0
+ ... def start(self, tag, attrib): # Called for each opening tag.
+ ... self.depth += 1
+ ... if self.depth > self.maxDepth:
+ ... self.maxDepth = self.depth
+ ... def end(self, tag): # Called for each closing tag.
+ ... self.depth -= 1
+ ... def data(self, data):
+ ... pass # We do not need to do anything with data.
+ ... def close(self): # Called when all data has been parsed.
+ ... return self.maxDepth
+ ...
+ >>> target = MaxDepth()
+ >>> parser = XMLTreeBuilder(target=target)
+ >>> exampleXml = """
+ ...
+ ...
+ ...
+ ...
+ ...
+ ...
+ ...
+ ...
+ ...
+ ... """
+ >>> parser.feed(exampleXml)
+ >>> parser.close()
+ 4
From nnorwitz at gmail.com Sun Dec 2 00:06:43 2007
From: nnorwitz at gmail.com (Neal Norwitz)
Date: Sat, 1 Dec 2007 18:06:43 -0500
Subject: [Python-checkins] Python Regression Test Failures all (1)
Message-ID: <20071201230643.GA9009@python.psfb.org>
test_grammar
test_opcodes
test_dict
test_builtin
test_exceptions
test_types
test_unittest
test_doctest
test_doctest2
test_MimeWriter
test_StringIO
test___all__
test___future__
test__locale
test_abc
test_aepack
test_aepack skipped -- No module named aepack
test_al
test_al skipped -- No module named al
test_anydbm
test_applesingle
test_applesingle skipped -- No module named macostools
test_array
test_ast
test_asynchat
test_asyncore
test_atexit
test_audioop
test_augassign
test_base64
test_bastion
test_bigaddrspace
test_bigmem
test_binascii
test_binhex
test_binop
test_bisect
test_bool
test_bsddb
test_bsddb185
test_bsddb185 skipped -- No module named bsddb185
test_bsddb3
test test_bsddb3 failed -- errors occurred; run in verbose mode for details
test_buffer
test_bufio
test_bz2
test_cProfile
test_calendar
test_call
test_capi
test_cd
test_cd skipped -- No module named cd
test_cfgparser
test_cgi
test_charmapcodec
test_cl
test_cl skipped -- No module named cl
test_class
test_cmath
test_cmd_line
test_cmd_line_script
test_code
test_codeccallbacks
test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecmaps_cn
test_codecmaps_hk
test_codecmaps_jp
test_codecmaps_kr
test_codecmaps_tw
test_codecs
test_codeop
test_coding
test_coercion
test_collections
test_colorsys
test_commands
test_compare
test_compile
test_compiler
testCompileLibrary still working, be patient...
test_complex
test_complex_args
test_contains
test_contextlib
test_cookie
test_cookielib
test_copy
test_copy_reg
test_cpickle
test_crypt
test_csv
test_ctypes
test_datetime
test_dbm
test_decimal
test_decorators
test_defaultdict
test_deque
test_descr
test_descrtut
test_difflib
test_dircache
test_dis
test_distutils
test_dl
test_dumbdbm
test_dummy_thread
test_dummy_threading
test_email
test_email_codecs
test_email_renamed
test_enumerate
test_eof
test_errno
test_exception_variations
test_extcall
test_fcntl
test_file
test_filecmp
test_fileinput
test_float
test_fnmatch
test_fork1
test_format
test_fpformat
test_frozen
test_ftplib
test_funcattrs
test_functools
test_future
test_gc
test_gdbm
test_generators
test_genericpath
test_genexps
test_getargs
test_getargs2
test_getopt
test_gettext
test_gl
test_gl skipped -- No module named gl
test_glob
test_global
test_grp
test_gzip
test_hash
test_hashlib
test_heapq
test_hexoct
test_hmac
test_hotshot
test_htmllib
test_htmlparser
test_httplib
test_imageop
test_imageop skipped -- No module named imgfile
test_imaplib
test_imgfile
test_imgfile skipped -- No module named imgfile
test_imp
test_import
test_importhooks
test_index
test_inspect
test_ioctl
test_ioctl skipped -- Unable to open /dev/tty
test_isinstance
test_iter
test_iterlen
test_itertools
test_largefile
test_list
test_locale
test_logging
test_long
test_long_future
test_longexp
test_macostools
test_macostools skipped -- No module named macostools
test_macpath
test_mailbox
test_marshal
test_math
test_md5
test_mhlib
test_mimetools
test_mimetypes
test_minidom
test_mmap
test_module
test_modulefinder
test_multibytecodec
test_multibytecodec_support
test_multifile
test_mutants
test_netrc
test_new
test_nis
test_normalization
test_ntpath
test_old_mailbox
test_openpty
test_operator
test_optparse
test_os
test_parser
test_peepholer
test_pep247
test_pep263
test_pep277
test_pep277 skipped -- test works only on NT+
test_pep292
test_pep352
test_pickle
test_pickletools
test_pipes
test_pkg
test_pkgimport
test_platform
test_plistlib
test_plistlib skipped -- No module named plistlib
test_poll
test_popen
[7371 refs]
[7371 refs]
[7371 refs]
test_popen2
test_poplib
test_posix
test_posixpath
test_pow
test_pprint
test_profile
test_profilehooks
test_pty
test_pwd
test_pyclbr
test_pyexpat
test_queue
test_quopri
[7746 refs]
[7746 refs]
test_random
test_re
test_repr
test_resource
test_rfc822
test_richcmp
test_robotparser
test_runpy
test_sax
test_scope
test_scriptpackages
test_scriptpackages skipped -- No module named aetools
test_select
test_set
test_sets
test_sgmllib
test_sha
test_shelve
test_shlex
test_shutil
test_signal
test_site
test_slice
test_smtplib
test_socket
test_socket_ssl
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:94: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ssl_sock = socket.ssl(s)
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:60: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ss = socket.ssl(s)
test_socketserver
test_softspace
test_sort
test_sqlite
test_ssl
test_startfile
test_startfile skipped -- cannot import name startfile
test_str
test_strftime
test_string
test_stringprep
test_strop
test_strptime
test_struct
test_structmembers
test_structseq
test_subprocess
[7366 refs]
[7367 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7367 refs]
[8982 refs]
[7582 refs]
[7367 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
.
[7366 refs]
[7366 refs]
this bit of output is from a test of stdout in a different process ...
[7366 refs]
[7366 refs]
[7582 refs]
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_sundry
test_symtable
test_syntax
test_sys
[7366 refs]
[7366 refs]
test_tarfile
test_tcl
test_tcl skipped -- No module named _tkinter
test_telnetlib
test_tempfile
[7370 refs]
test_textwrap
test_thread
test_threaded_import
test_threadedtempfile
test_threading
[10460 refs]
test_threading_local
test_threadsignals
test_time
test_timeout
test_tokenize
test_trace
test_traceback
test_transformer
test_tuple
test_typechecks
test_ucn
test_unary
test_unicode
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_unicodedata
test_univnewlines
test_unpack
test_urllib
test_urllib2
test_urllib2_localnet
test_urllib2net
test_urllibnet
test_urlparse
test_userdict
test_userlist
test_userstring
test_uu
test_uuid
WARNING: uuid.getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
WARNING: uuid._unixdll_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
test_wait3
test_wait4
test_warnings
test_wave
test_weakref
test_whichdb
test_winreg
test_winreg skipped -- No module named _winreg
test_winsound
test_winsound skipped -- No module named winsound
test_with
test_wsgiref
test_xdrlib
test_xml_etree
test_xml_etree_c
test_xmllib
test_xmlrpc
test_xpickle
test_xrange
test_zipfile
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_zipimport
test_zlib
308 tests OK.
1 test failed:
test_bsddb3
21 tests skipped:
test_aepack test_al test_applesingle test_bsddb185 test_cd test_cl
test_gl test_imageop test_imgfile test_ioctl test_macostools
test_pep277 test_plistlib test_scriptpackages test_startfile
test_sunaudiodev test_tcl test_unicode_file test_winreg
test_winsound test_zipfile64
1 skip unexpected on linux2:
test_ioctl
[528341 refs]
From python-checkins at python.org Sun Dec 2 00:12:45 2007
From: python-checkins at python.org (georg.brandl)
Date: Sun, 2 Dec 2007 00:12:45 +0100 (CET)
Subject: [Python-checkins] r59266 - in python/trunk/Doc:
distutils/extending.rst library/windows.rst using/cmdline.rst
using/index.rst using/windows.rst
Message-ID: <20071201231245.ECD971E4006@bag.python.org>
Author: georg.brandl
Date: Sun Dec 2 00:12:45 2007
New Revision: 59266
Added:
python/trunk/Doc/using/windows.rst
Modified:
python/trunk/Doc/distutils/extending.rst
python/trunk/Doc/library/windows.rst
python/trunk/Doc/using/cmdline.rst
python/trunk/Doc/using/index.rst
Log:
Add "Using Python on Windows" document, by Robert Lehmann.
Written for GHOP.
Modified: python/trunk/Doc/distutils/extending.rst
==============================================================================
--- python/trunk/Doc/distutils/extending.rst (original)
+++ python/trunk/Doc/distutils/extending.rst Sun Dec 2 00:12:45 2007
@@ -1,4 +1,4 @@
-.. _extending:
+.. _extending-distutils:
*******************
Extending Distutils
Modified: python/trunk/Doc/library/windows.rst
==============================================================================
--- python/trunk/Doc/library/windows.rst (original)
+++ python/trunk/Doc/library/windows.rst Sun Dec 2 00:12:45 2007
@@ -1,3 +1,4 @@
+.. _mswin-specific-services:
****************************
MS Windows Specific Services
Modified: python/trunk/Doc/using/cmdline.rst
==============================================================================
--- python/trunk/Doc/using/cmdline.rst (original)
+++ python/trunk/Doc/using/cmdline.rst Sun Dec 2 00:12:45 2007
@@ -1,5 +1,7 @@
.. highlightlang:: none
+.. _using-on-general:
+
Command line and environment
============================
@@ -12,6 +14,8 @@
:ref:`implementations` for further resources.
+.. _using-on-cmdline:
+
Command line
------------
@@ -304,39 +308,21 @@
.. cmdoption:: -3
- Warn about Python 3.x incompatibilities.
+ Warn about Python 3.x incompatibilities. Among these are:
- .. versionadded:: 2.6
+ * :meth:`dict.has_key`
+ * :func:`apply`
+ * :func:`callable`
+ * :func:`coerce`
+ * :func:`execfile`
+ * :func:`reduce`
+ * :func:`reload`
+ .. versionadded:: 2.6
-Related files -- UNIX
----------------------
-These are subject to difference depending on local installation conventions;
-:envvar:`prefix` (``${prefix}``) and :envvar:`exec_prefix` (``${exec_prefix}``)
-are installation-dependent and should be interpreted as for GNU software; they
-may be the same.
-
-For example, on most Linux systems, the default for both is :file:`/usr`.
-
-+-----------------------------------------------+------------------------------------------+
-| File/directory | Meaning |
-+===============================================+==========================================+
-| :file:`{exec_prefix}/bin/python` | Recommended location of the interpreter. |
-+-----------------------------------------------+------------------------------------------+
-| :file:`{prefix}/lib/python{version}`, | Recommended locations of the directories |
-| :file:`{exec_prefix}/lib/python{version}` | containing the standard modules. |
-+-----------------------------------------------+------------------------------------------+
-| :file:`{prefix}/include/python{version}`, | Recommended locations of the directories |
-| :file:`{exec_prefix}/include/python{version}` | containing the include files needed for |
-| | developing Python extensions and |
-| | embedding the interpreter. |
-+-----------------------------------------------+------------------------------------------+
-| :file:`~/.pythonrc.py` | User-specific initialization file loaded |
-| | by the user module; not used by default |
-| | or by most applications. |
-+-----------------------------------------------+------------------------------------------+
+.. _using-on-envvars:
Environment variables
---------------------
Modified: python/trunk/Doc/using/index.rst
==============================================================================
--- python/trunk/Doc/using/index.rst (original)
+++ python/trunk/Doc/using/index.rst Sun Dec 2 00:12:45 2007
@@ -13,5 +13,6 @@
.. toctree::
cmdline.rst
+ windows.rst
mac.rst
Added: python/trunk/Doc/using/windows.rst
==============================================================================
--- (empty file)
+++ python/trunk/Doc/using/windows.rst Sun Dec 2 00:12:45 2007
@@ -0,0 +1,316 @@
+.. highlightlang:: none
+
+.. _using-on-windows:
+
+*************************
+ Using Python on Windows
+*************************
+
+.. sectionauthor:: Robert Lehmann
+
+This document aims to give an overview of Windows-specific behaviour you should
+know about when using Python on Microsoft Windows.
+
+
+Installing Python
+=================
+
+Unlike most Unix systems and services, Windows does not require Python natively
+and thus does not pre-install a version of Python. However, the CPython team
+has compiled Windows installers (MSI packages) with every `release
+`_ for many years.
+
+With ongoing development of Python, some platforms that used to be supported
+earlier are not longer supported (due to the lack of users or developers).
+Check :pep:`11` for details on all unsupported platforms.
+
+* DOS and Windows 3.x are deprecated since Python 2.0 and code specific to these
+ systems was removed in Python 2.1.
+* Up to 2.5, Python was still compatible with Windows 95, 98 and ME (but already
+ raised a deprecation warning on installation). For Python 2.6 (and all
+ following releases), this support was dropped and new releases are just
+ expected to work on the Windows NT family.
+* `Windows CE `_ is still supported.
+* The `Cygwin `_ installer offers to install the `Python
+ interpreter `_ as well; it is located under
+ "Interpreters." (cf. `Cygwin package source
+ `_, `Maintainer releases
+ `_)
+
+See `Python for Windows (and DOS) `_
+for detailed information about platforms with precompiled installers.
+
+.. seealso::
+
+ `Python on XP `_
+ "7 Minutes to "Hello World!""
+ by Richard Dooling, 2006
+
+ `Installing on Windows `_
+ in "`Dive into Python: Python from novice to pro
+ `_"
+ by Mark Pilgrim, 2004,
+ ISBN 1-59059-356-1
+
+ `For Windows users `_
+ in "Installing Python"
+ in "`A Byte of Python `_"
+ by Swaroop C H, 2003
+
+
+Alternative bundles
+===================
+
+Besides the standard CPython distribution, there are modified packages including
+additional functionality. The following is a list of popular versions and their
+key features:
+
+`ActivePython `_
+ Installer with multi-platform compatibility, documentation, PyWin32
+
+`Python Enthought Edition `_
+ Popular modules (such as PyWin32) with their respective documentation, tool
+ suite for building extensible python applications
+
+
+
+Configuring Python
+==================
+
+In order to run Python flawlessly, you might have to change certain environment
+settings in Windows.
+
+
+Excursus: Setting environment variables
+---------------------------------------
+
+Windows has a built-in dialog for changing environment variables: Right-click
+the icon for your machine (usually located on your Desktop and called "My
+Computer") and choose :menuselection:`Properties` there. Then, open the
+:guilabel:`Advanced` tab and click the :guilabel:`Environment Variables` button.
+
+In short, your path is:
+
+ :menuselection:`My Computer
+ --> Properties
+ --> Advanced
+ --> Environment Variables`
+
+In this dialog, you can add or modify User and System variables. To change
+System variables, you need non-restricted access to your machine
+(i.e. Administrator rights).
+
+Another way of adding variables to your environment is using the :command:`set`
+command::
+
+ set PYTHONPATH=%PYTHONPATH%;C:\My_python_lib
+
+To make this setting permanent, you could add the corresponding command line to
+your :file:`autoexec.bat`.
+
+Viewing environment variables can also be done more straight-forward: The
+command prompt will expand strings wrapped into percent signs automatically::
+
+ echo %PATH%
+
+Consult :command:`set /?` for details on this behaviour.
+
+.. seealso::
+
+ http://support.microsoft.com/kb/100843
+ Environment variables in Windows NT
+
+ http://support.microsoft.com/kb/310519
+ How To Manage Environment Variables in Windows XP
+
+
+Finding the Python executable
+-----------------------------
+
+Besides using the automatically created start menu entry for the Python
+interpreter, you might want to start Python in the DOS prompt. To make this
+work, you need to set your :envvar:`%PATH%` environment variable to include the
+directory of your Python distribution, delimited by a semicolon from other
+entries. An example variable could look like this (assuming the first two
+entries are Windows' default)::
+
+ C:\WINNT\system32;C:\WINNT;C:\Python25
+
+Typing :command:`python` on your command prompt will now fire up the Python
+interpreter. Thus, you can also execute your scripts with command line options,
+see :ref:`using-on-cmdline` documentation.
+
+
+Finding modules
+---------------
+
+Python usually stores its library (and thereby your site-packages folder) in the
+installation directory. So, if you had installed Python to
+:file:`C:\\Python\\`, the default library would reside in
+:file:`C:\\Python\\Lib\\` and third-party modules should be stored in
+:file:`C:\\Python\\Lib\\site-packages\\`.
+
+.. % `` this fixes syntax highlighting errors in some editors
+ due to the \\ hackery
+
+You can add folders to your search path to make Python's import mechanism search
+in these directories as well. Use :envvar:`PYTHONPATH`, as described in
+:ref:`using-on-envvars`, to modify :data:`sys.path`. On Windows, paths are
+separated by semicolons, though, to distinguish them from drive identifiers
+(:file:`C:\\` etc.).
+
+.. % ``
+
+Modifying the module search path can also be done through the Windows registry:
+Edit
+:file:`HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\{version}\\PythonPath\\`,
+as described above for the environment variable :envvar:`%PYTHONPATH%`. A
+convenient registry editor is :program:`regedit` (start it by typing "regedit"
+into :menuselection:`Start --> Run`).
+
+
+Executing scripts
+-----------------
+
+Python scripts (files with the extension ``.py``) will be executed by
+:program:`python.exe` by default. This executable opens a terminal, which stays
+open even if the program uses a GUI. If you do not want this to happen, use the
+extension ``.pyw`` which will cause the script to be executed by
+:program:`pythonw.exe` by default (both executables are located in the top-level
+of your Python installation directory). This suppresses the terminal window on
+startup.
+
+You can also make all ``.py`` scripts execute with :program:`pythonw.exe`,
+setting this through the usual facilites, for example (names might differ,
+depending on your version of Windows):
+
+#. Open the context menu of a :file:`{*}.py` file.
+#. Click :menuselection:`Open with...`.
+#. Choose the interpreter of your choice (utilize :guilabel:`Other...` or
+ :guilabel:`Choose Program...` if it is not in the list of default programs).
+#. Check :guilabel:`Always open files with this program`.
+#. Click :guilabel:`OK`.
+
+
+
+Additional modules
+==================
+
+Even though Python aims to be portable among all platforms, there are features
+that are unique to Windows. A couple of modules, both in the standard library
+and external, and snippets exist to use these features.
+
+The Windows-specific standard modules are documented in
+:ref:`mswin-specific-services`.
+
+
+PyWin32
+-------
+
+The `PyWin32 `_ module by Mark Hammond
+is a collection of modules for advanced Windows-specific support. This includes
+utilites for:
+
+* `Component Object Model `_ (COM)
+* Win32 API calls
+* Registry
+* Event log
+* `Microsoft Foundation Classes `_ (MFC)
+ user interfaces
+
+`PythonWin `_ is a sample MFC application
+shipped with PyWin32. It is an embeddable IDE with a built-in debugger.
+
+.. seealso::
+
+ `Win32 How Do I...? `_
+ by Tim Golden
+
+ `Python and COM `_
+ by David and Paul Boddie
+
+
+Py2exe
+------
+
+`Py2exe `_ is a :mod:`distutils` extension (see
+:ref:`extending-distutils`) which wraps Python scripts into executable Windows
+programs (:file:`{*}.exe` files). When you have done this, you can distribute
+your application without requiring your users to install Python.
+
+
+WConio
+------
+
+Since Python's advanced terminal handling layer, :mod:`curses`, is restricted to
+Unix-like systems, there is a library exclusive to Windows as well: Windows
+Console I/O for Python.
+
+`WConio `_ is a wrapper for
+Turbo-C's :file:`CONIO.H`, used to create text user interfaces.
+
+
+
+Compiling Python on Windows
+===========================
+
+If you want to compile CPython yourself, first thing you should do is get the
+`source `_. You can download either the
+latest release's source or just grab a fresh `checkout
+`_.
+
+For Microsoft Visual C++, which is the compiler with which official Python
+releases are built, the source tree contains solutions/project files. View the
+:file:`readme.txt` in their respective directories:
+
++--------------------+--------------+-----------------------+
+| Directory | MSVC version | Visual Studio version |
++====================+==============+=======================+
+| :file:`PC/VC6/` | 5.0 | 97 |
+| +--------------+-----------------------+
+| | 6.0 | 6.0 |
++--------------------+--------------+-----------------------+
+| :file:`PCbuild/` | 7.1 | 2003 |
++--------------------+--------------+-----------------------+
+| :file:`PCbuild8/` | 8.0 | 2005 |
++--------------------+--------------+-----------------------+
+| :file:`PCbuild9/` | 9.0 | 2008 |
++--------------------+--------------+-----------------------+
+
+Note that not all of these build directories are fully supported. Read the
+release notes to see which compiler version the official releases for your
+version are built with.
+
+Check :file:`PC/readme.txt` for general information on the build process.
+
+
+For extension modules, consult :ref:`building-on-windows`.
+
+.. seealso::
+
+ `Python + Windows + distutils + SWIG + gcc MinGW `_
+ or "Creating Python extensions in C/C++ with SWIG and compiling them with
+ MinGW gcc under Windows" or "Installing Python extension with distutils
+ and without Microsoft Visual C++" by S?bastien Sauvage, 2003
+
+ `MingW -- Python extensions `_
+ by Trent Apted et al, 2007
+
+
+Other resources
+===============
+
+.. seealso::
+
+ `Python Programming On Win32 `_
+ "Help for Windows Programmers"
+ by Mark Hammond and Andy Robinson, O'Reilly Media, 2000,
+ ISBN 1-56592-621-8
+
+ `A Python for Windows Tutorial `_
+ by Amanda Birmingham, 2004
+
From buildbot at python.org Sun Dec 2 00:24:03 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 23:24:03 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable trunk
Message-ID: <20071201232403.40CD81E4006@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%20trunk/builds/397
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
======================================================================
ERROR: test_fail_with_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 517, in test_fail_with_info
p.pow(6,8)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1157, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1447, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1195, in request
errcode, errmsg, headers = h.getreply()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 1006, in getreply
response = self._conn.getresponse()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 932, in getresponse
response.begin()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 415, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 271, in readheaders
line = self.fp.readline()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/socket.py", line 351, in readline
data = recv(1)
error: [Errno 104] Connection reset by peer
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 00:25:31 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 23:25:31 +0000
Subject: [Python-checkins] buildbot failure in PPC64 Debian trunk
Message-ID: <20071201232531.C15791E4020@bag.python.org>
The Buildbot has detected a new failure of PPC64 Debian trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/PPC64%20Debian%20trunk/builds/393
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc64
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 00:35:11 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 01 Dec 2007 23:35:11 +0000
Subject: [Python-checkins] buildbot failure in x86 gentoo trunk
Message-ID: <20071201233511.4EFE41E4006@bag.python.org>
The Buildbot has detected a new failure of x86 gentoo trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20gentoo%20trunk/builds/2670
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-x86
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From python-checkins at python.org Sun Dec 2 05:49:16 2007
From: python-checkins at python.org (guido.van.rossum)
Date: Sun, 2 Dec 2007 05:49:16 +0100 (CET)
Subject: [Python-checkins] r59267 - peps/trunk/pep-3100.txt
Message-ID: <20071202044916.BE7CF1E43A4@bag.python.org>
Author: guido.van.rossum
Date: Sun Dec 2 05:49:16 2007
New Revision: 59267
Modified:
peps/trunk/pep-3100.txt
Log:
Update for __builtin__ rename.
Modified: peps/trunk/pep-3100.txt
==============================================================================
--- peps/trunk/pep-3100.txt (original)
+++ peps/trunk/pep-3100.txt Sun Dec 2 05:49:16 2007
@@ -97,9 +97,9 @@
[x for x in 1, 2] will need to be: [x for x in (1, 2)] [done]
- Lambdas may have to be parenthesized [#pep308]_ [NO]
-* __builtins__ should get a different name *or* completely unified
- with __builtin__. Keeping both with confusingly similar spellings
- and semantics is evil. [#__builtin__]_
+* In order to get rid of the confusion between __builtin__ and __builtins__,
+ it was decided to rename __builtin__ (the module) to builtins, and to leave
+ __builtins__ (the sandbox hook) alone. [#__builtin__]_ [#__builtins__]_ [done]
* Attributes on functions of the form ``func_whatever`` will be renamed
``__whatever__`` [17]_ [done]
* Set literals and comprehensions [19]_ [20]_ [done]
@@ -405,6 +405,9 @@
.. [#__builtin__] Approach to resolving __builtin__ vs __builtins__
http://mail.python.org/pipermail/python-3000/2007-March/006161.html
+
+.. [#__builtins__] New name for __builtins__
+ http://mail.python.org/pipermail/python-dev/2007-November/075388.html
.. [#exitfunc-patch] Patch to remove sys.exitfunc
http://www.python.org/sf/1680961
From nnorwitz at gmail.com Sun Dec 2 11:41:59 2007
From: nnorwitz at gmail.com (Neal Norwitz)
Date: Sun, 2 Dec 2007 05:41:59 -0500
Subject: [Python-checkins] Python Regression Test Failures all (1)
Message-ID: <20071202104159.GA31556@python.psfb.org>
test_grammar
test_opcodes
test_dict
test_builtin
test_exceptions
test_types
test_unittest
test_doctest
test_doctest2
test_MimeWriter
test_StringIO
test___all__
test___future__
test__locale
test_abc
test_aepack
test_aepack skipped -- No module named aepack
test_al
test_al skipped -- No module named al
test_anydbm
test_applesingle
test_applesingle skipped -- No module named macostools
test_array
test_ast
test_asynchat
test_asyncore
test_atexit
test_audioop
test_augassign
test_base64
test_bastion
test_bigaddrspace
test_bigmem
test_binascii
test_binhex
test_binop
test_bisect
test_bool
test_bsddb
test_bsddb185
test_bsddb185 skipped -- No module named bsddb185
test_bsddb3
test test_bsddb3 failed -- errors occurred; run in verbose mode for details
test_buffer
test_bufio
test_bz2
test_cProfile
test_calendar
test_call
test_capi
test_cd
test_cd skipped -- No module named cd
test_cfgparser
test_cgi
test_charmapcodec
test_cl
test_cl skipped -- No module named cl
test_class
test_cmath
test_cmd
test_cmd_line
test_cmd_line_script
test_code
test_codeccallbacks
test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecmaps_cn
test_codecmaps_hk
test_codecmaps_jp
test_codecmaps_kr
test_codecmaps_tw
test_codecs
test_codeop
test_coding
test_coercion
test_collections
test_colorsys
test_commands
test_compare
test_compile
test_compiler
testCompileLibrary still working, be patient...
test_complex
test_complex_args
test_contains
test_contextlib
test_cookie
test_cookielib
test_copy
test_copy_reg
test_cpickle
test_crypt
test_csv
test_ctypes
test_datetime
test_dbm
test_decimal
test_decorators
test_defaultdict
test_deque
test_descr
test_descrtut
test_difflib
test_dircache
test_dis
test_distutils
test_dl
test_dumbdbm
test_dummy_thread
test_dummy_threading
test_email
test_email_codecs
test_email_renamed
test_enumerate
test_eof
test_errno
test_exception_variations
test_extcall
test_fcntl
test_file
test_filecmp
test_fileinput
test_float
test_fnmatch
test_fork1
test_format
test_fpformat
test_frozen
test_ftplib
test_funcattrs
test_functools
test_future
test_gc
test_gdbm
test_generators
test_genericpath
test_genexps
test_getargs
test_getargs2
test_getopt
test_gettext
test_gl
test_gl skipped -- No module named gl
test_glob
test_global
test_grp
test_gzip
test_hash
test_hashlib
test_heapq
test_hexoct
test_hmac
test_hotshot
test_htmllib
test_htmlparser
test_httplib
test_imageop
test_imageop skipped -- No module named imgfile
test_imaplib
test_imgfile
test_imgfile skipped -- No module named imgfile
test_imp
test_import
test_importhooks
test_index
test_inspect
test_ioctl
test_ioctl skipped -- Unable to open /dev/tty
test_isinstance
test_iter
test_iterlen
test_itertools
test_largefile
test_list
test_locale
test_logging
test_long
test_long_future
test_longexp
test_macostools
test_macostools skipped -- No module named macostools
test_macpath
test_mailbox
test_marshal
test_math
test_md5
test_mhlib
test_mimetools
test_mimetypes
test_minidom
test_mmap
test_module
test_modulefinder
test_multibytecodec
test_multibytecodec_support
test_multifile
test_mutants
test_netrc
test_new
test_nis
test_normalization
test_ntpath
test_old_mailbox
test_openpty
test_operator
test_optparse
test_os
test_parser
test_peepholer
test_pep247
test_pep263
test_pep277
test_pep277 skipped -- test works only on NT+
test_pep292
test_pep352
test_pickle
test_pickletools
test_pipes
test_pkg
test_pkgimport
test_platform
test_plistlib
test_plistlib skipped -- No module named plistlib
test_poll
test_popen
[7371 refs]
[7371 refs]
[7371 refs]
test_popen2
test_poplib
test_posix
test_posixpath
test_pow
test_pprint
test_profile
test_profilehooks
test_pty
test_pwd
test_pyclbr
test_pyexpat
test_queue
test_quopri
[7746 refs]
[7746 refs]
test_random
test_re
test_repr
test_resource
test_rfc822
test_richcmp
test_robotparser
test_runpy
test_sax
test_scope
test_scriptpackages
test_scriptpackages skipped -- No module named aetools
test_select
test_set
test_sets
test_sgmllib
test_sha
test_shelve
test_shlex
test_shutil
test_signal
test_site
test_slice
test_smtplib
test_socket
test_socket_ssl
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:94: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ssl_sock = socket.ssl(s)
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:60: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ss = socket.ssl(s)
test_socketserver
test_softspace
test_sort
test_sqlite
test_ssl
test_startfile
test_startfile skipped -- cannot import name startfile
test_str
test_strftime
test_string
test_stringprep
test_strop
test_strptime
test_struct
test_structmembers
test_structseq
test_subprocess
[7366 refs]
[7367 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7367 refs]
[8982 refs]
[7582 refs]
[7367 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
.
[7366 refs]
[7366 refs]
this bit of output is from a test of stdout in a different process ...
[7366 refs]
[7366 refs]
[7582 refs]
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_sundry
test_symtable
test_syntax
test_sys
[7366 refs]
[7366 refs]
test_tarfile
test_tcl
test_tcl skipped -- No module named _tkinter
test_telnetlib
test_tempfile
[7370 refs]
test_textwrap
test_thread
test_threaded_import
test_threadedtempfile
test_threading
[10460 refs]
test_threading_local
test_threadsignals
test_time
test_timeout
test_tokenize
test_trace
test_traceback
test_transformer
test_tuple
test_typechecks
test_ucn
test_unary
test_unicode
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_unicodedata
test_univnewlines
test_unpack
test_urllib
test_urllib2
test_urllib2_localnet
test_urllib2net
test_urllibnet
test_urlparse
test_userdict
test_userlist
test_userstring
test_uu
test_uuid
WARNING: uuid.getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
WARNING: uuid._unixdll_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
test_wait3
test_wait4
test_warnings
test_wave
test_weakref
test_whichdb
test_winreg
test_winreg skipped -- No module named _winreg
test_winsound
test_winsound skipped -- No module named winsound
test_with
test_wsgiref
test_xdrlib
test_xml_etree
test_xml_etree_c
test_xmllib
test_xmlrpc
test_xpickle
test_xrange
test_zipfile
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_zipimport
test_zlib
309 tests OK.
1 test failed:
test_bsddb3
21 tests skipped:
test_aepack test_al test_applesingle test_bsddb185 test_cd test_cl
test_gl test_imageop test_imgfile test_ioctl test_macostools
test_pep277 test_plistlib test_scriptpackages test_startfile
test_sunaudiodev test_tcl test_unicode_file test_winreg
test_winsound test_zipfile64
1 skip unexpected on linux2:
test_ioctl
[528401 refs]
From python-checkins at python.org Sun Dec 2 12:56:36 2007
From: python-checkins at python.org (christian.heimes)
Date: Sun, 2 Dec 2007 12:56:36 +0100 (CET)
Subject: [Python-checkins] r59269 - in sandbox/trunk/2to3:
fixes/fix_imports.py tests/test_fixers.py
Message-ID: <20071202115636.3A0BF1E4014@bag.python.org>
Author: christian.heimes
Date: Sun Dec 2 12:56:35 2007
New Revision: 59269
Modified:
sandbox/trunk/2to3/fixes/fix_imports.py
sandbox/trunk/2to3/tests/test_fixers.py
Log:
Added a fixer for r59268
#1535: rename __builtin__ module to builtins.
Modified: sandbox/trunk/2to3/fixes/fix_imports.py
==============================================================================
--- sandbox/trunk/2to3/fixes/fix_imports.py (original)
+++ sandbox/trunk/2to3/fixes/fix_imports.py Sun Dec 2 12:56:35 2007
@@ -10,9 +10,14 @@
# Local imports
from fixes import basefix
from fixes.util import Name, attr_chain, any, set
+import __builtin__
+builtin_names = [name for name in dir(__builtin__)
+ if name not in ("__name__", "__doc__")]
MAPPING = {"StringIO": ("io", ["StringIO"]),
- "cStringIO": ("io", ["StringIO"])}
+ "cStringIO": ("io", ["StringIO"]),
+ "__builtin__" : ("builtins", builtin_names),
+ }
def alternates(members):
Modified: sandbox/trunk/2to3/tests/test_fixers.py
==============================================================================
--- sandbox/trunk/2to3/tests/test_fixers.py (original)
+++ sandbox/trunk/2to3/tests/test_fixers.py Sun Dec 2 12:56:35 2007
@@ -1270,7 +1270,10 @@
fixer = "imports"
modules = {"StringIO": ("io", ["StringIO"]),
- "cStringIO": ("io", ["StringIO"])}
+ "cStringIO": ("io", ["StringIO"]),
+ "__builtin__" : ("builtins", ["open", "Exception",
+ "__debug__", "str"]),
+ }
def test_import_module(self):
for old, (new, members) in self.modules.items():
@@ -1285,11 +1288,11 @@
def test_import_from(self):
for old, (new, members) in self.modules.items():
for member in members:
- b = "from %s import %s" % (old, ", ".join(members))
- a = "from %s import %s" % (new, ", ".join(members))
+ b = "from %s import %s" % (old, member)
+ a = "from %s import %s" % (new, member)
self.check(b, a)
- s = "from foo import %s" % ", ".join(members)
+ s = "from foo import %s" % member
self.unchanged(s)
def test_import_module_as(self):
@@ -1305,8 +1308,8 @@
def test_import_from_as(self):
for old, (new, members) in self.modules.items():
for member in members:
- b = "from %s import %s as foo_bar" % (old, ", ".join(members))
- a = "from %s import %s as foo_bar" % (new, ", ".join(members))
+ b = "from %s import %s as foo_bar" % (old, member)
+ a = "from %s import %s as foo_bar" % (new, member)
self.check(b, a)
def test_star(self):
From python-checkins at python.org Sun Dec 2 15:34:34 2007
From: python-checkins at python.org (georg.brandl)
Date: Sun, 2 Dec 2007 15:34:34 +0100 (CET)
Subject: [Python-checkins] r59271 - python/trunk/Doc/library/mmap.rst
Message-ID: <20071202143434.CAC041E4014@bag.python.org>
Author: georg.brandl
Date: Sun Dec 2 15:34:34 2007
New Revision: 59271
Modified:
python/trunk/Doc/library/mmap.rst
Log:
Add example to mmap docs.
Written for GHOP by Rafal Rawicki.
Modified: python/trunk/Doc/library/mmap.rst
==============================================================================
--- python/trunk/Doc/library/mmap.rst (original)
+++ python/trunk/Doc/library/mmap.rst Sun Dec 2 15:34:34 2007
@@ -86,6 +86,49 @@
*offset* may be specified as a non-negative integer offset. mmap references will
be relative to the offset from the beginning of the file. *offset* defaults to 0.
*offset* must be a multiple of the PAGESIZE or ALLOCATIONGRANULARITY.
+
+ This example shows a simple way of using :func:`mmap`::
+
+ import mmap
+
+ # write a simple example file
+ with open("hello.txt", "w") as f:
+ f.write("Hello Python!\n")
+
+ with open("hello.txt", "r+") as f:
+ # memory-map the file, size 0 means whole file
+ map = mmap.mmap(f.fileno(), 0)
+ # read content via standard file methods
+ print map.readline() # prints "Hello Python!"
+ # read content via slice notation
+ print map[:5] # prints "Hello"
+ # update content using slice notation;
+ # note that new content must have same size
+ map[6:] = " world!\n"
+ # ... and read again using standard file methods
+ map.seek(0)
+ print map.readline() # prints "Hello world!"
+ # close the map
+ map.close()
+
+
+ The next example demonstrates how to create an anonymous map and exchange
+ data between the parent and child processes::
+
+ import mmap
+ import os
+
+ map = mmap.mmap(-1, 13)
+ map.write("Hello world!")
+
+ pid = os.fork()
+
+ if pid == 0: # In a child process
+ map.seek(0)
+ print map.readline()
+
+ map.close()
+
Memory-mapped file objects support the following methods:
From buildbot at python.org Sun Dec 2 15:37:12 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 14:37:12 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc 3.0
Message-ID: <20071202143712.2BBDD1E4014@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%203.0/builds/388
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 15:37:22 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 14:37:22 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable 3.0
Message-ID: <20071202143723.04D021E4014@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%203.0/builds/329
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From python-checkins at python.org Sun Dec 2 15:37:29 2007
From: python-checkins at python.org (georg.brandl)
Date: Sun, 2 Dec 2007 15:37:29 +0100 (CET)
Subject: [Python-checkins] r59272 - python/trunk/Doc/library/bdb.rst
Message-ID: <20071202143730.18EC31E4031@bag.python.org>
Author: georg.brandl
Date: Sun Dec 2 15:37:29 2007
New Revision: 59272
Modified:
python/trunk/Doc/library/bdb.rst
Log:
Convert bdb.rst line endings to Unix style.
Modified: python/trunk/Doc/library/bdb.rst
==============================================================================
--- python/trunk/Doc/library/bdb.rst (original)
+++ python/trunk/Doc/library/bdb.rst Sun Dec 2 15:37:29 2007
@@ -1,337 +1,337 @@
-:mod:`bdb` --- Debugger framework
-=================================
-
-.. module:: bdb
- :synopsis: Debugger framework.
-
-The :mod:`bdb` module handles basic debugger functions, like setting breakpoints
-or managing execution via the debugger.
-
-The following exception is defined:
-
-.. exception:: BdbQuit
-
- Exception raised by the :class:`Bdb` class for quitting the debugger.
-
-
-The :mod:`bdb` module also defines two classes:
-
-.. class:: Breakpoint(self, file, line[, temporary=0[, cond=None [, funcname=None]]])
-
- This class implements temporary breakpoints, ignore counts, disabling and
- (re-)enabling, and conditionals.
-
- Breakpoints are indexed by number through a list called :attr:`bpbynumber`
- and by ``(file, line)`` pairs through :attr:`bplist`. The former points to a
- single instance of class :class:`Breakpoint`. The latter points to a list of
- such instances since there may be more than one breakpoint per line.
-
- When creating a breakpoint, its associated filename should be in canonical
- form. If a *funcname* is defined, a breakpoint hit will be counted when the
- first line of that function is executed. A conditional breakpoint always
- counts a hit.
-
-:class:`Breakpoint` instances have the following methods:
-
-.. method:: Breakpoint.deleteMe()
-
- Delete the breakpoint from the list associated to a file/line. If it is the
- last breakpoint in that position, it also deletes the entry for the
- file/line.
-
-.. method:: Breakpoint.enable()
-
- Mark the breakpoint as enabled.
-
-.. method:: Breakpoint.disable()
-
- Mark the breakpoint as disabled.
-
-.. method:: Breakpoint.bpprint([out])
-
- Print all the information about the breakpoint:
-
- * The breakpoint number.
- * If it is temporary or not.
- * Its file,line position.
- * The condition that causes a break.
- * If it must be ignored the next N times.
- * The breakpoint hit count.
-
-
-.. class:: Bdb()
-
- The :class:`Bdb` acts as a generic Python debugger base class.
-
- This class takes care of the details of the trace facility; a derived class
- should implement user interaction. The standard debugger class
- (:class:`pdb.Pdb`) is an example.
-
-
-The following methods of :class:`Bdb` normally don't need to be overridden.
-
-.. method:: Bdb.canonic(filename)
-
- Auxiliary method for getting a filename in a canonical form, that is, as a
- case-normalized (on case-insensitive filesystems) absolute path, stripped
- of surrounding angle brackets.
-
-.. method:: Bdb.reset()
-
- Set the :attr:`botframe`, :attr:`stopframe`, :attr:`returnframe` and
- :attr:`quitting` attributes with values ready to start debugging.
-
-
-.. method:: Bdb.trace_dispatch(frame, event, arg)
-
- This function is installed as the trace function of debugged frames. Its
- return value is the new trace function (in most cases, that is, itself).
-
- The default implementation decides how to dispatch a frame, depending on the
- type of event (passed as a string) that is about to be executed. *event* can
- be one of the following:
-
- * ``"line"``: A new line of code is going to be executed.
- * ``"call"``: A function is about to be called, or another code block
- entered.
- * ``"return"``: A function or other code block is about to return.
- * ``"exception"``: An exception has occurred.
- * ``"c_call"``: A C function is about to be called.
- * ``"c_return"``: A C function has returned.
- * ``"c_exception"``: A C function has thrown an exception.
-
- For the Python events, specialized functions (see below) are called. For the
- C events, no action is taken.
-
- The *arg* parameter depends on the previous event.
-
- For more information on trace functions, see :ref:`debugger-hooks`. For more
- information on code and frame objects, refer to :ref:`types`.
-
-.. method:: Bdb.dispatch_line(frame)
-
- If the debugger should stop on the current line, invoke the :meth:`user_line`
- method (which should be overridden in subclasses). Raise a :exc:`BdbQuit`
- exception if the :attr:`Bdb.quitting` flag is set (which can be set from
- :meth:`user_line`). Return a reference to the :meth:`trace_dispatch` method
- for further tracing in that scope.
-
-.. method:: Bdb.dispatch_call(frame, arg)
-
- If the debugger should stop on this function call, invoke the
- :meth:`user_call` method (which should be overridden in subclasses). Raise a
- :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can
- be set from :meth:`user_call`). Return a reference to the
- :meth:`trace_dispatch` method for further tracing in that scope.
-
-.. method:: Bdb.dispatch_return(frame, arg)
-
- If the debugger should stop on this function return, invoke the
- :meth:`user_return` method (which should be overridden in subclasses). Raise
- a :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can
- be set from :meth:`user_return`). Return a reference to the
- :meth:`trace_dispatch` method for further tracing in that scope.
-
-.. method:: Bdb.dispatch_exception(frame, arg)
-
- If the debugger should stop at this exception, invokes the
- :meth:`user_exception` method (which should be overridden in subclasses).
- Raise a :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set
- (which can be set from :meth:`user_exception`). Return a reference to the
- :meth:`trace_dispatch` method for further tracing in that scope.
-
-Normally derived classes don't override the following methods, but they may if
-they want to redefine the definition of stopping and breakpoints.
-
-.. method:: Bdb.stop_here(frame)
-
- This method checks if the *frame* is somewhere below :attr:`botframe` in the
- call stack. :attr:`botframe` is the frame in which debugging started.
-
-.. method:: Bdb.break_here(frame)
-
- This method checks if there is a breakpoint in the filename and line
- belonging to *frame* or, at least, in the current function. If the
- breakpoint is a temporary one, this method deletes it.
-
-.. method:: Bdb.break_anywhere(frame)
-
- This method checks if there is a breakpoint in the filename of the current
- frame.
-
-Derived classes should override these methods to gain control over debugger
-operation.
-
-.. method:: Bdb.user_call(frame, argument_list)
-
- This method is called from :meth:`dispatch_call` when there is the
- possibility that a break might be necessary anywhere inside the called
- function.
-
-.. method:: Bdb.user_line(frame)
-
- This method is called from :meth:`dispatch_line` when either
- :meth:`stop_here` or :meth:`break_here` yields True.
-
-.. method:: Bdb.user_return(frame, return_value)
-
- This method is called from :meth:`dispatch_return` when :meth:`stop_here`
- yields True.
-
-.. method:: Bdb.user_exception(frame, exc_info)
-
- This method is called from :meth:`dispatch_exception` when :meth:`stop_here`
- yields True.
-
-.. method:: Bdb.do_clear(arg)
-
- Handle how a breakpoint must be removed when it is a temporary one.
-
- This method must be implemented by derived classes.
-
-
-Derived classes and clients can call the following methods to affect the
-stepping state.
-
-.. method:: Bdb.set_step()
-
- Stop after one line of code.
-
-.. method:: Bdb.set_next(frame)
-
- Stop on the next line in or below the given frame.
-
-.. method:: Bdb.set_return(frame)
-
- Stop when returning from the given frame.
-
-.. method:: Bdb.set_trace([frame])
-
- Start debugging from *frame*. If *frame* is not specified, debugging starts
- from caller's frame.
-
-.. method:: Bdb.set_continue()
-
- Stop only at breakpoints or when finished. If there are no breakpoints, set
- the system trace function to None.
-
-.. method:: Bdb.set_quit()
-
- Set the :attr:`quitting` attribute to True. This raises :exc:`BdbQuit` in
- the next call to one of the :meth:`dispatch_\*` methods.
-
-
-Derived classes and clients can call the following methods to manipulate
-breakpoints. These methods return a string containing an error message if
-something went wrong, or ``None`` if all is well.
-
-.. method:: Bdb.set_break(filename, lineno[, temporary=0[, cond[, funcname]]])
-
- Set a new breakpoint. If the *lineno* line doesn't exist for the *filename*
- passed as argument, return an error message. The *filename* should be in
- canonical form, as described in the :meth:`canonic` method.
-
-.. method:: Bdb.clear_break(filename, lineno)
-
- Delete the breakpoints in *filename* and *lineno*. If none were set, an
- error message is returned.
-
-.. method:: Bdb.clear_bpbynumber(arg)
-
- Delete the breakpoint which has the index *arg* in the
- :attr:`Breakpoint.bpbynumber`. If `arg` is not numeric or out of range,
- return an error message.
-
-.. method:: Bdb.clear_all_file_breaks(filename)
-
- Delete all breakpoints in *filename*. If none were set, an error message is
- returned.
-
-.. method:: Bdb.clear_all_breaks()
-
- Delete all existing breakpoints.
-
-.. method:: Bdb.get_break(filename, lineno)
-
- Check if there is a breakpoint for *lineno* of *filename*.
-
-.. method:: Bdb.get_breaks(filename, lineno)
-
- Return all breakpoints for *lineno* in *filename*, or an empty list if none
- are set.
-
-.. method:: Bdb.get_file_breaks(filename)
-
- Return all breakpoints in *filename*, or an empty list if none are set.
-
-.. method:: Bdb.get_all_breaks()
-
- Return all breakpoints that are set.
-
-
-Derived classes and clients can call the following methods to get a data
-structure representing a stack trace.
-
-.. method:: Bdb.get_stack(f, t)
-
- Get a list of records for a frame and all higher (calling) and lower frames,
- and the size of the higher part.
-
-.. method:: Bdb.format_stack_entry(frame_lineno, [lprefix=': '])
-
- Return a string with information about a stack entry, identified by a
- ``(frame, lineno)`` tuple:
-
- * The canonical form of the filename which contains the frame.
- * The function name, or ``""``.
- * The input arguments.
- * The return value.
- * The line of code (if it exists).
-
-
-The following two methods can be called by clients to use a debugger to debug a
-statement, given as a string.
-
-.. method:: Bdb.run(cmd, [globals, [locals]])
-
- Debug a statement executed via the :keyword:`exec` statement. *globals*
- defaults to :attr:`__main__.__dict__`, *locals* defaults to *globals*.
-
-.. method:: Bdb.runeval(expr, [globals, [locals]])
-
- Debug an expression executed via the :func:`eval` function. *globals* and
- *locals* have the same meaning as in :meth:`run`.
-
-.. method:: Bdb.runctx(cmd, globals, locals)
-
- For backwards compatibility. Calls the :meth:`run` method.
-
-.. method:: Bdb.runcall(func, *args, **kwds)
-
- Debug a single function call, and return its result.
-
-
-Finally, the module defines the following functions:
-
-.. function:: checkfuncname(b, frame)
-
- Check whether we should break here, depending on the way the breakpoint *b*
- was set.
-
- If it was set via line number, it checks if ``b.line`` is the same as the one
- in the frame also passed as argument. If the breakpoint was set via function
- name, we have to check we are in the right frame (the right function) and if
- we are in its first executable line.
-
-.. function:: effective(file, line, frame)
-
- Determine if there is an effective (active) breakpoint at this line of code.
- Return breakpoint number or 0 if none.
-
- Called only if we know there is a breakpoint at this location. Returns the
- breakpoint that was triggered and a flag that indicates if it is ok to delete
- a temporary breakpoint.
-
-.. function:: set_trace()
-
- Starts debugging with a :class:`Bdb` instance from caller's frame.
+:mod:`bdb` --- Debugger framework
+=================================
+
+.. module:: bdb
+ :synopsis: Debugger framework.
+
+The :mod:`bdb` module handles basic debugger functions, like setting breakpoints
+or managing execution via the debugger.
+
+The following exception is defined:
+
+.. exception:: BdbQuit
+
+ Exception raised by the :class:`Bdb` class for quitting the debugger.
+
+
+The :mod:`bdb` module also defines two classes:
+
+.. class:: Breakpoint(self, file, line[, temporary=0[, cond=None [, funcname=None]]])
+
+ This class implements temporary breakpoints, ignore counts, disabling and
+ (re-)enabling, and conditionals.
+
+ Breakpoints are indexed by number through a list called :attr:`bpbynumber`
+ and by ``(file, line)`` pairs through :attr:`bplist`. The former points to a
+ single instance of class :class:`Breakpoint`. The latter points to a list of
+ such instances since there may be more than one breakpoint per line.
+
+ When creating a breakpoint, its associated filename should be in canonical
+ form. If a *funcname* is defined, a breakpoint hit will be counted when the
+ first line of that function is executed. A conditional breakpoint always
+ counts a hit.
+
+:class:`Breakpoint` instances have the following methods:
+
+.. method:: Breakpoint.deleteMe()
+
+ Delete the breakpoint from the list associated to a file/line. If it is the
+ last breakpoint in that position, it also deletes the entry for the
+ file/line.
+
+.. method:: Breakpoint.enable()
+
+ Mark the breakpoint as enabled.
+
+.. method:: Breakpoint.disable()
+
+ Mark the breakpoint as disabled.
+
+.. method:: Breakpoint.bpprint([out])
+
+ Print all the information about the breakpoint:
+
+ * The breakpoint number.
+ * If it is temporary or not.
+ * Its file,line position.
+ * The condition that causes a break.
+ * If it must be ignored the next N times.
+ * The breakpoint hit count.
+
+
+.. class:: Bdb()
+
+ The :class:`Bdb` acts as a generic Python debugger base class.
+
+ This class takes care of the details of the trace facility; a derived class
+ should implement user interaction. The standard debugger class
+ (:class:`pdb.Pdb`) is an example.
+
+
+The following methods of :class:`Bdb` normally don't need to be overridden.
+
+.. method:: Bdb.canonic(filename)
+
+ Auxiliary method for getting a filename in a canonical form, that is, as a
+ case-normalized (on case-insensitive filesystems) absolute path, stripped
+ of surrounding angle brackets.
+
+.. method:: Bdb.reset()
+
+ Set the :attr:`botframe`, :attr:`stopframe`, :attr:`returnframe` and
+ :attr:`quitting` attributes with values ready to start debugging.
+
+
+.. method:: Bdb.trace_dispatch(frame, event, arg)
+
+ This function is installed as the trace function of debugged frames. Its
+ return value is the new trace function (in most cases, that is, itself).
+
+ The default implementation decides how to dispatch a frame, depending on the
+ type of event (passed as a string) that is about to be executed. *event* can
+ be one of the following:
+
+ * ``"line"``: A new line of code is going to be executed.
+ * ``"call"``: A function is about to be called, or another code block
+ entered.
+ * ``"return"``: A function or other code block is about to return.
+ * ``"exception"``: An exception has occurred.
+ * ``"c_call"``: A C function is about to be called.
+ * ``"c_return"``: A C function has returned.
+ * ``"c_exception"``: A C function has thrown an exception.
+
+ For the Python events, specialized functions (see below) are called. For the
+ C events, no action is taken.
+
+ The *arg* parameter depends on the previous event.
+
+ For more information on trace functions, see :ref:`debugger-hooks`. For more
+ information on code and frame objects, refer to :ref:`types`.
+
+.. method:: Bdb.dispatch_line(frame)
+
+ If the debugger should stop on the current line, invoke the :meth:`user_line`
+ method (which should be overridden in subclasses). Raise a :exc:`BdbQuit`
+ exception if the :attr:`Bdb.quitting` flag is set (which can be set from
+ :meth:`user_line`). Return a reference to the :meth:`trace_dispatch` method
+ for further tracing in that scope.
+
+.. method:: Bdb.dispatch_call(frame, arg)
+
+ If the debugger should stop on this function call, invoke the
+ :meth:`user_call` method (which should be overridden in subclasses). Raise a
+ :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can
+ be set from :meth:`user_call`). Return a reference to the
+ :meth:`trace_dispatch` method for further tracing in that scope.
+
+.. method:: Bdb.dispatch_return(frame, arg)
+
+ If the debugger should stop on this function return, invoke the
+ :meth:`user_return` method (which should be overridden in subclasses). Raise
+ a :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can
+ be set from :meth:`user_return`). Return a reference to the
+ :meth:`trace_dispatch` method for further tracing in that scope.
+
+.. method:: Bdb.dispatch_exception(frame, arg)
+
+ If the debugger should stop at this exception, invokes the
+ :meth:`user_exception` method (which should be overridden in subclasses).
+ Raise a :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set
+ (which can be set from :meth:`user_exception`). Return a reference to the
+ :meth:`trace_dispatch` method for further tracing in that scope.
+
+Normally derived classes don't override the following methods, but they may if
+they want to redefine the definition of stopping and breakpoints.
+
+.. method:: Bdb.stop_here(frame)
+
+ This method checks if the *frame* is somewhere below :attr:`botframe` in the
+ call stack. :attr:`botframe` is the frame in which debugging started.
+
+.. method:: Bdb.break_here(frame)
+
+ This method checks if there is a breakpoint in the filename and line
+ belonging to *frame* or, at least, in the current function. If the
+ breakpoint is a temporary one, this method deletes it.
+
+.. method:: Bdb.break_anywhere(frame)
+
+ This method checks if there is a breakpoint in the filename of the current
+ frame.
+
+Derived classes should override these methods to gain control over debugger
+operation.
+
+.. method:: Bdb.user_call(frame, argument_list)
+
+ This method is called from :meth:`dispatch_call` when there is the
+ possibility that a break might be necessary anywhere inside the called
+ function.
+
+.. method:: Bdb.user_line(frame)
+
+ This method is called from :meth:`dispatch_line` when either
+ :meth:`stop_here` or :meth:`break_here` yields True.
+
+.. method:: Bdb.user_return(frame, return_value)
+
+ This method is called from :meth:`dispatch_return` when :meth:`stop_here`
+ yields True.
+
+.. method:: Bdb.user_exception(frame, exc_info)
+
+ This method is called from :meth:`dispatch_exception` when :meth:`stop_here`
+ yields True.
+
+.. method:: Bdb.do_clear(arg)
+
+ Handle how a breakpoint must be removed when it is a temporary one.
+
+ This method must be implemented by derived classes.
+
+
+Derived classes and clients can call the following methods to affect the
+stepping state.
+
+.. method:: Bdb.set_step()
+
+ Stop after one line of code.
+
+.. method:: Bdb.set_next(frame)
+
+ Stop on the next line in or below the given frame.
+
+.. method:: Bdb.set_return(frame)
+
+ Stop when returning from the given frame.
+
+.. method:: Bdb.set_trace([frame])
+
+ Start debugging from *frame*. If *frame* is not specified, debugging starts
+ from caller's frame.
+
+.. method:: Bdb.set_continue()
+
+ Stop only at breakpoints or when finished. If there are no breakpoints, set
+ the system trace function to None.
+
+.. method:: Bdb.set_quit()
+
+ Set the :attr:`quitting` attribute to True. This raises :exc:`BdbQuit` in
+ the next call to one of the :meth:`dispatch_\*` methods.
+
+
+Derived classes and clients can call the following methods to manipulate
+breakpoints. These methods return a string containing an error message if
+something went wrong, or ``None`` if all is well.
+
+.. method:: Bdb.set_break(filename, lineno[, temporary=0[, cond[, funcname]]])
+
+ Set a new breakpoint. If the *lineno* line doesn't exist for the *filename*
+ passed as argument, return an error message. The *filename* should be in
+ canonical form, as described in the :meth:`canonic` method.
+
+.. method:: Bdb.clear_break(filename, lineno)
+
+ Delete the breakpoints in *filename* and *lineno*. If none were set, an
+ error message is returned.
+
+.. method:: Bdb.clear_bpbynumber(arg)
+
+ Delete the breakpoint which has the index *arg* in the
+ :attr:`Breakpoint.bpbynumber`. If `arg` is not numeric or out of range,
+ return an error message.
+
+.. method:: Bdb.clear_all_file_breaks(filename)
+
+ Delete all breakpoints in *filename*. If none were set, an error message is
+ returned.
+
+.. method:: Bdb.clear_all_breaks()
+
+ Delete all existing breakpoints.
+
+.. method:: Bdb.get_break(filename, lineno)
+
+ Check if there is a breakpoint for *lineno* of *filename*.
+
+.. method:: Bdb.get_breaks(filename, lineno)
+
+ Return all breakpoints for *lineno* in *filename*, or an empty list if none
+ are set.
+
+.. method:: Bdb.get_file_breaks(filename)
+
+ Return all breakpoints in *filename*, or an empty list if none are set.
+
+.. method:: Bdb.get_all_breaks()
+
+ Return all breakpoints that are set.
+
+
+Derived classes and clients can call the following methods to get a data
+structure representing a stack trace.
+
+.. method:: Bdb.get_stack(f, t)
+
+ Get a list of records for a frame and all higher (calling) and lower frames,
+ and the size of the higher part.
+
+.. method:: Bdb.format_stack_entry(frame_lineno, [lprefix=': '])
+
+ Return a string with information about a stack entry, identified by a
+ ``(frame, lineno)`` tuple:
+
+ * The canonical form of the filename which contains the frame.
+ * The function name, or ``""``.
+ * The input arguments.
+ * The return value.
+ * The line of code (if it exists).
+
+
+The following two methods can be called by clients to use a debugger to debug a
+statement, given as a string.
+
+.. method:: Bdb.run(cmd, [globals, [locals]])
+
+ Debug a statement executed via the :keyword:`exec` statement. *globals*
+ defaults to :attr:`__main__.__dict__`, *locals* defaults to *globals*.
+
+.. method:: Bdb.runeval(expr, [globals, [locals]])
+
+ Debug an expression executed via the :func:`eval` function. *globals* and
+ *locals* have the same meaning as in :meth:`run`.
+
+.. method:: Bdb.runctx(cmd, globals, locals)
+
+ For backwards compatibility. Calls the :meth:`run` method.
+
+.. method:: Bdb.runcall(func, *args, **kwds)
+
+ Debug a single function call, and return its result.
+
+
+Finally, the module defines the following functions:
+
+.. function:: checkfuncname(b, frame)
+
+ Check whether we should break here, depending on the way the breakpoint *b*
+ was set.
+
+ If it was set via line number, it checks if ``b.line`` is the same as the one
+ in the frame also passed as argument. If the breakpoint was set via function
+ name, we have to check we are in the right frame (the right function) and if
+ we are in its first executable line.
+
+.. function:: effective(file, line, frame)
+
+ Determine if there is an effective (active) breakpoint at this line of code.
+ Return breakpoint number or 0 if none.
+
+ Called only if we know there is a breakpoint at this location. Returns the
+ breakpoint that was triggered and a flag that indicates if it is ok to delete
+ a temporary breakpoint.
+
+.. function:: set_trace()
+
+ Starts debugging with a :class:`Bdb` instance from caller's frame.
From buildbot at python.org Sun Dec 2 15:37:30 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 14:37:30 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071202143730.B28871E4029@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/337
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 15:37:39 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 14:37:39 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo 3.0
Message-ID: <20071202143739.C26941E4014@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%203.0/builds/249
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 15:37:48 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 14:37:48 +0000
Subject: [Python-checkins] buildbot failure in sparc solaris10 gcc 3.0
Message-ID: <20071202143748.8D0211E4014@bag.python.org>
The Buildbot has detected a new failure of sparc solaris10 gcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/sparc%20solaris10%20gcc%203.0/builds/354
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-sun
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 15:37:58 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 14:37:58 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071202143758.E2D951E4014@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/316
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 15:38:00 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 14:38:00 +0000
Subject: [Python-checkins] buildbot failure in g4 osx.4 3.0
Message-ID: <20071202143800.BADE71E4022@bag.python.org>
The Buildbot has detected a new failure of g4 osx.4 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/g4%20osx.4%203.0/builds/311
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: psf-g4
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 15:39:52 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 14:39:52 +0000
Subject: [Python-checkins] buildbot failure in x86 FreeBSD 3.0
Message-ID: <20071202143952.D811B1E4014@bag.python.org>
The Buildbot has detected a new failure of x86 FreeBSD 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%203.0/builds/263
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-freebsd
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From python-checkins at python.org Sun Dec 2 15:58:51 2007
From: python-checkins at python.org (georg.brandl)
Date: Sun, 2 Dec 2007 15:58:51 +0100 (CET)
Subject: [Python-checkins] r59274 - in python/trunk/Doc: ACKS.txt Makefile
README.txt glossary.rst library/atexit.rst library/bdb.rst
library/codecs.rst library/codeop.rst library/contextlib.rst
library/doctest.rst library/functions.rst
library/functools.rst library/inspect.rst
library/operator.rst library/sets.rst library/stdtypes.rst
library/sys.rst library/timeit.rst library/weakref.rst
reference/compound_stmts.rst tutorial/stdlib2.rst
Message-ID: <20071202145851.0B37B1E4014@bag.python.org>
Author: georg.brandl
Date: Sun Dec 2 15:58:50 2007
New Revision: 59274
Modified:
python/trunk/Doc/ACKS.txt
python/trunk/Doc/Makefile
python/trunk/Doc/README.txt
python/trunk/Doc/glossary.rst
python/trunk/Doc/library/atexit.rst
python/trunk/Doc/library/bdb.rst
python/trunk/Doc/library/codecs.rst
python/trunk/Doc/library/codeop.rst
python/trunk/Doc/library/contextlib.rst
python/trunk/Doc/library/doctest.rst
python/trunk/Doc/library/functions.rst
python/trunk/Doc/library/functools.rst
python/trunk/Doc/library/inspect.rst
python/trunk/Doc/library/operator.rst
python/trunk/Doc/library/sets.rst
python/trunk/Doc/library/stdtypes.rst
python/trunk/Doc/library/sys.rst
python/trunk/Doc/library/timeit.rst
python/trunk/Doc/library/weakref.rst
python/trunk/Doc/reference/compound_stmts.rst
python/trunk/Doc/tutorial/stdlib2.rst
Log:
Add more entries to the glossary.
Written by Jeff Wheeler for GHOP.
Modified: python/trunk/Doc/ACKS.txt
==============================================================================
--- python/trunk/Doc/ACKS.txt (original)
+++ python/trunk/Doc/ACKS.txt Sun Dec 2 15:58:50 2007
@@ -185,6 +185,7 @@
* Glyn Webster
* Bob Weiner
* Eddy Welbourne
+* Jeff Wheeler
* Mats Wichmann
* Gerry Wiener
* Timothy Wild
Modified: python/trunk/Doc/Makefile
==============================================================================
--- python/trunk/Doc/Makefile (original)
+++ python/trunk/Doc/Makefile Sun Dec 2 15:58:50 2007
@@ -57,6 +57,10 @@
@echo "Build finished; now you can run HTML Help Workshop with the" \
"build/htmlhelp/pydoc.hhp project file."
+latex: BUILDER = latex
+latex: build
+ @echo "Build finished; the LaTeX files are in build/latex."
+
clean:
-rm -rf build/*
-rm -rf tools/sphinx
Modified: python/trunk/Doc/README.txt
==============================================================================
--- python/trunk/Doc/README.txt (original)
+++ python/trunk/Doc/README.txt Sun Dec 2 15:58:50 2007
@@ -48,6 +48,9 @@
To create the CHM file, you need to run the Microsoft HTML Help Workshop
over the generated project (.hhp) file.
+ * "latex", which builds LaTeX source files that can be run with "pdflatex"
+ to produce PDF documents.
+
A "make update" updates the Subversion checkouts in `tools/`.
Modified: python/trunk/Doc/glossary.rst
==============================================================================
--- python/trunk/Doc/glossary.rst (original)
+++ python/trunk/Doc/glossary.rst Sun Dec 2 15:58:50 2007
@@ -15,6 +15,17 @@
``...``
The typical Python prompt of the interactive shell when entering code for
an indented code block.
+
+ argument
+ A value passed to a function or method, assigned to a name local to
+ the body. A function or method may have both positional arguments and
+ keyword arguments in its definition. Positional and keyword arguments
+ may be variable-length: ``*`` accepts or passes (if in the function
+ definition or call) several positional arguments in a list, while ``**``
+ does the same for keyword arguments in a dictionary.
+
+ Any expression may be used within the argument list, and the evaluated
+ value is passed to the local variable.
BDFL
Benevolent Dictator For Life, a.k.a. `Guido van Rossum
@@ -57,6 +68,22 @@
advanced mathematical feature. If you're not aware of a need for them,
it's almost certain you can safely ignore them.
+ decorator
+ A function returning another function, usually applied as a function
+ transformation using the ``@wrapper`` syntax. Common examples for
+ decorators are :func:`classmethod` and :func:`staticmethod`.
+
+ The decorator syntax is merely syntactic sugar, the following two
+ function definitions are semantically equivalent::
+
+ def f(...):
+ ...
+ f = staticmethod(f)
+
+ @staticmethod
+ def f(...):
+ ...
+
descriptor
Any *new-style* object that defines the methods :meth:`__get__`,
:meth:`__set__`, or :meth:`__delete__`. When a class attribute is a
@@ -94,10 +121,24 @@
statements. The technique contrasts with the :term:`LBYL` style that is
common in many other languages such as C.
+ expression
+ A piece of syntax which can be evaluated to some value. In other words,
+ an expression is an accumulation of expression elements like literals, names,
+ attribute access, operators or function calls that all return a value.
+ In contrast to other languages, not all language constructs are expressions,
+ but there are also :term:`statement`\s that cannot be used as expressions,
+ such as :keyword:`print` or :keyword:`if`. Assignments are also not
+ expressions.
+
extension module
A module written in C, using Python's C API to interact with the core and
with user code.
-
+
+ function
+ A series of statements which returns some value to a caller. It can also
+ be passed zero or more arguments which may be used in the execution of
+ the body. See also :term:`argument` and :term:`method`.
+
__future__
A pseudo module which programmers can use to enable new language features
which are not compatible with the current interpreter. For example, the
@@ -241,6 +282,17 @@
More information can be found in :ref:`typeiter`.
+ keyword argument
+ Arguments which are preceded with a ``variable_name=`` in the call.
+ The variable name designates the local name in the function to which the
+ value is assigned. ``**`` is used to accept or pass a dictionary of
+ keyword arguments. See :term:`argument`.
+
+ lambda
+ An anonymous inline function consisting of a single :term:`expression`
+ which is evaluated when the function is called. The syntax to create
+ a lambda function is ``lambda [arguments]: expression``
+
LBYL
Look before you leap. This coding style explicitly tests for
pre-conditions before making calls or lookups. This style contrasts with
@@ -271,6 +323,12 @@
singletons, and many other tasks.
More information can be found in :ref:`metaclasses`.
+
+ method
+ A function that is defined inside a class body. If called as an attribute
+ of an instance of that class, the method will get the instance object as
+ its first :term:`argument` (which is usually called ``self``).
+ See :term:`function` and :term:`nested scope`.
mutable
Mutable objects can change their value but keep their :func:`id`. See
@@ -305,10 +363,32 @@
More information can be found in :ref:`newstyle`.
+ positional argument
+ The arguments assigned to local names inside a function or method,
+ determined by the order in which they were given in the call. ``*`` is
+ used to either accept multiple positional arguments (when in the
+ definition), or pass several arguments as a list to a function. See
+ :term:`argument`.
+
Python 3000
Nickname for the next major Python version, 3.0 (coined long ago when the
release of version 3 was something in the distant future.)
+ Pythonic
+ An idea or piece of code which closely follows the most common idioms of
+ the Python language, rather than implementing code using concepts common
+ in other languages. For example, a common idiom in Python is the :keyword:`for`
+ loop structure; other languages don't have this easy keyword, so people
+ use a numerical counter instead::
+
+ for i in range(len(food)):
+ print food[i]
+
+ As opposed to the cleaner, Pythonic method::
+
+ for piece in food:
+ print piece
+
reference count
The number of places where a certain object is referenced to. When the
reference count drops to zero, an object is deallocated. While reference
@@ -331,6 +411,18 @@
mapping rather than a sequence because the lookups use arbitrary
:term:`immutable` keys rather than integers.
+ slice
+ A list containing a portion of an indexed list-like object. A slice is
+ created using the subscript notation, ``[]`` with colons between numbers
+ when several are given, such as in ``variable_name[1:3:5]``. The bracket
+ (subscript) notation uses :class:`slice` objects internally (or in older
+ versions, :meth:`__getslice__` and :meth:`__setslice__`).
+
+ statement
+ A statement is part of a suite (a "block" of code). A statement is either
+ an :term:`expression` or a one of several constructs with a keyword, such
+ as :keyword:`if`, :keyword:`while` or :keyword:`print`.
+
type
The type of a Python object determines what kind of object it is; every
object has a type. An object's type is accessible as its
Modified: python/trunk/Doc/library/atexit.rst
==============================================================================
--- python/trunk/Doc/library/atexit.rst (original)
+++ python/trunk/Doc/library/atexit.rst Sun Dec 2 15:58:50 2007
@@ -96,7 +96,7 @@
# or:
atexit.register(goodbye, adjective='nice', name='Donny')
-Usage as a decorator::
+Usage as a :term:`decorator`::
import atexit
Modified: python/trunk/Doc/library/bdb.rst
==============================================================================
--- python/trunk/Doc/library/bdb.rst (original)
+++ python/trunk/Doc/library/bdb.rst Sun Dec 2 15:58:50 2007
@@ -290,7 +290,7 @@
The following two methods can be called by clients to use a debugger to debug a
-statement, given as a string.
+:term:`statement`, given as a string.
.. method:: Bdb.run(cmd, [globals, [locals]])
Modified: python/trunk/Doc/library/codecs.rst
==============================================================================
--- python/trunk/Doc/library/codecs.rst (original)
+++ python/trunk/Doc/library/codecs.rst Sun Dec 2 15:58:50 2007
@@ -1119,9 +1119,9 @@
| | | | all conversions. Can be |
| | | | used as the system |
| | | | encoding if no automatic |
-| | | | coercion between byte and |
-| | | | Unicode strings is |
-| | | | desired. |
+| | | | :term:`coercion` between |
+| | | | byte and Unicode strings |
+| | | | is desired. |
+--------------------+---------------------------+----------------+---------------------------+
| unicode_escape | | Unicode string | Produce a string that is |
| | | | suitable as Unicode |
Modified: python/trunk/Doc/library/codeop.rst
==============================================================================
--- python/trunk/Doc/library/codeop.rst (original)
+++ python/trunk/Doc/library/codeop.rst Sun Dec 2 15:58:50 2007
@@ -43,8 +43,8 @@
:exc:`OverflowError` or :exc:`ValueError` if there is an invalid literal.
The *symbol* argument determines whether *source* is compiled as a statement
- (``'single'``, the default) or as an expression (``'eval'``). Any other value
- will cause :exc:`ValueError` to be raised.
+ (``'single'``, the default) or as an :term:`expression` (``'eval'``). Any
+ other value will cause :exc:`ValueError` to be raised.
.. warning::
Modified: python/trunk/Doc/library/contextlib.rst
==============================================================================
--- python/trunk/Doc/library/contextlib.rst (original)
+++ python/trunk/Doc/library/contextlib.rst Sun Dec 2 15:58:50 2007
@@ -17,9 +17,9 @@
.. function:: contextmanager(func)
- This function is a decorator that can be used to define a factory function for
- :keyword:`with` statement context managers, without needing to create a class or
- separate :meth:`__enter__` and :meth:`__exit__` methods.
+ This function is a :term:`decorator` that can be used to define a factory
+ function for :keyword:`with` statement context managers, without needing to
+ create a class or separate :meth:`__enter__` and :meth:`__exit__` methods.
A simple example (this is not recommended as a real way of generating HTML!)::
Modified: python/trunk/Doc/library/doctest.rst
==============================================================================
--- python/trunk/Doc/library/doctest.rst (original)
+++ python/trunk/Doc/library/doctest.rst Sun Dec 2 15:58:50 2007
@@ -1135,7 +1135,8 @@
The advanced API revolves around two container classes, which are used to store
the interactive examples extracted from doctest cases:
-* :class:`Example`: A single python statement, paired with its expected output.
+* :class:`Example`: A single python :term:`statement`, paired with its expected
+ output.
* :class:`DocTest`: A collection of :class:`Example`\ s, typically extracted
from a single docstring or text file.
Modified: python/trunk/Doc/library/functions.rst
==============================================================================
--- python/trunk/Doc/library/functions.rst (original)
+++ python/trunk/Doc/library/functions.rst Sun Dec 2 15:58:50 2007
@@ -161,8 +161,8 @@
@classmethod
def f(cls, arg1, arg2, ...): ...
- The ``@classmethod`` form is a function decorator -- see the description of
- function definitions in :ref:`function` for details.
+ The ``@classmethod`` form is a function :term:`decorator` -- see the description
+ of function definitions in :ref:`function` for details.
It can be called either on the class (such as ``C.f()``) or on an instance (such
as ``C().f()``). The instance is ignored except for its class. If a class
@@ -825,7 +825,7 @@
If given, *doc* will be the docstring of the property attribute. Otherwise, the
property will copy *fget*'s docstring (if it exists). This makes it possible to
- create read-only properties easily using :func:`property` as a decorator::
+ create read-only properties easily using :func:`property` as a :term:`decorator`::
class Parrot(object):
def __init__(self):
@@ -1015,7 +1015,7 @@
.. index:: single: Numerical Python
- Return a slice object representing the set of indices specified by
+ Return a :term:`slice` object representing the set of indices specified by
``range(start, stop, step)``. The *start* and *step* arguments default to
``None``. Slice objects have read-only data attributes :attr:`start`,
:attr:`stop` and :attr:`step` which merely return the argument values (or their
@@ -1063,8 +1063,8 @@
@staticmethod
def f(arg1, arg2, ...): ...
- The ``@staticmethod`` form is a function decorator -- see the description of
- function definitions in :ref:`function` for details.
+ The ``@staticmethod`` form is a function :term:`decorator` -- see the
+ description of function definitions in :ref:`function` for details.
It can be called either on the class (such as ``C.f()``) or on an instance (such
as ``C().f()``). The instance is ignored except for its class.
Modified: python/trunk/Doc/library/functools.rst
==============================================================================
--- python/trunk/Doc/library/functools.rst (original)
+++ python/trunk/Doc/library/functools.rst Sun Dec 2 15:58:50 2007
@@ -68,9 +68,9 @@
*WRAPPER_UPDATES* (which updates the wrapper function's *__dict__*, i.e. the
instance dictionary).
- The main intended use for this function is in decorator functions which wrap the
- decorated function and return the wrapper. If the wrapper function is not
- updated, the metadata of the returned function will reflect the wrapper
+ The main intended use for this function is in :term:`decorator` functions which
+ wrap the decorated function and return the wrapper. If the wrapper function is
+ not updated, the metadata of the returned function will reflect the wrapper
definition rather than the original function definition, which is typically less
than helpful.
Modified: python/trunk/Doc/library/inspect.rst
==============================================================================
--- python/trunk/Doc/library/inspect.rst (original)
+++ python/trunk/Doc/library/inspect.rst Sun Dec 2 15:58:50 2007
@@ -235,7 +235,7 @@
.. function:: isfunction(object)
- Return true if the object is a Python function or unnamed (lambda) function.
+ Return true if the object is a Python function or unnamed (:term:`lambda`) function.
.. function:: istraceback(object)
Modified: python/trunk/Doc/library/operator.rst
==============================================================================
--- python/trunk/Doc/library/operator.rst (original)
+++ python/trunk/Doc/library/operator.rst Sun Dec 2 15:58:50 2007
@@ -280,10 +280,10 @@
Many operations have an "in-place" version. The following functions provide a
more primitive access to in-place operators than the usual syntax does; for
-example, the statement ``x += y`` is equivalent to ``x = operator.iadd(x, y)``.
-Another way to put it is to say that ``z = operator.iadd(x, y)`` is equivalent
-to the compound statement ``z = x; z += y``.
-
+example, the :term:`statement` ``x += y`` is equivalent to
+``x = operator.iadd(x, y)``. Another way to put it is to say that
+``z = operator.iadd(x, y)`` is equivalent to the compound statement
+``z = x; z += y``.
.. function:: iadd(a, b)
__iadd__(a, b)
Modified: python/trunk/Doc/library/sets.rst
==============================================================================
--- python/trunk/Doc/library/sets.rst (original)
+++ python/trunk/Doc/library/sets.rst Sun Dec 2 15:58:50 2007
@@ -228,9 +228,9 @@
objects are automatically copied to an :class:`ImmutableSet` before being added
as a set element.
-The mechanism is to always add a hashable element, or if it is not hashable, the
-element is checked to see if it has an :meth:`__as_immutable__` method which
-returns an immutable equivalent.
+The mechanism is to always add a :term:`hashable` element, or if it is not
+hashable, the element is checked to see if it has an :meth:`__as_immutable__`
+method which returns an immutable equivalent.
Since :class:`Set` objects have a :meth:`__as_immutable__` method returning an
instance of :class:`ImmutableSet`, it is possible to construct sets of sets.
Modified: python/trunk/Doc/library/stdtypes.rst
==============================================================================
--- python/trunk/Doc/library/stdtypes.rst (original)
+++ python/trunk/Doc/library/stdtypes.rst Sun Dec 2 15:58:50 2007
@@ -2191,8 +2191,8 @@
their implementation of the context management protocol. See the
:mod:`contextlib` module for some examples.
-Python's :term:`generator`\s and the ``contextlib.contextfactory`` decorator provide a
-convenient way to implement these protocols. If a generator function is
+Python's :term:`generator`\s and the ``contextlib.contextfactory`` :term:`decorator`
+provide a convenient way to implement these protocols. If a generator function is
decorated with the ``contextlib.contextfactory`` decorator, it will return a
context manager implementing the necessary :meth:`__enter__` and
:meth:`__exit__` methods, rather than the iterator produced by an undecorated
Modified: python/trunk/Doc/library/sys.rst
==============================================================================
--- python/trunk/Doc/library/sys.rst (original)
+++ python/trunk/Doc/library/sys.rst Sun Dec 2 15:58:50 2007
@@ -86,9 +86,9 @@
If *value* is not ``None``, this function prints it to ``sys.stdout``, and saves
it in ``__builtin__._``.
- ``sys.displayhook`` is called on the result of evaluating an expression entered
- in an interactive Python session. The display of these values can be customized
- by assigning another one-argument function to ``sys.displayhook``.
+ ``sys.displayhook`` is called on the result of evaluating an :term:`expression`
+ entered in an interactive Python session. The display of these values can be
+ customized by assigning another one-argument function to ``sys.displayhook``.
.. function:: excepthook(type, value, traceback)
@@ -617,12 +617,12 @@
File objects corresponding to the interpreter's standard input, output and error
streams. ``stdin`` is used for all interpreter input except for scripts but
including calls to :func:`input` and :func:`raw_input`. ``stdout`` is used for
- the output of :keyword:`print` and expression statements and for the prompts of
- :func:`input` and :func:`raw_input`. The interpreter's own prompts and (almost
- all of) its error messages go to ``stderr``. ``stdout`` and ``stderr`` needn't
- be built-in file objects: any object is acceptable as long as it has a
- :meth:`write` method that takes a string argument. (Changing these objects
- doesn't affect the standard I/O streams of processes executed by
+ the output of :keyword:`print` and :term:`expression` statements and for the
+ prompts of :func:`input` and :func:`raw_input`. The interpreter's own prompts
+ and (almost all of) its error messages go to ``stderr``. ``stdout`` and
+ ``stderr`` needn't be built-in file objects: any object is acceptable as long
+ as it has a :meth:`write` method that takes a string argument. (Changing these
+ objects doesn't affect the standard I/O streams of processes executed by
:func:`os.popen`, :func:`os.system` or the :func:`exec\*` family of functions in
the :mod:`os` module.)
Modified: python/trunk/Doc/library/timeit.rst
==============================================================================
--- python/trunk/Doc/library/timeit.rst (original)
+++ python/trunk/Doc/library/timeit.rst Sun Dec 2 15:58:50 2007
@@ -88,11 +88,12 @@
.. note::
- By default, :meth:`timeit` temporarily turns off garbage collection during the
- timing. The advantage of this approach is that it makes independent timings
- more comparable. This disadvantage is that GC may be an important component of
- the performance of the function being measured. If so, GC can be re-enabled as
- the first statement in the *setup* string. For example::
+ By default, :meth:`timeit` temporarily turns off :term:`garbage collection`
+ during the timing. The advantage of this approach is that it makes
+ independent timings more comparable. This disadvantage is that GC may be
+ an important component of the performance of the function being measured.
+ If so, GC can be re-enabled as the first statement in the *setup* string.
+ For example::
timeit.Timer('for i in xrange(10): oct(i)', 'gc.enable()').timeit()
Modified: python/trunk/Doc/library/weakref.rst
==============================================================================
--- python/trunk/Doc/library/weakref.rst (original)
+++ python/trunk/Doc/library/weakref.rst Sun Dec 2 15:58:50 2007
@@ -22,22 +22,22 @@
by a weak reference.
A weak reference to an object is not enough to keep the object alive: when the
-only remaining references to a referent are weak references, garbage collection
-is free to destroy the referent and reuse its memory for something else. A
-primary use for weak references is to implement caches or mappings holding large
-objects, where it's desired that a large object not be kept alive solely because
-it appears in a cache or mapping. For example, if you have a number of large
-binary image objects, you may wish to associate a name with each. If you used a
-Python dictionary to map names to images, or images to names, the image objects
-would remain alive just because they appeared as values or keys in the
-dictionaries. The :class:`WeakKeyDictionary` and :class:`WeakValueDictionary`
-classes supplied by the :mod:`weakref` module are an alternative, using weak
-references to construct mappings that don't keep objects alive solely because
-they appear in the mapping objects. If, for example, an image object is a value
-in a :class:`WeakValueDictionary`, then when the last remaining references to
-that image object are the weak references held by weak mappings, garbage
-collection can reclaim the object, and its corresponding entries in weak
-mappings are simply deleted.
+only remaining references to a referent are weak references,
+:term:`garbage collection` is free to destroy the referent and reuse its memory
+for something else. A primary use for weak references is to implement caches or
+mappings holding large objects, where it's desired that a large object not be
+kept alive solely because it appears in a cache or mapping. For example, if you
+have a number of large binary image objects, you may wish to associate a name
+with each. If you used a Python dictionary to map names to images, or images to
+names, the image objects would remain alive just because they appeared as values
+or keys in the dictionaries. The :class:`WeakKeyDictionary` and
+:class:`WeakValueDictionary` classes supplied by the :mod:`weakref` module are
+an alternative, using weak references to construct mappings that don't keep
+objects alive solely because they appear in the mapping objects. If, for
+example, an image object is a value in a :class:`WeakValueDictionary`, then when
+the last remaining references to that image object are the weak references held
+by weak mappings, garbage collection can reclaim the object, and its
+corresponding entries in weak mappings are simply deleted.
:class:`WeakKeyDictionary` and :class:`WeakValueDictionary` use weak references
in their implementation, setting up callback functions on the weak references
Modified: python/trunk/Doc/reference/compound_stmts.rst
==============================================================================
--- python/trunk/Doc/reference/compound_stmts.rst (original)
+++ python/trunk/Doc/reference/compound_stmts.rst Sun Dec 2 15:58:50 2007
@@ -428,7 +428,7 @@
The function definition does not execute the function body; this gets executed
only when the function is called.
-A function definition may be wrapped by one or more decorator expressions.
+A function definition may be wrapped by one or more :term:`decorator` expressions.
Decorator expressions are evaluated when the function is defined, in the scope
that contains the function definition. The result must be a callable, which is
invoked with the function object as the only argument. The returned value is
Modified: python/trunk/Doc/tutorial/stdlib2.rst
==============================================================================
--- python/trunk/Doc/tutorial/stdlib2.rst (original)
+++ python/trunk/Doc/tutorial/stdlib2.rst Sun Dec 2 15:58:50 2007
@@ -239,8 +239,8 @@
===============
Python does automatic memory management (reference counting for most objects and
-garbage collection to eliminate cycles). The memory is freed shortly after the
-last reference to it has been eliminated.
+:term:`garbage collection` to eliminate cycles). The memory is freed shortly
+after the last reference to it has been eliminated.
This approach works fine for most applications but occasionally there is a need
to track objects only as long as they are being used by something else.
From lists at cheimes.de Sun Dec 2 16:21:01 2007
From: lists at cheimes.de (Christian Heimes)
Date: Sun, 02 Dec 2007 16:21:01 +0100
Subject: [Python-checkins] r59266 - in python/trunk/Doc:
distutils/extending.rst library/windows.rst using/cmdline.rst
using/index.rst using/windows.rst
In-Reply-To: <20071201231245.ECD971E4006@bag.python.org>
References: <20071201231245.ECD971E4006@bag.python.org>
Message-ID: <4752CD5D.3070407@cheimes.de>
georg.brandl wrote:
> Author: georg.brandl
> Date: Sun Dec 2 00:12:45 2007
> New Revision: 59266
>
> Added:
> python/trunk/Doc/using/windows.rst
> Modified:
> python/trunk/Doc/distutils/extending.rst
> python/trunk/Doc/library/windows.rst
> python/trunk/Doc/using/cmdline.rst
> python/trunk/Doc/using/index.rst
> Log:
> Add "Using Python on Windows" document, by Robert Lehmann.
> Written for GHOP.
> -For example, on most Linux systems, the default for both is :file:`/usr`.
> -
> -+-----------------------------------------------+------------------------------------------+
> -| File/directory | Meaning |
> -+===============================================+==========================================+
> -| :file:`{exec_prefix}/bin/python` | Recommended location of the interpreter. |
> -+-----------------------------------------------+------------------------------------------+
> -| :file:`{prefix}/lib/python{version}`, | Recommended locations of the directories |
> -| :file:`{exec_prefix}/lib/python{version}` | containing the standard modules. |
> -+-----------------------------------------------+------------------------------------------+
> -| :file:`{prefix}/include/python{version}`, | Recommended locations of the directories |
> -| :file:`{exec_prefix}/include/python{version}` | containing the include files needed for |
> -| | developing Python extensions and |
> -| | embedding the interpreter. |
> -+-----------------------------------------------+------------------------------------------+
> -| :file:`~/.pythonrc.py` | User-specific initialization file loaded |
> -| | by the user module; not used by default |
> -| | or by most applications. |
> -+-----------------------------------------------+------------------------------------------+
Why was the chapter removed from the docs?
Christian
From buildbot at python.org Sun Dec 2 16:47:12 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 15:47:12 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc 3.0
Message-ID: <20071202154712.62F691E4025@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%203.0/builds/390
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_cmd
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/test/test_cmd.py", line 134
print "Hello from preloop"
^
SyntaxError: invalid syntax
[715302 refs]
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 16:49:30 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 15:49:30 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo 3.0
Message-ID: <20071202154930.4AFB21E4028@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%203.0/builds/251
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_cmd
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/test/test_cmd.py", line 134
print "Hello from preloop"
^
SyntaxError: invalid syntax
[765795 refs]
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From g.brandl at gmx.net Sun Dec 2 16:51:00 2007
From: g.brandl at gmx.net (Georg Brandl)
Date: Sun, 02 Dec 2007 16:51:00 +0100
Subject: [Python-checkins] r59266 - in python/trunk/Doc:
distutils/extending.rst library/windows.rst using/cmdline.rst
using/index.rst using/windows.rst
In-Reply-To: <4752CD5D.3070407@cheimes.de>
References: <20071201231245.ECD971E4006@bag.python.org>
<4752CD5D.3070407@cheimes.de>
Message-ID:
Christian Heimes schrieb:
> georg.brandl wrote:
>> Author: georg.brandl
>> Date: Sun Dec 2 00:12:45 2007
>> New Revision: 59266
>>
>> Added:
>> python/trunk/Doc/using/windows.rst
>> Modified:
>> python/trunk/Doc/distutils/extending.rst
>> python/trunk/Doc/library/windows.rst
>> python/trunk/Doc/using/cmdline.rst
>> python/trunk/Doc/using/index.rst
>> Log:
>> Add "Using Python on Windows" document, by Robert Lehmann.
>> Written for GHOP.
>> -For example, on most Linux systems, the default for both is :file:`/usr`.
>> -
>> -+-----------------------------------------------+------------------------------------------+
>> -| File/directory | Meaning |
>> -+===============================================+==========================================+
>> -| :file:`{exec_prefix}/bin/python` | Recommended location of the interpreter. |
>> -+-----------------------------------------------+------------------------------------------+
>> -| :file:`{prefix}/lib/python{version}`, | Recommended locations of the directories |
>> -| :file:`{exec_prefix}/lib/python{version}` | containing the standard modules. |
>> -+-----------------------------------------------+------------------------------------------+
>> -| :file:`{prefix}/include/python{version}`, | Recommended locations of the directories |
>> -| :file:`{exec_prefix}/include/python{version}` | containing the include files needed for |
>> -| | developing Python extensions and |
>> -| | embedding the interpreter. |
>> -+-----------------------------------------------+------------------------------------------+
>> -| :file:`~/.pythonrc.py` | User-specific initialization file loaded |
>> -| | by the user module; not used by default |
>> -| | or by most applications. |
>> -+-----------------------------------------------+------------------------------------------+
>
> Why was the chapter removed from the docs?
It is UNIX-specific and will be in the "Using on UNIX" document which is
currently being written by a student.
Georg
--
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
From buildbot at python.org Sun Dec 2 17:04:13 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 16:04:13 +0000
Subject: [Python-checkins] buildbot failure in sparc solaris10 gcc 3.0
Message-ID: <20071202160413.EB90E1E4021@bag.python.org>
The Buildbot has detected a new failure of sparc solaris10 gcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/sparc%20solaris10%20gcc%203.0/builds/356
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-sun
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_cmd
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/test/test_cmd.py", line 134
print "Hello from preloop"
^
SyntaxError: invalid syntax
[719013 refs]
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 17:33:04 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 16:33:04 +0000
Subject: [Python-checkins] buildbot failure in g4 osx.4 3.0
Message-ID: <20071202163305.1F2F01E4020@bag.python.org>
The Buildbot has detected a new failure of g4 osx.4 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/g4%20osx.4%203.0/builds/313
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: psf-g4
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_cmd
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/test/test_cmd.py", line 134
print "Hello from preloop"
^
SyntaxError: invalid syntax
[775647 refs]
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 17:34:28 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 16:34:28 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071202163428.976121E4020@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/339
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_cmd
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_cmd.py", line 134
print "Hello from preloop"
^
SyntaxError: invalid syntax
[777658 refs]
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sun Dec 2 17:40:50 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 16:40:50 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071202164050.98EFD1E4020@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/318
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_cmd
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 589, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_cmd.py", line 134
print "Hello from preloop"
^
SyntaxError: invalid syntax
[765092 refs]
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Sun Dec 2 19:17:50 2007
From: python-checkins at python.org (georg.brandl)
Date: Sun, 2 Dec 2007 19:17:50 +0100 (CET)
Subject: [Python-checkins] r59279 - python/trunk/Doc/glossary.rst
Message-ID: <20071202181750.907621E4020@bag.python.org>
Author: georg.brandl
Date: Sun Dec 2 19:17:50 2007
New Revision: 59279
Modified:
python/trunk/Doc/glossary.rst
Log:
Fix a sentence I missed before. Do not merge to 3k.
Modified: python/trunk/Doc/glossary.rst
==============================================================================
--- python/trunk/Doc/glossary.rst (original)
+++ python/trunk/Doc/glossary.rst Sun Dec 2 19:17:50 2007
@@ -412,7 +412,7 @@
:term:`immutable` keys rather than integers.
slice
- A list containing a portion of an indexed list-like object. A slice is
+ An object usually containing a portion of a :term:`sequence`. A slice is
created using the subscript notation, ``[]`` with colons between numbers
when several are given, such as in ``variable_name[1:3:5]``. The bracket
(subscript) notation uses :class:`slice` objects internally (or in older
From python-checkins at python.org Sun Dec 2 22:58:54 2007
From: python-checkins at python.org (georg.brandl)
Date: Sun, 2 Dec 2007 22:58:54 +0100 (CET)
Subject: [Python-checkins] r59281 - in python/trunk/Doc: ACKS.txt
c-api/init.rst c-api/utilities.rst data/refcounts.dat
Message-ID: <20071202215854.8984A1E4037@bag.python.org>
Author: georg.brandl
Date: Sun Dec 2 22:58:54 2007
New Revision: 59281
Modified:
python/trunk/Doc/ACKS.txt
python/trunk/Doc/c-api/init.rst
python/trunk/Doc/c-api/utilities.rst
python/trunk/Doc/data/refcounts.dat
Log:
Add documentation for PySys_* functions.
Written by Charlie Shepherd for GHOP. Also fixes #1245.
Modified: python/trunk/Doc/ACKS.txt
==============================================================================
--- python/trunk/Doc/ACKS.txt (original)
+++ python/trunk/Doc/ACKS.txt Sun Dec 2 22:58:54 2007
@@ -160,6 +160,7 @@
* Barry Scott
* Joakim Sernbrant
* Justin Sheehy
+* Charlie Shepherd
* Michael Simcich
* Ionel Simionescu
* Michael Sloan
Modified: python/trunk/Doc/c-api/init.rst
==============================================================================
--- python/trunk/Doc/c-api/init.rst (original)
+++ python/trunk/Doc/c-api/init.rst Sun Dec 2 22:58:54 2007
@@ -364,8 +364,6 @@
.. % XXX impl. doesn't seem consistent in allowing 0/NULL for the params;
.. % check w/ Guido.
-.. % XXX Other PySys thingies (doesn't really belong in this chapter)
-
.. _threads:
Modified: python/trunk/Doc/c-api/utilities.rst
==============================================================================
--- python/trunk/Doc/c-api/utilities.rst (original)
+++ python/trunk/Doc/c-api/utilities.rst Sun Dec 2 22:58:54 2007
@@ -66,6 +66,66 @@
not call those functions directly! :ctype:`PyOS_sighandler_t` is a typedef
alias for :ctype:`void (\*)(int)`.
+.. _systemfunctions:
+
+System Functions
+================
+
+These are utility functions that make functionality from the :mod:`sys` module
+accessible to C code. They all work with the current interpreter thread's
+:mod:`sys` module's dict, which is contained in the internal thread state structure.
+
+.. cfunction:: PyObject *PySys_GetObject(char *name)
+
+ Return the object *name* from the :mod:`sys` module or *NULL* if it does
+ not exist, without setting an exception.
+
+.. cfunction:: FILE *PySys_GetFile(char *name, FILE *def)
+
+ Return the :ctype:`FILE*` associated with the object *name* in the
+ :mod:`sys` module, or *def* if *name* is not in the module or is not associated
+ with a :ctype:`FILE*`.
+
+.. cfunction:: int PySys_SetObject(char *name, PyObject *v)
+
+ Set *name* in the :mod:`sys` module to *v* unless *v* is *NULL*, in which
+ case *name* is deleted from the sys module. Returns ``0`` on success, ``-1``
+ on error.
+
+.. cfunction:: void PySys_ResetWarnOptions(void)
+
+ Reset :data:`sys.warnoptions` to an empty list.
+
+.. cfunction:: void PySys_AddWarnOption(char *s)
+
+ Append *s* to :data:`sys.warnoptions`.
+
+.. cfunction:: void PySys_SetPath(char *path)
+
+ Set :data:`sys.path` to a list object of paths found in *path* which should
+ be a list of paths separated with the platform's search path delimiter
+ (``:`` on Unix, ``;`` on Windows).
+
+.. cfunction:: void PySys_WriteStdout(const char *format, ...)
+
+ Write the output string described by *format* to :data:`sys.stdout`. No
+ exceptions are raised, even if truncation occurs (see below).
+
+ *format* should limit the total size of the formatted output string to
+ 1000 bytes or less -- after 1000 bytes, the output string is truncated.
+ In particular, this means that no unrestricted "%s" formats should occur;
+ these should be limited using "%.s" where is a decimal number
+ calculated so that plus the maximum size of other formatted text does not
+ exceed 1000 bytes. Also watch out for "%f", which can print hundreds of
+ digits for very large numbers.
+
+ If a problem occurs, or :data:`sys.stdout` is unset, the formatted message
+ is written to the real (C level) *stdout*.
+
+.. cfunction:: void PySys_WriteStderr(const char *format, ...)
+
+ As above, but write to :data:`sys.stderr` or *stderr* instead.
+
.. _processcontrol:
Modified: python/trunk/Doc/data/refcounts.dat
==============================================================================
--- python/trunk/Doc/data/refcounts.dat (original)
+++ python/trunk/Doc/data/refcounts.dat Sun Dec 2 22:58:54 2007
@@ -1251,10 +1251,32 @@
PyString_AsEncodedString:const char*:encoding::
PyString_AsEncodedString:const char*:errors::
+PySys_AddWarnOption:void:::
+PySys_AddWarnOption:char*:s::
+
+PySys_GetFile:FILE*:::
+PySys_GetFile:char*:name::
+PySys_GetFile:FILE*:def::
+
+PySys_GetObject:PyObject*::0:
+PySys_GetObject:char*:name::
+
PySys_SetArgv:int:::
PySys_SetArgv:int:argc::
PySys_SetArgv:char**:argv::
+PySys_SetObject:int:::
+PySys_SetObject:char*:name::
+PySys_SetObject:PyObject*:v:+1:
+
+PySys_ResetWarnOptions:void:::
+
+PySys_WriteStdout:void:::
+PySys_WriteStdout:char*:format::
+
+PySys_WriteStderr:void:::
+PySys_WriteStderr:char*:format::
+
PyThreadState_Clear:void:::
PyThreadState_Clear:PyThreadState*:tstate::
From nnorwitz at gmail.com Sun Dec 2 23:42:27 2007
From: nnorwitz at gmail.com (Neal Norwitz)
Date: Sun, 2 Dec 2007 17:42:27 -0500
Subject: [Python-checkins] Python Regression Test Failures all (1)
Message-ID: <20071202224227.GA22241@python.psfb.org>
test_grammar
test_opcodes
test_dict
test_builtin
test_exceptions
test_types
test_unittest
test_doctest
test_doctest2
test_MimeWriter
test_StringIO
test___all__
test___future__
test__locale
test_abc
test_aepack
test_aepack skipped -- No module named aepack
test_al
test_al skipped -- No module named al
test_anydbm
test_applesingle
test_applesingle skipped -- No module named macostools
test_array
test_ast
test_asynchat
test_asyncore
test_atexit
test_audioop
test_augassign
test_base64
test_bastion
test_bigaddrspace
test_bigmem
test_binascii
test_binhex
test_binop
test_bisect
test_bool
test_bsddb
test_bsddb185
test_bsddb185 skipped -- No module named bsddb185
test_bsddb3
test test_bsddb3 failed -- errors occurred; run in verbose mode for details
test_buffer
test_bufio
test_bz2
test_cProfile
test_calendar
test_call
test_capi
test_cd
test_cd skipped -- No module named cd
test_cfgparser
test_cgi
test_charmapcodec
test_cl
test_cl skipped -- No module named cl
test_class
test_cmath
test_cmd
test_cmd_line
test_cmd_line_script
test_code
test_codeccallbacks
test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecmaps_cn
test_codecmaps_hk
test_codecmaps_jp
test_codecmaps_kr
test_codecmaps_tw
test_codecs
test_codeop
test_coding
test_coercion
test_collections
test_colorsys
test_commands
test_compare
test_compile
test_compiler
testCompileLibrary still working, be patient...
test_complex
test_complex_args
test_contains
test_contextlib
test_cookie
test_cookielib
test_copy
test_copy_reg
test_cpickle
test_crypt
test_csv
test_ctypes
test_datetime
test_dbm
test_decimal
test_decorators
test_defaultdict
test_deque
test_descr
test_descrtut
test_difflib
test_dircache
test_dis
test_distutils
test_dl
test_dumbdbm
test_dummy_thread
test_dummy_threading
test_email
test_email_codecs
test_email_renamed
test_enumerate
test_eof
test_errno
test_exception_variations
test_extcall
test_fcntl
test_file
test_filecmp
test_fileinput
test_float
test_fnmatch
test_fork1
test_format
test_fpformat
test_frozen
test_ftplib
test_funcattrs
test_functools
test_future
test_gc
test_gdbm
test_generators
test_genericpath
test_genexps
test_getargs
test_getargs2
test_getopt
test_gettext
test_gl
test_gl skipped -- No module named gl
test_glob
test_global
test_grp
test_gzip
test_hash
test_hashlib
test_heapq
test_hexoct
test_hmac
test_hotshot
test_htmllib
test_htmlparser
test_httplib
test_imageop
test_imageop skipped -- No module named imgfile
test_imaplib
test_imgfile
test_imgfile skipped -- No module named imgfile
test_imp
test_import
test_importhooks
test_index
test_inspect
test_ioctl
test_ioctl skipped -- Unable to open /dev/tty
test_isinstance
test_iter
test_iterlen
test_itertools
test_largefile
test_list
test_locale
test_logging
test_long
test_long_future
test_longexp
test_macostools
test_macostools skipped -- No module named macostools
test_macpath
test_mailbox
test_marshal
test_math
test_md5
test_mhlib
test_mimetools
test_mimetypes
test_minidom
test_mmap
test_module
test_modulefinder
test_multibytecodec
test_multibytecodec_support
test_multifile
test_mutants
test_netrc
test_new
test_nis
test_normalization
test_ntpath
test_old_mailbox
test_openpty
test_operator
test_optparse
test_os
test_parser
test_peepholer
test_pep247
test_pep263
test_pep277
test_pep277 skipped -- test works only on NT+
test_pep292
test_pep352
test_pickle
test_pickletools
test_pipes
test_pkg
test_pkgimport
test_platform
test_plistlib
test_plistlib skipped -- No module named plistlib
test_poll
test_popen
[7371 refs]
[7371 refs]
[7371 refs]
test_popen2
test_poplib
test_posix
test_posixpath
test_pow
test_pprint
test_profile
test_profilehooks
test_pty
test_pwd
test_pyclbr
test_pyexpat
test_queue
test_quopri
[7746 refs]
[7746 refs]
test_random
test_re
test_repr
test_resource
test_rfc822
test_richcmp
test_robotparser
test_runpy
test_sax
test_scope
test_scriptpackages
test_scriptpackages skipped -- No module named aetools
test_select
test_set
test_sets
test_sgmllib
test_sha
test_shelve
test_shlex
test_shutil
test_signal
test_site
test_slice
test_smtplib
test_socket
test_socket_ssl
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:94: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ssl_sock = socket.ssl(s)
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:60: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ss = socket.ssl(s)
test_socketserver
test_softspace
test_sort
test_sqlite
test_ssl
test_startfile
test_startfile skipped -- cannot import name startfile
test_str
test_strftime
test_string
test_stringprep
test_strop
test_strptime
test_struct
test_structmembers
test_structseq
test_subprocess
[7366 refs]
[7367 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7367 refs]
[8982 refs]
[7582 refs]
[7367 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
[7366 refs]
.
[7366 refs]
[7366 refs]
this bit of output is from a test of stdout in a different process ...
[7366 refs]
[7366 refs]
[7582 refs]
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_sundry
test_symtable
test_syntax
test_sys
[7366 refs]
[7366 refs]
test_tarfile
test_tcl
test_tcl skipped -- No module named _tkinter
test_telnetlib
test_tempfile
[7373 refs]
test_textwrap
test_thread
test_threaded_import
test_threadedtempfile
test_threading
[10460 refs]
test_threading_local
test_threadsignals
test_time
test_timeout
test_tokenize
test_trace
test_traceback
test_transformer
test_tuple
test_typechecks
test_ucn
test_unary
test_unicode
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_unicodedata
test_univnewlines
test_unpack
test_urllib
test_urllib2
test_urllib2_localnet
test_urllib2net
test_urllibnet
test_urlparse
test_userdict
test_userlist
test_userstring
test_uu
test_uuid
WARNING: uuid.getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
WARNING: uuid._unixdll_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
test_wait3
test_wait4
test_warnings
test_wave
test_weakref
test_whichdb
test_winreg
test_winreg skipped -- No module named _winreg
test_winsound
test_winsound skipped -- No module named winsound
test_with
test_wsgiref
test_xdrlib
test_xml_etree
test_xml_etree_c
test_xmllib
test_xmlrpc
test_xpickle
test_xrange
test_zipfile
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_zipimport
test_zlib
309 tests OK.
1 test failed:
test_bsddb3
21 tests skipped:
test_aepack test_al test_applesingle test_bsddb185 test_cd test_cl
test_gl test_imageop test_imgfile test_ioctl test_macostools
test_pep277 test_plistlib test_scriptpackages test_startfile
test_sunaudiodev test_tcl test_unicode_file test_winreg
test_winsound test_zipfile64
1 skip unexpected on linux2:
test_ioctl
[528401 refs]
From buildbot at python.org Mon Dec 3 00:40:50 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sun, 02 Dec 2007 23:40:50 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu 3.0
Message-ID: <20071202234050.3A4881E4021@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%203.0/builds/321
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
make: *** [buildbottest] Unknown signal 37
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 13:50:52 2007
From: python-checkins at python.org (nick.coghlan)
Date: Mon, 3 Dec 2007 13:50:52 +0100 (CET)
Subject: [Python-checkins] r59287 - peps/trunk/pep-0000.txt
peps/trunk/pep-0366.txt
Message-ID: <20071203125052.A34BB1E4009@bag.python.org>
Author: nick.coghlan
Date: Mon Dec 3 13:50:52 2007
New Revision: 59287
Modified:
peps/trunk/pep-0000.txt
peps/trunk/pep-0366.txt
Log:
Mark PEP 366 as accepted
Modified: peps/trunk/pep-0000.txt
==============================================================================
--- peps/trunk/pep-0000.txt (original)
+++ peps/trunk/pep-0000.txt Mon Dec 3 13:50:52 2007
@@ -75,6 +75,7 @@
Accepted PEPs (accepted; may not be implemented yet)
SA 358 The "bytes" Object Schemenauer, GvR
+ SA 366 Main module explicit relative imports Coghlan
SA 3101 Advanced String Formatting Talin
SA 3106 Revamping dict.keys(), .values() & .items() GvR
SA 3118 Revising the buffer protocol Oliphant, Banks
@@ -91,7 +92,6 @@
S 362 Function Signature Object Cannon, Seo
S 364 Transitioning to the Py3K Standard Library Warsaw
S 365 Adding the pkg_resources module Eby
- S 366 Main module explicit relative imports Coghlan
S 368 Standard image protocol and class Mastrodomenico
S 3108 Standard Library Reorganization Cannon
S 3116 New I/O Stutzbach, Verdone, GvR
@@ -464,7 +464,7 @@
SR 363 Syntax For Dynamic Attribute Access North
S 364 Transitioning to the Py3K Standard Library Warsaw
S 365 Adding the pkg_resources module Eby
- S 366 Main module explicit relative imports Coghlan
+ SA 366 Main module explicit relative imports Coghlan
SR 367 New Super Spealman, Delaney
S 368 Standard image protocol and class Mastrodomenico
SR 666 Reject Foolish Indentation Creighton
Modified: peps/trunk/pep-0366.txt
==============================================================================
--- peps/trunk/pep-0366.txt (original)
+++ peps/trunk/pep-0366.txt Mon Dec 3 13:50:52 2007
@@ -3,7 +3,7 @@
Version: $Revision$
Last-Modified: $Date$
Author: Nick Coghlan
-Status: Draft
+Status: Accepted
Type: Standards Track
Content-Type: text/x-rst
Created: 1-May-2007
@@ -24,6 +24,7 @@
A small amount of boilerplate in the module itself will allow the relative
imports to work when the file is executed by name.
+Guido accepted the PEP in November 2007 [5]_.
Proposed Change
===============
@@ -129,6 +130,9 @@
.. [4] PEP 366 implementation patch
(http://bugs.python.org/issue1487)
+.. [5] Acceptance of the PEP
+ (http://mail.python.org/pipermail/python-dev/2007-November/075475.html)
+
Copyright
=========
From python-checkins at python.org Mon Dec 3 13:55:18 2007
From: python-checkins at python.org (nick.coghlan)
Date: Mon, 3 Dec 2007 13:55:18 +0100 (CET)
Subject: [Python-checkins] r59288 - in python/trunk: Lib/runpy.py
Lib/test/test_cmd_line_script.py Lib/test/test_pkg.py
Lib/test/test_runpy.py Misc/NEWS Objects/moduleobject.c
Python/import.c
Message-ID: <20071203125518.374CA1E4004@bag.python.org>
Author: nick.coghlan
Date: Mon Dec 3 13:55:17 2007
New Revision: 59288
Modified:
python/trunk/Lib/runpy.py
python/trunk/Lib/test/test_cmd_line_script.py
python/trunk/Lib/test/test_pkg.py
python/trunk/Lib/test/test_runpy.py
python/trunk/Misc/NEWS
python/trunk/Objects/moduleobject.c
python/trunk/Python/import.c
Log:
Implement PEP 366
Modified: python/trunk/Lib/runpy.py
==============================================================================
--- python/trunk/Lib/runpy.py (original)
+++ python/trunk/Lib/runpy.py Mon Dec 3 13:55:17 2007
@@ -23,19 +23,20 @@
def _run_code(code, run_globals, init_globals=None,
mod_name=None, mod_fname=None,
- mod_loader=None):
+ mod_loader=None, pkg_name=None):
"""Helper for _run_module_code"""
if init_globals is not None:
run_globals.update(init_globals)
run_globals.update(__name__ = mod_name,
__file__ = mod_fname,
- __loader__ = mod_loader)
+ __loader__ = mod_loader,
+ __package__ = pkg_name)
exec code in run_globals
return run_globals
def _run_module_code(code, init_globals=None,
mod_name=None, mod_fname=None,
- mod_loader=None):
+ mod_loader=None, pkg_name=None):
"""Helper for run_module"""
# Set up the top level namespace dictionary
temp_module = imp.new_module(mod_name)
@@ -49,7 +50,8 @@
sys.modules[mod_name] = temp_module
try:
_run_code(code, mod_globals, init_globals,
- mod_name, mod_fname, mod_loader)
+ mod_name, mod_fname,
+ mod_loader, pkg_name)
finally:
sys.argv[0] = saved_argv0
if restore_module:
@@ -95,11 +97,12 @@
__loader__
"""
loader, code, fname = _get_module_details(mod_name)
+ pkg_name = mod_name.rpartition('.')[0]
main_globals = sys.modules["__main__"].__dict__
if set_argv0:
sys.argv[0] = fname
return _run_code(code, main_globals, None,
- "__main__", fname, loader)
+ "__main__", fname, loader, pkg_name)
def run_module(mod_name, init_globals=None,
run_name=None, alter_sys=False):
@@ -110,13 +113,14 @@
loader, code, fname = _get_module_details(mod_name)
if run_name is None:
run_name = mod_name
+ pkg_name = mod_name.rpartition('.')[0]
if alter_sys:
return _run_module_code(code, init_globals, run_name,
- fname, loader)
+ fname, loader, pkg_name)
else:
# Leave the sys module alone
- return _run_code(code, {}, init_globals,
- run_name, fname, loader)
+ return _run_code(code, {}, init_globals, run_name,
+ fname, loader, pkg_name)
if __name__ == "__main__":
Modified: python/trunk/Lib/test/test_cmd_line_script.py
==============================================================================
--- python/trunk/Lib/test/test_cmd_line_script.py (original)
+++ python/trunk/Lib/test/test_cmd_line_script.py Mon Dec 3 13:55:17 2007
@@ -35,15 +35,15 @@
finally:
shutil.rmtree(dirname)
-test_source = ("""\
+test_source = """\
# Script may be run with optimisation enabled, so don't rely on assert
# statements being executed
def assertEqual(lhs, rhs):
if lhs != rhs:
- raise AssertionError("%r != %r" % (lhs, rhs))
+ raise AssertionError('%r != %r' % (lhs, rhs))
def assertIdentical(lhs, rhs):
if lhs is not rhs:
- raise AssertionError("%r is not %r" % (lhs, rhs))
+ raise AssertionError('%r is not %r' % (lhs, rhs))
# Check basic code execution
result = ['Top level assignment']
def f():
@@ -53,17 +53,18 @@
# Check population of magic variables
assertEqual(__name__, '__main__')
print '__file__==%r' % __file__
+print '__package__==%r' % __package__
# Check the sys module
import sys
assertIdentical(globals(), sys.modules[__name__].__dict__)
print 'sys.argv[0]==%r' % sys.argv[0]
-""")
+"""
-def _make_test_script(script_dir, script_basename):
- script_filename = script_basename+os.extsep+"py"
+def _make_test_script(script_dir, script_basename, source=test_source):
+ script_filename = script_basename+os.extsep+'py'
script_name = os.path.join(script_dir, script_filename)
- script_file = open(script_name, "w")
- script_file.write(test_source)
+ script_file = open(script_name, 'w')
+ script_file.write(source)
script_file.close()
return script_name
@@ -76,71 +77,108 @@
return compiled_name
def _make_test_zip(zip_dir, zip_basename, script_name):
- zip_filename = zip_basename+os.extsep+"zip"
+ zip_filename = zip_basename+os.extsep+'zip'
zip_name = os.path.join(zip_dir, zip_filename)
zip_file = zipfile.ZipFile(zip_name, 'w')
zip_file.write(script_name, os.path.basename(script_name))
zip_file.close()
# if verbose:
# zip_file = zipfile.ZipFile(zip_name, 'r')
- # print "Contents of %r:" % zip_name
+ # print 'Contents of %r:' % zip_name
# zip_file.printdir()
# zip_file.close()
return zip_name
+def _make_test_pkg(pkg_dir):
+ os.mkdir(pkg_dir)
+ _make_test_script(pkg_dir, '__init__', '')
+
+# There's no easy way to pass the script directory in to get
+# -m to work (avoiding that is the whole point of making
+# directories and zipfiles executable!)
+# So we fake it for testing purposes with a custom launch script
+launch_source = """\
+import sys, os.path, runpy
+sys.path[0:0] = os.path.dirname(__file__)
+runpy._run_module_as_main(%r)
+"""
+
+def _make_launch_script(script_dir, script_basename, module_name):
+ return _make_test_script(script_dir, script_basename,
+ launch_source % module_name)
+
class CmdLineTest(unittest.TestCase):
- def _check_script(self, script_name, expected_file, expected_argv0):
- exit_code, data = _run_python(script_name)
+ def _check_script(self, script_name, expected_file,
+ expected_argv0, expected_package,
+ *cmd_line_switches):
+ run_args = cmd_line_switches + (script_name,)
+ exit_code, data = _run_python(*run_args)
if verbose:
- print "Output from test script %r:" % script_name
+ print 'Output from test script %r:' % script_name
print data
self.assertEqual(exit_code, 0)
printed_file = '__file__==%r' % expected_file
printed_argv0 = 'sys.argv[0]==%r' % expected_argv0
+ printed_package = '__package__==%r' % expected_package
+ if verbose:
+ print 'Expected output:'
+ print printed_file
+ print printed_package
+ print printed_argv0
self.assert_(printed_file in data)
+ self.assert_(printed_package in data)
self.assert_(printed_argv0 in data)
def test_basic_script(self):
with temp_dir() as script_dir:
- script_name = _make_test_script(script_dir, "script")
- self._check_script(script_name, script_name, script_name)
+ script_name = _make_test_script(script_dir, 'script')
+ self._check_script(script_name, script_name, script_name, None)
def test_script_compiled(self):
with temp_dir() as script_dir:
- script_name = _make_test_script(script_dir, "script")
+ script_name = _make_test_script(script_dir, 'script')
compiled_name = _compile_test_script(script_name)
os.remove(script_name)
- self._check_script(compiled_name, compiled_name, compiled_name)
+ self._check_script(compiled_name, compiled_name, compiled_name, None)
def test_directory(self):
with temp_dir() as script_dir:
- script_name = _make_test_script(script_dir, "__main__")
- self._check_script(script_dir, script_name, script_dir)
+ script_name = _make_test_script(script_dir, '__main__')
+ self._check_script(script_dir, script_name, script_dir, '')
def test_directory_compiled(self):
with temp_dir() as script_dir:
- script_name = _make_test_script(script_dir, "__main__")
+ script_name = _make_test_script(script_dir, '__main__')
compiled_name = _compile_test_script(script_name)
os.remove(script_name)
- self._check_script(script_dir, compiled_name, script_dir)
+ self._check_script(script_dir, compiled_name, script_dir, '')
def test_zipfile(self):
with temp_dir() as script_dir:
- script_name = _make_test_script(script_dir, "__main__")
- zip_name = _make_test_zip(script_dir, "test_zip", script_name)
- self._check_script(zip_name, None, zip_name)
+ script_name = _make_test_script(script_dir, '__main__')
+ zip_name = _make_test_zip(script_dir, 'test_zip', script_name)
+ self._check_script(zip_name, None, zip_name, '')
def test_zipfile_compiled(self):
with temp_dir() as script_dir:
- script_name = _make_test_script(script_dir, "__main__")
+ script_name = _make_test_script(script_dir, '__main__')
compiled_name = _compile_test_script(script_name)
- zip_name = _make_test_zip(script_dir, "test_zip", compiled_name)
- self._check_script(zip_name, None, zip_name)
+ zip_name = _make_test_zip(script_dir, 'test_zip', compiled_name)
+ self._check_script(zip_name, None, zip_name, '')
+
+ def test_module_in_package(self):
+ with temp_dir() as script_dir:
+ pkg_dir = os.path.join(script_dir, 'test_pkg')
+ _make_test_pkg(pkg_dir)
+ script_name = _make_test_script(pkg_dir, 'script')
+ launch_name = _make_launch_script(script_dir, 'launch', 'test_pkg.script')
+ self._check_script(launch_name, script_name,
+ script_name, 'test_pkg')
def test_main():
test.test_support.run_unittest(CmdLineTest)
test.test_support.reap_children()
-if __name__ == "__main__":
+if __name__ == '__main__':
test_main()
Modified: python/trunk/Lib/test/test_pkg.py
==============================================================================
--- python/trunk/Lib/test/test_pkg.py (original)
+++ python/trunk/Lib/test/test_pkg.py Mon Dec 3 13:55:17 2007
@@ -188,11 +188,13 @@
import t5
self.assertEqual(fixdir(dir(t5)),
['__doc__', '__file__', '__name__',
- '__path__', 'foo', 'string', 't5'])
+ '__package__', '__path__', 'foo', 'string', 't5'])
self.assertEqual(fixdir(dir(t5.foo)),
- ['__doc__', '__file__', '__name__', 'string'])
+ ['__doc__', '__file__', '__name__', '__package__',
+ 'string'])
self.assertEqual(fixdir(dir(t5.string)),
- ['__doc__', '__file__', '__name__', 'spam'])
+ ['__doc__', '__file__', '__name__','__package__',
+ 'spam'])
def test_6(self):
hier = [
@@ -208,14 +210,14 @@
import t6
self.assertEqual(fixdir(dir(t6)),
['__all__', '__doc__', '__file__',
- '__name__', '__path__'])
+ '__name__', '__package__', '__path__'])
s = """
import t6
from t6 import *
self.assertEqual(fixdir(dir(t6)),
['__all__', '__doc__', '__file__',
- '__name__', '__path__', 'eggs',
- 'ham', 'spam'])
+ '__name__', '__package__', '__path__',
+ 'eggs', 'ham', 'spam'])
self.assertEqual(dir(), ['eggs', 'ham', 'self', 'spam', 't6'])
"""
self.run_code(s)
@@ -241,17 +243,19 @@
t7, sub, subsub = None, None, None
import t7 as tas
self.assertEqual(fixdir(dir(tas)),
- ['__doc__', '__file__', '__name__', '__path__'])
+ ['__doc__', '__file__', '__name__',
+ '__package__', '__path__'])
self.failIf(t7)
from t7 import sub as subpar
self.assertEqual(fixdir(dir(subpar)),
- ['__doc__', '__file__', '__name__', '__path__'])
+ ['__doc__', '__file__', '__name__',
+ '__package__', '__path__'])
self.failIf(t7)
self.failIf(sub)
from t7.sub import subsub as subsubsub
self.assertEqual(fixdir(dir(subsubsub)),
- ['__doc__', '__file__', '__name__', '__path__',
- 'spam'])
+ ['__doc__', '__file__', '__name__',
+ '__package__', '__path__', 'spam'])
self.failIf(t7)
self.failIf(sub)
self.failIf(subsub)
Modified: python/trunk/Lib/test/test_runpy.py
==============================================================================
--- python/trunk/Lib/test/test_runpy.py (original)
+++ python/trunk/Lib/test/test_runpy.py Mon Dec 3 13:55:17 2007
@@ -5,7 +5,12 @@
import sys
import tempfile
from test.test_support import verbose, run_unittest, forget
-from runpy import _run_code, _run_module_code, _run_module_as_main, run_module
+from runpy import _run_code, _run_module_code, run_module
+
+# Note: This module can't safely test _run_module_as_main as it
+# runs its tests in the current process, which would mess with the
+# real __main__ module (usually test.regrtest)
+# See test_cmd_line_script for a test that executes that code path
# Set up the test code and expected results
@@ -36,6 +41,7 @@
self.failUnless(d["__name__"] is None)
self.failUnless(d["__file__"] is None)
self.failUnless(d["__loader__"] is None)
+ self.failUnless(d["__package__"] is None)
self.failUnless(d["run_argv0"] is saved_argv0)
self.failUnless("run_name" not in d)
self.failUnless(sys.argv[0] is saved_argv0)
@@ -45,13 +51,15 @@
name = ""
file = "Some other nonsense"
loader = "Now you're just being silly"
+ package = '' # Treat as a top level module
d1 = dict(initial=initial)
saved_argv0 = sys.argv[0]
d2 = _run_module_code(self.test_source,
d1,
name,
file,
- loader)
+ loader,
+ package)
self.failUnless("result" not in d1)
self.failUnless(d2["initial"] is initial)
self.failUnless(d2["result"] == self.expected_result)
@@ -62,6 +70,7 @@
self.failUnless(d2["__file__"] is file)
self.failUnless(d2["run_argv0"] is file)
self.failUnless(d2["__loader__"] is loader)
+ self.failUnless(d2["__package__"] is package)
self.failUnless(sys.argv[0] is saved_argv0)
self.failUnless(name not in sys.modules)
@@ -164,7 +173,7 @@
self._del_pkg(pkg_dir, depth, mod_name)
if verbose: print "Module executed successfully"
- def _add_relative_modules(self, base_dir, depth):
+ def _add_relative_modules(self, base_dir, source, depth):
if depth <= 1:
raise ValueError("Relative module test needs depth > 1")
pkg_name = "__runpy_pkg__"
@@ -190,7 +199,7 @@
if verbose: print " Added nephew module:", nephew_fname
def _check_relative_imports(self, depth, run_name=None):
- contents = """\
+ contents = r"""\
from __future__ import absolute_import
from . import sibling
from ..uncle.cousin import nephew
@@ -198,16 +207,21 @@
pkg_dir, mod_fname, mod_name = (
self._make_pkg(contents, depth))
try:
- self._add_relative_modules(pkg_dir, depth)
+ self._add_relative_modules(pkg_dir, contents, depth)
+ pkg_name = mod_name.rpartition('.')[0]
if verbose: print "Running from source:", mod_name
- d1 = run_module(mod_name) # Read from source
+ d1 = run_module(mod_name, run_name=run_name) # Read from source
+ self.failUnless("__package__" in d1)
+ self.failUnless(d1["__package__"] == pkg_name)
self.failUnless("sibling" in d1)
self.failUnless("nephew" in d1)
del d1 # Ensure __loader__ entry doesn't keep file open
__import__(mod_name)
os.remove(mod_fname)
if verbose: print "Running from compiled:", mod_name
- d2 = run_module(mod_name) # Read from bytecode
+ d2 = run_module(mod_name, run_name=run_name) # Read from bytecode
+ self.failUnless("__package__" in d2)
+ self.failUnless(d2["__package__"] == pkg_name)
self.failUnless("sibling" in d2)
self.failUnless("nephew" in d2)
del d2 # Ensure __loader__ entry doesn't keep file open
@@ -225,6 +239,11 @@
if verbose: print "Testing relative imports at depth:", depth
self._check_relative_imports(depth)
+ def test_main_relative_import(self):
+ for depth in range(2, 5):
+ if verbose: print "Testing main relative imports at depth:", depth
+ self._check_relative_imports(depth, "__main__")
+
def test_main():
run_unittest(RunModuleCodeTest)
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Mon Dec 3 13:55:17 2007
@@ -12,6 +12,10 @@
Core and builtins
-----------------
+- PEP 366: Allow explicit relative imports when executing modules
+ inside packages with the -m switch via a new module level
+ __package__ attribute.
+
- Issue #1534: Added ``PyFloat_GetMax()``, ``PyFloat_GetMin()`` and
``PyFloat_GetInfo()`` to the float API.
Modified: python/trunk/Objects/moduleobject.c
==============================================================================
--- python/trunk/Objects/moduleobject.c (original)
+++ python/trunk/Objects/moduleobject.c Mon Dec 3 13:55:17 2007
@@ -30,6 +30,8 @@
goto fail;
if (PyDict_SetItemString(m->md_dict, "__doc__", Py_None) != 0)
goto fail;
+ if (PyDict_SetItemString(m->md_dict, "__package__", Py_None) != 0)
+ goto fail;
Py_DECREF(nameobj);
PyObject_GC_Track(m);
return (PyObject *)m;
Modified: python/trunk/Python/import.c
==============================================================================
--- python/trunk/Python/import.c (original)
+++ python/trunk/Python/import.c Mon Dec 3 13:55:17 2007
@@ -2106,7 +2106,8 @@
{
static PyObject *namestr = NULL;
static PyObject *pathstr = NULL;
- PyObject *modname, *modpath, *modules, *parent;
+ static PyObject *pkgstr = NULL;
+ PyObject *pkgname, *modname, *modpath, *modules, *parent;
if (globals == NULL || !PyDict_Check(globals) || !level)
return Py_None;
@@ -2121,44 +2122,103 @@
if (pathstr == NULL)
return NULL;
}
+ if (pkgstr == NULL) {
+ pkgstr = PyString_InternFromString("__package__");
+ if (pkgstr == NULL)
+ return NULL;
+ }
*buf = '\0';
*p_buflen = 0;
- modname = PyDict_GetItem(globals, namestr);
- if (modname == NULL || !PyString_Check(modname))
- return Py_None;
+ pkgname = PyDict_GetItem(globals, pkgstr);
- modpath = PyDict_GetItem(globals, pathstr);
- if (modpath != NULL) {
- Py_ssize_t len = PyString_GET_SIZE(modname);
- if (len > MAXPATHLEN) {
+ if ((pkgname != NULL) && (pkgname != Py_None)) {
+ /* __package__ is set, so use it */
+ Py_ssize_t len;
+ if (!PyString_Check(pkgname)) {
PyErr_SetString(PyExc_ValueError,
- "Module name too long");
+ "__package__ set to non-string");
return NULL;
}
- strcpy(buf, PyString_AS_STRING(modname));
- }
- else {
- char *start = PyString_AS_STRING(modname);
- char *lastdot = strrchr(start, '.');
- size_t len;
- if (lastdot == NULL && level > 0) {
+ len = PyString_GET_SIZE(pkgname);
+ if (len == 0) {
+ if (level > 0) {
+ PyErr_SetString(PyExc_ValueError,
+ "Attempted relative import in non-package");
+ return NULL;
+ }
+ return Py_None;
+ }
+ if (len > MAXPATHLEN) {
PyErr_SetString(PyExc_ValueError,
- "Attempted relative import in non-package");
+ "Package name too long");
return NULL;
}
- if (lastdot == NULL)
+ strcpy(buf, PyString_AS_STRING(pkgname));
+ } else {
+ /* __package__ not set, so figure it out and set it */
+ modname = PyDict_GetItem(globals, namestr);
+ if (modname == NULL || !PyString_Check(modname))
return Py_None;
- len = lastdot - start;
- if (len >= MAXPATHLEN) {
- PyErr_SetString(PyExc_ValueError,
- "Module name too long");
- return NULL;
+
+ modpath = PyDict_GetItem(globals, pathstr);
+ if (modpath != NULL) {
+ /* __path__ is set, so modname is already the package name */
+ Py_ssize_t len = PyString_GET_SIZE(modname);
+ int error;
+ if (len > MAXPATHLEN) {
+ PyErr_SetString(PyExc_ValueError,
+ "Module name too long");
+ return NULL;
+ }
+ strcpy(buf, PyString_AS_STRING(modname));
+ error = PyDict_SetItem(globals, pkgstr, modname);
+ if (error) {
+ PyErr_SetString(PyExc_ValueError,
+ "Could not set __package__");
+ return NULL;
+ }
+ } else {
+ /* Normal module, so work out the package name if any */
+ char *start = PyString_AS_STRING(modname);
+ char *lastdot = strrchr(start, '.');
+ size_t len;
+ int error;
+ if (lastdot == NULL && level > 0) {
+ PyErr_SetString(PyExc_ValueError,
+ "Attempted relative import in non-package");
+ return NULL;
+ }
+ if (lastdot == NULL) {
+ error = PyDict_SetItem(globals, pkgstr, Py_None);
+ if (error) {
+ PyErr_SetString(PyExc_ValueError,
+ "Could not set __package__");
+ return NULL;
+ }
+ return Py_None;
+ }
+ len = lastdot - start;
+ if (len >= MAXPATHLEN) {
+ PyErr_SetString(PyExc_ValueError,
+ "Module name too long");
+ return NULL;
+ }
+ strncpy(buf, start, len);
+ buf[len] = '\0';
+ pkgname = PyString_FromString(buf);
+ if (pkgname == NULL) {
+ return NULL;
+ }
+ error = PyDict_SetItem(globals, pkgstr, pkgname);
+ Py_DECREF(pkgname);
+ if (error) {
+ PyErr_SetString(PyExc_ValueError,
+ "Could not set __package__");
+ return NULL;
+ }
}
- strncpy(buf, start, len);
- buf[len] = '\0';
}
-
while (--level > 0) {
char *dot = strrchr(buf, '.');
if (dot == NULL) {
From python-checkins at python.org Mon Dec 3 13:56:32 2007
From: python-checkins at python.org (nick.coghlan)
Date: Mon, 3 Dec 2007 13:56:32 +0100 (CET)
Subject: [Python-checkins] r59289 - peps/trunk/pep-0000.txt
peps/trunk/pep-0366.txt
Message-ID: <20071203125632.B11451E4004@bag.python.org>
Author: nick.coghlan
Date: Mon Dec 3 13:56:32 2007
New Revision: 59289
Modified:
peps/trunk/pep-0000.txt
peps/trunk/pep-0366.txt
Log:
Mark PEP 366 as implemented
Modified: peps/trunk/pep-0000.txt
==============================================================================
--- peps/trunk/pep-0000.txt (original)
+++ peps/trunk/pep-0000.txt Mon Dec 3 13:56:32 2007
@@ -75,7 +75,6 @@
Accepted PEPs (accepted; may not be implemented yet)
SA 358 The "bytes" Object Schemenauer, GvR
- SA 366 Main module explicit relative imports Coghlan
SA 3101 Advanced String Formatting Talin
SA 3106 Revamping dict.keys(), .values() & .items() GvR
SA 3118 Revising the buffer protocol Oliphant, Banks
@@ -161,6 +160,7 @@
SF 352 Required Superclass for Exceptions GvR, Cannon
SF 353 Using ssize_t as the index type von Loewis
SF 357 Allowing Any Object to be Used for Slicing Oliphant
+ SF 366 Main module explicit relative imports Coghlan
SF 3102 Keyword-Only Arguments Talin
SF 3104 Access to Names in Outer Scopes Yee
SF 3105 Make print a function Brandl
@@ -464,7 +464,7 @@
SR 363 Syntax For Dynamic Attribute Access North
S 364 Transitioning to the Py3K Standard Library Warsaw
S 365 Adding the pkg_resources module Eby
- SA 366 Main module explicit relative imports Coghlan
+ SF 366 Main module explicit relative imports Coghlan
SR 367 New Super Spealman, Delaney
S 368 Standard image protocol and class Mastrodomenico
SR 666 Reject Foolish Indentation Creighton
Modified: peps/trunk/pep-0366.txt
==============================================================================
--- peps/trunk/pep-0366.txt (original)
+++ peps/trunk/pep-0366.txt Mon Dec 3 13:56:32 2007
@@ -3,7 +3,7 @@
Version: $Revision$
Last-Modified: $Date$
Author: Nick Coghlan
-Status: Accepted
+Status: Finished
Type: Standards Track
Content-Type: text/x-rst
Created: 1-May-2007
From python-checkins at python.org Mon Dec 3 14:47:30 2007
From: python-checkins at python.org (christian.heimes)
Date: Mon, 3 Dec 2007 14:47:30 +0100 (CET)
Subject: [Python-checkins] r59290 - in python/trunk:
Lib/distutils/command/build_ext.py Lib/distutils/cygwinccompiler.py
Lib/distutils/msvc9compiler.py Lib/distutils/msvccompiler.py
Modules/xxmodule.c
Message-ID: <20071203134730.3014B1E4012@bag.python.org>
Author: christian.heimes
Date: Mon Dec 3 14:47:29 2007
New Revision: 59290
Added:
python/trunk/Lib/distutils/msvc9compiler.py
- copied, changed from r59283, python/trunk/Lib/distutils/msvccompiler.py
Modified:
python/trunk/Lib/distutils/command/build_ext.py
python/trunk/Lib/distutils/cygwinccompiler.py
python/trunk/Lib/distutils/msvccompiler.py
python/trunk/Modules/xxmodule.c
Log:
Applied my patch #1455 with some extra fixes for VS 2005
The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier.
I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
Modified: python/trunk/Lib/distutils/command/build_ext.py
==============================================================================
--- python/trunk/Lib/distutils/command/build_ext.py (original)
+++ python/trunk/Lib/distutils/command/build_ext.py Mon Dec 3 14:47:29 2007
@@ -17,6 +17,10 @@
from distutils.extension import Extension
from distutils import log
+if os.name == 'nt':
+ from distutils.msvccompiler import get_build_version
+ MSVC_VERSION = int(get_build_version())
+
# An extension name is just a dot-separated list of Python NAMEs (ie.
# the same as a fully-qualified module name).
extension_name_re = re.compile \
@@ -176,7 +180,15 @@
# Append the source distribution include and library directories,
# this allows distutils on windows to work in the source tree
self.include_dirs.append(os.path.join(sys.exec_prefix, 'PC'))
- self.library_dirs.append(os.path.join(sys.exec_prefix, 'PCBuild'))
+ if MSVC_VERSION == 9:
+ self.library_dirs.append(os.path.join(sys.exec_prefix,
+ 'PCBuild9'))
+ elif MSVC_VERSION == 8:
+ self.library_dirs.append(os.path.join(sys.exec_prefix,
+ 'PCBuild8', 'win32release'))
+ else:
+ self.library_dirs.append(os.path.join(sys.exec_prefix,
+ 'PCBuild'))
# OS/2 (EMX) doesn't support Debug vs Release builds, but has the
# import libraries in its "Config" subdirectory
Modified: python/trunk/Lib/distutils/cygwinccompiler.py
==============================================================================
--- python/trunk/Lib/distutils/cygwinccompiler.py (original)
+++ python/trunk/Lib/distutils/cygwinccompiler.py Mon Dec 3 14:47:29 2007
@@ -56,6 +56,29 @@
from distutils.errors import DistutilsExecError, CompileError, UnknownFileError
from distutils import log
+def get_msvcr():
+ """Include the appropriate MSVC runtime library if Python was built
+ with MSVC 7.0 or later.
+ """
+ msc_pos = sys.version.find('MSC v.')
+ if msc_pos != -1:
+ msc_ver = sys.version[msc_pos+6:msc_pos+10]
+ if msc_ver == '1300':
+ # MSVC 7.0
+ return ['msvcr70']
+ elif msc_ver == '1310':
+ # MSVC 7.1
+ return ['msvcr71']
+ elif msc_ver == '1400':
+ # VS2005 / MSVC 8.0
+ return ['msvcr80']
+ elif msc_ver == '1500':
+ # VS2008 / MSVC 9.0
+ return ['msvcr90']
+ else:
+ raise ValueError("Unknown MS Compiler version %i " % msc_Ver)
+
+
class CygwinCCompiler (UnixCCompiler):
compiler_type = 'cygwin'
@@ -121,18 +144,9 @@
self.warn(
"Consider upgrading to a newer version of gcc")
else:
- self.dll_libraries=[]
# Include the appropriate MSVC runtime library if Python was built
- # with MSVC 7.0 or 7.1.
- msc_pos = sys.version.find('MSC v.')
- if msc_pos != -1:
- msc_ver = sys.version[msc_pos+6:msc_pos+10]
- if msc_ver == '1300':
- # MSVC 7.0
- self.dll_libraries = ['msvcr70']
- elif msc_ver == '1310':
- # MSVC 7.1
- self.dll_libraries = ['msvcr71']
+ # with MSVC 7.0 or later.
+ self.dll_libraries = get_msvcr()
# __init__ ()
@@ -320,16 +334,8 @@
self.dll_libraries=[]
# Include the appropriate MSVC runtime library if Python was built
- # with MSVC 7.0 or 7.1.
- msc_pos = sys.version.find('MSC v.')
- if msc_pos != -1:
- msc_ver = sys.version[msc_pos+6:msc_pos+10]
- if msc_ver == '1300':
- # MSVC 7.0
- self.dll_libraries = ['msvcr70']
- elif msc_ver == '1310':
- # MSVC 7.1
- self.dll_libraries = ['msvcr71']
+ # with MSVC 7.0 or later.
+ self.dll_libraries = get_msvcr()
# __init__ ()
Copied: python/trunk/Lib/distutils/msvc9compiler.py (from r59283, python/trunk/Lib/distutils/msvccompiler.py)
==============================================================================
--- python/trunk/Lib/distutils/msvccompiler.py (original)
+++ python/trunk/Lib/distutils/msvc9compiler.py Mon Dec 3 14:47:29 2007
@@ -1,154 +1,157 @@
-"""distutils.msvccompiler
+"""distutils.msvc9compiler
Contains MSVCCompiler, an implementation of the abstract CCompiler class
-for the Microsoft Visual Studio.
+for the Microsoft Visual Studio 2008.
+
+The module is compatible with VS 2005 and VS 2008. You can find legacy support
+for older versions of VS in distutils.msvccompiler.
"""
# Written by Perry Stoll
# hacked by Robin Becker and Thomas Heller to do a better job of
# finding DevStudio (through the registry)
-
-# This module should be kept compatible with Python 2.1.
+# ported to VS2005 and VS 2008 by Christian Heimes
__revision__ = "$Id$"
-import sys, os, string
-from distutils.errors import \
- DistutilsExecError, DistutilsPlatformError, \
- CompileError, LibError, LinkError
-from distutils.ccompiler import \
- CCompiler, gen_preprocess_options, gen_lib_options
+import os
+import subprocess
+import sys
+from distutils.errors import (DistutilsExecError, DistutilsPlatformError,
+ CompileError, LibError, LinkError)
+from distutils.ccompiler import (CCompiler, gen_preprocess_options,
+ gen_lib_options)
from distutils import log
-_can_read_reg = 0
-try:
- import _winreg
-
- _can_read_reg = 1
- hkey_mod = _winreg
-
- RegOpenKeyEx = _winreg.OpenKeyEx
- RegEnumKey = _winreg.EnumKey
- RegEnumValue = _winreg.EnumValue
- RegError = _winreg.error
+import _winreg
-except ImportError:
- try:
- import win32api
- import win32con
- _can_read_reg = 1
- hkey_mod = win32con
-
- RegOpenKeyEx = win32api.RegOpenKeyEx
- RegEnumKey = win32api.RegEnumKey
- RegEnumValue = win32api.RegEnumValue
- RegError = win32api.error
-
- except ImportError:
- log.info("Warning: Can't read registry to find the "
- "necessary compiler setting\n"
- "Make sure that Python modules _winreg, "
- "win32api or win32con are installed.")
- pass
-
-if _can_read_reg:
- HKEYS = (hkey_mod.HKEY_USERS,
- hkey_mod.HKEY_CURRENT_USER,
- hkey_mod.HKEY_LOCAL_MACHINE,
- hkey_mod.HKEY_CLASSES_ROOT)
+RegOpenKeyEx = _winreg.OpenKeyEx
+RegEnumKey = _winreg.EnumKey
+RegEnumValue = _winreg.EnumValue
+RegError = _winreg.error
+
+HKEYS = (_winreg.HKEY_USERS,
+ _winreg.HKEY_CURRENT_USER,
+ _winreg.HKEY_LOCAL_MACHINE,
+ _winreg.HKEY_CLASSES_ROOT)
+
+VS_BASE = r"Software\Microsoft\VisualStudio\%0.1f"
+WINSDK_BASE = r"Software\Microsoft\Microsoft SDKs\Windows"
+NET_BASE = r"Software\Microsoft\.NETFramework"
+ARCHS = {'DEFAULT' : 'x86',
+ 'intel' : 'x86', 'x86' : 'x86',
+ 'amd64' : 'x64', 'x64' : 'x64',
+ 'itanium' : 'ia64', 'ia64' : 'ia64',
+ }
-def read_keys(base, key):
- """Return list of registry keys."""
+# The globals VERSION, ARCH, MACROS and VC_ENV are defined later
- try:
- handle = RegOpenKeyEx(base, key)
- except RegError:
- return None
- L = []
- i = 0
- while 1:
+class Reg:
+ """Helper class to read values from the registry
+ """
+
+ @classmethod
+ def get_value(cls, path, key):
+ for base in HKEYS:
+ d = cls.read_values(base, path)
+ if d and key in d:
+ return d[key]
+ raise KeyError(key)
+
+ @classmethod
+ def read_keys(cls, base, key):
+ """Return list of registry keys."""
try:
- k = RegEnumKey(handle, i)
+ handle = RegOpenKeyEx(base, key)
except RegError:
- break
- L.append(k)
- i = i + 1
- return L
-
-def read_values(base, key):
- """Return dict of registry keys and values.
+ return None
+ L = []
+ i = 0
+ while True:
+ try:
+ k = RegEnumKey(handle, i)
+ except RegError:
+ break
+ L.append(k)
+ i += 1
+ return L
+
+ @classmethod
+ def read_values(cls, base, key):
+ """Return dict of registry keys and values.
- All names are converted to lowercase.
- """
- try:
- handle = RegOpenKeyEx(base, key)
- except RegError:
- return None
- d = {}
- i = 0
- while 1:
+ All names are converted to lowercase.
+ """
try:
- name, value, type = RegEnumValue(handle, i)
+ handle = RegOpenKeyEx(base, key)
except RegError:
- break
- name = name.lower()
- d[convert_mbcs(name)] = convert_mbcs(value)
- i = i + 1
- return d
-
-def convert_mbcs(s):
- enc = getattr(s, "encode", None)
- if enc is not None:
- try:
- s = enc("mbcs")
- except UnicodeError:
- pass
- return s
+ return None
+ d = {}
+ i = 0
+ while True:
+ try:
+ name, value, type = RegEnumValue(handle, i)
+ except RegError:
+ break
+ name = name.lower()
+ d[cls.convert_mbcs(name)] = cls.convert_mbcs(value)
+ i += 1
+ return d
+
+ @staticmethod
+ def convert_mbcs(s):
+ dec = getattr(s, "decode", None)
+ if dec is not None:
+ try:
+ s = dec("mbcs")
+ except UnicodeError:
+ pass
+ return s
class MacroExpander:
def __init__(self, version):
self.macros = {}
+ self.vsbase = VS_BASE % version
self.load_macros(version)
def set_macro(self, macro, path, key):
- for base in HKEYS:
- d = read_values(base, path)
- if d:
- self.macros["$(%s)" % macro] = d[key]
- break
+ self.macros["$(%s)" % macro] = Reg.get_value(path, key)
def load_macros(self, version):
- vsbase = r"Software\Microsoft\VisualStudio\%0.1f" % version
- self.set_macro("VCInstallDir", vsbase + r"\Setup\VC", "productdir")
- self.set_macro("VSInstallDir", vsbase + r"\Setup\VS", "productdir")
- net = r"Software\Microsoft\.NETFramework"
- self.set_macro("FrameworkDir", net, "installroot")
+ self.set_macro("VCInstallDir", self.vsbase + r"\Setup\VC", "productdir")
+ self.set_macro("VSInstallDir", self.vsbase + r"\Setup\VS", "productdir")
+ self.set_macro("FrameworkDir", NET_BASE, "installroot")
try:
- if version > 7.0:
- self.set_macro("FrameworkSDKDir", net, "sdkinstallrootv1.1")
+ if version >= 8.0:
+ self.set_macro("FrameworkSDKDir", NET_BASE,
+ "sdkinstallrootv2.0")
else:
- self.set_macro("FrameworkSDKDir", net, "sdkinstallroot")
- except KeyError, exc: #
- raise DistutilsPlatformError, \
- ("""Python was built with Visual Studio 2003;
+ raise KeyError("sdkinstallrootv2.0")
+ except KeyError as exc: #
+ raise DistutilsPlatformError(
+ """Python was built with Visual Studio 2008;
extensions must be built with a compiler than can generate compatible binaries.
-Visual Studio 2003 was not found on this system. If you have Cygwin installed,
+Visual Studio 2008 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.""")
- p = r"Software\Microsoft\NET Framework Setup\Product"
- for base in HKEYS:
- try:
- h = RegOpenKeyEx(base, p)
- except RegError:
- continue
- key = RegEnumKey(h, 0)
- d = read_values(base, r"%s\%s" % (p, key))
- self.macros["$(FrameworkVersion)"] = d["version"]
+ if version >= 9.0:
+ self.set_macro("FrameworkVersion", self.vsbase, "clr version")
+ self.set_macro("WindowsSdkDir", WINSDK_BASE, "currentinstallfolder")
+ else:
+ p = r"Software\Microsoft\NET Framework Setup\Product"
+ for base in HKEYS:
+ try:
+ h = RegOpenKeyEx(base, p)
+ except RegError:
+ continue
+ key = RegEnumKey(h, 0)
+ d = Reg.get_value(base, r"%s\%s" % (p, key))
+ self.macros["$(FrameworkVersion)"] = d["version"]
def sub(self, s):
for k, v in self.macros.items():
- s = string.replace(s, k, v)
+ s = s.replace(k, v)
return s
def get_build_version():
@@ -157,9 +160,8 @@
For Python 2.3 and up, the version number is included in
sys.version. For earlier versions, assume the compiler is MSVC 6.
"""
-
prefix = "MSC v."
- i = string.find(sys.version, prefix)
+ i = sys.version.find(prefix)
if i == -1:
return 6
i = i + len(prefix)
@@ -177,15 +179,19 @@
def get_build_architecture():
"""Return the processor architecture.
- Possible results are "Intel", "Itanium", or "AMD64".
+ Possible results are "x86" or "amd64".
"""
-
prefix = " bit ("
- i = string.find(sys.version, prefix)
+ i = sys.version.find(prefix)
if i == -1:
- return "Intel"
- j = string.find(sys.version, ")", i)
- return sys.version[i+len(prefix):j]
+ return "x86"
+ j = sys.version.find(")", i)
+ sysarch = sys.version[i+len(prefix):j].lower()
+ arch = ARCHS.get(sysarch, None)
+ if arch is None:
+ return ARCHS['DEFAULT']
+ else:
+ return arch
def normalize_and_reduce_paths(paths):
"""Return a list of normalized paths with duplicates removed.
@@ -201,8 +207,82 @@
reduced_paths.append(np)
return reduced_paths
+def find_vcvarsall(version):
+ """Find the vcvarsall.bat file
+
+ At first it tries to find the productdir of VS 2008 in the registry. If
+ that fails it falls back to the VS90COMNTOOLS env var.
+ """
+ vsbase = VS_BASE % version
+ try:
+ productdir = Reg.get_value(r"%s\Setup\VC" % vsbase,
+ "productdir")
+ except KeyError:
+ log.debug("Unable to find productdir in registry")
+ productdir = None
+
+ if not productdir or not os.path.isdir(productdir):
+ toolskey = "VS%0.f0COMNTOOLS" % version
+ toolsdir = os.environ.get(toolskey, None)
+
+ if toolsdir and os.path.isdir(toolsdir):
+ productdir = os.path.join(toolsdir, os.pardir, os.pardir, "VC")
+ productdir = os.path.abspath(productdir)
+ if not os.path.isdir(productdir):
+ log.debug("%s is not a valid directory" % productdir)
+ return None
+ else:
+ log.debug("Env var %s is not set or invalid" % toolskey)
+ if not productdir:
+ log.debug("No productdir found")
+ return None
+ vcvarsall = os.path.join(productdir, "vcvarsall.bat")
+ if os.path.isfile(vcvarsall):
+ return vcvarsall
+ log.debug("Unable to find vcvarsall.bat")
+ return None
+
+def query_vcvarsall(version, arch="x86"):
+ """Launch vcvarsall.bat and read the settings from its environment
+ """
+ vcvarsall = find_vcvarsall(version)
+ interesting = set(("include", "lib", "libpath", "path"))
+ result = {}
+
+ if vcvarsall is None:
+ raise IOError("Unable to find vcvarsall.bat")
+ popen = subprocess.Popen('"%s" %s & set' % (vcvarsall, arch),
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
+ if popen.wait() != 0:
+ raise IOError(popen.stderr.read())
+
+ for line in popen.stdout:
+ line = Reg.convert_mbcs(line)
+ if '=' not in line:
+ continue
+ line = line.strip()
+ key, value = line.split('=')
+ key = key.lower()
+ if key in interesting:
+ if value.endswith(os.pathsep):
+ value = value[:-1]
+ result[key] = value
+
+ if len(result) != len(interesting):
+ raise ValueError(str(list(result.keys())))
+
+ return result
+
+# More globals
+VERSION = get_build_version()
+if VERSION < 8.0:
+ raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
+ARCH = get_build_architecture()
+# MACROS = MacroExpander(VERSION)
+VC_ENV = query_vcvarsall(VERSION, ARCH)
-class MSVCCompiler (CCompiler) :
+class MSVCCompiler(CCompiler) :
"""Concrete class that implements an interface to Microsoft Visual C++,
as defined by the CCompiler abstract class."""
@@ -232,27 +312,17 @@
static_lib_format = shared_lib_format = '%s%s'
exe_extension = '.exe'
- def __init__ (self, verbose=0, dry_run=0, force=0):
+ def __init__(self, verbose=0, dry_run=0, force=0):
CCompiler.__init__ (self, verbose, dry_run, force)
- self.__version = get_build_version()
- self.__arch = get_build_architecture()
- if self.__arch == "Intel":
- # x86
- if self.__version >= 7:
- self.__root = r"Software\Microsoft\VisualStudio"
- self.__macros = MacroExpander(self.__version)
- else:
- self.__root = r"Software\Microsoft\Devstudio"
- self.__product = "Visual Studio version %s" % self.__version
- else:
- # Win64. Assume this was built with the platform SDK
- self.__product = "Microsoft SDK compiler %s" % (self.__version + 6)
-
+ self.__version = VERSION
+ self.__arch = ARCH
+ self.__root = r"Software\Microsoft\VisualStudio"
+ # self.__macros = MACROS
+ self.__path = []
self.initialized = False
def initialize(self):
- self.__paths = []
- if os.environ.has_key("DISTUTILS_USE_SDK") and os.environ.has_key("MSSdk") and self.find_exe("cl.exe"):
+ if "DISTUTILS_USE_SDK" in os.environ and "MSSdk" in os.environ and self.find_exe("cl.exe"):
# Assume that the SDK set up everything alright; don't try to be
# smarter
self.cc = "cl.exe"
@@ -261,36 +331,38 @@
self.rc = "rc.exe"
self.mc = "mc.exe"
else:
- self.__paths = self.get_msvc_paths("path")
+ self.__paths = VC_ENV['path'].split(os.pathsep)
+ os.environ['lib'] = VC_ENV['lib']
+ os.environ['include'] = VC_ENV['include']
- if len (self.__paths) == 0:
- raise DistutilsPlatformError, \
- ("Python was built with %s, "
+ if len(self.__paths) == 0:
+ raise DistutilsPlatformError("Python was built with %s, "
"and extensions need to be built with the same "
- "version of the compiler, but it isn't installed." % self.__product)
+ "version of the compiler, but it isn't installed."
+ % self.__product)
self.cc = self.find_exe("cl.exe")
self.linker = self.find_exe("link.exe")
self.lib = self.find_exe("lib.exe")
self.rc = self.find_exe("rc.exe") # resource compiler
self.mc = self.find_exe("mc.exe") # message compiler
- self.set_path_env_var('lib')
- self.set_path_env_var('include')
+ #self.set_path_env_var('lib')
+ #self.set_path_env_var('include')
# extend the MSVC path with the current path
try:
- for p in string.split(os.environ['path'], ';'):
+ for p in os.environ['path'].split(';'):
self.__paths.append(p)
except KeyError:
pass
self.__paths = normalize_and_reduce_paths(self.__paths)
- os.environ['path'] = string.join(self.__paths, ';')
+ os.environ['path'] = ";".join(self.__paths)
self.preprocess_options = None
- if self.__arch == "Intel":
- self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GX' ,
+ if self.__arch == "x86":
+ self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3',
'/DNDEBUG']
- self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GX',
+ self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3',
'/Z7', '/D_DEBUG']
else:
# Win64
@@ -302,11 +374,7 @@
self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO']
if self.__version >= 7:
self.ldflags_shared_debug = [
- '/DLL', '/nologo', '/INCREMENTAL:no', '/DEBUG'
- ]
- else:
- self.ldflags_shared_debug = [
- '/DLL', '/nologo', '/INCREMENTAL:no', '/pdb:None', '/DEBUG'
+ '/DLL', '/nologo', '/INCREMENTAL:no', '/DEBUG', '/pdb:None'
]
self.ldflags_static = [ '/nologo']
@@ -314,10 +382,10 @@
# -- Worker methods ------------------------------------------------
- def object_filenames (self,
- source_filenames,
- strip_dir=0,
- output_dir=''):
+ def object_filenames(self,
+ source_filenames,
+ strip_dir=0,
+ output_dir=''):
# Copied from ccompiler.py, extended to return .res as 'object'-file
# for .rc input file
if output_dir is None: output_dir = ''
@@ -344,17 +412,16 @@
base + self.obj_extension))
return obj_names
- # object_filenames ()
-
def compile(self, sources,
output_dir=None, macros=None, include_dirs=None, debug=0,
extra_preargs=None, extra_postargs=None, depends=None):
- if not self.initialized: self.initialize()
- macros, objects, extra_postargs, pp_opts, build = \
- self._setup_compile(output_dir, macros, include_dirs, sources,
- depends, extra_postargs)
+ if not self.initialized:
+ self.initialize()
+ compile_info = self._setup_compile(output_dir, macros, include_dirs,
+ sources, depends, extra_postargs)
+ macros, objects, extra_postargs, pp_opts, build = compile_info
compile_opts = extra_preargs or []
compile_opts.append ('/c')
@@ -383,13 +450,12 @@
input_opt = src
output_opt = "/fo" + obj
try:
- self.spawn ([self.rc] + pp_opts +
- [output_opt] + [input_opt])
- except DistutilsExecError, msg:
- raise CompileError, msg
+ self.spawn([self.rc] + pp_opts +
+ [output_opt] + [input_opt])
+ except DistutilsExecError as msg:
+ raise CompileError(msg)
continue
elif ext in self._mc_extensions:
-
# Compile .MC to .RC file to .RES file.
# * '-h dir' specifies the directory for the
# generated include file
@@ -401,99 +467,95 @@
# we use the source-directory for the include file and
# the build directory for the RC file and message
# resources. This works at least for win32all.
-
- h_dir = os.path.dirname (src)
- rc_dir = os.path.dirname (obj)
+ h_dir = os.path.dirname(src)
+ rc_dir = os.path.dirname(obj)
try:
# first compile .MC to .RC and .H file
- self.spawn ([self.mc] +
- ['-h', h_dir, '-r', rc_dir] + [src])
+ self.spawn([self.mc] +
+ ['-h', h_dir, '-r', rc_dir] + [src])
base, _ = os.path.splitext (os.path.basename (src))
rc_file = os.path.join (rc_dir, base + '.rc')
# then compile .RC to .RES file
- self.spawn ([self.rc] +
- ["/fo" + obj] + [rc_file])
+ self.spawn([self.rc] +
+ ["/fo" + obj] + [rc_file])
- except DistutilsExecError, msg:
- raise CompileError, msg
+ except DistutilsExecError as msg:
+ raise CompileError(msg)
continue
else:
# how to handle this file?
- raise CompileError (
- "Don't know how to compile %s to %s" % \
- (src, obj))
+ raise CompileError("Don't know how to compile %s to %s"
+ % (src, obj))
output_opt = "/Fo" + obj
try:
- self.spawn ([self.cc] + compile_opts + pp_opts +
- [input_opt, output_opt] +
- extra_postargs)
- except DistutilsExecError, msg:
- raise CompileError, msg
+ self.spawn([self.cc] + compile_opts + pp_opts +
+ [input_opt, output_opt] +
+ extra_postargs)
+ except DistutilsExecError as msg:
+ raise CompileError(msg)
return objects
- # compile ()
+ def create_static_lib(self,
+ objects,
+ output_libname,
+ output_dir=None,
+ debug=0,
+ target_lang=None):
+
+ if not self.initialized:
+ self.initialize()
+ (objects, output_dir) = self._fix_object_args(objects, output_dir)
+ output_filename = self.library_filename(output_libname,
+ output_dir=output_dir)
- def create_static_lib (self,
- objects,
- output_libname,
- output_dir=None,
- debug=0,
- target_lang=None):
-
- if not self.initialized: self.initialize()
- (objects, output_dir) = self._fix_object_args (objects, output_dir)
- output_filename = \
- self.library_filename (output_libname, output_dir=output_dir)
-
- if self._need_link (objects, output_filename):
+ if self._need_link(objects, output_filename):
lib_args = objects + ['/OUT:' + output_filename]
if debug:
- pass # XXX what goes here?
+ pass # XXX what goes here?
try:
- self.spawn ([self.lib] + lib_args)
- except DistutilsExecError, msg:
- raise LibError, msg
-
+ self.spawn([self.lib] + lib_args)
+ except DistutilsExecError as msg:
+ raise LibError(msg)
else:
log.debug("skipping %s (up-to-date)", output_filename)
- # create_static_lib ()
- def link (self,
- target_desc,
- objects,
- output_filename,
- output_dir=None,
- libraries=None,
- library_dirs=None,
- runtime_library_dirs=None,
- export_symbols=None,
- debug=0,
- extra_preargs=None,
- extra_postargs=None,
- build_temp=None,
- target_lang=None):
-
- if not self.initialized: self.initialize()
- (objects, output_dir) = self._fix_object_args (objects, output_dir)
- (libraries, library_dirs, runtime_library_dirs) = \
- self._fix_lib_args (libraries, library_dirs, runtime_library_dirs)
+ def link(self,
+ target_desc,
+ objects,
+ output_filename,
+ output_dir=None,
+ libraries=None,
+ library_dirs=None,
+ runtime_library_dirs=None,
+ export_symbols=None,
+ debug=0,
+ extra_preargs=None,
+ extra_postargs=None,
+ build_temp=None,
+ target_lang=None):
+
+ if not self.initialized:
+ self.initialize()
+ (objects, output_dir) = self._fix_object_args(objects, output_dir)
+ fixed_args = self._fix_lib_args(libraries, library_dirs,
+ runtime_library_dirs)
+ (libraries, library_dirs, runtime_library_dirs) = fixed_args
if runtime_library_dirs:
self.warn ("I don't know what to do with 'runtime_library_dirs': "
+ str (runtime_library_dirs))
- lib_opts = gen_lib_options (self,
- library_dirs, runtime_library_dirs,
- libraries)
+ lib_opts = gen_lib_options(self,
+ library_dirs, runtime_library_dirs,
+ libraries)
if output_dir is not None:
- output_filename = os.path.join (output_dir, output_filename)
-
- if self._need_link (objects, output_filename):
+ output_filename = os.path.join(output_dir, output_filename)
+ if self._need_link(objects, output_filename):
if target_desc == CCompiler.EXECUTABLE:
if debug:
ldflags = self.ldflags_shared_debug[1:]
@@ -530,34 +592,32 @@
if extra_postargs:
ld_args.extend(extra_postargs)
- self.mkpath (os.path.dirname (output_filename))
+ self.mkpath(os.path.dirname(output_filename))
try:
- self.spawn ([self.linker] + ld_args)
- except DistutilsExecError, msg:
- raise LinkError, msg
+ self.spawn([self.linker] + ld_args)
+ except DistutilsExecError as msg:
+ raise LinkError(msg)
else:
log.debug("skipping %s (up-to-date)", output_filename)
- # link ()
-
# -- Miscellaneous methods -----------------------------------------
# These are all used by the 'gen_lib_options() function, in
# ccompiler.py.
- def library_dir_option (self, dir):
+ def library_dir_option(self, dir):
return "/LIBPATH:" + dir
- def runtime_library_dir_option (self, dir):
- raise DistutilsPlatformError, \
- "don't know how to set runtime library search path for MSVC++"
+ def runtime_library_dir_option(self, dir):
+ raise DistutilsPlatformError(
+ "don't know how to set runtime library search path for MSVC++")
- def library_option (self, lib):
- return self.library_filename (lib)
+ def library_option(self, lib):
+ return self.library_filename(lib)
- def find_library_file (self, dirs, lib, debug=0):
+ def find_library_file(self, dirs, lib, debug=0):
# Prefer a debugging library if found (and requested), but deal
# with it if we don't have one.
if debug:
@@ -573,8 +633,6 @@
# Oops, didn't find it in *any* of 'dirs'
return None
- # find_library_file ()
-
# Helper methods for using the MSVC registry settings
def find_exe(self, exe):
@@ -586,67 +644,15 @@
absolute path that is known to exist. If none of them work, just
return the original program name, 'exe'.
"""
-
for p in self.__paths:
fn = os.path.join(os.path.abspath(p), exe)
if os.path.isfile(fn):
return fn
# didn't find it; try existing path
- for p in string.split(os.environ['Path'],';'):
+ for p in os.environ['Path'].split(';'):
fn = os.path.join(os.path.abspath(p),exe)
if os.path.isfile(fn):
return fn
return exe
-
- def get_msvc_paths(self, path, platform='x86'):
- """Get a list of devstudio directories (include, lib or path).
-
- Return a list of strings. The list will be empty if unable to
- access the registry or appropriate registry keys not found.
- """
-
- if not _can_read_reg:
- return []
-
- path = path + " dirs"
- if self.__version >= 7:
- key = (r"%s\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories"
- % (self.__root, self.__version))
- else:
- key = (r"%s\6.0\Build System\Components\Platforms"
- r"\Win32 (%s)\Directories" % (self.__root, platform))
-
- for base in HKEYS:
- d = read_values(base, key)
- if d:
- if self.__version >= 7:
- return string.split(self.__macros.sub(d[path]), ";")
- else:
- return string.split(d[path], ";")
- # MSVC 6 seems to create the registry entries we need only when
- # the GUI is run.
- if self.__version == 6:
- for base in HKEYS:
- if read_values(base, r"%s\6.0" % self.__root) is not None:
- self.warn("It seems you have Visual Studio 6 installed, "
- "but the expected registry settings are not present.\n"
- "You must at least run the Visual Studio GUI once "
- "so that these entries are created.")
- break
- return []
-
- def set_path_env_var(self, name):
- """Set environment variable 'name' to an MSVC path type value.
-
- This is equivalent to a SET command prior to execution of spawned
- commands.
- """
-
- if name == "lib":
- p = self.get_msvc_paths("library")
- else:
- p = self.get_msvc_paths(name)
- if p:
- os.environ[name] = string.join(p, ';')
Modified: python/trunk/Lib/distutils/msvccompiler.py
==============================================================================
--- python/trunk/Lib/distutils/msvccompiler.py (original)
+++ python/trunk/Lib/distutils/msvccompiler.py Mon Dec 3 14:47:29 2007
@@ -650,3 +650,11 @@
p = self.get_msvc_paths(name)
if p:
os.environ[name] = string.join(p, ';')
+
+
+if get_build_version() >= 8.0:
+ log.debug("Importing new compiler from distutils.msvc9compiler")
+ OldMSVCCompiler = MSVCCompiler
+ from distutils.msvc9compiler import MSVCCompiler
+ from distutils.msvc9compiler import get_build_architecture
+ from distutils.msvc9compiler import MacroExpander
Modified: python/trunk/Modules/xxmodule.c
==============================================================================
--- python/trunk/Modules/xxmodule.c (original)
+++ python/trunk/Modules/xxmodule.c Mon Dec 3 14:47:29 2007
@@ -246,7 +246,7 @@
0, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
- &PyString_Type, /*tp_base*/
+ 0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
@@ -301,14 +301,14 @@
0, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
- &PyBaseObject_Type, /*tp_base*/
+ 0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
- PyType_GenericNew, /*tp_new*/
+ 0, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
};
@@ -341,6 +341,10 @@
{
PyObject *m;
+ Null_Type.tp_base = &PyBaseObject_Type;
+ Null_Type.tp_new = PyType_GenericNew;
+ Str_Type.tp_base = &PyUnicode_Type;
+
/* Finalize the type object including setting type of the new type
* object; doing it here is required for portability to Windows
* without requiring C++. */
From python-checkins at python.org Mon Dec 3 14:55:16 2007
From: python-checkins at python.org (christian.heimes)
Date: Mon, 3 Dec 2007 14:55:16 +0100 (CET)
Subject: [Python-checkins] r59291 - python/trunk/Misc/NEWS
Message-ID: <20071203135516.912561E400E@bag.python.org>
Author: christian.heimes
Date: Mon Dec 3 14:55:16 2007
New Revision: 59291
Modified:
python/trunk/Misc/NEWS
Log:
Added comment to Misc/NEWS for r59290
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Mon Dec 3 14:55:16 2007
@@ -308,6 +308,9 @@
Library
-------
+- Issue #1455: The distutils package now supports VS 2005 and VS 2008 for
+ both the msvccompiler and cygwincompiler.
+
- Issue #1531: tarfile.py: Read fileobj from the current offset, do not
seek to the start.
From buildbot at python.org Mon Dec 3 14:56:16 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 13:56:16 +0000
Subject: [Python-checkins] buildbot failure in x86 OpenBSD trunk
Message-ID: <20071203135617.0E8901E402D@bag.python.org>
The Buildbot has detected a new failure of x86 OpenBSD trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20OpenBSD%20trunk/builds/132
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: cortesi
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From mal at egenix.com Mon Dec 3 15:02:21 2007
From: mal at egenix.com (M.-A. Lemburg)
Date: Mon, 03 Dec 2007 15:02:21 +0100
Subject: [Python-checkins] r59290 - in
python/trunk: Lib/distutils/command/build_ext.py
Lib/distutils/cygwinccompiler.py Lib/distutils/msvc9compiler.py
Lib/distutils/msvccompiler.py Modules/xxmodule.c
In-Reply-To: <20071203134730.3014B1E4012@bag.python.org>
References: <20071203134730.3014B1E4012@bag.python.org>
Message-ID: <47540C6D.6050006@egenix.com>
On 2007-12-03 14:47, christian.heimes wrote:
> Author: christian.heimes
> Date: Mon Dec 3 14:47:29 2007
> New Revision: 59290
>
> Added:
> python/trunk/Lib/distutils/msvc9compiler.py
> - copied, changed from r59283, python/trunk/Lib/distutils/msvccompiler.py
> Modified:
> python/trunk/Lib/distutils/command/build_ext.py
> python/trunk/Lib/distutils/cygwinccompiler.py
> python/trunk/Lib/distutils/msvccompiler.py
> python/trunk/Modules/xxmodule.c
> Log:
> Applied my patch #1455 with some extra fixes for VS 2005
> The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier.
> I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
...
I think you should add a comment to xxmodule.c explaining why you
defer the initialization of the type object struct until module
init time. After all, xxmodule.c is an example extension module
and as such serves a tutorial purpose.
Thanks.
> Modified: python/trunk/Modules/xxmodule.c
> ==============================================================================
> --- python/trunk/Modules/xxmodule.c (original)
> +++ python/trunk/Modules/xxmodule.c Mon Dec 3 14:47:29 2007
> @@ -246,7 +246,7 @@
> 0, /*tp_methods*/
> 0, /*tp_members*/
> 0, /*tp_getset*/
> - &PyString_Type, /*tp_base*/
> + 0, /*tp_base*/
> 0, /*tp_dict*/
> 0, /*tp_descr_get*/
> 0, /*tp_descr_set*/
> @@ -301,14 +301,14 @@
> 0, /*tp_methods*/
> 0, /*tp_members*/
> 0, /*tp_getset*/
> - &PyBaseObject_Type, /*tp_base*/
> + 0, /*tp_base*/
> 0, /*tp_dict*/
> 0, /*tp_descr_get*/
> 0, /*tp_descr_set*/
> 0, /*tp_dictoffset*/
> 0, /*tp_init*/
> 0, /*tp_alloc*/
> - PyType_GenericNew, /*tp_new*/
> + 0, /*tp_new*/
> 0, /*tp_free*/
> 0, /*tp_is_gc*/
> };
> @@ -341,6 +341,10 @@
> {
> PyObject *m;
>
> + Null_Type.tp_base = &PyBaseObject_Type;
> + Null_Type.tp_new = PyType_GenericNew;
> + Str_Type.tp_base = &PyUnicode_Type;
> +
> /* Finalize the type object including setting type of the new type
> * object; doing it here is required for portability to Windows
> * without requiring C++. */
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Dec 03 2007)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
From buildbot at python.org Mon Dec 3 15:21:25 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 14:21:25 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-3 trunk
Message-ID: <20071203142125.5AD241E402E@bag.python.org>
The Buildbot has detected a new failure of x86 XP-3 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-3%20trunk/builds/447
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_zipimport
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 15:22:16 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 14:22:16 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071203142216.4EE601E4017@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/335
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: georg.brandl,nick.coghlan
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 15:28:04 2007
From: python-checkins at python.org (christian.heimes)
Date: Mon, 3 Dec 2007 15:28:04 +0100 (CET)
Subject: [Python-checkins] r59292 - python/trunk/Modules/xxmodule.c
Message-ID: <20071203142804.66D5D1E4004@bag.python.org>
Author: christian.heimes
Date: Mon Dec 3 15:28:04 2007
New Revision: 59292
Modified:
python/trunk/Modules/xxmodule.c
Log:
I followed MA Lemberg's suggestion and added comments to the late initialization of the type slots.
Modified: python/trunk/Modules/xxmodule.c
==============================================================================
--- python/trunk/Modules/xxmodule.c (original)
+++ python/trunk/Modules/xxmodule.c Mon Dec 3 15:28:04 2007
@@ -246,7 +246,7 @@
0, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
- 0, /*tp_base*/
+ 0, /* see initxx */ /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
@@ -301,14 +301,14 @@
0, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
- 0, /*tp_base*/
+ 0, /* see initxx */ /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
- 0, /*tp_new*/
+ 0, /* see initxx */ /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
};
@@ -341,13 +341,15 @@
{
PyObject *m;
+ /* Due to cross platform compiler issues the slots must be filled
+ * here. It's required for portability to Windows without requiring
+ * C++. */
Null_Type.tp_base = &PyBaseObject_Type;
Null_Type.tp_new = PyType_GenericNew;
Str_Type.tp_base = &PyUnicode_Type;
/* Finalize the type object including setting type of the new type
- * object; doing it here is required for portability to Windows
- * without requiring C++. */
+ * object; doing it here is required for portability, too. /*
if (PyType_Ready(&Xxo_Type) < 0)
return;
From buildbot at python.org Mon Dec 3 15:35:09 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 14:35:09 +0000
Subject: [Python-checkins] buildbot failure in amd64 XP trunk
Message-ID: <20071203143509.6B7451E4004@bag.python.org>
The Buildbot has detected a new failure of amd64 XP trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%20trunk/builds/386
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 15:55:31 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 14:55:31 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc trunk
Message-ID: <20071203145532.00AF71E4017@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%20trunk/builds/1014
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 17:29:53 2007
From: python-checkins at python.org (facundo.batista)
Date: Mon, 3 Dec 2007 17:29:53 +0100 (CET)
Subject: [Python-checkins] r59293 - python/trunk/Lib/decimal.py
Message-ID: <20071203162953.0876B1E402D@bag.python.org>
Author: facundo.batista
Date: Mon Dec 3 17:29:52 2007
New Revision: 59293
Modified:
python/trunk/Lib/decimal.py
Log:
Speedup and cleaning of __str__. Thanks Mark Dickinson.
Modified: python/trunk/Lib/decimal.py
==============================================================================
--- python/trunk/Lib/decimal.py (original)
+++ python/trunk/Lib/decimal.py Mon Dec 3 17:29:52 2007
@@ -837,81 +837,51 @@
Captures all of the information in the underlying representation.
"""
+ sign = ['', '-'][self._sign]
if self._is_special:
- if self._isnan():
- minus = '-'*self._sign
- if self._int == '0':
- info = ''
- else:
- info = self._int
- if self._isnan() == 2:
- return minus + 'sNaN' + info
- return minus + 'NaN' + info
- if self._isinfinity():
- minus = '-'*self._sign
- return minus + 'Infinity'
-
- if context is None:
- context = getcontext()
+ if self._exp == 'F':
+ return sign + 'Infinity'
+ elif self._exp == 'n':
+ return sign + 'NaN' + self._int
+ else: # self._exp == 'N'
+ return sign + 'sNaN' + self._int
+
+ # number of digits of self._int to left of decimal point
+ leftdigits = self._exp + len(self._int)
+
+ # dotplace is number of digits of self._int to the left of the
+ # decimal point in the mantissa of the output string (that is,
+ # after adjusting the exponent)
+ if self._exp <= 0 and leftdigits > -6:
+ # no exponent required
+ dotplace = leftdigits
+ elif not eng:
+ # usual scientific notation: 1 digit on left of the point
+ dotplace = 1
+ elif self._int == '0':
+ # engineering notation, zero
+ dotplace = (leftdigits + 1) % 3 - 1
+ else:
+ # engineering notation, nonzero
+ dotplace = (leftdigits - 1) % 3 + 1
- tmp = list(self._int)
- numdigits = len(self._int)
- leftdigits = self._exp + numdigits
- if eng and not self: # self = 0eX wants 0[.0[0]]eY, not [[0]0]0eY
- if self._exp < 0 and self._exp >= -6: # short, no need for e/E
- s = '-'*self._sign + '0.' + '0'*(abs(self._exp))
- return s
- # exp is closest mult. of 3 >= self._exp
- exp = ((self._exp - 1)// 3 + 1) * 3
- if exp != self._exp:
- s = '0.'+'0'*(exp - self._exp)
- else:
- s = '0'
- if exp != 0:
- if context.capitals:
- s += 'E'
- else:
- s += 'e'
- if exp > 0:
- s += '+' # 0.0e+3, not 0.0e3
- s += str(exp)
- s = '-'*self._sign + s
- return s
- if eng:
- dotplace = (leftdigits-1)%3+1
- adjexp = leftdigits -1 - (leftdigits-1)%3
+ if dotplace <= 0:
+ intpart = '0'
+ fracpart = '.' + '0'*(-dotplace) + self._int
+ elif dotplace >= len(self._int):
+ intpart = self._int+'0'*(dotplace-len(self._int))
+ fracpart = ''
else:
- adjexp = leftdigits-1
- dotplace = 1
- if self._exp == 0:
- pass
- elif self._exp < 0 and adjexp >= 0:
- tmp.insert(leftdigits, '.')
- elif self._exp < 0 and adjexp >= -6:
- tmp[0:0] = ['0'] * int(-leftdigits)
- tmp.insert(0, '0.')
+ intpart = self._int[:dotplace]
+ fracpart = '.' + self._int[dotplace:]
+ if leftdigits == dotplace:
+ exp = ''
else:
- if numdigits > dotplace:
- tmp.insert(dotplace, '.')
- elif numdigits < dotplace:
- tmp.extend(['0']*(dotplace-numdigits))
- if adjexp:
- if not context.capitals:
- tmp.append('e')
- else:
- tmp.append('E')
- if adjexp > 0:
- tmp.append('+')
- tmp.append(str(adjexp))
- if eng:
- while tmp[0:1] == ['0']:
- tmp[0:1] = []
- if len(tmp) == 0 or tmp[0] == '.' or tmp[0].lower() == 'e':
- tmp[0:0] = ['0']
- if self._sign:
- tmp.insert(0, '-')
+ if context is None:
+ context = getcontext()
+ exp = ['e', 'E'][context.capitals] + "%+d" % (leftdigits-dotplace)
- return ''.join(tmp)
+ return sign + intpart + fracpart + exp
def to_eng_string(self, context=None):
"""Convert to engineering-type string.
From buildbot at python.org Mon Dec 3 18:12:41 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 17:12:41 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable trunk
Message-ID: <20071203171242.16B541E4030@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%20trunk/builds/401
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: facundo.batista
BUILD FAILED: failed test
Excerpt from the test logfile:
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/bsddb/test/test_thread.py", line 281, in readerThread
rec = dbutils.DeadlockWrap(c.next, max_retries=10)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/bsddb/dbutils.py", line 62, in DeadlockWrap
return function(*_args, **_kwargs)
DBLockDeadlockError: (-30995, 'DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock')
1 test failed:
test_xmlrpc
======================================================================
ERROR: test_fail_no_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 497, in test_fail_no_info
p.pow(6,8)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1157, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1447, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1195, in request
errcode, errmsg, headers = h.getreply()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 1006, in getreply
response = self._conn.getresponse()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 932, in getresponse
response.begin()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 415, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 271, in readheaders
line = self.fp.readline()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/socket.py", line 351, in readline
data = recv(1)
error: [Errno 104] Connection reset by peer
======================================================================
ERROR: test_fail_with_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 517, in test_fail_with_info
p.pow(6,8)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1157, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1447, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1195, in request
errcode, errmsg, headers = h.getreply()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 1006, in getreply
response = self._conn.getresponse()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 932, in getresponse
response.begin()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 415, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 271, in readheaders
line = self.fp.readline()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/socket.py", line 351, in readline
data = recv(1)
error: [Errno 104] Connection reset by peer
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 18:55:00 2007
From: python-checkins at python.org (facundo.batista)
Date: Mon, 3 Dec 2007 18:55:00 +0100 (CET)
Subject: [Python-checkins] r59294 - python/trunk/Lib/decimal.py
Message-ID: <20071203175500.F197C1E4009@bag.python.org>
Author: facundo.batista
Date: Mon Dec 3 18:55:00 2007
New Revision: 59294
Modified:
python/trunk/Lib/decimal.py
Log:
Faster _fix function, and some reordering for a more elegant
coding. Thanks Mark Dickinson.
Modified: python/trunk/Lib/decimal.py
==============================================================================
--- python/trunk/Lib/decimal.py (original)
+++ python/trunk/Lib/decimal.py Mon Dec 3 18:55:00 2007
@@ -1077,29 +1077,6 @@
return other.__sub__(self, context=context)
- def _increment(self):
- """Special case of add, adding 1eExponent
-
- Since it is common, (rounding, for example) this adds
- (sign)*one E self._exp to the number more efficiently than add.
-
- Assumes that self is nonspecial.
-
- For example:
- Decimal('5.624e10')._increment() == Decimal('5.625e10')
- """
- L = map(int, self._int)
- L[-1] += 1
- spot = len(L)-1
- while L[spot] == 10:
- L[spot] = 0
- if spot == 0:
- L[0:0] = [1]
- break
- L[spot-1] += 1
- spot -= 1
- return _dec_from_triple(self._sign, "".join(map(str, L)), self._exp)
-
def __mul__(self, other, context=None):
"""Return self * other.
@@ -1540,8 +1517,18 @@
# round if self has too many digits
if self._exp < exp_min:
context._raise_error(Rounded)
- ans = self._rescale(exp_min, context.rounding)
- if ans != self:
+ digits = len(self._int) + self._exp - exp_min
+ if digits < 0:
+ self = _dec_from_triple(self._sign, '1', exp_min-1)
+ digits = 0
+ this_function = getattr(self, self._pick_rounding_function[context.rounding])
+ changed = this_function(digits)
+ coeff = self._int[:digits] or '0'
+ if changed == 1:
+ coeff = str(int(coeff)+1)
+ ans = _dec_from_triple(self._sign, coeff, exp_min)
+
+ if changed:
context._raise_error(Inexact)
if self_is_subnormal:
context._raise_error(Underflow)
@@ -1574,66 +1561,68 @@
# for each of the rounding functions below:
# self is a finite, nonzero Decimal
# prec is an integer satisfying 0 <= prec < len(self._int)
- # the rounded result will have exponent self._exp + len(self._int) - prec;
+ #
+ # each function returns either -1, 0, or 1, as follows:
+ # 1 indicates that self should be rounded up (away from zero)
+ # 0 indicates that self should be truncated, and that all the
+ # digits to be truncated are zeros (so the value is unchanged)
+ # -1 indicates that there are nonzero digits to be truncated
def _round_down(self, prec):
"""Also known as round-towards-0, truncate."""
- newexp = self._exp + len(self._int) - prec
- return _dec_from_triple(self._sign, self._int[:prec] or '0', newexp)
+ if _all_zeros(self._int, prec):
+ return 0
+ else:
+ return -1
def _round_up(self, prec):
"""Rounds away from 0."""
- newexp = self._exp + len(self._int) - prec
- tmp = _dec_from_triple(self._sign, self._int[:prec] or '0', newexp)
- for digit in self._int[prec:]:
- if digit != '0':
- return tmp._increment()
- return tmp
+ return -self._round_down(prec)
def _round_half_up(self, prec):
"""Rounds 5 up (away from 0)"""
if self._int[prec] in '56789':
- return self._round_up(prec)
+ return 1
+ elif _all_zeros(self._int, prec):
+ return 0
else:
- return self._round_down(prec)
+ return -1
def _round_half_down(self, prec):
"""Round 5 down"""
- if self._int[prec] == '5':
- for digit in self._int[prec+1:]:
- if digit != '0':
- break
- else:
- return self._round_down(prec)
- return self._round_half_up(prec)
+ if _exact_half(self._int, prec):
+ return -1
+ else:
+ return self._round_half_up(prec)
def _round_half_even(self, prec):
"""Round 5 to even, rest to nearest."""
- if prec and self._int[prec-1] in '13579':
- return self._round_half_up(prec)
+ if _exact_half(self._int, prec) and \
+ (prec == 0 or self._int[prec-1] in '02468'):
+ return -1
else:
- return self._round_half_down(prec)
+ return self._round_half_up(prec)
def _round_ceiling(self, prec):
"""Rounds up (not away from 0 if negative.)"""
if self._sign:
return self._round_down(prec)
else:
- return self._round_up(prec)
+ return -self._round_down(prec)
def _round_floor(self, prec):
"""Rounds down (not towards 0 if negative)"""
if not self._sign:
return self._round_down(prec)
else:
- return self._round_up(prec)
+ return -self._round_down(prec)
def _round_05up(self, prec):
"""Round down unless digit prec-1 is 0 or 5."""
- if prec == 0 or self._int[prec-1] in '05':
- return self._round_up(prec)
- else:
+ if prec and self._int[prec-1] not in '05':
return self._round_down(prec)
+ else:
+ return -self._round_down(prec)
def fma(self, other, third, context=None):
"""Fused multiply-add.
@@ -2290,7 +2279,11 @@
self = _dec_from_triple(self._sign, '1', exp-1)
digits = 0
this_function = getattr(self, self._pick_rounding_function[rounding])
- return this_function(digits)
+ changed = this_function(digits)
+ coeff = self._int[:digits] or '0'
+ if changed == 1:
+ coeff = str(int(coeff)+1)
+ return _dec_from_triple(self._sign, coeff, exp)
def to_integral_exact(self, rounding=None, context=None):
"""Rounds to a nearby integer.
@@ -5198,6 +5191,8 @@
$
""", re.VERBOSE | re.IGNORECASE).match
+_all_zeros = re.compile('0*$').match
+_exact_half = re.compile('50*$').match
del re
From g.brandl at gmx.net Mon Dec 3 19:15:27 2007
From: g.brandl at gmx.net (Georg Brandl)
Date: Mon, 03 Dec 2007 19:15:27 +0100
Subject: [Python-checkins] r59290 - in python/trunk:
Lib/distutils/command/build_ext.py Lib/distutils/cygwinccompiler.py
Lib/distutils/msvc9compiler.py Lib/distutils/msvccompiler.py
Modules/xxmodule.c
In-Reply-To: <47540C6D.6050006@egenix.com>
References: <20071203134730.3014B1E4012@bag.python.org>
<47540C6D.6050006@egenix.com>
Message-ID:
M.-A. Lemburg schrieb:
> On 2007-12-03 14:47, christian.heimes wrote:
>> Author: christian.heimes
>> Date: Mon Dec 3 14:47:29 2007
>> New Revision: 59290
>>
>> Added:
>> python/trunk/Lib/distutils/msvc9compiler.py
>> - copied, changed from r59283, python/trunk/Lib/distutils/msvccompiler.py
>> Modified:
>> python/trunk/Lib/distutils/command/build_ext.py
>> python/trunk/Lib/distutils/cygwinccompiler.py
>> python/trunk/Lib/distutils/msvccompiler.py
>> python/trunk/Modules/xxmodule.c
>> Log:
>> Applied my patch #1455 with some extra fixes for VS 2005
>> The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier.
>> I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
>
> ...
>
> I think you should add a comment to xxmodule.c explaining why you
> defer the initialization of the type object struct until module
> init time. After all, xxmodule.c is an example extension module
> and as such serves a tutorial purpose.
Note how this is already done in xxsubtype.c, with a DEFERRED_ADDRESS macro.
Georg
From python-checkins at python.org Mon Dec 3 20:20:03 2007
From: python-checkins at python.org (martin.v.loewis)
Date: Mon, 3 Dec 2007 20:20:03 +0100 (CET)
Subject: [Python-checkins] r59295 - in python/trunk: Doc/library/random.rst
Lib/random.py Lib/test/randv2_32.pck Lib/test/randv2_64.pck
Lib/test/randv3.pck Lib/test/test_random.py Misc/ACKS
Misc/NEWS Modules/_randommodule.c Tools/msi/msi.py
Message-ID: <20071203192003.6E8EB1E4015@bag.python.org>
Author: martin.v.loewis
Date: Mon Dec 3 20:20:02 2007
New Revision: 59295
Added:
python/trunk/Lib/test/randv2_32.pck (contents, props changed)
python/trunk/Lib/test/randv2_64.pck (contents, props changed)
python/trunk/Lib/test/randv3.pck (contents, props changed)
Modified:
python/trunk/Doc/library/random.rst
python/trunk/Lib/random.py
python/trunk/Lib/test/test_random.py
python/trunk/Misc/ACKS
python/trunk/Misc/NEWS
python/trunk/Modules/_randommodule.c
python/trunk/Tools/msi/msi.py
Log:
Issue #1727780: Support loading pickles of random.Random objects created
on 32-bit systems on 64-bit systems, and vice versa. As a consequence
of the change, Random pickles created by Python 2.6 cannot be loaded
in Python 2.5.
Modified: python/trunk/Doc/library/random.rst
==============================================================================
--- python/trunk/Doc/library/random.rst (original)
+++ python/trunk/Doc/library/random.rst Mon Dec 3 20:20:02 2007
@@ -80,6 +80,9 @@
.. versionadded:: 2.1
+ .. versionchanged:: 2.6
+ State values produced in Python 2.6 cannot be loaded into earlier versions.
+
.. function:: setstate(state)
Modified: python/trunk/Lib/random.py
==============================================================================
--- python/trunk/Lib/random.py (original)
+++ python/trunk/Lib/random.py Mon Dec 3 20:20:02 2007
@@ -83,7 +83,7 @@
"""
- VERSION = 2 # used by getstate/setstate
+ VERSION = 3 # used by getstate/setstate
def __init__(self, x=None):
"""Initialize an instance.
@@ -120,9 +120,20 @@
def setstate(self, state):
"""Restore internal state from object returned by getstate()."""
version = state[0]
- if version == 2:
+ if version == 3:
version, internalstate, self.gauss_next = state
super(Random, self).setstate(internalstate)
+ elif version == 2:
+ version, internalstate, self.gauss_next = state
+ # In version 2, the state was saved as signed ints, which causes
+ # inconsistencies between 32/64-bit systems. The state is
+ # really unsigned 32-bit ints, so we convert negative ints from
+ # version 2 to positive longs for version 3.
+ try:
+ internalstate = tuple( long(x) % (2**32) for x in internalstate )
+ except ValueError, e:
+ raise TypeError, e
+ super(Random, self).setstate(internalstate)
else:
raise ValueError("state with version %s passed to "
"Random.setstate() of version %s" %
Added: python/trunk/Lib/test/randv2_32.pck
==============================================================================
Binary file. No diff available.
Added: python/trunk/Lib/test/randv2_64.pck
==============================================================================
Binary file. No diff available.
Added: python/trunk/Lib/test/randv3.pck
==============================================================================
Binary file. No diff available.
Modified: python/trunk/Lib/test/test_random.py
==============================================================================
--- python/trunk/Lib/test/test_random.py (original)
+++ python/trunk/Lib/test/test_random.py Mon Dec 3 20:20:02 2007
@@ -140,6 +140,19 @@
restoredseq = [newgen.random() for i in xrange(10)]
self.assertEqual(origseq, restoredseq)
+ def test_bug_1727780(self):
+ # verify that version-2-pickles can be loaded
+ # fine, whether they are created on 32-bit or 64-bit
+ # platforms, and that version-3-pickles load fine.
+ files = [("randv2_32.pck", 780),
+ ("randv2_64.pck", 866),
+ ("randv3.pck", 343)]
+ for file, value in files:
+ f = open(test_support.findfile(file),"rb")
+ r = pickle.load(f)
+ f.close()
+ self.assertEqual(r.randrange(1000), value)
+
class WichmannHill_TestBasicOps(TestBasicOps):
gen = random.WichmannHill()
Modified: python/trunk/Misc/ACKS
==============================================================================
--- python/trunk/Misc/ACKS (original)
+++ python/trunk/Misc/ACKS Mon Dec 3 20:20:02 2007
@@ -395,6 +395,7 @@
Mark Levinson
William Lewis
Robert van Liere
+Shawn Ligocki
Martin Ligr
Christopher Lindblad
Eric Lindvall
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Mon Dec 3 20:20:02 2007
@@ -308,6 +308,11 @@
Library
-------
+- Issue #1727780: Support loading pickles of random.Random objects created
+ on 32-bit systems on 64-bit systems, and vice versa. As a consequence
+ of the change, Random pickles created by Python 2.6 cannot be loaded
+ in Python 2.5.
+
- Issue #1455: The distutils package now supports VS 2005 and VS 2008 for
both the msvccompiler and cygwincompiler.
Modified: python/trunk/Modules/_randommodule.c
==============================================================================
--- python/trunk/Modules/_randommodule.c (original)
+++ python/trunk/Modules/_randommodule.c Mon Dec 3 20:20:02 2007
@@ -319,12 +319,12 @@
if (state == NULL)
return NULL;
for (i=0; istate[i]));
+ element = PyLong_FromUnsignedLong(self->state[i]);
if (element == NULL)
goto Fail;
PyTuple_SET_ITEM(state, i, element);
}
- element = PyInt_FromLong((long)(self->index));
+ element = PyLong_FromLong((long)(self->index));
if (element == NULL)
goto Fail;
PyTuple_SET_ITEM(state, i, element);
@@ -339,7 +339,8 @@
random_setstate(RandomObject *self, PyObject *state)
{
int i;
- long element;
+ unsigned long element;
+ long index;
if (!PyTuple_Check(state)) {
PyErr_SetString(PyExc_TypeError,
@@ -353,16 +354,16 @@
}
for (i=0; istate[i] = (unsigned long)element;
+ self->state[i] = element & 0xffffffffUL; /* Make sure we get sane state */
}
- element = PyInt_AsLong(PyTuple_GET_ITEM(state, i));
- if (element == -1 && PyErr_Occurred())
+ index = PyLong_AsLong(PyTuple_GET_ITEM(state, i));
+ if (index == -1 && PyErr_Occurred())
return NULL;
- self->index = (int)element;
+ self->index = (int)index;
Py_INCREF(Py_None);
return Py_None;
Modified: python/trunk/Tools/msi/msi.py
==============================================================================
--- python/trunk/Tools/msi/msi.py (original)
+++ python/trunk/Tools/msi/msi.py Mon Dec 3 20:20:02 2007
@@ -933,6 +933,7 @@
lib.add_file("empty.vbs")
lib.glob("*.uue")
lib.glob("*.pem")
+ lib.glob("*.pck")
lib.add_file("readme.txt", src="README")
if dir=='decimaltestdata':
lib.glob("*.decTest")
From python-checkins at python.org Mon Dec 3 20:49:55 2007
From: python-checkins at python.org (facundo.batista)
Date: Mon, 3 Dec 2007 20:49:55 +0100 (CET)
Subject: [Python-checkins] r59297 - python/trunk/Doc/whatsnew/2.6.rst
Message-ID: <20071203194955.07E0A1E4016@bag.python.org>
Author: facundo.batista
Date: Mon Dec 3 20:49:54 2007
New Revision: 59297
Modified:
python/trunk/Doc/whatsnew/2.6.rst
Log:
Two small fixes. Issue 1547.
Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst (original)
+++ python/trunk/Doc/whatsnew/2.6.rst Mon Dec 3 20:49:54 2007
@@ -108,7 +108,7 @@
The previous version, Python 2.5, added the ':keyword:`with`'
statement an optional feature, to be enabled by a ``from __future__
-import generators`` directive. In 2.6 the statement no longer need to
+import with_statement`` directive. In 2.6 the statement no longer need to
be specially enabled; this means that :keyword:`with` is now always a
keyword. The rest of this section is a copy of the corresponding
section from "What's New in Python 2.5" document; if you read
@@ -481,7 +481,7 @@
of strings containing the names of valid attributes for the object,
and lets the object control the value that :func:`dir` produces.
Objects that have :meth:`__getattr__` or :meth:`__getattribute__`
- methods.
+ methods can use this to advertise pseudo-attributes they will honor.
.. % Patch 1591665
From python-checkins at python.org Mon Dec 3 20:57:03 2007
From: python-checkins at python.org (georg.brandl)
Date: Mon, 3 Dec 2007 20:57:03 +0100 (CET)
Subject: [Python-checkins] r59299 - python/trunk/Doc/using/cmdline.rst
Message-ID: <20071203195703.3F01D1E4009@bag.python.org>
Author: georg.brandl
Date: Mon Dec 3 20:57:02 2007
New Revision: 59299
Modified:
python/trunk/Doc/using/cmdline.rst
Log:
#1548: fix apostroph placement.
Modified: python/trunk/Doc/using/cmdline.rst
==============================================================================
--- python/trunk/Doc/using/cmdline.rst (original)
+++ python/trunk/Doc/using/cmdline.rst Mon Dec 3 20:57:02 2007
@@ -10,7 +10,7 @@
.. note::
- Other implementation's command line schemes may differ. See
+ Other implementations' command line schemes may differ. See
:ref:`implementations` for further resources.
From python-checkins at python.org Mon Dec 3 21:01:03 2007
From: python-checkins at python.org (christian.heimes)
Date: Mon, 3 Dec 2007 21:01:03 +0100 (CET)
Subject: [Python-checkins] r59300 - in python/trunk:
Doc/library/exceptions.rst Doc/reference/expressions.rst
Lib/test/exception_hierarchy.txt Lib/test/test_generators.py
Misc/NEWS Objects/exceptions.c
Message-ID: <20071203200103.7C0671E4009@bag.python.org>
Author: christian.heimes
Date: Mon Dec 3 21:01:02 2007
New Revision: 59300
Modified:
python/trunk/Doc/library/exceptions.rst
python/trunk/Doc/reference/expressions.rst
python/trunk/Lib/test/exception_hierarchy.txt
python/trunk/Lib/test/test_generators.py
python/trunk/Misc/NEWS
python/trunk/Objects/exceptions.c
Log:
Patch #1537 from Chad Austin
Change GeneratorExit's base class from Exception to BaseException
(This time I'm applying the patch to the correct sandbox.)
Modified: python/trunk/Doc/library/exceptions.rst
==============================================================================
--- python/trunk/Doc/library/exceptions.rst (original)
+++ python/trunk/Doc/library/exceptions.rst Mon Dec 3 21:01:02 2007
@@ -153,11 +153,13 @@
.. exception:: GeneratorExit
Raise when a :term:`generator`\'s :meth:`close` method is called. It
- directly inherits from :exc:`Exception` instead of :exc:`StandardError` since
+ directly inherits from :exc:`BaseException` instead of :exc:`StandardError` since
it is technically not an error.
.. versionadded:: 2.5
+ .. versionchanged:: 2.6
+ Changed to inherit from :exc:`BaseException`.
.. exception:: IOError
Modified: python/trunk/Doc/reference/expressions.rst
==============================================================================
--- python/trunk/Doc/reference/expressions.rst (original)
+++ python/trunk/Doc/reference/expressions.rst Mon Dec 3 21:01:02 2007
@@ -430,9 +430,6 @@
... while True:
... try:
... value = (yield value)
- ... except GeneratorExit:
- ... # never catch GeneratorExit
- ... raise
... except Exception, e:
... value = e
... finally:
Modified: python/trunk/Lib/test/exception_hierarchy.txt
==============================================================================
--- python/trunk/Lib/test/exception_hierarchy.txt (original)
+++ python/trunk/Lib/test/exception_hierarchy.txt Mon Dec 3 21:01:02 2007
@@ -1,8 +1,8 @@
BaseException
+-- SystemExit
+-- KeyboardInterrupt
+ +-- GeneratorExit
+-- Exception
- +-- GeneratorExit
+-- StopIteration
+-- StandardError
| +-- ArithmeticError
@@ -33,10 +33,10 @@
| +-- SystemError
| +-- TypeError
| +-- ValueError
- | | +-- UnicodeError
- | | +-- UnicodeDecodeError
- | | +-- UnicodeEncodeError
- | | +-- UnicodeTranslateError
+ | +-- UnicodeError
+ | +-- UnicodeDecodeError
+ | +-- UnicodeEncodeError
+ | +-- UnicodeTranslateError
+-- Warning
+-- DeprecationWarning
+-- PendingDeprecationWarning
Modified: python/trunk/Lib/test/test_generators.py
==============================================================================
--- python/trunk/Lib/test/test_generators.py (original)
+++ python/trunk/Lib/test/test_generators.py Mon Dec 3 21:01:02 2007
@@ -1658,6 +1658,19 @@
exiting
+GeneratorExit is not caught by except Exception:
+
+>>> def f():
+... try: yield
+... except Exception: print 'except'
+... finally: print 'finally'
+
+>>> g = f()
+>>> g.next()
+>>> del g
+finally
+
+
Now let's try some ill-behaved generators:
>>> def f():
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Mon Dec 3 21:01:02 2007
@@ -305,6 +305,8 @@
- Bug #1664966: Fix crash in exec if Unicode filename can't be decoded.
+- Issue #1537: Changed GeneratorExit's base class from Exception to BaseException.
+
Library
-------
Modified: python/trunk/Objects/exceptions.c
==============================================================================
--- python/trunk/Objects/exceptions.c (original)
+++ python/trunk/Objects/exceptions.c Mon Dec 3 21:01:02 2007
@@ -437,9 +437,9 @@
/*
- * GeneratorExit extends Exception
+ * GeneratorExit extends BaseException
*/
-SimpleExtendsException(PyExc_Exception, GeneratorExit,
+SimpleExtendsException(PyExc_BaseException, GeneratorExit,
"Request that a generator exit.");
From python-checkins at python.org Mon Dec 3 21:02:23 2007
From: python-checkins at python.org (erik.forsberg)
Date: Mon, 3 Dec 2007 21:02:23 +0100 (CET)
Subject: [Python-checkins] r59301 -
tracker/instances/python-dev/html/page.html
Message-ID: <20071203200223.1F3D11E4009@bag.python.org>
Author: erik.forsberg
Date: Mon Dec 3 21:02:22 2007
New Revision: 59301
Modified:
tracker/instances/python-dev/html/page.html
Log:
Fix issue170, "Pagination sticks around when switching queries".
Modified: tracker/instances/python-dev/html/page.html
==============================================================================
--- tracker/instances/python-dev/html/page.html (original)
+++ tracker/instances/python-dev/html/page.html Mon Dec 3 21:02:22 2007
@@ -150,6 +150,7 @@
'status': status_notresolved,
'assignee': request.user.id,
'@dispname': i18n.gettext('Your Issues'),
+ '@startwith': 0,
})"
i18n:translate="">Your Issues
From python-checkins at python.org Mon Dec 3 21:03:47 2007
From: python-checkins at python.org (georg.brandl)
Date: Mon, 3 Dec 2007 21:03:47 +0100 (CET)
Subject: [Python-checkins] r59302 -
python/trunk/Doc/library/simplexmlrpcserver.rst
python/trunk/Doc/library/xmlrpclib.rst
Message-ID: <20071203200347.1269B1E4029@bag.python.org>
Author: georg.brandl
Date: Mon Dec 3 21:03:46 2007
New Revision: 59302
Modified:
python/trunk/Doc/library/simplexmlrpcserver.rst
python/trunk/Doc/library/xmlrpclib.rst
Log:
Add examples to the xmlrpclib docs.
Written for GHOP by Josip Dzolonga.
Modified: python/trunk/Doc/library/simplexmlrpcserver.rst
==============================================================================
--- python/trunk/Doc/library/simplexmlrpcserver.rst (original)
+++ python/trunk/Doc/library/simplexmlrpcserver.rst Mon Dec 3 21:03:46 2007
@@ -129,7 +129,11 @@
.. versionadded:: 2.5
-Example::
+.. _simplexmlrpcserver-example:
+
+SimpleXMLRPCServer Example
+^^^^^^^^^^^^^^^^^^^^^^^^^^
+Server code::
from SimpleXMLRPCServer import SimpleXMLRPCServer
@@ -157,7 +161,7 @@
# Run the server's main loop
server.serve_forever()
-The following client code will call the methods made available by the preceding
+The following client code will call the methods made available by the preceding
server::
import xmlrpclib
Modified: python/trunk/Doc/library/xmlrpclib.rst
==============================================================================
--- python/trunk/Doc/library/xmlrpclib.rst (original)
+++ python/trunk/Doc/library/xmlrpclib.rst Mon Dec 3 21:03:46 2007
@@ -202,6 +202,26 @@
Write the XML-RPC encoding of this Boolean item to the out stream object.
+A working example follows. The server code::
+
+ import xmlrpclib
+ from SimpleXMLRPCServer import SimpleXMLRPCServer
+
+ def is_even(n):
+ return n%2 == 0
+
+ server = SimpleXMLRPCServer(("localhost", 8000))
+ print "Listening on port 8000..."
+ server.register_function(is_even, "is_even")
+ server.serve_forever()
+
+The client code for the preceding server::
+
+ import xmlrpclib
+
+ proxy = xmlrpclib.ServerProxy("http://localhost:8000/")
+ print "3 is even: %s" % str(proxy.is_even(3))
+ print "100 is even: %s" % str(proxy.is_even(100))
.. _datetime-objects:
@@ -227,6 +247,32 @@
It also supports certain of Python's built-in operators through :meth:`__cmp__`
and :meth:`__repr__` methods.
+A working example follows. The server code::
+
+ import datetime
+ from SimpleXMLRPCServer import SimpleXMLRPCServer
+ import xmlrpclib
+
+ def today():
+ today = datetime.datetime.today()
+ return xmlrpclib.DateTime(today)
+
+ server = SimpleXMLRPCServer(("localhost", 8000))
+ print "Listening on port 8000..."
+ server.register_function(today, "today")
+ server.serve_forever()
+
+The client code for the preceding server::
+
+ import xmlrpclib
+ import datetime
+
+ proxy = xmlrpclib.ServerProxy("http://localhost:8000/")
+
+ today = proxy.today()
+ # convert the ISO8601 string to a datetime object
+ converted = datetime.datetime.strptime(today.value, "%Y%m%dT%H:%M:%S")
+ print "Today: %s" % converted.strftime("%d.%m.%Y, %H:%M")
.. _binary-objects:
@@ -259,6 +305,31 @@
It also supports certain of Python's built-in operators through a
:meth:`__cmp__` method.
+Example usage of the binary objects. We're going to transfer an image over
+XMLRPC::
+
+ from SimpleXMLRPCServer import SimpleXMLRPCServer
+ import xmlrpclib
+
+ def python_logo():
+ handle = open("python_logo.jpg")
+ return xmlrpclib.Binary(handle.read())
+ handle.close()
+
+ server = SimpleXMLRPCServer(("localhost", 8000))
+ print "Listening on port 8000..."
+ server.register_function(python_logo, 'python_logo')
+
+ server.serve_forever()
+
+The client gets the image and saves it to a file::
+
+ import xmlrpclib
+
+ proxy = xmlrpclib.ServerProxy("http://localhost:8000/")
+ handle = open("fetched_python_logo.jpg", "w")
+ handle.write(proxy.python_logo().data)
+ handle.close()
.. _fault-objects:
@@ -278,6 +349,35 @@
A string containing a diagnostic message associated with the fault.
+In the following example we're going to intentionally cause a :exc:`Fault` by
+returning a complex type object. The server code::
+
+ from SimpleXMLRPCServer import SimpleXMLRPCServer
+
+ # A marshalling error is going to occur because we're returning a
+ # complex number
+ def add(x,y):
+ return x+y+0j
+
+ server = SimpleXMLRPCServer(("localhost", 8000))
+ print "Listening on port 8000..."
+ server.register_function(add, 'add')
+
+ server.serve_forever()
+
+The client code for the preceding server::
+
+ import xmlrpclib
+
+ proxy = xmlrpclib.ServerProxy("http://localhost:8000/")
+ try:
+ proxy.add(2, 5)
+ except xmlrpclib.Fault, err:
+ print "A fault occured"
+ print "Fault code: %d" % err.faultCode
+ print "Fault string: %s" % err.faultString
+
+
.. _protocol-error-objects:
@@ -309,6 +409,22 @@
A string containing the headers of the HTTP/HTTPS request that triggered the
error.
+In the following example we're going to intentionally cause a :exc:`ProtocolError`
+by providing an invalid URI::
+
+ import xmlrpclib
+
+ # create a ServerProxy with an invalid URI
+ proxy = xmlrpclib.ServerProxy("http://invalidaddress/")
+
+ try:
+ proxy.some_method()
+ except xmlrpclib.ProtocolError, err:
+ print "A protocol error occured"
+ print "URL: %s" % err.url
+ print "HTTP/HTTPS headers: %s" % err.headers
+ print "Error code: %d" % err.errcode
+ print "Error message: %s" % err.errmsg
MultiCall Objects
-----------------
@@ -329,12 +445,45 @@
is a :term:`generator`; iterating over this generator yields the individual
results.
-A usage example of this class is ::
+A usage example of this class follows. The server code ::
+
+ from SimpleXMLRPCServer import SimpleXMLRPCServer
+
+ def add(x,y):
+ return x+y
- multicall = MultiCall(server_proxy)
- multicall.add(2,3)
- multicall.get_address("Guido")
- add_result, address = multicall()
+ def subtract(x, y):
+ return x-y
+
+ def multiply(x, y):
+ return x*y
+
+ def divide(x, y):
+ return x/y
+
+ # A simple server with simple arithmetic functions
+ server = SimpleXMLRPCServer(("localhost", 8000))
+ print "Listening on port 8000..."
+ server.register_multicall_functions()
+ server.register_function(add, 'add')
+ server.register_function(subtract, 'subtract')
+ server.register_function(multiply, 'multiply')
+ server.register_function(divide, 'divide')
+ server.serve_forever()
+
+The client code for the preceding server::
+
+ import xmlrpclib
+
+ proxy = xmlrpclib.ServerProxy("http://localhost:8000/")
+ multicall = xmlrpclib.MultiCall(proxy)
+ multicall.add(7,3)
+ multicall.subtract(7,3)
+ multicall.multiply(7,3)
+ multicall.divide(7,3)
+ result = multicall()
+
+ print "7+3=%d, 7-3=%d, 7*3=%d, 7/3=%d" % tuple(result)
Convenience Functions
@@ -422,3 +571,10 @@
server = xmlrpclib.Server('http://time.xmlrpc.com/RPC2', transport=p)
print server.currentTime.getCurrentTime()
+
+Example of Client and Server Usage
+----------------------------------
+
+See :ref:`simplexmlrpcserver-example`.
+
+
From buildbot at python.org Mon Dec 3 21:13:29 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 20:13:29 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc 3.0
Message-ID: <20071203201329.56B9D1E4009@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%203.0/builds/394
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_generators
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 21:14:39 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 20:14:39 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo 3.0
Message-ID: <20071203201440.24D071E401E@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%203.0/builds/255
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_generators
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 21:21:54 2007
From: python-checkins at python.org (erik.forsberg)
Date: Mon, 3 Dec 2007 21:21:54 +0100 (CET)
Subject: [Python-checkins] r59303 -
tracker/instances/python-dev/html/page.html
Message-ID: <20071203202154.DC8341E4009@bag.python.org>
Author: erik.forsberg
Date: Mon Dec 3 21:21:54 2007
New Revision: 59303
Modified:
tracker/instances/python-dev/html/page.html
Log:
Fix issue170 for 'show all' and 'show unassigned' as well.
Modified: tracker/instances/python-dev/html/page.html
==============================================================================
--- tracker/instances/python-dev/html/page.html (original)
+++ tracker/instances/python-dev/html/page.html Mon Dec 3 21:21:54 2007
@@ -81,6 +81,7 @@
'@search_text': '',
'status': status_notresolved,
'@dispname': i18n.gettext('Show All'),
+ '@startwith': 0,
})"
i18n:translate="">Show Open
Show Unassigned
From buildbot at python.org Mon Dec 3 21:30:36 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 20:30:36 +0000
Subject: [Python-checkins] buildbot failure in sparc solaris10 gcc 3.0
Message-ID: <20071203203036.CB2B51E5066@bag.python.org>
The Buildbot has detected a new failure of sparc solaris10 gcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/sparc%20solaris10%20gcc%203.0/builds/360
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-sun
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_generators
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 22:08:57 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 21:08:57 +0000
Subject: [Python-checkins] buildbot failure in g4 osx.4 3.0
Message-ID: <20071203210857.E17721E4034@bag.python.org>
The Buildbot has detected a new failure of g4 osx.4 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/g4%20osx.4%203.0/builds/316
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: psf-g4
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_generators
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 22:14:13 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 21:14:13 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable trunk
Message-ID: <20071203211413.B58171E4010@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%20trunk/builds/404
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,facundo.batista,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '1000-1000-1000-1000-1000'
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '0002-0002-0002-0002-0002'
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '2000-2000-2000-2000-2000'
1 test failed:
test_xmlrpc
======================================================================
ERROR: test_fail_no_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 497, in test_fail_no_info
p.pow(6,8)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1157, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1447, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1195, in request
errcode, errmsg, headers = h.getreply()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 1006, in getreply
response = self._conn.getresponse()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 932, in getresponse
response.begin()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 415, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 271, in readheaders
line = self.fp.readline()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/socket.py", line 351, in readline
data = recv(1)
error: [Errno 104] Connection reset by peer
======================================================================
ERROR: test_fail_with_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 517, in test_fail_with_info
p.pow(6,8)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1157, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1447, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1195, in request
errcode, errmsg, headers = h.getreply()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 1006, in getreply
response = self._conn.getresponse()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 932, in getresponse
response.begin()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 415, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 271, in readheaders
line = self.fp.readline()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/socket.py", line 351, in readline
data = recv(1)
error: [Errno 104] Connection reset by peer
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 22:15:12 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 21:15:12 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071203211512.A41691E40EB@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/342
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_generators
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 22:26:05 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 21:26:05 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071203212606.220B01E40CB@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/321
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_generators
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 22:26:47 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 21:26:47 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc 3.0
Message-ID: <20071203212648.099C51E4179@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%203.0/builds/396
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_runpy
======================================================================
ERROR: test_main_relative_import (test.test_runpy.RunModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/test/test_runpy.py", line 245, in test_main_relative_import
self._check_relative_imports(depth, "__main__")
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/test/test_runpy.py", line 213, in _check_relative_imports
d1 = run_module(mod_name, run_name=run_name) # Read from source
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/runpy.py", line 123, in run_module
fname, loader, pkg_name)
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/runpy.py", line 34, in _run_code
exec(code, run_globals)
File "/tmp/tmpzMo3Ap/__runpy_pkg__/__runpy_pkg__/runpy_test.py", line 3, in
ValueError: Attempted relative import in non-package
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 22:28:28 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 21:28:28 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo 3.0
Message-ID: <20071203212828.B04141E4010@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%203.0/builds/257
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_runpy
======================================================================
ERROR: test_main_relative_import (test.test_runpy.RunModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/test/test_runpy.py", line 245, in test_main_relative_import
self._check_relative_imports(depth, "__main__")
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/test/test_runpy.py", line 213, in _check_relative_imports
d1 = run_module(mod_name, run_name=run_name) # Read from source
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/runpy.py", line 123, in run_module
fname, loader, pkg_name)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/runpy.py", line 34, in _run_code
exec(code, run_globals)
File "/tmp/tmp7XT3mi/__runpy_pkg__/__runpy_pkg__/runpy_test.py", line 3, in
ValueError: Attempted relative import in non-package
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 22:28:41 2007
From: python-checkins at python.org (andrew.kuchling)
Date: Mon, 3 Dec 2007 22:28:41 +0100 (CET)
Subject: [Python-checkins] r59306 - python/trunk/Doc/whatsnew/2.6.rst
Message-ID: <20071203212841.5C54A1E4010@bag.python.org>
Author: andrew.kuchling
Date: Mon Dec 3 22:28:41 2007
New Revision: 59306
Modified:
python/trunk/Doc/whatsnew/2.6.rst
Log:
Grammar fix
Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst (original)
+++ python/trunk/Doc/whatsnew/2.6.rst Mon Dec 3 22:28:41 2007
@@ -108,7 +108,7 @@
The previous version, Python 2.5, added the ':keyword:`with`'
statement an optional feature, to be enabled by a ``from __future__
-import with_statement`` directive. In 2.6 the statement no longer need to
+import with_statement`` directive. In 2.6 the statement no longer needs to
be specially enabled; this means that :keyword:`with` is now always a
keyword. The rest of this section is a copy of the corresponding
section from "What's New in Python 2.5" document; if you read
From buildbot at python.org Mon Dec 3 22:46:45 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 21:46:45 +0000
Subject: [Python-checkins] buildbot failure in sparc solaris10 gcc 3.0
Message-ID: <20071203214645.44B5F1E4010@bag.python.org>
The Buildbot has detected a new failure of sparc solaris10 gcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/sparc%20solaris10%20gcc%203.0/builds/362
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-sun
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_runpy
======================================================================
ERROR: test_main_relative_import (test.test_runpy.RunModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/test/test_runpy.py", line 245, in test_main_relative_import
self._check_relative_imports(depth, "__main__")
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/test/test_runpy.py", line 213, in _check_relative_imports
d1 = run_module(mod_name, run_name=run_name) # Read from source
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/runpy.py", line 123, in run_module
fname, loader, pkg_name)
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/runpy.py", line 34, in _run_code
exec(code, run_globals)
File "/tmp/tmpeJEaMU/__runpy_pkg__/__runpy_pkg__/runpy_test.py", line 3, in
ValueError: Attempted relative import in non-package
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 23:02:10 2007
From: python-checkins at python.org (guido.van.rossum)
Date: Mon, 3 Dec 2007 23:02:10 +0100 (CET)
Subject: [Python-checkins] r59307 - python/trunk/Objects/complexobject.c
Message-ID: <20071203220210.EBAAF1E428C@bag.python.org>
Author: guido.van.rossum
Date: Mon Dec 3 23:02:10 2007
New Revision: 59307
Modified:
python/trunk/Objects/complexobject.c
Log:
Shut up a compiler warning.
Modified: python/trunk/Objects/complexobject.c
==============================================================================
--- python/trunk/Objects/complexobject.c (original)
+++ python/trunk/Objects/complexobject.c Mon Dec 3 23:02:10 2007
@@ -1003,6 +1003,7 @@
return NULL;
}
cr.real = PyFloat_AsDouble(tmp);
+ cr.imag = 0.0; /* Shut up compiler warning */
Py_DECREF(tmp);
}
if (i == NULL) {
From buildbot at python.org Mon Dec 3 23:09:27 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 22:09:27 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-4 trunk
Message-ID: <20071203220927.D62991E4029@bag.python.org>
The Buildbot has detected a new failure of x86 XP-4 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-4%20trunk/builds/248
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: andrew.kuchling,guido.van.rossum
BUILD FAILED: failed failed slave lost
sincerely,
-The Buildbot
From buildbot at python.org Mon Dec 3 23:27:24 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 22:27:24 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071203222725.175451E402A@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/341
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,facundo.batista,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 23:32:46 2007
From: python-checkins at python.org (georg.brandl)
Date: Mon, 3 Dec 2007 23:32:46 +0100 (CET)
Subject: [Python-checkins] r59308 -
doctools/trunk/sphinx/templates/genindex.html
Message-ID: <20071203223246.C70361E401A@bag.python.org>
Author: georg.brandl
Date: Mon Dec 3 23:32:46 2007
New Revision: 59308
Modified:
doctools/trunk/sphinx/templates/genindex.html
Log:
Add missing escape filter.
Modified: doctools/trunk/sphinx/templates/genindex.html
==============================================================================
--- doctools/trunk/sphinx/templates/genindex.html (original)
+++ doctools/trunk/sphinx/templates/genindex.html Mon Dec 3 23:32:46 2007
@@ -21,7 +21,7 @@
{%- if links -%}{{ entryname|e }}
{%- for link in links[1:] %}, [Link]{% endfor -%}
{%- else -%}
-{{ entryname }}
+{{ entryname|e }}
{%- endif -%}
{%- if subitems %}
From buildbot at python.org Mon Dec 3 23:33:32 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 22:33:32 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-3 trunk
Message-ID: <20071203223332.C48011E4027@bag.python.org>
The Buildbot has detected a new failure of x86 XP-3 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-3%20trunk/builds/453
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: andrew.kuchling,guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_urllibnet
sincerely,
-The Buildbot
From python-checkins at python.org Mon Dec 3 23:38:25 2007
From: python-checkins at python.org (georg.brandl)
Date: Mon, 3 Dec 2007 23:38:25 +0100 (CET)
Subject: [Python-checkins] r59309 - in doctools/trunk/sphinx: builder.py
directives.py environment.py htmlwriter.py util/__init__.py
writer.py
Message-ID: <20071203223825.ED8971E4010@bag.python.org>
Author: georg.brandl
Date: Mon Dec 3 23:38:25 2007
New Revision: 59309
Added:
doctools/trunk/sphinx/htmlwriter.py
- copied, changed from r58585, doctools/trunk/sphinx/writer.py
Removed:
doctools/trunk/sphinx/writer.py
Modified:
doctools/trunk/sphinx/builder.py
doctools/trunk/sphinx/directives.py
doctools/trunk/sphinx/environment.py
doctools/trunk/sphinx/util/__init__.py
Log:
Apply Tim Golden's patch from #1520, which resolves confusion between
file paths and relative URIs so that building on Windows is flawlessly
possible.
Modified: doctools/trunk/sphinx/builder.py
==============================================================================
--- doctools/trunk/sphinx/builder.py (original)
+++ doctools/trunk/sphinx/builder.py Mon Dec 3 23:38:25 2007
@@ -27,13 +27,15 @@
from docutils.frontend import OptionParser
from .util import (get_matching_files, attrdict, status_iterator,
- ensuredir, get_category, relative_uri)
-from .writer import HTMLWriter
-from .util.console import bold, purple, green
+ ensuredir, get_category, relative_uri,
+ webify_filepath, unwebify_filepath)
from .htmlhelp import build_hhx
from .patchlevel import get_version_info, get_sys_version_info
+from .htmlwriter import HTMLWriter
+#from .latexwriter import LaTeXWriter
from .environment import BuildEnvironment
from .highlighting import pygments, get_stylesheet
+from .util.console import bold, purple, green
# side effect: registers roles and directives
from . import roles
@@ -234,7 +236,7 @@
# build all
filenames_set = set(self.env.all_files)
- self.prepare_writing(filenames)
+ self.prepare_writing(filenames_set)
# write target files
with collect_env_warnings(self):
@@ -483,12 +485,12 @@
self.srcdir, '*.rst', exclude=set(self.config.get('unused_files', ()))):
try:
targetmtime = path.getmtime(path.join(self.outdir,
- filename[:-4] + '.html'))
+ unwebify_filepath(filename)[:-4] + '.html'))
except:
targetmtime = 0
if filename not in self.env.all_files:
yield filename
- elif path.getmtime(path.join(self.srcdir, filename)) > targetmtime:
+ elif path.getmtime(path.join(self.srcdir, unwebify_filepath(filename))) > targetmtime:
yield filename
@@ -513,7 +515,7 @@
ctx = self.globalcontext.copy()
ctx.update(context)
output = self.templates[templatename].render(ctx)
- outfilename = path.join(self.outdir, filename[:-4] + '.html')
+ outfilename = path.join(self.outdir, unwebify_filepath(filename)[:-4] + '.html')
ensuredir(path.dirname(outfilename)) # normally different from self.outdir
try:
with codecs.open(outfilename, 'w', 'utf-8') as fp:
@@ -522,7 +524,7 @@
print >>self.warning_stream, "Error writing file %s: %s" % (outfilename, err)
if self.copysource and context.get('sourcename'):
# copy the source file for the "show source" link
- shutil.copyfile(path.join(self.srcdir, filename),
+ shutil.copyfile(path.join(self.srcdir, unwebify_filepath(filename)),
path.join(self.outdir, context['sourcename']))
def handle_finish(self):
@@ -547,10 +549,10 @@
self.srcdir, '*.rst', exclude=set(self.config.get('unused_files', ()))):
try:
targetmtime = path.getmtime(path.join(self.outdir,
- filename[:-4] + '.fpickle'))
+ unwebify_filepath(filename)[:-4] + '.fpickle'))
except:
targetmtime = 0
- if path.getmtime(path.join(self.srcdir, filename)) > targetmtime:
+ if path.getmtime(path.join(self.srcdir, unwebify_filepath(filename))) > targetmtime:
yield filename
def get_target_uri(self, source_filename):
@@ -577,7 +579,7 @@
self.indexer.feed(filename, category, title, doctree)
def handle_file(self, filename, context, templatename='page'):
- outfilename = path.join(self.outdir, filename[:-4] + '.fpickle')
+ outfilename = path.join(self.outdir, unwebify_filepath(filename)[:-4] + '.fpickle')
ensuredir(path.dirname(outfilename))
context.pop('pathto', None) # can't be pickled
with file(outfilename, 'wb') as fp:
@@ -587,7 +589,7 @@
if context.get('sourcename'):
source_name = path.join(self.outdir, 'sources', context['sourcename'])
ensuredir(path.dirname(source_name))
- shutil.copyfile(path.join(self.srcdir, filename), source_name)
+ shutil.copyfile(path.join(self.srcdir, unwebify_filepath(filename)), source_name)
def handle_finish(self):
# dump the global context
@@ -632,8 +634,43 @@
build_hhx(self, self.outdir, self.options.get('outname') or 'pydoc')
+class LaTeXBuilder(Builder):
+ """
+ Builds LaTeX output to create PDF.
+ """
+ name = 'latex'
+
+ def init(self):
+ pass
+
+ def get_outdated_files(self):
+ # always rebuild everything for now
+ return self.env.all_files
+
+ def get_target_uri(self, source_filename):
+ # XXX: returns nothing for now
+ return ''
+
+ def prepare_writing(self, filenames):
+ self.docwriter = LaTeXWriter(self.config, self.name)
+ self.docsettings = OptionParser(
+ defaults=self.env.settings,
+ components=(self.docwriter,)).get_default_values()
+
+
+ def write_file(self, filename, doctree):
+ destination = StringOutput(encoding='utf-8')
+ doctree.settings = self.docsettings
+ output = self.docwriter.write(doctree, destination)
+ print output
+
+ def finish(self):
+ pass
+
+
builders = {
'html': StandaloneHTMLBuilder,
'web': WebHTMLBuilder,
'htmlhelp': HTMLHelpBuilder,
+# 'latex': LaTeXBuilder,
}
Modified: doctools/trunk/sphinx/directives.py
==============================================================================
--- doctools/trunk/sphinx/directives.py (original)
+++ doctools/trunk/sphinx/directives.py Mon Dec 3 23:38:25 2007
@@ -19,6 +19,7 @@
from docutils.parsers.rst.directives import admonitions
from . import addnodes
+from .util import webify_filepath, unwebify_filepath
# ------ index markup --------------------------------------------------------------
@@ -554,7 +555,8 @@
subnode = addnodes.toctree()
includefiles = filter(None, content)
# absolutize filenames
- includefiles = map(lambda x: path.normpath(path.join(dirname, x)), includefiles)
+ includefiles = [webify_filepath(path.normpath(path.join (dirname, x))) for x in includefiles]
+ #~ includefiles = map(lambda x: path.normpath(path.join(dirname, x)), includefiles)
subnode['includefiles'] = includefiles
subnode['maxdepth'] = options.get('maxdepth', -1)
return [subnode]
@@ -599,9 +601,9 @@
return [state.document.reporter.warning('File insertion disabled', line=lineno)]
env = state.document.settings.env
fn = arguments[0]
- source_dir = path.dirname(path.abspath(state_machine.input_lines.source(
- lineno - state_machine.input_offset - 1)))
- fn = path.normpath(path.join(source_dir, fn))
+ source_dir = webify_filepath(path.dirname(path.abspath(state_machine.input_lines.source(
+ lineno - state_machine.input_offset - 1))))
+ fn = webify_filepath(path.normpath(path.join(source_dir, fn)))
try:
with open(fn) as f:
Modified: doctools/trunk/sphinx/environment.py
==============================================================================
--- doctools/trunk/sphinx/environment.py (original)
+++ doctools/trunk/sphinx/environment.py Mon Dec 3 23:38:25 2007
@@ -38,7 +38,7 @@
Body.enum.converters['upperroman'] = lambda x: None
from . import addnodes
-from .util import get_matching_files
+from .util import get_matching_files, unwebify_filepath, WEB_SEP
from .refcounting import Refcounts
default_settings = {
@@ -278,11 +278,11 @@
else:
# if the doctree file is not there, rebuild
if not path.isfile(path.join(self.doctreedir,
- filename[:-3] + 'doctree')):
+ unwebify_filepath(filename)[:-3] + 'doctree')):
changed.append(filename)
continue
mtime, md5 = self.all_files[filename]
- newmtime = path.getmtime(path.join(self.srcdir, filename))
+ newmtime = path.getmtime(path.join(self.srcdir, unwebify_filepath(filename)))
if newmtime == mtime:
continue
# check the MD5
@@ -297,6 +297,8 @@
"""
(Re-)read all files new or changed since last update.
Yields a summary and then filenames as it processes them.
+ Store all environment filenames as webified (ie using "/"
+ as a separator in place of os.path.sep).
"""
added, changed, removed = self.get_outdated_files(config)
msg = '%s added, %s changed, %s removed' % (len(added), len(changed),
@@ -329,7 +331,7 @@
self.clear_file(filename)
if src_path is None:
- src_path = path.join(self.srcdir, filename)
+ src_path = path.join(self.srcdir, unwebify_filepath(filename))
self.filename = filename
doctree = publish_doctree(None, src_path, FileInput,
@@ -360,7 +362,7 @@
if save_parsed:
# save the parsed doctree
- doctree_filename = path.join(self.doctreedir, filename[:-3] + 'doctree')
+ doctree_filename = path.join(self.doctreedir, unwebify_filepath(filename)[:-3] + 'doctree')
dirname = path.dirname(doctree_filename)
if not path.isdir(dirname):
os.makedirs(dirname)
@@ -516,7 +518,7 @@
def get_doctree(self, filename):
"""Read the doctree for a file from the pickle and return it."""
- doctree_filename = path.join(self.doctreedir, filename[:-3] + 'doctree')
+ doctree_filename = path.join(self.doctreedir, unwebify_filepath(filename)[:-3] + 'doctree')
with file(doctree_filename, 'rb') as f:
doctree = pickle.load(f)
doctree.reporter = Reporter(filename, 2, 4, stream=self.warning_stream)
@@ -862,6 +864,6 @@
filename. This also resolves the special `index.rst` files. If the file
does not exist the return value will be `None`.
"""
- for rstname in filename + '.rst', filename + path.sep + 'index.rst':
+ for rstname in filename + '.rst', filename + WEB_SEP + 'index.rst':
if rstname in self.all_files:
return rstname
Copied: doctools/trunk/sphinx/htmlwriter.py (from r58585, doctools/trunk/sphinx/writer.py)
==============================================================================
--- doctools/trunk/sphinx/writer.py (original)
+++ doctools/trunk/sphinx/htmlwriter.py Mon Dec 3 23:38:25 2007
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
- sphinx.writer
- ~~~~~~~~~~~~~
+ sphinx.htmlwriter
+ ~~~~~~~~~~~~~~~~~
docutils writers handling Sphinx' custom nodes.
Modified: doctools/trunk/sphinx/util/__init__.py
==============================================================================
--- doctools/trunk/sphinx/util/__init__.py (original)
+++ doctools/trunk/sphinx/util/__init__.py Mon Dec 3 23:38:25 2007
@@ -15,17 +15,35 @@
from os import path
+#
+# Define WEB_SEP as a manifest constant, not
+# so much because we expect it to change in
+# the future as to avoid the suspicion that
+# a stray "/" in the code is a hangover from
+# more *nix-oriented origins.
+#
+WEB_SEP = "/"
+
+
+def webify_filepath(filepath):
+ return filepath.replace(os.path.sep, WEB_SEP)
+
+
+def unwebify_filepath(webpath):
+ return webpath.replace(WEB_SEP, os.path.sep)
+
+
def relative_uri(base, to):
"""Return a relative URL from ``base`` to ``to``."""
- b2 = base.split('/')
- t2 = to.split('/')
+ b2 = base.split(WEB_SEP)
+ t2 = to.split(WEB_SEP)
# remove common segments
for x, y in zip(b2, t2):
if x != y:
break
b2.pop(0)
t2.pop(0)
- return '../' * (len(b2)-1) + '/'.join(t2)
+ return ('..' + WEB_SEP) * (len(b2)-1) + WEB_SEP.join(t2)
def ensuredir(path):
@@ -60,12 +78,12 @@
qualified_name = path.join(root[dirlen:], sfile)
if qualified_name in exclude:
continue
- yield qualified_name
+ yield webify_filepath(qualified_name)
def get_category(filename):
"""Get the "category" part of a RST filename."""
- parts = filename.split('/', 1)
+ parts = filename.split(WEB_SEP, 1)
if len(parts) < 2:
return
return parts[0]
Deleted: /doctools/trunk/sphinx/writer.py
==============================================================================
--- /doctools/trunk/sphinx/writer.py Mon Dec 3 23:38:25 2007
+++ (empty file)
@@ -1,292 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
- sphinx.writer
- ~~~~~~~~~~~~~
-
- docutils writers handling Sphinx' custom nodes.
-
- :copyright: 2007 by Georg Brandl.
- :license: Python license.
-"""
-
-from docutils import nodes
-from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator
-
-from .util.smartypants import sphinx_smarty_pants
-
-
-class HTMLWriter(Writer):
- def __init__(self, config, buildername):
- Writer.__init__(self)
- self.translator_class = translator_class(config, buildername)
-
-
-version_text = {
- 'deprecated': 'Deprecated in version %s',
- 'versionchanged': 'Changed in version %s',
- 'versionadded': 'New in version %s',
-}
-
-def translator_class(config, buildername):
- class HTMLTranslator(BaseTranslator):
- """
- Our custom HTML translator.
- """
-
- def __init__(self, *args, **kwds):
- self.no_smarty = 0
- BaseTranslator.__init__(self, *args, **kwds)
- self.highlightlang = 'python'
- self.language.labels['warning'] = 'Caveat'
-
- def visit_desc(self, node):
- self.body.append(self.starttag(node, 'dl', CLASS=node['desctype']))
- def depart_desc(self, node):
- self.body.append('
\n\n')
-
- def visit_desc_signature(self, node):
- # the id is set automatically
- self.body.append(self.starttag(node, 'dt'))
- # anchor for per-desc interactive data
- if node.parent['desctype'] != 'describe' and node['ids'] and node['first']:
- self.body.append('' % node['ids'][0])
- if node.parent['desctype'] in ('class', 'exception'):
- self.body.append('%s ' % node.parent['desctype'])
- def depart_desc_signature(self, node):
- if node['ids'] and buildername != 'htmlhelp':
- self.body.append(u'')
- self.body.append('\n')
-
- def visit_desc_classname(self, node):
- self.body.append(self.starttag(node, 'tt', '', CLASS='descclassname'))
- def depart_desc_classname(self, node):
- self.body.append('')
-
- def visit_desc_name(self, node):
- self.body.append(self.starttag(node, 'tt', '', CLASS='descname'))
- def depart_desc_name(self, node):
- self.body.append('')
-
- def visit_desc_parameterlist(self, node):
- self.body.append('(')
- self.first_param = 1
- def depart_desc_parameterlist(self, node):
- self.body.append(')')
-
- def visit_desc_parameter(self, node):
- if not self.first_param:
- self.body.append(', ')
- else:
- self.first_param = 0
- if not node.hasattr('noemph'):
- self.body.append('')
- def depart_desc_parameter(self, node):
- if not node.hasattr('noemph'):
- self.body.append('')
-
- def visit_desc_optional(self, node):
- self.body.append('[')
- def depart_desc_optional(self, node):
- self.body.append(']')
-
- def visit_desc_content(self, node):
- self.body.append(self.starttag(node, 'dd', ''))
- def depart_desc_content(self, node):
- self.body.append('')
-
- def visit_refcount(self, node):
- self.body.append(self.starttag(node, 'em', '', CLASS='refcount'))
- def depart_refcount(self, node):
- self.body.append('')
-
- def visit_versionmodified(self, node):
- self.body.append(self.starttag(node, 'p'))
- text = version_text[node['type']] % node['version']
- if len(node):
- text += ': '
- else:
- text += '.'
- self.body.append('%s' % text)
- def depart_versionmodified(self, node):
- self.body.append('
\n')
-
- # overwritten
- def visit_reference(self, node):
- BaseTranslator.visit_reference(self, node)
- if node.hasattr('reftitle'):
- # ugly hack to add a title attribute
- starttag = self.body[-1]
- if not starttag.startswith('\n' % h_level)
- else:
- BaseTranslator.visit_title(self, node, move_ids)
-
- # overwritten
- def visit_literal_block(self, node):
- from .highlighting import highlight_block
- self.body.append(highlight_block(node.rawsource, self.highlightlang))
- raise nodes.SkipNode
-
- # overwritten
- def visit_literal(self, node):
- if len(node.children) == 1 and \
- node.children[0] in ('None', 'True', 'False'):
- node['classes'].append('xref')
- BaseTranslator.visit_literal(self, node)
-
- def visit_productionlist(self, node):
- self.body.append(self.starttag(node, 'pre'))
- names = []
- for production in node:
- names.append(production['tokenname'])
- maxlen = max(len(name) for name in names)
- for production in node:
- if production['tokenname']:
- self.body.append(self.starttag(production, 'strong', ''))
- self.body.append(production['tokenname'].ljust(maxlen) +
- ' ::= ')
- lastname = production['tokenname']
- else:
- self.body.append('%s ' % (' '*len(lastname)))
- production.walkabout(self)
- self.body.append('\n')
- self.body.append('\n')
- raise nodes.SkipNode
- def depart_productionlist(self, node):
- pass
-
- def visit_production(self, node):
- pass
- def depart_production(self, node):
- pass
-
- def visit_centered(self, node):
- self.body.append(self.starttag(node, 'p', CLASS="centered") + '')
- def depart_centered(self, node):
- self.body.append('')
-
- def visit_compact_paragraph(self, node):
- pass
- def depart_compact_paragraph(self, node):
- pass
-
- def visit_highlightlang(self, node):
- self.highlightlang = node['lang']
- def depart_highlightlang(self, node):
- pass
-
- def visit_toctree(self, node):
- # this only happens when formatting a toc from env.tocs -- in this
- # case we don't want to include the subtree
- raise nodes.SkipNode
-
- def visit_index(self, node):
- raise nodes.SkipNode
-
- def visit_glossary(self, node):
- pass
- def depart_glossary(self, node):
- pass
-
- # these are only handled specially in the SmartyPantsHTMLTranslator
- def visit_literal_emphasis(self, node):
- return self.visit_emphasis(node)
- def depart_literal_emphasis(self, node):
- return self.depart_emphasis(node)
-
- def depart_title(self, node):
- close_tag = self.context[-1]
- if buildername != 'htmlhelp' and \
- close_tag.startswith(('\u00B6')
- BaseTranslator.depart_title(self, node)
-
-
- class SmartyPantsHTMLTranslator(HTMLTranslator):
- """
- Handle ordinary text via smartypants, converting quotes and dashes
- to the correct entities.
- """
-
- def __init__(self, *args, **kwds):
- self.no_smarty = 0
- HTMLTranslator.__init__(self, *args, **kwds)
-
- def visit_literal(self, node):
- self.no_smarty += 1
- try:
- # this raises SkipNode
- HTMLTranslator.visit_literal(self, node)
- finally:
- self.no_smarty -= 1
-
- def visit_literal_emphasis(self, node):
- self.no_smarty += 1
- self.visit_emphasis(node)
-
- def depart_literal_emphasis(self, node):
- self.depart_emphasis(node)
- self.no_smarty -= 1
-
- def visit_desc_signature(self, node):
- self.no_smarty += 1
- HTMLTranslator.visit_desc_signature(self, node)
-
- def depart_desc_signature(self, node):
- self.no_smarty -= 1
- HTMLTranslator.depart_desc_signature(self, node)
-
- def visit_productionlist(self, node):
- self.no_smarty += 1
- try:
- HTMLTranslator.visit_productionlist(self, node)
- finally:
- self.no_smarty -= 1
-
- def encode(self, text):
- text = HTMLTranslator.encode(self, text)
- if self.no_smarty <= 0:
- text = sphinx_smarty_pants(text)
- return text
-
- if config.get('use_smartypants', False):
- return SmartyPantsHTMLTranslator
- else:
- return HTMLTranslator
From python-checkins at python.org Mon Dec 3 23:39:10 2007
From: python-checkins at python.org (martin.v.loewis)
Date: Mon, 3 Dec 2007 23:39:10 +0100 (CET)
Subject: [Python-checkins] r59310 - in python/branches/release25-maint:
Misc/NEWS Modules/posixmodule.c
Message-ID: <20071203223910.780321E4010@bag.python.org>
Author: martin.v.loewis
Date: Mon Dec 3 23:39:10 2007
New Revision: 59310
Modified:
python/branches/release25-maint/Misc/NEWS
python/branches/release25-maint/Modules/posixmodule.c
Log:
os.access now returns True on Windows for any existing directory.
Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS (original)
+++ python/branches/release25-maint/Misc/NEWS Mon Dec 3 23:39:10 2007
@@ -46,6 +46,8 @@
Library
-------
+- os.access now returns True on Windows for any existing directory.
+
- Issue #1531: tarfile.py: Read fileobj from the current offset, do not
seek to the start.
Modified: python/branches/release25-maint/Modules/posixmodule.c
==============================================================================
--- python/branches/release25-maint/Modules/posixmodule.c (original)
+++ python/branches/release25-maint/Modules/posixmodule.c Mon Dec 3 23:39:10 2007
@@ -1535,8 +1535,11 @@
/* File does not exist, or cannot read attributes */
return PyBool_FromLong(0);
/* Access is possible if either write access wasn't requested, or
- the file isn't read-only. */
- return PyBool_FromLong(!(mode & 2) || !(attr & FILE_ATTRIBUTE_READONLY));
+ the file isn't read-only, or if it's a directory, as there are
+ no read-only directories on Windows. */
+ return PyBool_FromLong(!(mode & 2)
+ || !(attr & FILE_ATTRIBUTE_READONLY)
+ || (attr & FILE_ATTRIBUTE_DIRECTORY));
#else
int res;
if (!PyArg_ParseTuple(args, "eti:access",
From buildbot at python.org Tue Dec 4 00:00:43 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 23:00:43 +0000
Subject: [Python-checkins] buildbot failure in amd64 XP 3.0
Message-ID: <20071203230043.C28581E401A@bag.python.org>
The Buildbot has detected a new failure of amd64 XP 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%203.0/builds/349
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: georg.brandl,guido.van.rossum
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Tue Dec 4 00:04:05 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 23:04:05 +0000
Subject: [Python-checkins] buildbot failure in x86 gentoo trunk
Message-ID: <20071203230405.808031E402E@bag.python.org>
The Buildbot has detected a new failure of x86 gentoo trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20gentoo%20trunk/builds/2678
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-x86
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: andrew.kuchling,guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From python-checkins at python.org Tue Dec 4 00:09:04 2007
From: python-checkins at python.org (martin.v.loewis)
Date: Tue, 4 Dec 2007 00:09:04 +0100 (CET)
Subject: [Python-checkins] r59312 - in python/trunk: Misc/NEWS
Modules/posixmodule.c
Message-ID: <20071203230904.896801E4010@bag.python.org>
Author: martin.v.loewis
Date: Tue Dec 4 00:09:04 2007
New Revision: 59312
Modified:
python/trunk/Misc/NEWS
python/trunk/Modules/posixmodule.c
Log:
Forward-port r59310:
os.access now returns True on Windows for any existing directory.
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Tue Dec 4 00:09:04 2007
@@ -310,6 +310,8 @@
Library
-------
+- os.access now returns True on Windows for any existing directory.
+
- Issue #1727780: Support loading pickles of random.Random objects created
on 32-bit systems on 64-bit systems, and vice versa. As a consequence
of the change, Random pickles created by Python 2.6 cannot be loaded
Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c (original)
+++ python/trunk/Modules/posixmodule.c Tue Dec 4 00:09:04 2007
@@ -1540,8 +1540,11 @@
/* File does not exist, or cannot read attributes */
return PyBool_FromLong(0);
/* Access is possible if either write access wasn't requested, or
- the file isn't read-only. */
- return PyBool_FromLong(!(mode & 2) || !(attr & FILE_ATTRIBUTE_READONLY));
+ the file isn't read-only, or if it's a directory, as there are
+ no read-only directories on Windows. */
+ return PyBool_FromLong(!(mode & 2)
+ || !(attr & FILE_ATTRIBUTE_READONLY)
+ || (attr & FILE_ATTRIBUTE_DIRECTORY));
#else
int res;
if (!PyArg_ParseTuple(args, "eti:access",
From buildbot at python.org Tue Dec 4 00:56:41 2007
From: buildbot at python.org (buildbot at python.org)
Date: Mon, 03 Dec 2007 23:56:41 +0000
Subject: [Python-checkins] buildbot failure in alpha Tru64 5.1 2.5
Message-ID: <20071203235641.911FC1E4012@bag.python.org>
The Buildbot has detected a new failure of alpha Tru64 5.1 2.5.
Full details are available at:
http://www.python.org/dev/buildbot/all/alpha%20Tru64%205.1%202.5/builds/370
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-tru64
Build Reason:
Build Source Stamp: [branch branches/release25-maint] HEAD
Blamelist: martin.v.loewis
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_socket
======================================================================
FAIL: testInterruptedTimeout (test.test_socket.TCPTimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/net/taipan/scratch1/nnorwitz/python/2.5.norwitz-tru64/build/Lib/test/test_socket.py", line 879, in testInterruptedTimeout
self.fail("got Alarm in wrong place")
AssertionError: got Alarm in wrong place
sincerely,
-The Buildbot
From buildbot at python.org Tue Dec 4 01:06:27 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 00:06:27 +0000
Subject: [Python-checkins] buildbot failure in x86 FreeBSD trunk
Message-ID: <20071204000627.B22DF1E4015@bag.python.org>
The Buildbot has detected a new failure of x86 FreeBSD trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%20trunk/builds/231
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-freebsd
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: andrew.kuchling,guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 222, in handle_request
self.process_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 241, in process_request
self.finish_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 523, in __init__
self.handle()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 299, in handle_one_request
self.raw_requestline = self.rfile.readline()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/socket.py", line 366, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 35] Resource temporarily unavailable
1 test failed:
test_xmlrpc
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 222, in handle_request
self.process_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 241, in process_request
self.finish_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 523, in __init__
self.handle()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 299, in handle_one_request
self.raw_requestline = self.rfile.readline()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/socket.py", line 366, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 35] Resource temporarily unavailable
sincerely,
-The Buildbot
From python-checkins at python.org Tue Dec 4 09:38:00 2007
From: python-checkins at python.org (martin.v.loewis)
Date: Tue, 4 Dec 2007 09:38:00 +0100 (CET)
Subject: [Python-checkins] r59317 - python/trunk/configure
python/trunk/configure.in
Message-ID: <20071204083800.578561E4011@bag.python.org>
Author: martin.v.loewis
Date: Tue Dec 4 09:37:59 2007
New Revision: 59317
Modified:
python/trunk/configure
python/trunk/configure.in
Log:
Fix chflags issue on Tru64, from #1490190.
Modified: python/trunk/configure
==============================================================================
--- python/trunk/configure (original)
+++ python/trunk/configure Tue Dec 4 09:37:59 2007
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 58784 .
+# From configure.in Revision: 59242 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.6.
#
@@ -15227,13 +15227,11 @@
-
-
-for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \
+for ac_func in alarm bind_textdomain_codeset chown clock confstr \
ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
getpriority getpwent getspnam getspent getsid getwd \
- kill killpg lchflags lchmod lchown lstat mkfifo mknod mktime \
+ kill killpg lchmod lchown lstat mkfifo mknod mktime \
mremap nice pathconf pause plock poll pthread_init \
putenv readlink realpath \
select setegid seteuid setgid \
@@ -15997,6 +15995,144 @@
fi
+# On Tru64, chflags seems to be present, but calling it will
+# exit Python
+{ echo "$as_me:$LINENO: checking for chflags" >&5
+echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
+if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#include
+#include
+int main(int argc, char*argv[])
+{
+ if(chflags(argv[0], 0) != 0)
+ return 1;
+ return 0;
+}
+
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_CHFLAGS 1
+_ACEOF
+
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+{ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+
+{ echo "$as_me:$LINENO: checking for lchflags" >&5
+echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
+if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#include
+#include
+int main(int argc, char*argv[])
+{
+ if(lchflags(argv[0], 0) != 0)
+ return 1;
+ return 0;
+}
+
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LCHFLAGS 1
+_ACEOF
+
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+{ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+
case $ac_sys_system/$ac_sys_release in
Darwin/*)
_CUR_CFLAGS="${CFLAGS}"
Modified: python/trunk/configure.in
==============================================================================
--- python/trunk/configure.in (original)
+++ python/trunk/configure.in Tue Dec 4 09:37:59 2007
@@ -2303,11 +2303,11 @@
AC_MSG_RESULT(MACHDEP_OBJS)
# checks for library functions
-AC_CHECK_FUNCS(alarm bind_textdomain_codeset chflags chown clock confstr \
+AC_CHECK_FUNCS(alarm bind_textdomain_codeset chown clock confstr \
ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
getpriority getpwent getspnam getspent getsid getwd \
- kill killpg lchflags lchmod lchown lstat mkfifo mknod mktime \
+ kill killpg lchmod lchown lstat mkfifo mknod mktime \
mremap nice pathconf pause plock poll pthread_init \
putenv readlink realpath \
select setegid seteuid setgid \
@@ -2400,6 +2400,38 @@
AC_CHECK_LIB(resolv, inet_aton)
)
+# On Tru64, chflags seems to be present, but calling it will
+# exit Python
+AC_MSG_CHECKING(for chflags)
+AC_TRY_RUN([
+#include
+#include
+int main(int argc, char*argv[])
+{
+ if(chflags(argv[0], 0) != 0)
+ return 1;
+ return 0;
+}
+],AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no)
+)
+
+AC_MSG_CHECKING(for lchflags)
+AC_TRY_RUN([
+#include
+#include
+int main(int argc, char*argv[])
+{
+ if(lchflags(argv[0], 0) != 0)
+ return 1;
+ return 0;
+}
+],AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no)
+)
+
dnl Check if system zlib has *Copy() functions
dnl
dnl On MacOSX the linker will search for dylibs on the entire linker path
From python-checkins at python.org Tue Dec 4 09:39:16 2007
From: python-checkins at python.org (martin.v.loewis)
Date: Tue, 4 Dec 2007 09:39:16 +0100 (CET)
Subject: [Python-checkins] r59318 - python/trunk/Misc/NEWS
Message-ID: <20071204083916.798821E4011@bag.python.org>
Author: martin.v.loewis
Date: Tue Dec 4 09:39:16 2007
New Revision: 59318
Modified:
python/trunk/Misc/NEWS
Log:
Move nt.access change into the right section.
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Tue Dec 4 09:39:16 2007
@@ -310,8 +310,6 @@
Library
-------
-- os.access now returns True on Windows for any existing directory.
-
- Issue #1727780: Support loading pickles of random.Random objects created
on 32-bit systems on 64-bit systems, and vice versa. As a consequence
of the change, Random pickles created by Python 2.6 cannot be loaded
@@ -873,6 +871,8 @@
Extension Modules
-----------------
+- os.access now returns True on Windows for any existing directory.
+
- Added warnpy3k function to the warnings module.
- Marshal.dumps() now expects exact type matches for int, long, float, complex,
From buildbot at python.org Tue Dec 4 10:33:08 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 09:33:08 +0000
Subject: [Python-checkins] buildbot failure in x86 gentoo trunk
Message-ID: <20071204093308.590CD1E4017@bag.python.org>
The Buildbot has detected a new failure of x86 gentoo trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20gentoo%20trunk/builds/2680
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-x86
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: martin.v.loewis
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From python-checkins at python.org Tue Dec 4 15:57:30 2007
From: python-checkins at python.org (christian.heimes)
Date: Tue, 4 Dec 2007 15:57:30 +0100 (CET)
Subject: [Python-checkins] r59320 - python/trunk/Tools/msi/msi.py
Message-ID: <20071204145730.5BEDC1E4012@bag.python.org>
Author: christian.heimes
Date: Tue Dec 4 15:57:30 2007
New Revision: 59320
Modified:
python/trunk/Tools/msi/msi.py
Log:
Added self generated UUID for msvcr90.dll to msi.py
Readded a missing line.
Modified: python/trunk/Tools/msi/msi.py
==============================================================================
--- python/trunk/Tools/msi/msi.py (original)
+++ python/trunk/Tools/msi/msi.py Tue Dec 4 15:57:30 2007
@@ -1,7 +1,7 @@
# Python MSI Generator
# (C) 2003 Martin v. Loewis
# See "FOO" in comments refers to MSDN sections with the title FOO.
-import msilib, schema, sequence, os, glob, time, re
+import msilib, schema, sequence, os, glob, time, re, shutil
from msilib import Feature, CAB, Directory, Dialog, Binary, add_data
import uisample
from win32com.client import constants
@@ -26,6 +26,12 @@
have_tcl = True
# Where is sqlite3.dll located, relative to srcdir?
sqlite_dir = "../sqlite-source-3.3.4"
+# path to PCbuild directory
+PCBUILD="PCbuild"
+#PCBUILD="PCbuild9"
+# msvcrt version
+MSVCR = "71"
+#MSVCR = "90"
try:
from config import *
@@ -100,7 +106,9 @@
# from 1 to 2 (due to what I consider a bug in MSI)
# Using the same UUID is fine since these files are versioned,
# so Installer will always keep the newest version.
+# NOTE: All uuids are self generated.
msvcr71_uuid = "{8666C8DD-D0B4-4B42-928E-A69E32FA5D4D}"
+msvcr90_uuid = "{9C28CD84-397C-4045-855C-28B02291A272}"
pythondll_uuid = {
"24":"{9B81E618-2301-4035-AC77-75D9ABEB7301}",
"25":"{2e41b118-38bd-4c1b-a840-6977efd1b911}",
@@ -146,15 +154,15 @@
return True
# Target files (.def and .a) go in PCBuild directory
-lib_file = os.path.join(srcdir, "PCBuild", "python%s%s.lib" % (major, minor))
-def_file = os.path.join(srcdir, "PCBuild", "python%s%s.def" % (major, minor))
+lib_file = os.path.join(srcdir, PCBUILD, "python%s%s.lib" % (major, minor))
+def_file = os.path.join(srcdir, PCBUILD, "python%s%s.def" % (major, minor))
dll_file = "python%s%s.dll" % (major, minor)
-mingw_lib = os.path.join(srcdir, "PCBuild", "libpython%s%s.a" % (major, minor))
+mingw_lib = os.path.join(srcdir, PCBUILD, "libpython%s%s.a" % (major, minor))
have_mingw = build_mingw_lib(lib_file, def_file, dll_file, mingw_lib)
# Determine the target architechture
-dll_path = os.path.join(srcdir, "PCBuild", dll_file)
+dll_path = os.path.join(srcdir, PCBUILD, dll_file)
msilib.set_arch_from_file(dll_path)
if msilib.pe_type(dll_path) != msilib.pe_type("msisupport.dll"):
raise SystemError, "msisupport.dll for incorrect architecture"
@@ -326,7 +334,7 @@
if not os.path.exists(srcdir+r"\PC\python_icon.exe"):
raise "Run icons.mak in PC directory"
add_data(db, "Binary",
- [("PythonWin", msilib.Binary(srcdir+r"\PCbuild\installer.bmp")), # 152x328 pixels
+ [("PythonWin", msilib.Binary(r"%s\%s\installer.bmp" % (srcdir, PCBUILD))), # 152x328 pixels
("py.ico",msilib.Binary(srcdir+r"\PC\py.ico")),
])
add_data(db, "Icon",
@@ -816,7 +824,7 @@
dir = _winreg.QueryValueEx(k, "MSMDir")[0]
_winreg.CloseKey(k)
files = glob.glob1(dir, "*CRT71*")
- assert len(files) == 1
+ assert len(files) == 1, (dir, files)
file = os.path.join(dir, files[0])
# Extract msvcr71.dll
m = msilib.MakeMerge2()
@@ -828,6 +836,31 @@
return installer.FileVersion("msvcr71.dll", 0), \
installer.FileVersion("msvcr71.dll", 1)
+def extract_msvcr90():
+ import _winreg
+ # Find the location of the merge modules
+ k = _winreg.OpenKey(
+ _winreg.HKEY_LOCAL_MACHINE,
+ r"Software\Microsoft\VisualStudio\9.0\Setup\VS")
+ prod_dir = _winreg.QueryValueEx(k, "ProductDir")[0]
+ _winreg.CloseKey(k)
+
+ # Copy msvcr90*
+ dir = os.path.join(prod_dir, r'VC\redist\x86\Microsoft.VC90.CRT')
+ files = glob.glob1(dir, "*CRT*.dll") + glob.glob1(dir, "*VCR*.dll")
+ for file in files:
+ shutil.copy(os.path.join(dir, file), '.')
+
+ dir = os.path.join(prod_dir, r'VC\redist\Debug_NonRedist\x86\Microsoft.VC90.DebugCRT')
+ files = glob.glob1(dir, "*CRT*.dll") + glob.glob1(dir, "*VCR*.dll")
+ for file in files:
+ shutil.copy(os.path.join(dir, file), '.')
+
+ # Find the version/language of msvcr90.dll
+ installer = msilib.MakeInstaller()
+ return installer.FileVersion("msvcr90.dll", 0), \
+ installer.FileVersion("msvcr90.dll", 1)
+
class PyDirectory(Directory):
"""By default, all components in the Python installer
can run from source."""
@@ -845,19 +878,19 @@
root = PyDirectory(db, cab, None, srcdir, "TARGETDIR", "SourceDir")
default_feature.set_current()
if not msilib.Win64:
- root.add_file("PCBuild/w9xpopen.exe")
+ root.add_file("%s/w9xpopen.exe" % PCBUILD)
root.add_file("README.txt", src="README")
root.add_file("NEWS.txt", src="Misc/NEWS")
root.add_file("LICENSE.txt", src="LICENSE")
root.start_component("python.exe", keyfile="python.exe")
- root.add_file("PCBuild/python.exe")
+ root.add_file("%s/python.exe" % PCBUILD)
root.start_component("pythonw.exe", keyfile="pythonw.exe")
- root.add_file("PCBuild/pythonw.exe")
+ root.add_file("%s/pythonw.exe" % PCBUILD)
# msidbComponentAttributesSharedDllRefCount = 8, see "Component Table"
dlldir = PyDirectory(db, cab, root, srcdir, "DLLDIR", ".")
pydll = "python%s%s.dll" % (major, minor)
- pydllsrc = srcdir + "/PCBuild/" + pydll
+ pydllsrc = os.path.join(srcdir, PCBUILD, pydll)
dlldir.start_component("DLLDIR", flags = 8, keyfile = pydll, uuid = pythondll_uuid)
installer = msilib.MakeInstaller()
pyversion = installer.FileVersion(pydllsrc, 0)
@@ -865,18 +898,28 @@
# For releases, the Python DLL has the same version as the
# installer package.
assert pyversion.split(".")[:3] == current_version.split(".")
- dlldir.add_file("PCBuild/python%s%s.dll" % (major, minor),
+ dlldir.add_file("%s/python%s%s.dll" % (PCBUILD, major, minor),
version=pyversion,
language=installer.FileVersion(pydllsrc, 1))
# XXX determine dependencies
- version, lang = extract_msvcr71()
- dlldir.start_component("msvcr71", flags=8, keyfile="msvcr71.dll", uuid=msvcr71_uuid)
- dlldir.add_file("msvcr71.dll", src=os.path.abspath("msvcr71.dll"),
- version=version, language=lang)
- tmpfiles.append("msvcr71.dll")
+ if MSVCR == "90":
+ version, lang = extract_msvcr90()
+ dlldir.start_component("msvcr90", flags=8, keyfile="msvcr90.dll",
+ uuid=msvcr90_uuid)
+ dlldir.add_file("msvcr90.dll", src=os.path.abspath("msvcr90.dll"),
+ version=version, language=lang)
+ tmpfiles.append("msvcr90.dll")
+ else:
+ version, lang = extract_msvcr71()
+ dlldir.start_component("msvcr71", flags=8, keyfile="msvcr71.dll",
+ uuid=msvcr71_uuid)
+ dlldir.add_file("msvcr71.dll", src=os.path.abspath("msvcr71.dll"),
+ version=version, language=lang)
+ tmpfiles.append("msvcr71.dll")
+
# Check if _ctypes.pyd exists
- have_ctypes = os.path.exists(srcdir+"/PCBuild/_ctypes.pyd")
+ have_ctypes = os.path.exists(srcdir+"/%s/_ctypes.pyd" % PCBUILD)
if not have_ctypes:
print "WARNING: _ctypes.pyd not found, ctypes will not be included"
extensions.remove("_ctypes.pyd")
@@ -964,7 +1007,7 @@
pydirs.append((lib, f))
# Add DLLs
default_feature.set_current()
- lib = PyDirectory(db, cab, root, srcdir+"/PCBuild", "DLLs", "DLLS|DLLs")
+ lib = PyDirectory(db, cab, root, srcdir + "/" + PCBUILD, "DLLs", "DLLS|DLLs")
lib.add_file("py.ico", src="../PC/py.ico")
lib.add_file("pyc.ico", src="../PC/pyc.ico")
dlls = []
@@ -972,7 +1015,7 @@
for f in extensions:
if f=="_tkinter.pyd":
continue
- if not os.path.exists(srcdir+"/PCBuild/"+f):
+ if not os.path.exists(srcdir + "/" + PCBUILD + "/" + f):
print "WARNING: Missing extension", f
continue
dlls.append(f)
@@ -986,7 +1029,7 @@
sqlite_arch = ""
lib.add_file(srcdir+"/"+sqlite_dir+sqlite_arch+"/sqlite3.dll")
if have_tcl:
- if not os.path.exists(srcdir+"/PCBuild/_tkinter.pyd"):
+ if not os.path.exists("%s/%s/_tkinter.pyd" % (srcdir, PCBUILD)):
print "WARNING: Missing _tkinter.pyd"
else:
lib.start_component("TkDLLs", tcltk)
@@ -996,7 +1039,7 @@
for f in glob.glob1(tcldir, "*.dll"):
lib.add_file(f, src=os.path.join(tcldir, f))
# check whether there are any unknown extensions
- for f in glob.glob1(srcdir+"/PCBuild", "*.pyd"):
+ for f in glob.glob1(srcdir+"/"+PCBUILD, "*.pyd"):
if f.endswith("_d.pyd"): continue # debug version
if f in dlls: continue
print "WARNING: Unknown extension", f
@@ -1007,7 +1050,7 @@
lib.glob("*.h")
lib.add_file("pyconfig.h", src="../PC/pyconfig.h")
# Add import libraries
- lib = PyDirectory(db, cab, root, "PCBuild", "libs", "LIBS|libs")
+ lib = PyDirectory(db, cab, root, PCBUILD, "libs", "LIBS|libs")
for f in dlls:
lib.add_file(f.replace('pyd','lib'))
lib.add_file('python%s%s.lib' % (major, minor))
From python-checkins at python.org Tue Dec 4 16:52:14 2007
From: python-checkins at python.org (christian.heimes)
Date: Tue, 4 Dec 2007 16:52:14 +0100 (CET)
Subject: [Python-checkins] r59322 - python/trunk/Tools/msi/msilib.py
Message-ID: <20071204155214.BB5BB1E4012@bag.python.org>
Author: christian.heimes
Date: Tue Dec 4 16:52:14 2007
New Revision: 59322
Modified:
python/trunk/Tools/msi/msilib.py
Log:
Added VS 2005 and VS 2008 to the search path for cabarc.exe
Modified: python/trunk/Tools/msi/msilib.py
==============================================================================
--- python/trunk/Tools/msi/msilib.py (original)
+++ python/trunk/Tools/msi/msilib.py Tue Dec 4 16:52:14 2007
@@ -376,14 +376,19 @@
except OSError:
pass
for k, v in [(r"Software\Microsoft\VisualStudio\7.1\Setup\VS", "VS7CommonBinDir"),
- (r"Software\Microsoft\Win32SDK\Directories", "Install Dir")]:
+ (r"Software\Microsoft\VisualStudio\8.0\Setup\VS", "VS7CommonBinDir"),
+ (r"Software\Microsoft\VisualStudio\9.0\Setup\VS", "VS7CommonBinDir"),
+ (r"Software\Microsoft\Win32SDK\Directories", "Install Dir"),
+ ]:
try:
key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, k)
- except WindowsError:
+ dir = _winreg.QueryValueEx(key, v)[0]
+ _winreg.CloseKey(key)
+ except (WindowsError, IndexError):
+ continue
+ cabarc = os.path.join(dir, r"Bin", "cabarc.exe")
+ if not os.path.exists(cabarc):
continue
- cabarc = os.path.join(_winreg.QueryValueEx(key, v)[0], r"Bin", "cabarc.exe")
- _winreg.CloseKey(key)
- if not os.path.exists(cabarc):continue
break
else:
print "WARNING: cabarc.exe not found in registry"
From python-checkins at python.org Tue Dec 4 17:10:03 2007
From: python-checkins at python.org (georg.brandl)
Date: Tue, 4 Dec 2007 17:10:03 +0100 (CET)
Subject: [Python-checkins] r59324 - python/trunk/Doc/using/index.rst
python/trunk/Doc/using/unix.rst python/trunk/Doc/using/windows.rst
Message-ID: <20071204161003.778741E4023@bag.python.org>
Author: georg.brandl
Date: Tue Dec 4 17:10:02 2007
New Revision: 59324
Added:
python/trunk/Doc/using/unix.rst
Modified:
python/trunk/Doc/using/index.rst
python/trunk/Doc/using/windows.rst
Log:
Add "Python on Unix" document, mostly written for GHOP
by Shriphani Palakodety.
Modified: python/trunk/Doc/using/index.rst
==============================================================================
--- python/trunk/Doc/using/index.rst (original)
+++ python/trunk/Doc/using/index.rst Tue Dec 4 17:10:02 2007
@@ -13,6 +13,7 @@
.. toctree::
cmdline.rst
+ unix.rst
windows.rst
mac.rst
Added: python/trunk/Doc/using/unix.rst
==============================================================================
--- (empty file)
+++ python/trunk/Doc/using/unix.rst Tue Dec 4 17:10:02 2007
@@ -0,0 +1,145 @@
+.. highlightlang:: none
+
+.. _using-on-windows:
+
+********************************
+ Using Python on Unix platforms
+********************************
+
+.. sectionauthor:: Shriphani Palakodety
+
+
+Getting and installing the latest version of Python
+===================================================
+
+On Linux
+--------
+
+Python comes preinstalled on most Linux distributions, and is available as a
+package on all others. However there are certain features you might want to use
+that are not available on your distro's package. You can easily compile the
+latest version of Python from source.
+
+In the event Python doesn't come preinstalled and isn't in the repositories as
+well, you can easily make packages for your own distro. Have a look at the
+following links:
+
+.. seealso::
+
+ http://www.linux.com/articles/60383
+ for Debian users
+ http://linuxmafia.com/pub/linux/suse-linux-internals/chapter35.html
+ for OpenSuse users
+ http://docs.fedoraproject.org/drafts/rpm-guide-en/ch-creating-rpms.html
+ for Fedora users
+ http://www.slackbook.org/html/package-management-making-packages.html
+ for Slackware users
+
+
+On FreeBSD and OpenBSD
+----------------------
+
+* FreeBSD users, to add the package use::
+
+ pkg_add -r python
+
+* OpenBSD users use::
+
+ pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages//python-.tgz
+
+ For example i386 users get the 2.5.1 version of Python using::
+
+ pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/python-2.5.1p2.tgz
+
+
+On OpenSolaris
+--------------
+
+To install the newest Python versions on OpenSolaris, install blastwave
+(http://www.blastwave.org/howto.html) and type "pkg_get -i python" at the
+prompt.
+
+
+Building Python
+===============
+
+If you want to compile CPython yourself, first thing you should do is get the
+`source `_. You can download either the
+latest release's source or just grab a fresh `checkout
+`_.
+
+The build process consists the usual ::
+
+ ./configure
+ make
+ make install
+
+invocations. Configuration options and caveats for specific Unix platforms are
+extensively documented in the :file:`README` file in the root of the Python
+source tree.
+
+
+Python-related paths and files
+==============================
+
+These are subject to difference depending on local installation conventions;
+:envvar:`prefix` (``${prefix}``) and :envvar:`exec_prefix` (``${exec_prefix}``)
+are installation-dependent and should be interpreted as for GNU software; they
+may be the same.
+
+For example, on most Linux systems, the default for both is :file:`/usr`.
+
++-----------------------------------------------+------------------------------------------+
+| File/directory | Meaning |
++===============================================+==========================================+
+| :file:`{exec_prefix}/bin/python` | Recommended location of the interpreter. |
++-----------------------------------------------+------------------------------------------+
+| :file:`{prefix}/lib/python{version}`, | Recommended locations of the directories |
+| :file:`{exec_prefix}/lib/python{version}` | containing the standard modules. |
++-----------------------------------------------+------------------------------------------+
+| :file:`{prefix}/include/python{version}`, | Recommended locations of the directories |
+| :file:`{exec_prefix}/include/python{version}` | containing the include files needed for |
+| | developing Python extensions and |
+| | embedding the interpreter. |
++-----------------------------------------------+------------------------------------------+
+| :file:`~/.pythonrc.py` | User-specific initialization file loaded |
+| | by the user module; not used by default |
+| | or by most applications. |
++-----------------------------------------------+------------------------------------------+
+
+
+Miscellaneous
+=============
+
+To easily use Python scripts on Unix, you need to make them executable,
+e.g. with ::
+
+ $ chmod +x script
+
+and put an appropriate Shebang line at the top of the script. A good choice is
+usually ::
+
+ #!/usr/bin/env python
+
+which searches for the Python interpreter in the whole :envvar:`PATH`. However,
+some Unices may not have the :program:`env` command, so you may need to hardcode
+``/usr/bin/python`` as the interpreter path.
+
+To use shell commands in your python scripts, look at the :mod:`subprocess` module.
+
+
+Editors
+=======
+
+Vim and Emacs are excellent editors which support Python very well. For more
+information on how to code in python in these editors, look at:
+
+http://www.vim.org/scripts/script.php?script_id=790
+http://sourceforge.net/projects/python-mode
+
+Geany is an excellent IDE with support for a lot of languages. For more
+information, read: http://geany.uvena.de/
+
+Komodo edit is another extremely good IDE. It also has support for a lot of
+languages. For more information, read:
+http://www.activestate.com/store/productdetail.aspx?prdGuid=20f4ed15-6684-4118-a78b-d37ff4058c5f
Modified: python/trunk/Doc/using/windows.rst
==============================================================================
--- python/trunk/Doc/using/windows.rst (original)
+++ python/trunk/Doc/using/windows.rst Tue Dec 4 17:10:02 2007
@@ -260,8 +260,7 @@
If you want to compile CPython yourself, first thing you should do is get the
`source `_. You can download either the
latest release's source or just grab a fresh `checkout
-`_.
+`_.
For Microsoft Visual C++, which is the compiler with which official Python
releases are built, the source tree contains solutions/project files. View the
From buildbot at python.org Tue Dec 4 17:11:04 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 16:11:04 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable 3.0
Message-ID: <20071204161104.8B8941E4023@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%203.0/builds/343
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
======================================================================
ERROR: test_fail_no_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 423, in test_fail_no_info
p.pow(6,8)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1121, in request
resp = http_conn.getresponse()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 961, in getresponse
response.begin()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 425, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 267, in readheaders
line = str(self.fp.readline(), "iso-8859-1")
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 401, in readline
b = self.read(nreadahead())
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 463, in read
n = self.readinto(b)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/socket.py", line 215, in readinto
return self._sock.recv_into(b)
socket.error: [Errno 104] Connection reset by peer
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Tue Dec 4 17:31:54 2007
From: python-checkins at python.org (facundo.batista)
Date: Tue, 4 Dec 2007 17:31:54 +0100 (CET)
Subject: [Python-checkins] r59325 - python/trunk/Lib/decimal.py
Message-ID: <20071204163154.1870F1E4016@bag.python.org>
Author: facundo.batista
Date: Tue Dec 4 17:31:53 2007
New Revision: 59325
Modified:
python/trunk/Lib/decimal.py
Log:
fma speedup by avoiding to create a Context. Thanks Mark Dickinson.
Modified: python/trunk/Lib/decimal.py
==============================================================================
--- python/trunk/Lib/decimal.py (original)
+++ python/trunk/Lib/decimal.py Tue Dec 4 17:31:53 2007
@@ -1636,24 +1636,39 @@
"""
other = _convert_other(other, raiseit=True)
- third = _convert_other(third, raiseit=True)
-
- if context is None:
- context = getcontext()
- # do self*other in fresh context with no traps and no rounding
- mul_context = Context(traps=[], flags=[],
- _rounding_decision=NEVER_ROUND)
- product = self.__mul__(other, mul_context)
-
- if mul_context.flags[InvalidOperation]:
- # reraise in current context
- return context._raise_error(InvalidOperation,
- 'invalid multiplication in fma',
- 1, product)
+ # compute product; raise InvalidOperation if either operand is
+ # a signaling NaN or if the product is zero times infinity.
+ if self._is_special or other._is_special:
+ if context is None:
+ context = getcontext()
+ if self._exp == 'N':
+ return context._raise_error(InvalidOperation, 'sNaN',
+ 1, self)
+ if other._exp == 'N':
+ return context._raise_error(InvalidOperation, 'sNaN',
+ 1, other)
+ if self._exp == 'n':
+ product = self
+ elif other._exp == 'n':
+ product = other
+ elif self._exp == 'F':
+ if not other:
+ return context._raise_error(InvalidOperation,
+ 'INF * 0 in fma')
+ product = Infsign[self._sign ^ other._sign]
+ elif other._exp == 'F':
+ if not self:
+ return context._raise_error(InvalidOperation,
+ '0 * INF in fma')
+ product = Infsign[self._sign ^ other._sign]
+ else:
+ product = _dec_from_triple(self._sign ^ other._sign,
+ str(int(self._int) * int(other._int)),
+ self._exp + other._exp)
- ans = product.__add__(third, context)
- return ans
+ third = _convert_other(third, raiseit=True)
+ return product.__add__(third, context)
def _power_modulo(self, other, modulo, context=None):
"""Three argument version of __pow__"""
From buildbot at python.org Tue Dec 4 17:35:53 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 16:35:53 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071204163553.531D21E4025@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/345
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_bsddb3 test_urllib2net
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Tue Dec 4 17:36:20 2007
From: python-checkins at python.org (christian.heimes)
Date: Tue, 4 Dec 2007 17:36:20 +0100 (CET)
Subject: [Python-checkins] r59326 - python/trunk/Doc/using/unix.rst
Message-ID: <20071204163620.981621E401E@bag.python.org>
Author: christian.heimes
Date: Tue Dec 4 17:36:20 2007
New Revision: 59326
Modified:
python/trunk/Doc/using/unix.rst
Log:
Added warning that make install may overwrite or masquerade the default python binary. Use make altinstall instead.
A native English speaker may want to rephrase the paragraph. ;)
Modified: python/trunk/Doc/using/unix.rst
==============================================================================
--- python/trunk/Doc/using/unix.rst (original)
+++ python/trunk/Doc/using/unix.rst Tue Dec 4 17:36:20 2007
@@ -78,6 +78,11 @@
extensively documented in the :file:`README` file in the root of the Python
source tree.
+.. warning::
+ ``make install`` can overwrite or masquerade the :file:`python` binary;
+ ``make altinstall`` is recommended instead of ``make install`` since it
+ only install :file:`{exec_prefix}/bin/python{version}`.
+
Python-related paths and files
==============================
From python-checkins at python.org Tue Dec 4 17:50:28 2007
From: python-checkins at python.org (georg.brandl)
Date: Tue, 4 Dec 2007 17:50:28 +0100 (CET)
Subject: [Python-checkins] r59327 - python/trunk/Doc/using/unix.rst
Message-ID: <20071204165028.6CD971E4016@bag.python.org>
Author: georg.brandl
Date: Tue Dec 4 17:50:28 2007
New Revision: 59327
Modified:
python/trunk/Doc/using/unix.rst
Log:
Fix duplicate label and a typo.
Modified: python/trunk/Doc/using/unix.rst
==============================================================================
--- python/trunk/Doc/using/unix.rst (original)
+++ python/trunk/Doc/using/unix.rst Tue Dec 4 17:50:28 2007
@@ -1,6 +1,6 @@
.. highlightlang:: none
-.. _using-on-windows:
+.. _using-on-unix:
********************************
Using Python on Unix platforms
@@ -79,9 +79,10 @@
source tree.
.. warning::
- ``make install`` can overwrite or masquerade the :file:`python` binary;
- ``make altinstall`` is recommended instead of ``make install`` since it
- only install :file:`{exec_prefix}/bin/python{version}`.
+
+ ``make install`` can overwrite or masquerade the :file:`python` binary.
+ ``make altinstall`` is therefore recommended instead of ``make install``
+ since it only installs :file:`{exec_prefix}/bin/python{version}`.
Python-related paths and files
From python-checkins at python.org Tue Dec 4 18:11:02 2007
From: python-checkins at python.org (georg.brandl)
Date: Tue, 4 Dec 2007 18:11:02 +0100 (CET)
Subject: [Python-checkins] r59328 - doctools/trunk/sphinx/style/default.css
Message-ID: <20071204171102.A081C1E4016@bag.python.org>
Author: georg.brandl
Date: Tue Dec 4 18:11:02 2007
New Revision: 59328
Modified:
doctools/trunk/sphinx/style/default.css
Log:
#1555: fix print media stylesheet.
Modified: doctools/trunk/sphinx/style/default.css
==============================================================================
--- doctools/trunk/sphinx/style/default.css (original)
+++ doctools/trunk/sphinx/style/default.css Tue Dec 4 18:11:02 2007
@@ -783,8 +783,12 @@
width: 100%;
}
- div.body {
+ div.document,
+ div.documentwrapper,
+ div.bodywrapper,
+ div.body {
margin: 0;
+ width : 100%;
}
div.sidebar,
From buildbot at python.org Tue Dec 4 18:29:34 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 17:29:34 +0000
Subject: [Python-checkins] buildbot failure in amd64 XP trunk
Message-ID: <20071204172934.677561E4029@bag.python.org>
The Buildbot has detected a new failure of amd64 XP trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%20trunk/builds/396
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,facundo.batista,georg.brandl
BUILD FAILED: failed failed slave lost
sincerely,
-The Buildbot
From python-checkins at python.org Tue Dec 4 18:46:27 2007
From: python-checkins at python.org (georg.brandl)
Date: Tue, 4 Dec 2007 18:46:27 +0100 (CET)
Subject: [Python-checkins] r59329 - python/trunk/Doc/library/logging.rst
Message-ID: <20071204174628.212221E4016@bag.python.org>
Author: georg.brandl
Date: Tue Dec 4 18:46:27 2007
New Revision: 59329
Modified:
python/trunk/Doc/library/logging.rst
Log:
Add tutorial and examples to logging docs, from GHOP student "oscar8thegrouch".
Modified: python/trunk/Doc/library/logging.rst
==============================================================================
--- python/trunk/Doc/library/logging.rst (original)
+++ python/trunk/Doc/library/logging.rst Tue Dec 4 18:46:27 2007
@@ -9,10 +9,6 @@
.. sectionauthor:: Vinay Sajip
-.. % These apply to all modules, and may be given more than once:
-
-
-
.. index:: pair: Errors; logging
.. versionadded:: 2.3
@@ -36,6 +32,400 @@
constrained to use these levels: you can specify your own and use a more general
:class:`Logger` method, :meth:`log`, which takes an explicit level argument.
+
+Logging tutorial
+----------------
+
+The key benefit of having the logging API provided by a standard library module
+is that all Python modules can participate in logging, so your application log
+can include messages from third-party modules.
+
+It is, of course, possible to log messages with different verbosity levels or to
+different destinations. Support for writing log messages to files, HTTP
+GET/POST locations, email via SMTP, generic sockets, or OS-specific logging
+mechnisms are all supported by the standard module. You can also create your
+own log destination class if you have special requirements not met by any of the
+built-in classes.
+
+Simple examples
+^^^^^^^^^^^^^^^
+
+.. sectionauthor:: Doug Hellmann
+.. (see )
+
+Most applications are probably going to want to log to a file, so let's start
+with that case. Using the :func:`basicConfig` function, we can set up the
+default handler so that debug messages are written to a file::
+
+ import logging
+ LOG_FILENAME = '/tmp/logging_example.out'
+ logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG,)
+
+ logging.debug('This message should go to the log file')
+
+And now if we open the file and look at what we have, we should find the log
+message::
+
+ DEBUG:root:This message should go to the log file
+
+If you run the script repeatedly, the additional log messages are appended to
+the file. To create a new file each time, you can pass a filemode argument to
+:func:`basicConfig` with a value of ``'w'``. Rather than managing the file size
+yourself, though, it is simpler to use a :class:`RotatingFileHandler`::
+
+ import glob
+ import logging
+ import logging.handlers
+
+ LOG_FILENAME = '/tmp/logging_rotatingfile_example.out'
+
+ # Set up a specific logger with our desired output level
+ my_logger = logging.getLogger('MyLogger')
+ my_logger.setLevel(logging.DEBUG)
+
+ # Add the log message handler to the logger
+ handler = logging.handlers.RotatingFileHandler(
+ LOG_FILENAME, maxBytes=20, backupCount=5)
+
+ my_logger.addHandler(handler)
+
+ # Log some messages
+ for i in range(20):
+ my_logger.debug('i = %d' % i)
+
+ # See what files are created
+ logfiles = glob.glob('%s*' % LOG_FILENAME)
+
+ for filename in logfiles:
+ print filename
+
+The result should be 6 separate files, each with part of the log history for the
+application::
+
+ /tmp/logging_rotatingfile_example.out
+ /tmp/logging_rotatingfile_example.out.1
+ /tmp/logging_rotatingfile_example.out.2
+ /tmp/logging_rotatingfile_example.out.3
+ /tmp/logging_rotatingfile_example.out.4
+ /tmp/logging_rotatingfile_example.out.5
+
+The most current file is always :file:`/tmp/logging_rotatingfile_example.out`,
+and each time it reaches the size limit it is renamed with the suffix
+``.1``. Each of the existing backup files is renamed to increment the suffix
+(``.1`` becomes ``.2``, etc.) and the ``.5`` file is erased.
+
+Obviously this example sets the log length much much too small as an extreme
+example. You would want to set *maxBytes* to an appropriate value.
+
+Another useful feature of the logging API is the ability to produce different
+messages at different log levels. This allows you to instrument your code with
+debug messages, for example, but turning the log level down so that those debug
+messages are not written for your production system. The default levels are
+``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO``, ``DEBUG`` and ``UNSET``.
+
+The logger, handler, and log message call each specify a level. The log message
+is only emitted if the handler and logger are configured to emit messages of
+that level or lower. For example, if a message is ``CRITICAL``, and the logger
+is set to ``ERROR``, the message is emitted. If a message is a ``WARNING``, and
+the logger is set to produce only ``ERROR``\s, the message is not emitted::
+
+ import logging
+ import sys
+
+ LEVELS = {'debug': logging.DEBUG,
+ 'info': logging.INFO,
+ 'warning': logging.WARNING,
+ 'error': logging.ERROR,
+ 'critical': logging.CRITICAL}
+
+ if len(sys.argv) > 1:
+ level_name = sys.argv[1]
+ level = LEVELS.get(level_name, logging.NOTSET)
+ logging.basicConfig(level=level)
+
+ logging.debug('This is a debug message')
+ logging.info('This is an info message')
+ logging.warning('This is a warning message')
+ logging.error('This is an error message')
+ logging.critical('This is a critical error message')
+
+Run the script with an argument like 'debug' or 'warning' to see which messages
+show up at different levels::
+
+ $ python logging_level_example.py debug
+ DEBUG:root:This is a debug message
+ INFO:root:This is an info message
+ WARNING:root:This is a warning message
+ ERROR:root:This is an error message
+ CRITICAL:root:This is a critical error message
+
+ $ python logging_level_example.py info
+ INFO:root:This is an info message
+ WARNING:root:This is a warning message
+ ERROR:root:This is an error message
+ CRITICAL:root:This is a critical error message
+
+You will notice that these log messages all have ``root`` embedded in them. The
+logging module supports a hierarchy of loggers with different names. An easy
+way to tell where a specific log message comes from is to use a separate logger
+object for each of your modules. Each new logger "inherits" the configuration
+of its parent, and log messages sent to a logger include the name of that
+logger. Optionally, each logger can be configured differently, so that messages
+from different modules are handled in different ways. Let's look at a simple
+example of how to log from different modules so it is easy to trace the source
+of the message::
+
+ import logging
+
+ logging.basicConfig(level=logging.WARNING)
+
+ logger1 = logging.getLogger('package1.module1')
+ logger2 = logging.getLogger('package2.module2')
+
+ logger1.warning('This message comes from one module')
+ logger2.warning('And this message comes from another module')
+
+And the output::
+
+ $ python logging_modules_example.py
+ WARNING:package1.module1:This message comes from one module
+ WARNING:package2.module2:And this message comes from another module
+
+There are many more options for configuring logging, including different log
+message formatting options, having messages delivered to multiple destinations,
+and changing the configuration of a long-running application on the fly using a
+socket interface. All of these options are covered in depth in the library
+module documentation.
+
+Loggers
+^^^^^^^
+
+The logging library takes a modular approach and offers the several categories
+of components: loggers, handlers, filters, and formatters. Loggers expose the
+interface that application code directly uses. Handlers send the log records to
+the appropriate destination. Filters provide a finer grained facility for
+determining which log records to send on to a handler. Formatters specify the
+layout of the resultant log record.
+
+:class:`Logger` objects have a threefold job. First, they expose several
+methods to application code so that applications can log messages at runtime.
+Second, logger objects determine which log messages to act upon based upon
+severity (the default filtering facility) or filter objects. Third, logger
+objects pass along relevant log messages to all interested log handlers.
+
+The most widely used methods on logger objects fall into two categories:
+configuration and message sending.
+
+* :meth:`Logger.setLevel` specifies the lowest-severity log message a logger
+ will handle, where debug is the lowest built-in severity level and critical is
+ the highest built-in severity. For example, if the severity level is info,
+ the logger will handle only info, warning, error, and critical messages and
+ will ignore debug messages.
+
+* :meth:`Logger.addFilter` and :meth:`Logger.removeFilter` add and remove filter
+ objects from the logger object. This tutorial does not address filters.
+
+With the logger object configured, the following methods create log messages:
+
+* :meth:`Logger.debug`, :meth:`Logger.info`, :meth:`Logger.warning`,
+ :meth:`Logger.error`, and :meth:`Logger.critical` all create log records with
+ a message and a level that corresponds to their respective method names. The
+ message is actually a format string, which may contain the standard string
+ substitution syntax of :const:`%s`, :const:`%d`, :const:`%f`, and so on. The
+ rest of their arguments is a list of objects that correspond with the
+ substitution fields in the message. With regard to :const:`**kwargs`, the
+ logging methods care only about a keyword of :const:`exc_info` and use it to
+ determine whether to log exception information.
+
+* :meth:`Logger.exception` creates a log message similar to
+ :meth:`Logger.error`. The difference is that :meth:`Logger.exception` dumps a
+ stack trace along with it. Call this method only from an exception handler.
+
+* :meth:`Logger.log` takes a log level as an explicit argument. This is a
+ little more verbose for logging messages than using the log level convenience
+ methods listed above, but this is how to log at custom log levels.
+
+:func:`getLogger` returns a reference to a logger instance with a name of name
+if a name is provided, or root if not. The names are period-separated
+hierarchical structures. Multiple calls to :func:`getLogger` with the same name
+will return a reference to the same logger object. Loggers that are further
+down in the hierarchical list are children of loggers higher up in the list.
+For example, given a logger with a name of ``foo``, loggers with names of
+``foo.bar``, ``foo.bar.baz``, and ``foo.bam`` are all children of ``foo``.
+Child loggers propagate messages up to their parent loggers. Because of this,
+it is unnecessary to define and configure all the loggers an application uses.
+It is sufficient to configure a top-level logger and create child loggers as
+needed.
+
+
+Handlers
+^^^^^^^^
+
+:class:`Handler` objects are responsible for dispatching the appropriate log
+messages (based on the log messages' severity) to the handler's specified
+destination. Logger objects can add zero or more handler objects to themselves
+with an :func:`addHandler` method. As an example scenario, an application may
+want to send all log messages to a log file, all log messages of error or higher
+to stdout, and all messages of critical to an email address. This scenario
+requires three individual handlers where each hander is responsible for sending
+messages of a specific severity to a specific location.
+
+The standard library includes quite a few handler types; this tutorial uses only
+:class:`StreamHandler` and :class:`FileHandler` in its examples.
+
+There are very few methods in a handler for application developers to concern
+themselves with. The only handler methods that seem relevant for application
+developers who are using the built-in handler objects (that is, not creating
+custom handlers) are the following configuration methods:
+
+* The :meth:`Handler.setLevel` method, just as in logger objects, specifies the
+ lowest severity that will be dispatched to the appropriate destination. Why
+ are there two :func:`setLevel` methods? The level set in the logger
+ determines which severity of messages it will pass to its handlers. The level
+ set in each handler determines which messages that handler will send on.
+ :func:`setFormatter` selects a Formatter object for this handler to use.
+
+* :func:`addFilter` and :func:`removeFilter` respectively configure and
+ deconfigure filter objects on handlers.
+
+Application code should not directly instantiate and use handlers. Instead, the
+:class:`Handler` class is a base class that defines the interface that all
+Handlers should have and establishes some default behavior that child classes
+can use (or override).
+
+
+Formatters
+^^^^^^^^^^
+
+Formatter objects configure the final order, structure, and contents of the log
+message. Unlike the base logging.Handler class, application code may
+instantiate formatter classes, although you could likely subclass the formatter
+if your application needs special behavior. The constructor takes two optional
+arguments: a message format string and a date format string. If there is no
+message format string, the default is to use the raw message. If there is no
+date format string, the default date format is::
+
+ %Y-%m-%d %H:%M:%S
+
+with the milliseconds tacked on at the end.
+
+The message format string uses ``%()s`` styled string
+substitution; the possible keys are documented in :ref:`formatter-objects`.
+
+The following message format string will log the time in a human-readable
+format, the severity of the message, and the contents of the message, in that
+order::
+
+ "%(asctime)s - %(levelname)s - %(message)s"
+
+
+Configuring Logging
+^^^^^^^^^^^^^^^^^^^
+
+Programmers can configure logging either by creating loggers, handlers, and
+formatters explicitly in a main module with the configuration methods listed
+above (using Python code), or by creating a logging config file. The following
+code is an example of configuring a very simple logger, a console handler, and a
+simple formatter in a Python module::
+
+ import logging
+
+ # create logger
+ logger = logging.getLogger("simple_example")
+ logger.setLevel(logging.DEBUG)
+ # create console handler and set level to debug
+ ch = logging.StreamHandler()
+ ch.setLevel(logging.DEBUG)
+ # create formatter
+ formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
+ # add formatter to ch
+ ch.setFormatter(formatter)
+ # add ch to logger
+ logger.addHandler(ch)
+
+ # "application" code
+ logger.debug("debug message")
+ logger.info("info message")
+ logger.warn("warn message")
+ logger.error("error message")
+ logger.critical("critical message")
+
+Running this module from the command line produces the following output::
+
+ $ python simple_logging_module.py
+ 2005-03-19 15:10:26,618 - simple_example - DEBUG - debug message
+ 2005-03-19 15:10:26,620 - simple_example - INFO - info message
+ 2005-03-19 15:10:26,695 - simple_example - WARNING - warn message
+ 2005-03-19 15:10:26,697 - simple_example - ERROR - error message
+ 2005-03-19 15:10:26,773 - simple_example - CRITICAL - critical message
+
+The following Python module creates a logger, handler, and formatter nearly
+identical to those in the example listed above, with the only difference being
+the names of the objects::
+
+ import logging
+ import logging.config
+
+ logging.config.fileConfig("logging.conf")
+
+ # create logger
+ logger = logging.getLogger("simpleExample")
+
+ # "application" code
+ logger.debug("debug message")
+ logger.info("info message")
+ logger.warn("warn message")
+ logger.error("error message")
+ logger.critical("critical message")
+
+Here is the logging.conf file::
+
+ [loggers]
+ keys=root,simpleExample
+
+ [handlers]
+ keys=consoleHandler
+
+ [formatters]
+ keys=simpleFormatter
+
+ [logger_root]
+ level=DEBUG
+ handlers=consoleHandler
+
+ [logger_simpleExample]
+ level=DEBUG
+ handlers=consoleHandler
+ qualname=simpleExample
+ propagate=0
+
+ [handler_consoleHandler]
+ class=StreamHandler
+ level=DEBUG
+ formatter=simpleFormatter
+ args=(sys.stdout,)
+
+ [formatter_simpleFormatter]
+ format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
+ datefmt=
+
+The output is nearly identical to that of the non-config-file-based example::
+
+ $ python simple_logging_config.py
+ 2005-03-19 15:38:55,977 - simpleExample - DEBUG - debug message
+ 2005-03-19 15:38:55,979 - simpleExample - INFO - info message
+ 2005-03-19 15:38:56,054 - simpleExample - WARNING - warn message
+ 2005-03-19 15:38:56,055 - simpleExample - ERROR - error message
+ 2005-03-19 15:38:56,130 - simpleExample - CRITICAL - critical message
+
+You can see that the config file approach has a few advantages over the Python
+code approach, mainly separation of configuration and code and the ability of
+noncoders to easily modify the logging properties.
+
+
+Logging Levels
+--------------
+
The numeric values of logging levels are given in the following table. These are
primarily of interest if you want to define your own levels, and need them to
have specific values relative to the predefined levels. If you define a level
@@ -1470,6 +1860,8 @@
Sends the record to the Web server as an URL-encoded dictionary.
+.. _formatter-objects:
+
Formatter Objects
-----------------
@@ -1684,15 +2076,17 @@
sent as a file suitable for processing by :func:`fileConfig`. Returns a
:class:`Thread` instance on which you can call :meth:`start` to start the
server, and which you can :meth:`join` when appropriate. To stop the server,
- call :func:`stopListening`. To send a configuration to the socket, read in the
- configuration file and send it to the socket as a string of bytes preceded by a
- four-byte length packed in binary using struct.\ ``pack('>L', n)``.
+ call :func:`stopListening`.
+
+ To send a configuration to the socket, read in the configuration file and
+ send it to the socket as a string of bytes preceded by a four-byte length
+ string packed in binary using ``struct.pack('>L', n)``.
.. function:: stopListening()
- Stops the listening server which was created with a call to :func:`listen`. This
- is typically called before calling :meth:`join` on the return value from
+ Stops the listening server which was created with a call to :func:`listen`.
+ This is typically called before calling :meth:`join` on the return value from
:func:`listen`.
@@ -1701,8 +2095,6 @@
Configuration file format
^^^^^^^^^^^^^^^^^^^^^^^^^
-.. %
-
The configuration file format understood by :func:`fileConfig` is based on
ConfigParser functionality. The file must contain sections called ``[loggers]``,
``[handlers]`` and ``[formatters]`` which identify by name the entities of each
@@ -1855,3 +2247,194 @@
:class:`Formatter` subclass. Subclasses of :class:`Formatter` can present
exception tracebacks in an expanded or condensed format.
+
+Configuration server example
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Here is an example of a module using the logging configuration server::
+
+ import logging
+ import logging.config
+ import time
+ import os
+
+ # read initial config file
+ logging.config.fileConfig("logging.conf")
+
+ # create and start listener on port 9999
+ t = logging.config.listen(9999)
+ t.start()
+
+ logger = logging.getLogger("simpleExample")
+
+ try:
+ # loop through logging calls to see the difference
+ # new configurations make, until Ctrl+C is pressed
+ while True:
+ logger.debug("debug message")
+ logger.info("info message")
+ logger.warn("warn message")
+ logger.error("error message")
+ logger.critical("critical message")
+ time.sleep(5)
+ except KeyboardInterrupt:
+ # cleanup
+ logging.config.stopListening()
+ t.join()
+
+And here is a script that takes a filename and sends that file to the server,
+properly preceded with the binary-encoded length, as the new logging
+configuration::
+
+ #!/usr/bin/env python
+ import socket, sys, struct
+
+ data_to_send = open(sys.argv[1], "r").read()
+
+ HOST = 'localhost'
+ PORT = 9999
+ s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ print "connecting..."
+ s.connect((HOST, PORT))
+ print "sending config..."
+ s.send(struct.pack(">L", len(data_to_send)))
+ s.send(data_to_send)
+ s.close()
+ print "complete"
+
+
+More examples
+-------------
+
+Multiple handlers and formatters
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Loggers are plain Python objects. The :func:`addHandler` method has no minimum
+or maximum quota for the number of handlers you may add. Sometimes it will be
+beneficial for an application to log all messages of all severities to a text
+file while simultaneously logging errors or above to the console. To set this
+up, simply configure the appropriate handlers. The logging calls in the
+application code will remain unchanged. Here is a slight modification to the
+previous simple module-based configuration example::
+
+ import logging
+
+ logger = logging.getLogger("simple_example")
+ logger.setLevel(logging.DEBUG)
+ # create file handler which logs even debug messages
+ fh = logging.FileHandler("spam.log")
+ fh.setLevel(logging.DEBUG)
+ # create console handler with a higher log level
+ ch = logging.StreamHandler()
+ ch.setLevel(logging.ERROR)
+ # create formatter and add it to the handlers
+ formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
+ ch.setFormatter(formatter)
+ fh.setFormatter(formatter)
+ # add the handlers to logger
+ logger.addHandler(ch)
+ logger.addHandler(fh)
+
+ # "application" code
+ logger.debug("debug message")
+ logger.info("info message")
+ logger.warn("warn message")
+ logger.error("error message")
+ logger.critical("critical message")
+
+Notice that the "application" code does not care about multiple handlers. All
+that changed was the addition and configuration of a new handler named *fh*.
+
+The ability to create new handlers with higher- or lower-severity filters can be
+very helpful when writing and testing an application. Instead of using many
+``print`` statements for debugging, use ``logger.debug``: Unlike the print
+statements, which you will have to delete or comment out later, the logger.debug
+statements can remain intact in the source code and remain dormant until you
+need them again. At that time, the only change that needs to happen is to
+modify the severity level of the logger and/or handler to debug.
+
+
+Using logging in multiple modules
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+It was mentioned above that multiple calls to
+``logging.getLogger('someLogger')`` return a reference to the same logger
+object. This is true not only within the same module, but also across modules
+as long as it is in the same Python interpreter process. It is true for
+references to the same object; additionally, application code can define and
+configure a parent logger in one module and create (but not configure) a child
+logger in a separate module, and all logger calls to the child will pass up to
+the parent. Here is a main module::
+
+ import logging
+ import auxiliary_module
+
+ # create logger with "spam_application"
+ logger = logging.getLogger("spam_application")
+ logger.setLevel(logging.DEBUG)
+ # create file handler which logs even debug messages
+ fh = logging.FileHandler("spam.log")
+ fh.setLevel(logging.DEBUG)
+ # create console handler with a higher log level
+ ch = logging.StreamHandler()
+ ch.setLevel(logging.ERROR)
+ # create formatter and add it to the handlers
+ formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
+ fh.setFormatter(formatter)
+ ch.setFormatter(formatter)
+ # add the handlers to the logger
+ logger.addHandler(fh)
+ logger.addHandler(ch)
+
+ logger.info("creating an instance of auxiliary_module.Auxiliary")
+ a = auxiliary_module.Auxiliary()
+ logger.info("created an instance of auxiliary_module.Auxiliary")
+ logger.info("calling auxiliary_module.Auxiliary.do_something")
+ a.do_something()
+ logger.info("finished auxiliary_module.Auxiliary.do_something")
+ logger.info("calling auxiliary_module.some_function()")
+ auxiliary_module.some_function()
+ logger.info("done with auxiliary_module.some_function()")
+
+Here is the auxiliary module::
+
+ import logging
+
+ # create logger
+ module_logger = logging.getLogger("spam_application.auxiliary")
+
+ class Auxiliary:
+ def __init__(self):
+ self.logger = logging.getLogger("spam_application.auxiliary.Auxiliary")
+ self.logger.info("creating an instance of Auxiliary")
+ def do_something(self):
+ self.logger.info("doing something")
+ a = 1 + 1
+ self.logger.info("done doing something")
+
+ def some_function():
+ module_logger.info("received a call to \"some_function\"")
+
+The output looks like this::
+
+ 2005-03-23 23:47:11,663 - spam_application - INFO -
+ creating an instance of auxiliary_module.Auxiliary
+ 2005-03-23 23:47:11,665 - spam_application.auxiliary.Auxiliary - INFO -
+ creating an instance of Auxiliary
+ 2005-03-23 23:47:11,665 - spam_application - INFO -
+ created an instance of auxiliary_module.Auxiliary
+ 2005-03-23 23:47:11,668 - spam_application - INFO -
+ calling auxiliary_module.Auxiliary.do_something
+ 2005-03-23 23:47:11,668 - spam_application.auxiliary.Auxiliary - INFO -
+ doing something
+ 2005-03-23 23:47:11,669 - spam_application.auxiliary.Auxiliary - INFO -
+ done doing something
+ 2005-03-23 23:47:11,670 - spam_application - INFO -
+ finished auxiliary_module.Auxiliary.do_something
+ 2005-03-23 23:47:11,671 - spam_application - INFO -
+ calling auxiliary_module.some_function()
+ 2005-03-23 23:47:11,672 - spam_application.auxiliary - INFO -
+ received a call to "some_function"
+ 2005-03-23 23:47:11,673 - spam_application - INFO -
+ done with auxiliary_module.some_function()
+
From python-checkins at python.org Tue Dec 4 19:43:20 2007
From: python-checkins at python.org (christian.heimes)
Date: Tue, 4 Dec 2007 19:43:20 +0100 (CET)
Subject: [Python-checkins] r59332 -
python/trunk/PCbuild9/pginstrument.vsprops
Message-ID: <20071204184320.343481E4046@bag.python.org>
Author: christian.heimes
Date: Tue Dec 4 19:43:19 2007
New Revision: 59332
Modified:
python/trunk/PCbuild9/pginstrument.vsprops
Log:
These optimizations create smaller and a bit faster code on my machine. I've also disabled an optimization that may be dangerous. Intrinsic functions conflict with errno.
Modified: python/trunk/PCbuild9/pginstrument.vsprops
==============================================================================
--- python/trunk/PCbuild9/pginstrument.vsprops (original)
+++ python/trunk/PCbuild9/pginstrument.vsprops Tue Dec 4 19:43:19 2007
@@ -8,10 +8,10 @@
>
The Buildbot has detected a new failure of ppc Debian unstable 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%203.0/builds/345
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
======================================================================
ERROR: test_fail_with_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 441, in test_fail_with_info
p.pow(6,8)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1121, in request
resp = http_conn.getresponse()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 961, in getresponse
response.begin()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 425, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 267, in readheaders
line = str(self.fp.readline(), "iso-8859-1")
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 401, in readline
b = self.read(nreadahead())
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 463, in read
n = self.readinto(b)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/socket.py", line 215, in readinto
return self._sock.recv_into(b)
socket.error: [Errno 104] Connection reset by peer
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Tue Dec 4 20:57:26 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 19:57:26 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable trunk
Message-ID: <20071204195726.40AEF1E4016@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%20trunk/builds/411
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
======================================================================
ERROR: test_fail_no_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 497, in test_fail_no_info
p.pow(6,8)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1157, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1447, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1195, in request
errcode, errmsg, headers = h.getreply()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 1006, in getreply
response = self._conn.getresponse()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 932, in getresponse
response.begin()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 415, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 271, in readheaders
line = self.fp.readline()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/socket.py", line 351, in readline
data = recv(1)
error: [Errno 104] Connection reset by peer
======================================================================
ERROR: test_fail_with_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 517, in test_fail_with_info
p.pow(6,8)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1157, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1447, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1195, in request
errcode, errmsg, headers = h.getreply()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 1006, in getreply
response = self._conn.getresponse()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 932, in getresponse
response.begin()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 415, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/httplib.py", line 271, in readheaders
line = self.fp.readline()
File "/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/socket.py", line 351, in readline
data = recv(1)
error: [Errno 104] Connection reset by peer
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Tue Dec 4 21:24:15 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 20:24:15 +0000
Subject: [Python-checkins] buildbot failure in amd64 XP 3.0
Message-ID: <20071204202415.BE37E1E4016@bag.python.org>
The Buildbot has detected a new failure of amd64 XP 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%203.0/builds/358
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Tue Dec 4 22:13:29 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 21:13:29 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu 3.0
Message-ID: <20071204211329.E98671E4016@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%203.0/builds/331
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
make: *** [buildbottest] Unknown signal 37
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 00:03:45 2007
From: buildbot at python.org (buildbot at python.org)
Date: Tue, 04 Dec 2007 23:03:45 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable 3.0
Message-ID: <20071204230345.9FEB01E4023@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%203.0/builds/349
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: martin.v.loewis
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 01:15:16 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 00:15:16 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu 3.0
Message-ID: <20071205001516.513261E4017@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%203.0/builds/334
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
make: *** [buildbottest] Unknown signal 37
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 01:26:25 2007
From: python-checkins at python.org (guido.van.rossum)
Date: Wed, 5 Dec 2007 01:26:25 +0100 (CET)
Subject: [Python-checkins] r59339 - peps/trunk/pep-0000.txt
peps/trunk/pep-3116.txt
Message-ID: <20071205002625.79B691E4016@bag.python.org>
Author: guido.van.rossum
Date: Wed Dec 5 01:26:25 2007
New Revision: 59339
Modified:
peps/trunk/pep-0000.txt
peps/trunk/pep-3116.txt
Log:
Mark PEP 3116 as accepted -- I'm unlikely to change it much now.
Also update it to include the errors argument, which goes hand in hand with
the encoding argument.
Modified: peps/trunk/pep-0000.txt
==============================================================================
--- peps/trunk/pep-0000.txt (original)
+++ peps/trunk/pep-0000.txt Wed Dec 5 01:26:25 2007
@@ -77,6 +77,7 @@
SA 358 The "bytes" Object Schemenauer, GvR
SA 3101 Advanced String Formatting Talin
SA 3106 Revamping dict.keys(), .values() & .items() GvR
+ SA 3116 New I/O Stutzbach, Verdone, GvR
SA 3118 Revising the buffer protocol Oliphant, Banks
SA 3119 Introducing Abstract Base Classes GvR, Talin
SA 3121 Extension Module Initialization & Finalization von L?wis
@@ -93,7 +94,6 @@
S 365 Adding the pkg_resources module Eby
S 368 Standard image protocol and class Mastrodomenico
S 3108 Standard Library Reorganization Cannon
- S 3116 New I/O Stutzbach, Verdone, GvR
S 3134 Exception Chaining and Embedded Tracebacks Yee
S 3135 New Super Spealman, Delaney
S 3141 A Type Hierarchy for Numbers Yasskin
@@ -489,7 +489,7 @@
SF 3113 Removal of Tuple Parameter Unpacking Cannon
SF 3114 Renaming iterator.next() to .__next__() Yee
SF 3115 Metaclasses in Python 3000 Talin
- S 3116 New I/O Stutzbach, Verdone, GvR
+ SA 3116 New I/O Stutzbach, Verdone, GvR
SR 3117 Postfix Type Declarations Brandl
SA 3118 Revising the buffer protocol Oliphant, Banks
SA 3119 Introducing Abstract Base Classes GvR, Talin
Modified: peps/trunk/pep-3116.txt
==============================================================================
--- peps/trunk/pep-3116.txt (original)
+++ peps/trunk/pep-3116.txt Wed Dec 5 01:26:25 2007
@@ -3,7 +3,7 @@
Version: $Revision$
Last-Modified: $Date$
Author: Daniel Stutzbach, Mike Verdone, Guido van Rossum
-Status: Draft
+Status: Accepted
Type: Standards Track
Content-Type: text/x-rst
Created: 26-Feb-2007
@@ -339,7 +339,7 @@
``BufferedIOBase`` object. Its initializer has the following
signature:
- ``.__init__(self, buffer, encoding=None, newline=None)``
+ ``.__init__(self, buffer, encoding=None, errors=None, newline=None)``
``buffer`` is a reference to the ``BufferedIOBase`` object to
be wrapped with the ``TextIOWrapper``.
@@ -349,6 +349,10 @@
If it is ``None``, then the system's locale setting will be
used as the default.
+ ``errors`` is an optional string indicating error handling.
+ It may be set whenever ``encoding`` may be set. It defaults
+ to ``'strict'``.
+
``newline`` can be ``None``, ``''``, ``'\n'``, ``'\r'``, or
``'\r\n'``; all other values are illegal. It controls the
handling of line endings. It works as follows:
@@ -410,8 +414,7 @@
Unicode encoding/decoding Issues
--------------------------------
-We should allow passing an error-handling argument whenever an
-encoding is accepted, and we should allow changing the error-handling
+We should allow allow changing the encoding and error-handling
setting later. The behavior of Text I/O operations in the face of
Unicode problems and ambiguities (e.g. diacritics, surrogates, invalid
bytes in an encoding) should be the same as that of the unicode
@@ -455,7 +458,7 @@
pseudo-code::
def open(filename, mode="r", buffering=None, *,
- encoding=None, newline=None):
+ encoding=None, errors=None, newline=None):
assert isinstance(filename, (str, int))
assert isinstance(mode, str)
assert buffering is None or isinstance(buffering, int)
@@ -478,6 +481,8 @@
raise ValueError("must have exactly one of read/write/append mode")
if binary and encoding is not None:
raise ValueError("binary modes doesn't take an encoding arg")
+ if binary and errors is not None:
+ raise ValueError("binary modes doesn't take an errors arg")
if binary and newline is not None:
raise ValueError("binary modes doesn't take a newline arg")
# XXX Need to spec the signature for FileIO()
@@ -501,7 +506,7 @@
if binary:
return buffer
assert text
- return TextIOWrapper(buffer, encoding, newline)
+ return TextIOWrapper(buffer, encoding, errors, newline)
Copyright
From buildbot at python.org Wed Dec 5 05:38:34 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 04:38:34 +0000
Subject: [Python-checkins] buildbot failure in g4 osx.4 3.0
Message-ID: <20071205043834.DBE5C1E4016@bag.python.org>
The Buildbot has detected a new failure of g4 osx.4 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/g4%20osx.4%203.0/builds/330
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: psf-g4
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: bill.janssen
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_urllib2net
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 06:40:44 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 05:40:44 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc 3.0
Message-ID: <20071205054045.002EE1E4035@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%203.0/builds/412
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
3 tests failed:
test_cProfile test_profile test_urllibnet
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 06:41:20 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 05:41:20 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo 3.0
Message-ID: <20071205054120.619E61E402A@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%203.0/builds/273
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_cProfile test_profile
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 06:58:56 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 05:58:56 +0000
Subject: [Python-checkins] buildbot failure in sparc solaris10 gcc 3.0
Message-ID: <20071205055857.1985D1E40C7@bag.python.org>
The Buildbot has detected a new failure of sparc solaris10 gcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/sparc%20solaris10%20gcc%203.0/builds/377
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-sun
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_cProfile test_profile
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 07:14:16 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 06:14:16 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071205061416.D64AC1E4016@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/356
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
3 tests failed:
test_cProfile test_profile test_urllibnet
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 07:17:40 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 06:17:40 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071205061740.778A91E4016@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/335
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
3 tests failed:
test_cProfile test_profile test_xmlrpc_net
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 08:02:47 2007
From: python-checkins at python.org (georg.brandl)
Date: Wed, 5 Dec 2007 08:02:47 +0100 (CET)
Subject: [Python-checkins] r59343 - python/trunk/Python/ceval.c
Message-ID: <20071205070247.8B9181E4016@bag.python.org>
Author: georg.brandl
Date: Wed Dec 5 08:02:47 2007
New Revision: 59343
Modified:
python/trunk/Python/ceval.c
Log:
Fix typo.
Modified: python/trunk/Python/ceval.c
==============================================================================
--- python/trunk/Python/ceval.c (original)
+++ python/trunk/Python/ceval.c Wed Dec 5 08:02:47 2007
@@ -622,7 +622,7 @@
next opcode.
A successful prediction saves a trip through the eval-loop including
- its two unpredictable branches, the HASARG test and the switch-case.
+ its two unpredictable branches, the HAS_ARG test and the switch-case.
If collecting opcode statistics, turn off prediction so that
statistics are accurately maintained (the predictions bypass
From buildbot at python.org Wed Dec 5 11:01:52 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 10:01:52 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc 3.0
Message-ID: <20071205100152.767121E4016@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%203.0/builds/414
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc_net
======================================================================
ERROR: test_current_time (test.test_xmlrpc_net.CurrentTimeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/test/test_xmlrpc_net.py", line 14, in test_current_time
t0 = server.currentTime.getCurrentTime()
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/xmlrpclib.py", line 1120, in request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/xmlrpclib.py", line 1205, in send_request
connection.request("POST", handler, request_body, headers)
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/httplib.py", line 884, in request
self._send_request(method, url, body, headers)
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/httplib.py", line 921, in _send_request
self.endheaders()
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/httplib.py", line 879, in endheaders
self._send_output()
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/httplib.py", line 745, in _send_output
self.send(msg)
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/httplib.py", line 704, in send
self.connect()
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/httplib.py", line 688, in connect
self.timeout)
File "/home2/buildbot/slave/3.0.loewis-linux/build/Lib/socket.py", line 292, in create_connection
raise error(msg)
socket.error: [Errno 111] Connection refused
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 11:03:19 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 10:03:19 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo 3.0
Message-ID: <20071205100319.8B43B1E4016@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%203.0/builds/275
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc_net
======================================================================
ERROR: test_current_time (test.test_xmlrpc_net.CurrentTimeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/test/test_xmlrpc_net.py", line 14, in test_current_time
t0 = server.currentTime.getCurrentTime()
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/xmlrpclib.py", line 1120, in request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/xmlrpclib.py", line 1205, in send_request
connection.request("POST", handler, request_body, headers)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 884, in request
self._send_request(method, url, body, headers)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 921, in _send_request
self.endheaders()
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 879, in endheaders
self._send_output()
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 745, in _send_output
self.send(msg)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 704, in send
self.connect()
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 688, in connect
self.timeout)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/socket.py", line 292, in create_connection
raise error(msg)
socket.error: [Errno 111] Connection refused
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 11:19:34 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 10:19:34 +0000
Subject: [Python-checkins] buildbot failure in sparc solaris10 gcc 3.0
Message-ID: <20071205101934.C84AC1E4016@bag.python.org>
The Buildbot has detected a new failure of sparc solaris10 gcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/sparc%20solaris10%20gcc%203.0/builds/379
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-sun
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc_net
======================================================================
ERROR: test_current_time (test.test_xmlrpc_net.CurrentTimeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/test/test_xmlrpc_net.py", line 14, in test_current_time
t0 = server.currentTime.getCurrentTime()
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/xmlrpclib.py", line 1120, in request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/xmlrpclib.py", line 1205, in send_request
connection.request("POST", handler, request_body, headers)
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/httplib.py", line 884, in request
self._send_request(method, url, body, headers)
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/httplib.py", line 921, in _send_request
self.endheaders()
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/httplib.py", line 879, in endheaders
self._send_output()
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/httplib.py", line 745, in _send_output
self.send(msg)
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/httplib.py", line 704, in send
self.connect()
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/httplib.py", line 688, in connect
self.timeout)
File "/opt/users/buildbot/slave/3.0.loewis-sun/build/Lib/socket.py", line 292, in create_connection
raise error(msg)
socket.error: [Errno 146] Connection refused
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 11:34:54 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 10:34:54 +0000
Subject: [Python-checkins] buildbot failure in g4 osx.4 3.0
Message-ID: <20071205103454.4AD6E1E47BC@bag.python.org>
The Buildbot has detected a new failure of g4 osx.4 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/g4%20osx.4%203.0/builds/333
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: psf-g4
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc_net
======================================================================
ERROR: test_current_time (test.test_xmlrpc_net.CurrentTimeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/test/test_xmlrpc_net.py", line 14, in test_current_time
t0 = server.currentTime.getCurrentTime()
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/xmlrpclib.py", line 1120, in request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/xmlrpclib.py", line 1205, in send_request
connection.request("POST", handler, request_body, headers)
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/httplib.py", line 884, in request
self._send_request(method, url, body, headers)
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/httplib.py", line 921, in _send_request
self.endheaders()
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/httplib.py", line 879, in endheaders
self._send_output()
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/httplib.py", line 745, in _send_output
self.send(msg)
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/httplib.py", line 704, in send
self.connect()
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/httplib.py", line 688, in connect
self.timeout)
File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/socket.py", line 292, in create_connection
raise error(msg)
socket.error: [Errno 61] Connection refused
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 11:37:21 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 10:37:21 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071205103721.9EB141E4F59@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/337
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc_net
======================================================================
ERROR: test_current_time (test.test_xmlrpc_net.CurrentTimeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_xmlrpc_net.py", line 14, in test_current_time
t0 = server.currentTime.getCurrentTime()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/xmlrpclib.py", line 1120, in request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/xmlrpclib.py", line 1205, in send_request
connection.request("POST", handler, request_body, headers)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/httplib.py", line 884, in request
self._send_request(method, url, body, headers)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/httplib.py", line 921, in _send_request
self.endheaders()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/httplib.py", line 879, in endheaders
self._send_output()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/httplib.py", line 745, in _send_output
self.send(msg)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/httplib.py", line 704, in send
self.connect()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/httplib.py", line 688, in connect
self.timeout)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/socket.py", line 292, in create_connection
raise error(msg)
socket.error: [Errno 111] Connection refused
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 11:42:46 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 10:42:46 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071205104246.2F8C71E4238@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/358
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc_net
======================================================================
ERROR: test_current_time (test.test_xmlrpc_net.CurrentTimeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/test/test_xmlrpc_net.py", line 14, in test_current_time
t0 = server.currentTime.getCurrentTime()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/xmlrpclib.py", line 1120, in request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/xmlrpclib.py", line 1205, in send_request
connection.request("POST", handler, request_body, headers)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/httplib.py", line 884, in request
self._send_request(method, url, body, headers)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/httplib.py", line 921, in _send_request
self.endheaders()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/httplib.py", line 879, in endheaders
self._send_output()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/httplib.py", line 745, in _send_output
self.send(msg)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/httplib.py", line 704, in send
self.connect()
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/httplib.py", line 688, in connect
self.timeout)
File "/home/pybot/buildarea/3.0.klose-debian-ia64/build/Lib/socket.py", line 292, in create_connection
raise error(msg)
socket.error: [Errno 110] Connection timed out
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 13:31:45 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 13:31:45 +0100 (CET)
Subject: [Python-checkins] r59347 - python/trunk/PCbuild9/_sqlite3.vcproj
Message-ID: <20071205123145.1D4561E4016@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 13:31:44 2007
New Revision: 59347
Modified:
python/trunk/PCbuild9/_sqlite3.vcproj
Log:
Fixed quoting and paths in the sqlite project file
Modified: python/trunk/PCbuild9/_sqlite3.vcproj
==============================================================================
--- python/trunk/PCbuild9/_sqlite3.vcproj (original)
+++ python/trunk/PCbuild9/_sqlite3.vcproj Wed Dec 5 13:31:44 2007
@@ -54,7 +54,7 @@
The Buildbot has detected a new failure of amd64 XP trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%20trunk/builds/399
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 13:45:11 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 13:45:11 +0100 (CET)
Subject: [Python-checkins] r59348 - python/trunk/Lib/test/regrtest.py
Message-ID: <20071205124511.9A1FF1E4016@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 13:45:11 2007
New Revision: 59348
Modified:
python/trunk/Lib/test/regrtest.py
Log:
Fixed error in regrtest. I must have missed the spot.
Modified: python/trunk/Lib/test/regrtest.py
==============================================================================
--- python/trunk/Lib/test/regrtest.py (original)
+++ python/trunk/Lib/test/regrtest.py Wed Dec 5 13:45:11 2007
@@ -661,7 +661,7 @@
pic = sys.path_importer_cache.copy()
abcs = {}
for abc in [getattr(_abcoll, a) for a in _abcoll.__all__]:
- if not isinstance(abc, _Abstract):
+ if not issubclass(abc, _Abstract):
continue
for obj in abc.__subclasses__() + [abc]:
abcs[obj] = obj._abc_registry.copy()
From python-checkins at python.org Wed Dec 5 13:49:15 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 13:49:15 +0100 (CET)
Subject: [Python-checkins] r59350 - python/trunk/Objects/abstract.c
python/trunk/Objects/listobject.c
Message-ID: <20071205124915.2DDF91E4016@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 13:49:14 2007
New Revision: 59350
Modified:
python/trunk/Objects/abstract.c
python/trunk/Objects/listobject.c
Log:
merge -r59315:59316 from py3k: Fix issue #1553: An errornous __length_hint__ can make list() raise a SystemError
Modified: python/trunk/Objects/abstract.c
==============================================================================
--- python/trunk/Objects/abstract.c (original)
+++ python/trunk/Objects/abstract.c Wed Dec 5 13:49:14 2007
@@ -1507,8 +1507,9 @@
/* Guess result size and allocate space. */
n = _PyObject_LengthHint(v);
if (n < 0) {
- if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
- !PyErr_ExceptionMatches(PyExc_AttributeError)) {
+ if (PyErr_Occurred()
+ && !PyErr_ExceptionMatches(PyExc_TypeError)
+ && !PyErr_ExceptionMatches(PyExc_AttributeError)) {
Py_DECREF(it);
return NULL;
}
Modified: python/trunk/Objects/listobject.c
==============================================================================
--- python/trunk/Objects/listobject.c (original)
+++ python/trunk/Objects/listobject.c Wed Dec 5 13:49:14 2007
@@ -796,8 +796,9 @@
/* Guess a result list size. */
n = _PyObject_LengthHint(b);
if (n < 0) {
- if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
- !PyErr_ExceptionMatches(PyExc_AttributeError)) {
+ if (PyErr_Occurred()
+ && !PyErr_ExceptionMatches(PyExc_TypeError)
+ && !PyErr_ExceptionMatches(PyExc_AttributeError)) {
Py_DECREF(it);
return NULL;
}
From python-checkins at python.org Wed Dec 5 13:51:24 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 13:51:24 +0100 (CET)
Subject: [Python-checkins] r59351 - in python/branches/release25-maint:
Misc/NEWS Objects/abstract.c Objects/listobject.c
Message-ID: <20071205125124.6654E1E4025@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 13:51:23 2007
New Revision: 59351
Modified:
python/branches/release25-maint/Misc/NEWS
python/branches/release25-maint/Objects/abstract.c
python/branches/release25-maint/Objects/listobject.c
Log:
merge -r59315:59316 from py3k: Fix issue #1553: An errornous __length_hint__ can make list() raise a SystemError
Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS (original)
+++ python/branches/release25-maint/Misc/NEWS Wed Dec 5 13:51:23 2007
@@ -12,6 +12,9 @@
Core and builtins
-----------------
+- Issue #1553: An errornous __length_hint__ can make list() raise a
+ SystemError.
+
- Issue #1521: On 64bit platforms, using PyArgs_ParseTuple with the t# of w#
format code incorrectly truncated the length to an int, even when
PY_SSIZE_T_CLEAN is set. The str.decode method used to return incorrect
Modified: python/branches/release25-maint/Objects/abstract.c
==============================================================================
--- python/branches/release25-maint/Objects/abstract.c (original)
+++ python/branches/release25-maint/Objects/abstract.c Wed Dec 5 13:51:23 2007
@@ -1507,8 +1507,9 @@
/* Guess result size and allocate space. */
n = _PyObject_LengthHint(v);
if (n < 0) {
- if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
- !PyErr_ExceptionMatches(PyExc_AttributeError)) {
+ if (PyErr_Occurred()
+ && !PyErr_ExceptionMatches(PyExc_TypeError)
+ && !PyErr_ExceptionMatches(PyExc_AttributeError)) {
Py_DECREF(it);
return NULL;
}
Modified: python/branches/release25-maint/Objects/listobject.c
==============================================================================
--- python/branches/release25-maint/Objects/listobject.c (original)
+++ python/branches/release25-maint/Objects/listobject.c Wed Dec 5 13:51:23 2007
@@ -784,8 +784,9 @@
/* Guess a result list size. */
n = _PyObject_LengthHint(b);
if (n < 0) {
- if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
- !PyErr_ExceptionMatches(PyExc_AttributeError)) {
+ if (PyErr_Occurred()
+ && !PyErr_ExceptionMatches(PyExc_TypeError)
+ && !PyErr_ExceptionMatches(PyExc_AttributeError)) {
Py_DECREF(it);
return NULL;
}
From python-checkins at python.org Wed Dec 5 13:52:34 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 13:52:34 +0100 (CET)
Subject: [Python-checkins] r59352 - python/trunk/Misc/NEWS
Message-ID: <20071205125234.D2AF41E4025@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 13:52:34 2007
New Revision: 59352
Modified:
python/trunk/Misc/NEWS
Log:
Added msg to Misc/NEWS
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Wed Dec 5 13:52:34 2007
@@ -12,6 +12,9 @@
Core and builtins
-----------------
+- Issue #1553: An errornous __length_hint__ can make list() raise a
+ SystemError.
+
- PEP 366: Allow explicit relative imports when executing modules
inside packages with the -m switch via a new module level
__package__ attribute.
From buildbot at python.org Wed Dec 5 14:02:50 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 13:02:50 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-4 trunk
Message-ID: <20071205130250.96BC41E4016@bag.python.org>
The Buildbot has detected a new failure of x86 XP-4 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-4%20trunk/builds/256
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 14:27:21 2007
From: python-checkins at python.org (andrew.kuchling)
Date: Wed, 5 Dec 2007 14:27:21 +0100 (CET)
Subject: [Python-checkins] r59354 - python/trunk/Misc/NEWS
Message-ID: <20071205132721.1D98A1E4016@bag.python.org>
Author: andrew.kuchling
Date: Wed Dec 5 14:27:20 2007
New Revision: 59354
Modified:
python/trunk/Misc/NEWS
Log:
Spelling fix
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Wed Dec 5 14:27:20 2007
@@ -12,7 +12,7 @@
Core and builtins
-----------------
-- Issue #1553: An errornous __length_hint__ can make list() raise a
+- Issue #1553: An erroneous __length_hint__ can make list() raise a
SystemError.
- PEP 366: Allow explicit relative imports when executing modules
From buildbot at python.org Wed Dec 5 14:52:18 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 13:52:18 +0000
Subject: [Python-checkins] buildbot failure in amd64 XP 3.0
Message-ID: <20071205135219.315811E4016@bag.python.org>
The Buildbot has detected a new failure of amd64 XP 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%203.0/builds/369
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 14:57:07 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 13:57:07 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071205135708.285BA1E4016@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/350
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 18:26:44 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 17:26:44 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu 3.0
Message-ID: <20071205172645.0E5E41E4056@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%203.0/builds/340
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
make: *** [buildbottest] Unknown signal 37
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 18:35:42 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 18:35:42 +0100 (CET)
Subject: [Python-checkins] r59355 - in sandbox/trunk/2to3:
fixes/fix_renames.py tests/test_fixers.py
Message-ID: <20071205173542.5C98A1E400F@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 18:35:41 2007
New Revision: 59355
Added:
sandbox/trunk/2to3/fixes/fix_renames.py (contents, props changed)
Modified:
sandbox/trunk/2to3/tests/test_fixers.py
Log:
Added simple fixer for renames. The fixer doesn't handle complex renames and it doesn't fix foo(spam) with 'from egg import spam' yet.
Added: sandbox/trunk/2to3/fixes/fix_renames.py
==============================================================================
--- (empty file)
+++ sandbox/trunk/2to3/fixes/fix_renames.py Wed Dec 5 18:35:41 2007
@@ -0,0 +1,70 @@
+"""Fix incompatible renames
+
+Fixes:
+ * sys.maxint -> sys.maxsize
+"""
+# Author: Christian Heimes
+# based on Collin Winter's fix_import
+
+# Local imports
+from fixes import basefix
+from fixes.util import Name, attr_chain, any, set
+
+MAPPING = {"sys": {"maxint" : "maxsize"},
+ }
+LOOKUP = {}
+
+def alternates(members):
+ return "(" + "|".join(map(repr, members)) + ")"
+
+
+def build_pattern():
+ #bare = set()
+ for module, replace in MAPPING.items():
+ for old_attr, new_attr in replace.items():
+ LOOKUP[(module, old_attr)] = new_attr
+ #bare.add(module)
+ #bare.add(old_attr)
+ #yield """
+ # import_name< 'import' (module=%r
+ # | dotted_as_names< any* module=%r any* >) >
+ # """ % (module, module)
+ yield """
+ import_from< 'from' module_name=%r 'import'
+ ( attr_name=%r | import_as_name< attr_name=%r 'as' any >) >
+ """ % (module, old_attr, old_attr)
+ yield """
+ power< module_name=%r trailer< '.' attr_name=%r > any* >
+ """ % (module, old_attr)
+ #yield """bare_name=%s""" % alternates(bare)
+
+
+class FixRenames(basefix.BaseFix):
+ PATTERN = "|".join(build_pattern())
+
+ order = "pre" # Pre-order tree traversal
+
+ # Don't match the node if it's within another match
+ def match(self, node):
+ match = super(FixRenames, self).match
+ results = match(node)
+ if results:
+ if any([match(obj) for obj in attr_chain(node, "parent")]):
+ return False
+ return results
+ return False
+
+ #def start_tree(self, tree, filename):
+ # super(FixRenames, self).start_tree(tree, filename)
+ # self.replace = {}
+
+ def transform(self, node, results):
+ mod_name = results.get("module_name")
+ attr_name = results.get("attr_name")
+ #bare_name = results.get("bare_name")
+ #import_mod = results.get("module")
+
+ if mod_name and attr_name:
+ new_attr = LOOKUP[(mod_name.value, attr_name.value)]
+ attr_name.replace(Name(new_attr, prefix=attr_name.get_prefix()))
+
Modified: sandbox/trunk/2to3/tests/test_fixers.py
==============================================================================
--- sandbox/trunk/2to3/tests/test_fixers.py (original)
+++ sandbox/trunk/2to3/tests/test_fixers.py Wed Dec 5 18:35:41 2007
@@ -2195,6 +2195,53 @@
s = """4.4j"""
self.unchanged(s)
+class Test_renames(FixerTestCase):
+ fixer = "renames"
+
+ modules = {"sys": ("maxint", "maxsize"),
+ }
+
+ def test_import_from(self):
+ for mod, (old, new) in self.modules.items():
+ b = "from %s import %s" % (mod, old)
+ a = "from %s import %s" % (mod, new)
+ self.check(b, a)
+
+ s = "from foo import %s" % old
+ self.unchanged(s)
+
+ def test_import_from_as(self):
+ for mod, (old, new) in self.modules.items():
+ b = "from %s import %s as foo_bar" % (mod, old)
+ a = "from %s import %s as foo_bar" % (mod, new)
+ self.check(b, a)
+
+ def test_import_module_usage(self):
+ for mod, (old, new) in self.modules.items():
+ b = """
+ import %s
+ foo(%s, %s.%s)
+ """ % (mod, mod, mod, old)
+ a = """
+ import %s
+ foo(%s, %s.%s)
+ """ % (mod, mod, mod, new)
+ self.check(b, a)
+
+ def XXX_test_from_import_usage(self):
+ # not implemented yet
+ for mod, (old, new) in self.modules.items():
+ b = """
+ from %s import %s
+ foo(%s, %s)
+ """ % (mod, old, mod, old)
+ a = """
+ from %s import %s
+ foo(%s, %s)
+ """ % (mod, new, mod, new)
+ self.check(b, a)
+
+
class Test_unicode(FixerTestCase):
fixer = "unicode"
From python-checkins at python.org Wed Dec 5 18:56:50 2007
From: python-checkins at python.org (georg.brandl)
Date: Wed, 5 Dec 2007 18:56:50 +0100 (CET)
Subject: [Python-checkins] r59356 - python/trunk/Doc/library/csv.rst
python/trunk/Doc/library/pprint.rst
python/trunk/Doc/library/traceback.rst
Message-ID: <20071205175651.047081E4028@bag.python.org>
Author: georg.brandl
Date: Wed Dec 5 18:56:50 2007
New Revision: 59356
Modified:
python/trunk/Doc/library/csv.rst
python/trunk/Doc/library/pprint.rst
python/trunk/Doc/library/traceback.rst
Log:
Add examples to csv, pprint and traceback docs.
Written by Ross for GHOP.
Modified: python/trunk/Doc/library/csv.rst
==============================================================================
--- python/trunk/Doc/library/csv.rst (original)
+++ python/trunk/Doc/library/csv.rst Wed Dec 5 18:56:50 2007
@@ -45,8 +45,6 @@
.. seealso::
- .. % \seemodule{array}{Arrays of uniformly types numeric values.}
-
:pep:`305` - CSV File API
The Python Enhancement Proposal which proposed this addition to Python.
@@ -77,6 +75,15 @@
All data read are returned as strings. No automatic data type conversion is
performed.
+ A short usage example::
+
+ >>> import csv
+ >>> spamReader = csv.reader(open('eggs.csv'), delimiter=' ', quotechar='|')
+ >>> for row in spamReader:
+ ... print ', '.join(row)
+ Spam, Spam, Spam, Spam, Spam, Baked Beans
+ Spam, Lovely Spam, Wonderful Spam
+
.. versionchanged:: 2.5
The parser is now stricter with respect to multi-line quoted fields. Previously,
if a line ended within a quoted field without a terminating newline character, a
@@ -106,6 +113,14 @@
CSV files without preprocessing the data returned from a ``cursor.fetch*`` call.
All other non-string data are stringified with :func:`str` before being written.
+ A short usage example::
+
+ >>> import csv
+ >>> spamWriter = csv.writer(open('eggs.csv', 'w'), delimiter=' ',
+ ... quotechar='|', quoting=QUOTE_MINIMAL)
+ >>> spamWriter.writerow(['Spam'] * 5 + ['Baked Beans'])
+ >>> spamWriter.writerow(['Spam', 'Lovely Spam', 'Wonderful Spam'])
+
.. function:: register_dialect(name[, dialect][, fmtparam])
Modified: python/trunk/Doc/library/pprint.rst
==============================================================================
--- python/trunk/Doc/library/pprint.rst (original)
+++ python/trunk/Doc/library/pprint.rst Wed Dec 5 18:56:50 2007
@@ -48,30 +48,23 @@
structure cannot be formatted within the constrained width, a best effort will
be made. ::
- >>> import pprint, sys
- >>> stuff = sys.path[:]
+ >>> import pprint
+ >>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
>>> stuff.insert(0, stuff[:])
>>> pp = pprint.PrettyPrinter(indent=4)
>>> pp.pprint(stuff)
- [ [ '',
- '/usr/local/lib/python1.5',
- '/usr/local/lib/python1.5/test',
- '/usr/local/lib/python1.5/sunos5',
- '/usr/local/lib/python1.5/sharedmodules',
- '/usr/local/lib/python1.5/tkinter'],
- '',
- '/usr/local/lib/python1.5',
- '/usr/local/lib/python1.5/test',
- '/usr/local/lib/python1.5/sunos5',
- '/usr/local/lib/python1.5/sharedmodules',
- '/usr/local/lib/python1.5/tkinter']
- >>>
- >>> import parser
- >>> tup = parser.ast2tuple(
- ... parser.suite(open('pprint.py').read()))[1][1][1]
+ [ ['spam', 'eggs', 'lumberjack', 'knights', 'ni'],
+ 'spam',
+ 'eggs',
+ 'lumberjack',
+ 'knights',
+ 'ni']
+ >>> tup = ('spam', ('eggs', ('lumberjack', ('knights', ('ni', ('dead',
+ ... ('parrot', ('fresh fruit',))))))))
>>> pp = pprint.PrettyPrinter(depth=6)
>>> pp.pprint(tup)
- (266, (267, (307, (287, (288, (...))))))
+ ('spam',
+ ('eggs', ('lumberjack', ('knights', ('ni', ('dead', ('parrot', (...,))))))))
The :class:`PrettyPrinter` class supports several derivative functions:
@@ -96,7 +89,8 @@
inspecting values. *indent*, *width* and *depth* will be passed to the
:class:`PrettyPrinter` constructor as formatting parameters. ::
- >>> stuff = sys.path[:]
+ >>> import pprint
+ >>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
>>> stuff.insert(0, stuff)
>>> pprint.pprint(stuff)
[,
@@ -211,3 +205,38 @@
.. versionadded:: 2.3
+.. _pprint-example:
+
+pprint Example
+--------------
+
+This example demonstrates several uses of the :func:`pprint` function and its parameters.
+
+ >>> import pprint
+ >>> tup = ('spam', ('eggs', ('lumberjack', ('knights', ('ni', ('dead',
+ ... ('parrot', ('fresh fruit',))))))))
+ >>> stuff = ['a' * 10, tup, ['a' * 30, 'b' * 30], ['c' * 20, 'd' * 20]]
+ >>> pprint.pprint(stuff)
+ ['aaaaaaaaaa',
+ ('spam',
+ ('eggs',
+ ('lumberjack',
+ ('knights', ('ni', ('dead', ('parrot', ('fresh fruit',)))))))),
+ ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'],
+ ['cccccccccccccccccccc', 'dddddddddddddddddddd']]
+ >>> pprint.pprint(stuff, depth=3)
+ ['aaaaaaaaaa',
+ ('spam', ('eggs', ('lumberjack', (...)))),
+ ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'],
+ ['cccccccccccccccccccc', 'dddddddddddddddddddd']]
+ >>> pprint.pprint(stuff, width=60)
+ ['aaaaaaaaaa',
+ ('spam',
+ ('eggs',
+ ('lumberjack',
+ ('knights',
+ ('ni', ('dead', ('parrot', ('fresh fruit',)))))))),
+ ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'],
+ ['cccccccccccccccccccc', 'dddddddddddddddddddd']]
+
Modified: python/trunk/Doc/library/traceback.rst
==============================================================================
--- python/trunk/Doc/library/traceback.rst (original)
+++ python/trunk/Doc/library/traceback.rst Wed Dec 5 18:56:50 2007
@@ -137,8 +137,8 @@
.. _traceback-example:
-Traceback Example
------------------
+Traceback Examples
+------------------
This simple example implements a basic read-eval-print loop, similar to (but
less useful than) the standard Python interactive interpreter loop. For a more
@@ -161,3 +161,124 @@
while 1:
run_user_code(envdir)
+
+The following example demonstrates the different ways to print and format the
+exception and traceback::
+
+ import sys, traceback
+
+ def lumberjack():
+ bright_side_of_death()
+
+ def bright_side_of_death():
+ return tuple()[0]
+
+ try:
+ lumberjack()
+ except:
+ exceptionType, exceptionValue, exceptionTraceback = sys.exc_info()
+ print "*** print_tb:"
+ traceback.print_tb(exceptionTraceback, limit=1, file=sys.stdout)
+ print "*** print_exception:"
+ traceback.print_exception(exceptionType, exceptionValue, exceptionTraceback,
+ limit=2, file=sys.stdout)
+ print "*** print_exc:"
+ traceback.print_exc()
+ print "*** format_exc, first and last line:"
+ formatted_lines = traceback.format_exc().splitlines()
+ print formatted_lines[0]
+ print formatted_lines[-1]
+ print "*** format_exception:"
+ print repr(traceback.format_exception(exceptionType, exceptionValue,
+ exceptionTraceback))
+ print "*** extract_tb:"
+ print repr(traceback.extract_tb(exceptionTraceback))
+ print "*** format_tb:"
+ print repr(traceback.format_tb(exceptionTraceback))
+ print "*** tb_lineno:", traceback.tb_lineno(exceptionTraceback)
+ print "*** print_last:"
+ traceback.print_last()
+
+
+The output for the example would look similar to this::
+
+ *** print_tb:
+ File "", line 9, in
+ lumberjack()
+ *** print_exception:
+ Traceback (most recent call last):
+ File "", line 9, in
+ lumberjack()
+ File "", line 3, in lumberjack
+ bright_side_of_death()
+ IndexError: tuple index out of range
+ *** print_exc:
+ Traceback (most recent call last):
+ File "", line 9, in
+ lumberjack()
+ File "", line 3, in lumberjack
+ bright_side_of_death()
+ IndexError: tuple index out of range
+ *** format_exc, first and last line:
+ Traceback (most recent call last):
+ IndexError: tuple index out of range
+ *** format_exception:
+ ['Traceback (most recent call last):\n',
+ ' File "", line 9, in \n lumberjack()\n',
+ ' File "", line 3, in lumberjack\n bright_side_of_death()\n',
+ ' File "", line 6, in bright_side_of_death\n return tuple()[0]\n',
+ 'IndexError: tuple index out of range\n']
+ *** extract_tb:
+ [('', 9, '', 'lumberjack()'),
+ ('', 3, 'lumberjack', 'bright_side_of_death()'),
+ ('', 6, 'bright_side_of_death', 'return tuple()[0]')]
+ *** format_tb:
+ [' File "", line 9, in \n lumberjack()\n',
+ ' File "", line 3, in lumberjack\n bright_side_of_death()\n',
+ ' File "", line 6, in bright_side_of_death\n return tuple()[0]\n']
+ *** tb_lineno: 2
+ *** print_last:
+ Traceback (most recent call last):
+ File "", line 9, in
+ lumberjack()
+ File "", line 3, in lumberjack
+ bright_side_of_death()
+ IndexError: tuple index out of range
+
+
+The following example shows the different ways to print and format the stack::
+
+ >>> import traceback
+ >>> def another_function():
+ ... lumberstack()
+ ...
+ >>> def lumberstack():
+ ... traceback.print_stack()
+ ... print repr(traceback.extract_stack())
+ ... print repr(traceback.format_stack())
+ ...
+ >>> another_function()
+ File "", line 10, in
+ another_function()
+ File "", line 3, in another_function
+ lumberstack()
+ File "", line 6, in lumberstack
+ traceback.print_stack()
+ [('', 10, '', 'another_function()'),
+ ('', 3, 'another_function', 'lumberstack()'),
+ ('', 7, 'lumberstack', 'print repr(traceback.extract_stack())')]
+ [' File "", line 10, in \n another_function()\n',
+ ' File "", line 3, in another_function\n lumberstack()\n',
+ ' File "", line 8, in lumberstack\n print repr(traceback.format_stack())\n']
+
+
+This last example demonstrates the final few formatting functions::
+
+ >>> import traceback
+ >>> format_list([('spam.py', 3, '', 'spam.eggs()'),
+ ... ('eggs.py', 42, 'eggs', 'return "bacon"')])
+ [' File "spam.py", line 3, in \n spam.eggs()\n',
+ ' File "eggs.py", line 42, in eggs\n return "bacon"\n']
+ >>> theError = IndexError('tuple indx out of range')
+ >>> traceback.format_exception_only(type(theError), theError)
+ ['IndexError: tuple index out of range\n']
From python-checkins at python.org Wed Dec 5 19:11:08 2007
From: python-checkins at python.org (raymond.hettinger)
Date: Wed, 5 Dec 2007 19:11:08 +0100 (CET)
Subject: [Python-checkins] r59358 - in python/trunk/Lib: collections.py
test/test_collections.py
Message-ID: <20071205181108.9293B1E4017@bag.python.org>
Author: raymond.hettinger
Date: Wed Dec 5 19:11:08 2007
New Revision: 59358
Modified:
python/trunk/Lib/collections.py
python/trunk/Lib/test/test_collections.py
Log:
Error checking was too aggressive (reported by Chris Tismer)
Modified: python/trunk/Lib/collections.py
==============================================================================
--- python/trunk/Lib/collections.py (original)
+++ python/trunk/Lib/collections.py Wed Dec 5 19:11:08 2007
@@ -40,7 +40,7 @@
field_names = field_names.replace(',', ' ').split() # names separated by whitespace and/or commas
field_names = tuple(field_names)
for name in (typename,) + field_names:
- if not name.replace('_', '').isalnum():
+ if not all(c.isalnum() or c=='_' for c in name):
raise ValueError('Type names and field names can only contain alphanumeric characters and underscores: %r' % name)
if _iskeyword(name):
raise ValueError('Type names and field names cannot be a keyword: %r' % name)
@@ -48,7 +48,7 @@
raise ValueError('Type names and field names cannot start with a number: %r' % name)
seen_names = set()
for name in field_names:
- if name.startswith('__') and name.endswith('__'):
+ if name.startswith('__') and name.endswith('__') and len(name) > 3:
raise ValueError('Field names cannot start and end with double underscores: %r' % name)
if name in seen_names:
raise ValueError('Encountered duplicate field name: %r' % name)
Modified: python/trunk/Lib/test/test_collections.py
==============================================================================
--- python/trunk/Lib/test/test_collections.py (original)
+++ python/trunk/Lib/test/test_collections.py Wed Dec 5 19:11:08 2007
@@ -29,6 +29,7 @@
self.assertRaises(ValueError, namedtuple, 'abc', 'efg efg ghi') # duplicate field
namedtuple('Point0', 'x1 y2') # Verify that numbers are allowed in names
+ namedtuple('_', '_ __ ___') # Verify that underscores are allowed
def test_instance(self):
Point = namedtuple('Point', 'x y')
From python-checkins at python.org Wed Dec 5 19:30:49 2007
From: python-checkins at python.org (georg.brandl)
Date: Wed, 5 Dec 2007 19:30:49 +0100 (CET)
Subject: [Python-checkins] r59359 - in python/trunk/Doc: ACKS.txt
library/re.rst
Message-ID: <20071205183049.19C071E402E@bag.python.org>
Author: georg.brandl
Date: Wed Dec 5 19:30:48 2007
New Revision: 59359
Modified:
python/trunk/Doc/ACKS.txt
python/trunk/Doc/library/re.rst
Log:
Add examples to re docs. Written for GHOP by Dan Finnie.
Modified: python/trunk/Doc/ACKS.txt
==============================================================================
--- python/trunk/Doc/ACKS.txt (original)
+++ python/trunk/Doc/ACKS.txt Wed Dec 5 19:30:48 2007
@@ -48,6 +48,7 @@
* Carey Evans
* Martijn Faassen
* Carl Feynman
+* Dan Finnie
* Hern?n Mart?nez Foffani
* Stefan Franke
* Jim Fulton
Modified: python/trunk/Doc/library/re.rst
==============================================================================
--- python/trunk/Doc/library/re.rst (original)
+++ python/trunk/Doc/library/re.rst Wed Dec 5 19:30:48 2007
@@ -31,6 +31,11 @@
newline. Usually patterns will be expressed in Python code using this raw
string notation.
+It is important to note that most regular expression operations are available as
+module-level functions and :class:`RegexObject` methods. The functions are
+shortcuts that don't require you to compile a regex object first, but miss some
+fine-tuning parameters.
+
.. seealso::
Mastering Regular Expressions
@@ -408,11 +413,9 @@
::
- re.compile("a").match("ba", 1) # succeeds
- re.compile("^a").search("ba", 1) # fails; 'a' not at start
- re.compile("^a").search("\na", 1) # fails; 'a' not at start
- re.compile("^a", re.M).search("\na", 1) # succeeds
- re.compile("^a", re.M).search("ba", 1) # fails; no preceding \n
+ >>> re.match("c", "abcdef") # No match
+ >>> re.search("c", "abcdef")
+ <_sre.SRE_Match object at 0x827e9c0> # Match
.. _contents-of-module-re:
@@ -504,7 +507,13 @@
character class or preceded by an unescaped backslash, all characters from the
leftmost such ``'#'`` through the end of the line are ignored.
- .. % XXX should add an example here
+ That means that the two following regular expression objects that match a
+ decimal number are functionally equal::
+
+ a = re.compile(r"""\d + # the integral part
+ \. # the decimal point
+ \d * # some fractional digits""", re.X)
+ b = re.compile(r"\d+\.\d*")
.. function:: search(pattern, string[, flags])
@@ -525,7 +534,8 @@
.. note::
- If you want to locate a match anywhere in *string*, use :meth:`search` instead.
+ If you want to locate a match anywhere in *string*, use :meth:`search`
+ instead.
.. function:: split(pattern, string[, maxsplit=0])
@@ -663,7 +673,8 @@
.. note::
- If you want to locate a match anywhere in *string*, use :meth:`search` instead.
+ If you want to locate a match anywhere in *string*, use :meth:`search`
+ instead.
The optional second parameter *pos* gives an index in the string where the
search is to start; it defaults to ``0``. This is not completely equivalent to
@@ -676,7 +687,12 @@
from *pos* to ``endpos - 1`` will be searched for a match. If *endpos* is less
than *pos*, no match will be found, otherwise, if *rx* is a compiled regular
expression object, ``rx.match(string, 0, 50)`` is equivalent to
- ``rx.match(string[:50], 0)``.
+ ``rx.match(string[:50], 0)``. ::
+
+ >>> pattern = re.compile("o")
+ >>> pattern.match("dog") # No match as "o" is not at the start of "dog."
+ >>> pattern.match("dog", 1) # Match as "o" is the 2nd character of "dog".
+ <_sre.SRE_Match object at 0x827eb10>
.. method:: RegexObject.search(string[, pos[, endpos]])
@@ -764,7 +780,17 @@
pattern, an :exc:`IndexError` exception is raised. If a group is contained in a
part of the pattern that did not match, the corresponding result is ``None``.
If a group is contained in a part of the pattern that matched multiple times,
- the last match is returned.
+ the last match is returned. ::
+
+ >>> m = re.match(r"(\w+) (\w+)", "Isaac Newton, physicist")
+ >>> m.group(0)
+ 'Isaac Newton' # The entire match
+ >>> m.group(1)
+ 'Isaac' # The first parenthesized subgroup.
+ >>> m.group(2)
+ 'Newton' # The second parenthesized subgroup.
+ >>> m.group(1, 2)
+ ('Isaac', 'Newton') # Multiple arguments give us a tuple.
If the regular expression uses the ``(?P...)`` syntax, the *groupN*
arguments may also be strings identifying groups by their group name. If a
@@ -773,10 +799,23 @@
A moderately complicated example::
- m = re.match(r"(?P\d+)\.(\d*)", '3.14')
-
- After performing this match, ``m.group(1)`` is ``'3'``, as is
- ``m.group('int')``, and ``m.group(2)`` is ``'14'``.
+ >>> m = re.match(r"(?P\w+) (?P\w+)", "Malcom Reynolds")
+ >>> m.group('first_name')
+ 'Malcom'
+ >>> m.group('last_name')
+ 'Reynolds'
+
+ Named groups can also be referred to by their index::
+
+ >>> m.group(1)
+ 'Malcom'
+ >>> m.group(2)
+ 'Reynolds'
+
+ If a group matches multiple times, only the last match is accessible::
+ >>> m = re.match(r"(..)+", "a1b2c3") # Matches 3 times.
+ >>> m.group(1) # Returns only the last match.
+ 'c3'
.. method:: MatchObject.groups([default])
@@ -788,12 +827,32 @@
string would be returned instead. In later versions (from 1.5.1 on), a
singleton tuple is returned in such cases.)
+ For example::
+
+ >>> m = re.match(r"(\d+)\.(\d+)", "24.1632")
+ >>> m.groups()
+ ('24', '1632')
+
+ If we make the decimal place and everything after it optional, not all groups
+ might participate in the match. These groups will default to ``None`` unless
+ the *default* argument is given::
+
+ >>> m = re.match(r"(\d+)\.?(\d+)?", "24")
+ >>> m.groups()
+ ('24', None) # Second group defaults to None.
+ >>> m.groups('0')
+ ('24', '0') # Now, the second group defaults to '0'.
+
.. method:: MatchObject.groupdict([default])
Return a dictionary containing all the *named* subgroups of the match, keyed by
the subgroup name. The *default* argument is used for groups that did not
- participate in the match; it defaults to ``None``.
+ participate in the match; it defaults to ``None``. For example::
+
+ >>> m = re.match(r"(?P\w+) (?P\w+)", "Malcom Reynolds")
+ >>> m.groupdict()
+ {'first_name': 'Malcom', 'last_name': 'Reynolds'}
.. method:: MatchObject.start([group])
@@ -812,12 +871,19 @@
``m.start(0)`` is 1, ``m.end(0)`` is 2, ``m.start(1)`` and ``m.end(1)`` are both
2, and ``m.start(2)`` raises an :exc:`IndexError` exception.
+ An example that will remove *remove_this* from email addresses::
+
+ >>> email = "tony at tiremove_thisger.net"
+ >>> m = re.search("remove_this", email)
+ >>> email[:m.start()] + email[m.end():]
+ 'tony at tiger.net'
+
.. method:: MatchObject.span([group])
For :class:`MatchObject` *m*, return the 2-tuple ``(m.start(group),
m.end(group))``. Note that if *group* did not contribute to the match, this is
- ``(-1, -1)``. Again, *group* defaults to zero.
+ ``(-1, -1)``. *group* defaults to zero, the entire match.
.. attribute:: MatchObject.pos
@@ -863,7 +929,62 @@
Examples
--------
-**Simulating scanf()**
+
+Checking For a Pair
+^^^^^^^^^^^^^^^^^^^
+
+In this example, we'll use the following helper function to display match
+objects a little more gracefully::
+
+ def displaymatch(match):
+ if match is None:
+ return None
+ return '' % (match.group(), match.groups())
+
+Suppose you are writing a poker program where a player's hand is represented as
+a 5-character string with each character representing a card, "a" for ace, "k"
+for king, "q" for queen, j for jack, "0" for 10, and "1" through "9"
+representing the card with that value.
+
+To see if a given string is a valid hand, one could do the following::
+
+ >>> valid = re.compile(r"[0-9akqj]{5}$"
+ >>> displaymatch(valid.match("ak05q")) # Valid.
+
+ >>> displaymatch(valid.match("ak05e")) # Invalid.
+ >>> displaymatch(valid.match("ak0")) # Invalid.
+ >>> displaymatch(valid.match("727ak")) # Valid.
+
+
+That last hand, ``"727ak"``, contained a pair, or two of the same valued cards.
+To match this with a regular expression, one could use backreferences as such::
+
+ >>> pair = re.compile(r".*(.).*\1")
+ >>> displaymatch(pair.match("717ak")) # Pair of 7s.
+
+ >>> displaymatch(pair.match("718ak")) # No pairs.
+ >>> displaymatch(pair.match("354aa")) # Pair of aces.
+
+
+To find out what card the pair consists of, one could use the :func:`group`
+method of :class:`MatchObject` in the following manner::
+
+ >>> pair.match("717ak").group(1)
+ '7'
+
+ # Error because re.match() returns None, which doesn't have a group() method:
+ >>> pair.match("718ak").group(1)
+ Traceback (most recent call last):
+ File "", line 1, in
+ re.match(r".*(.).*\1", "718ak").group(1)
+ AttributeError: 'NoneType' object has no attribute 'group'
+
+ >>> pair.match("354aa").group(1)
+ 'a'
+
+
+Simulating scanf()
+^^^^^^^^^^^^^^^^^^
.. index:: single: scanf()
@@ -907,7 +1028,9 @@
(\S+) - (\d+) errors, (\d+) warnings
-**Avoiding recursion**
+
+Avoiding recursion
+^^^^^^^^^^^^^^^^^^
If you create regular expressions that require the engine to perform a lot of
recursion, you may encounter a :exc:`RuntimeError` exception with the message
@@ -929,3 +1052,148 @@
being recast as ``Begin [a-zA-Z0-9_ ]*?end``. As a further benefit, such
regular expressions will run faster than their recursive equivalents.
+
+search() vs. match()
+^^^^^^^^^^^^^^^^^^^^
+
+In a nutshell, :func:`match` only attempts to match a pattern at the beginning
+of a string where :func:`search` will match a pattern anywhere in a string.
+For example::
+
+ >>> re.match("o", "dog") # No match as "o" is not the first letter of "dog".
+ >>> re.search("o", "dog") # Match as search() looks everywhere in the string.
+ <_sre.SRE_Match object at 0x827e9f8>
+
+.. note::
+
+ The following applies only to regular expression objects like those created
+ with ``re.compile("pattern")``, not the primitives
+ ``re.match(pattern, string)`` or ``re.search(pattern, string)``.
+
+:func:`match` has an optional second parameter that gives an index in the string
+where the search is to start::
+
+ >>> pattern = re.compile("o")
+ >>> pattern.match("dog") # No match as "o" is not at the start of "dog."
+ # Equivalent to the above expression as 0 is the default starting index:
+ >>> pattern.match("dog", 0)
+ # Match as "o" is the 2nd character of "dog" (index 0 is the first):
+ >>> pattern.match("dog", 1)
+ <_sre.SRE_Match object at 0x827eb10>
+ >>> pattern.match("dog", 2) # No match as "o" is not the 3rd character of "dog."
+
+
+Making a Phonebook
+^^^^^^^^^^^^^^^^^^
+
+:func:`split` splits a string into a list delimited by the passed pattern. The
+method is invaluable for converting textual data into data structures that can be
+easily read and modified by Python as demonstrated in the following example that
+creates a phonebook.
+
+First, get the input using triple-quoted string syntax::
+
+ >>> input = """Ross McFluff 834.345.1254 155 Elm Street
+ Ronald Heathmore 892.345.3428 436 Finley Avenue
+ Frank Burger 925.541.7625 662 South Dogwood Way
+ Heather Albrecht 548.326.4584 919 Park Place"""
+
+Then, convert the string into a list with each line having its own entry::
+
+ >>> entries = re.split("\n", input)
+ >>> entries
+ ['Ross McFluff 834.345.1254 155 Elm Street',
+ 'Ronald Heathmore 892.345.3428 436 Finley Avenue',
+ 'Frank Burger 925.541.7625 662 South Dogwood Way',
+ 'Heather Albrecht 548.326.4584 919 Park Place']
+
+Finally, split each entry into a list with first name, last name, telephone
+number, and address. We use the ``maxsplit`` paramater of :func:`split`
+because the address has spaces, our splitting pattern, in it::
+
+ >>> [re.split(" ", entry, 3) for entry in entries]
+ [['Ross', 'McFluff', '834.345.1254', '155 Elm Street'],
+ ['Ronald', 'Heathmore', '892.345.3428', '436 Finley Avenue'],
+ ['Frank', 'Burger', '925.541.7625', '662 South Dogwood Way'],
+ ['Heather', 'Albrecht', '548.326.4584', '919 Park Place']]
+
+With a ``maxsplit`` of ``4``, we could seperate the house number from the street
+name::
+
+ >>> [re.split(" ", entry, 4) for entry in entries]
+ [['Ross', 'McFluff', '834.345.1254', '155', 'Elm Street'],
+ ['Ronald', 'Heathmore', '892.345.3428', '436', 'Finley Avenue'],
+ ['Frank', 'Burger', '925.541.7625', '662', 'South Dogwood Way'],
+ ['Heather', 'Albrecht', '548.326.4584', '919', 'Park Place']]
+
+
+Text Munging
+^^^^^^^^^^^^
+
+:func:`sub` replaces every occurrence of a pattern with a string or the
+result of a function. This example demonstrates using :func:`sub` with
+a function to "munge" text, or randomize the order of all the characters
+in each word of a sentence except for the first and last characters::
+
+ >>> def repl(m):
+ ... inner_word = list(m.group(2))
+ ... random.shuffle(inner_word)
+ ... return m.group(1) + "".join(inner_word) + m.group(3)
+ >>> text = "Professor Abdolmalek, please report your absences promptly."
+ >>> re.sub("(\w)(\w+)(\w)", repl, text)
+ 'Poefsrosr Aealmlobdk, pslaee reorpt your abnseces plmrptoy.'
+ >>> re.sub("(\w)(\w+)(\w)", repl, text)
+ 'Pofsroser Aodlambelk, plasee reoprt yuor asnebces potlmrpy.'
+
+
+Finding all Adverbs
+^^^^^^^^^^^^^^^^^^^
+
+:func:`findall` matches *all* occurences of a pattern, not just the first
+one as :func:`search` does. For example, if one was a writer and wanted to
+find all of the adverbs in some text, he or she might use :func:`findall` in
+the following manner::
+
+ >>> text = "He was carefully disguised but captured quickly by police."
+ >>> re.findall(r"\w+ly", text)
+ ['carefully', 'quickly']
+
+
+Finding all Adverbs and their Positions
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+If one wants more information about all matches of a pattern than the matched
+text, :func:`finditer` is useful as it provides instances of
+:class:`MatchObject` instead of strings. Continuing with the previous example,
+if one was a writer who wanted to find all of the adverbs *and their positions*
+in some text, he or she would use :func:`finditer` in the following manner::
+
+ >>> text = "He was carefully disguised but captured quickly by police."
+ >>> for m in re.finditer(r"\w+ly", text):
+ print '%02d-%02d: %s' % (m.start(), m.end(), m.group(0))
+ 07-16: carefully
+ 40-47: quickly
+
+
+Raw String Notation
+^^^^^^^^^^^^^^^^^^^
+
+Raw string notation (``r"text"``) keeps regular expressions sane. Without it,
+every backslash (``'\'``) in a regular expression would have to be prefixed with
+another one to escape it. For example, the two following lines of code are
+functionally identical::
+
+ >>> re.match(r"\W(.)\1\W", " ff ")
+ <_sre.SRE_Match object at 0x8262760>
+ >>> re.match("\\W(.)\\1\\W", " ff ")
+ <_sre.SRE_Match object at 0x82627a0>
+
+When one wants to match a literal backslash, it must be escaped in the regular
+expression. With raw string notation, this means ``r"\\"``. Without raw string
+notation, one must use ``"\\\\"``, making the following lines of code
+functionally identical::
+
+ >>> re.match(r"\\", r"\\")
+ <_sre.SRE_Match object at 0x827eb48>
+ >>> re.match("\\\\", r"\\")
+ <_sre.SRE_Match object at 0x827ec60>
From python-checkins at python.org Wed Dec 5 19:47:10 2007
From: python-checkins at python.org (martin.v.loewis)
Date: Wed, 5 Dec 2007 19:47:10 +0100 (CET)
Subject: [Python-checkins] r59361 - external/tix-8.4.0/win/python9.mak
Message-ID: <20071205184711.018081E4016@bag.python.org>
Author: martin.v.loewis
Date: Wed Dec 5 19:47:10 2007
New Revision: 59361
Added:
external/tix-8.4.0/win/python9.mak (contents, props changed)
Log:
Add project file for use with VS 2009.
Added: external/tix-8.4.0/win/python9.mak
==============================================================================
--- (empty file)
+++ external/tix-8.4.0/win/python9.mak Wed Dec 5 19:47:10 2007
@@ -0,0 +1,10 @@
+TCL_MAJOR=8
+TCL_MINOR=4
+TCL_PATCH=16
+INSTALL_DIR=..\..\tcltk
+TOOLS32=$(VCINSTALLDIR)
+TOOLS32_rc=$(VCINSTALLDIR)
+MKDIR=md
+RMDIR=rd
+
+!include "makefile.vc"
From buildbot at python.org Wed Dec 5 19:57:27 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 18:57:27 +0000
Subject: [Python-checkins] buildbot failure in x86 OpenBSD trunk
Message-ID: <20071205185727.935121E400F@bag.python.org>
The Buildbot has detected a new failure of x86 OpenBSD trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20OpenBSD%20trunk/builds/148
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: cortesi
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: andrew.kuchling,georg.brandl,raymond.hettinger
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From buildbot at python.org Wed Dec 5 19:59:58 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 18:59:58 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071205185958.5C7101E4019@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/340
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_urllib2 test_urllib2net
======================================================================
ERROR: testURLread (test.test_urllib2net.URLTimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 24, in testURLread
f = urllib2.urlopen("http://www.python.org/")
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_bad_address (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 145, in test_bad_address
urllib2.urlopen, "http://www.python.invalid./")
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/unittest.py", line 311, in failUnlessRaises
callableObj(*args, **kwargs)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_basic (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 103, in test_basic
open_url = urllib2.urlopen("http://www.python.org/")
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_geturl (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 127, in test_geturl
open_url = urllib2.urlopen(URL)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_info (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 114, in test_info
open_url = urllib2.urlopen("http://www.python.org/")
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_file (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 185, in test_file
self._test_urls(urls, self._extra_handlers())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 233, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 173, in test_ftp
self._test_urls(urls, self._extra_handlers())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 233, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 197, in test_http
self._test_urls(urls, self._extra_handlers())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 233, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_range (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 158, in test_range
result = urllib2.urlopen(req)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_close (test.test_urllib2net.CloseSocketTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 76, in test_close
response = urllib2.urlopen("http://www.python.org/")
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp_NoneNodefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 304, in test_ftp_NoneNodefault
timeout=None)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp_NoneWithdefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 297, in test_ftp_NoneWithdefault
timeout=None)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp_Value (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 308, in test_ftp_Value
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=60)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_ftp_basic (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 289, in test_ftp_basic
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/")
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http_NoneNodefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 285, in test_http_NoneNodefault
u = urllib2.urlopen("http://www.python.org", timeout=None)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http_NoneWithdefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 275, in test_http_NoneWithdefault
u = urllib2.urlopen("http://www.python.org", timeout=None)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http_Value (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 281, in test_http_Value
u = urllib2.urlopen("http://www.python.org", timeout=120)
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
======================================================================
ERROR: test_http_basic (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/test/test_urllib2net.py", line 268, in test_http_basic
u = urllib2.urlopen("http://www.python.org")
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 121, in urlopen
_opener = build_opener()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 458, in build_opener
opener.add_handler(klass())
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib2.py", line 667, in __init__
proxies = getproxies()
File "/home/pybot/buildarea/3.0.klose-debian-s390/build/Lib/urllib.py", line 1229, in getproxies_environment
for name, value in os.environ.items():
AttributeError: 'NoneType' object has no attribute 'environ'
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 20:18:28 2007
From: python-checkins at python.org (guido.van.rossum)
Date: Wed, 5 Dec 2007 20:18:28 +0100 (CET)
Subject: [Python-checkins] r59363 - peps/trunk/pep-3116.txt
Message-ID: <20071205191828.B247D1E400F@bag.python.org>
Author: guido.van.rossum
Date: Wed Dec 5 20:18:28 2007
New Revision: 59363
Modified:
peps/trunk/pep-3116.txt
Log:
Add line_buffering to TextIOWrapper().
Modified: peps/trunk/pep-3116.txt
==============================================================================
--- peps/trunk/pep-3116.txt (original)
+++ peps/trunk/pep-3116.txt Wed Dec 5 20:18:28 2007
@@ -339,7 +339,8 @@
``BufferedIOBase`` object. Its initializer has the following
signature:
- ``.__init__(self, buffer, encoding=None, errors=None, newline=None)``
+ ``.__init__(self, buffer, encoding=None, errors=None, newline=None,
+ line_buffering=False)``
``buffer`` is a reference to the ``BufferedIOBase`` object to
be wrapped with the ``TextIOWrapper``.
@@ -377,6 +378,12 @@
guiding translation are different for output than for
input.)
+ ``line_buffering``, if True, causes ``write()`` calls to imply
+ a ``flush()`` if the string written contains at least one
+ ``'\n'`` or ``'\r'`` character. This is set by ``open()``
+ when it detects that the underlying stream is a TTY device,
+ or when a ``buffering`` argument of ``1`` is passed.
+
Further notes on the ``newline`` parameter:
* ``'\r'`` support is still needed for some OSX applications
@@ -487,7 +494,8 @@
raise ValueError("binary modes doesn't take a newline arg")
# XXX Need to spec the signature for FileIO()
raw = FileIO(filename, mode)
- if buffering is None:
+ line_buffering = (buffering == 1 or buffering is None and raw.isatty())
+ if line_buffering or buffering is None:
buffering = 8*1024 # International standard buffer size
# XXX Try setting it to fstat().st_blksize
if buffering < 0:
@@ -506,7 +514,7 @@
if binary:
return buffer
assert text
- return TextIOWrapper(buffer, encoding, errors, newline)
+ return TextIOWrapper(buffer, encoding, errors, newline, line_buffering)
Copyright
From python-checkins at python.org Wed Dec 5 20:49:21 2007
From: python-checkins at python.org (georg.brandl)
Date: Wed, 5 Dec 2007 20:49:21 +0100 (CET)
Subject: [Python-checkins] r59366 - python/trunk/Doc/c-api/refcounting.rst
Message-ID: <20071205194921.595C91E400F@bag.python.org>
Author: georg.brandl
Date: Wed Dec 5 20:49:21 2007
New Revision: 59366
Modified:
python/trunk/Doc/c-api/refcounting.rst
Log:
Fix markup.
Modified: python/trunk/Doc/c-api/refcounting.rst
==============================================================================
--- python/trunk/Doc/c-api/refcounting.rst (original)
+++ python/trunk/Doc/c-api/refcounting.rst Wed Dec 5 20:49:21 2007
@@ -64,7 +64,7 @@
.. versionadded:: 2.4
The following functions are for runtime dynamic embedding of Python:
-``Py_IncRef(PyObject \*o)``, `Py_DecRef(PyObject \*o)``. They are
+``Py_IncRef(PyObject *o)``, ``Py_DecRef(PyObject *o)``. They are
simply exported function versions of :cfunc:`Py_XINCREF` and
:cfunc:`Py_XDECREF`, respectively.
From buildbot at python.org Wed Dec 5 20:49:50 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 19:49:50 +0000
Subject: [Python-checkins] buildbot failure in amd64 XP 3.0
Message-ID: <20071205194950.B2F561E400F@bag.python.org>
The Buildbot has detected a new failure of amd64 XP 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%203.0/builds/372
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed compile
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 20:57:54 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 20:57:54 +0100 (CET)
Subject: [Python-checkins] r59367 - python/trunk/PCbuild9/build_tkinter.py
python/trunk/PCbuild9/readme.txt
Message-ID: <20071205195754.E88161E401E@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 20:57:54 2007
New Revision: 59367
Modified:
python/trunk/PCbuild9/build_tkinter.py
python/trunk/PCbuild9/readme.txt
Log:
Updated documentation and build_tkinter.py script
Modified: python/trunk/PCbuild9/build_tkinter.py
==============================================================================
--- python/trunk/PCbuild9/build_tkinter.py (original)
+++ python/trunk/PCbuild9/build_tkinter.py Wed Dec 5 20:57:54 2007
@@ -12,12 +12,10 @@
here = os.path.abspath(os.path.dirname(__file__))
par = os.path.pardir
-#TCL = "tcl8.4.16"
-#TIX = "Tix8.4.2"
-#TK = "tk8.4.16"
-TCL = "tcl8.4.12"
+TCL = "tcl8.4.16"
+TK = "tk8.4.16"
TIX = "Tix8.4.0"
-TK = "tk8.4.12"
+#TIX = "Tix8.4.2"
ROOT = os.path.abspath(os.path.join(here, par, par))
NMAKE = "nmake /nologo "
@@ -57,9 +55,9 @@
if True:
os.chdir(os.path.join(ROOT, TIX, "win"))
if clean:
- system(NMAKE + "/f makefile.vc clean")
- system(NMAKE + "/f makefile.vc MACHINE=%s" % machine)
- system(NMAKE + "/f makefile.vc INSTALL_DIR=%s install" % dest)
+ system(NMAKE + "/f python9.mak clean")
+ system(NMAKE + "/f python9.mak MACHINE=%s" % machine)
+ system(NMAKE + "/f python9.mak install")
def main():
Modified: python/trunk/PCbuild9/readme.txt
==============================================================================
--- python/trunk/PCbuild9/readme.txt (original)
+++ python/trunk/PCbuild9/readme.txt Wed Dec 5 20:57:54 2007
@@ -72,23 +72,32 @@
_tkinter
Python wrapper for the Tk windowing system. Requires building
- Tcl/Tk first. Following are instructions for Tcl/Tk 8.4.12.
+ Tcl/Tk first. Following are instructions for Tcl/Tk 8.4.16.
NOTE: The 64 build builds must land in tcltk64 instead of tcltk.
Get source
----------
In the dist directory, run
- svn export http://svn.python.org/projects/external/tcl8.4.12
- svn export http://svn.python.org/projects/external/tk8.4.12
+ svn export http://svn.python.org/projects/external/tcl8.4.16
+ svn export http://svn.python.org/projects/external/tk8.4.16
svn export http://svn.python.org/projects/external/tix-8.4.0
- Build Tcl first (done here w/ MSVC 7.1 on Windows XP)
+ Build with build_tkinter.py
+ ---------------------------
+ The PCbuild9 directory contains a Python script which automates all
+ steps. Run the script in a Visual Studio 2009 command prompt with
+
+ python build_tkinter.py Win32
+
+ Use x64 instead of Win32 for the x64 platform.
+
+ Build Tcl first
---------------
- Use "Start -> All Programs -> Microsoft Visual Studio .NET 2003
- -> Visual Studio .NET Tools -> Visual Studio .NET 2003 Command Prompt"
+ Use "Start -> All Programs -> Microsoft Visual Studio 2008
+ -> Visual Studio Tools -> Visual Studio 2008 Command Prompt"
to get a shell window with the correct environment settings
- cd dist\tcl8.4.12\win
+ cd dist\tcl8.4.16\win
nmake -f makefile.vc
nmake -f makefile.vc INSTALLDIR=..\..\tcltk install
@@ -103,9 +112,9 @@
Build Tk
--------
- cd dist\tk8.4.12\win
- nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12
- nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 INSTALLDIR=..\..\tcltk install
+ cd dist\tk8.4.16\win
+ nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16
+ nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16 INSTALLDIR=..\..\tcltk install
XXX Should we compile with OPTS=threads?
@@ -113,7 +122,7 @@
XXX directory. Is all of that really needed for Python use of Tcl/Tk?
Optional: run tests, via
- nmake -f makefile.vc TCLDIR=..\..\tcl8.4.12 test
+ nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16 test
On WinXP Pro, wholly up to date as of 30-Aug-2004:
all.tcl: Total 8420 Passed 6826 Skipped 1581 Failed 13
@@ -123,8 +132,8 @@
Built Tix
---------
cd dist\tix-8.4.0\win
- nmake -f python.mak
- nmake -f python.mak install
+ nmake -f python9.mak
+ nmake -f python9.mak install
bz2
Python wrapper for the libbz2 compression library. Homepage
From buildbot at python.org Wed Dec 5 21:02:57 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 20:02:57 +0000
Subject: [Python-checkins] buildbot failure in alpha Tru64 5.1 3.0
Message-ID: <20071205200258.1C5051E480D@bag.python.org>
The Buildbot has detected a new failure of alpha Tru64 5.1 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/alpha%20Tru64%205.1%203.0/builds/428
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-tru64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: martin.v.loewis
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 21:03:58 2007
From: python-checkins at python.org (georg.brandl)
Date: Wed, 5 Dec 2007 21:03:58 +0100 (CET)
Subject: [Python-checkins] r59368 -
python/trunk/Doc/documenting/fromlatex.rst
Message-ID: <20071205200358.474ED1E4D30@bag.python.org>
Author: georg.brandl
Date: Wed Dec 5 21:03:57 2007
New Revision: 59368
Modified:
python/trunk/Doc/documenting/fromlatex.rst
Log:
Another markup fix.
Modified: python/trunk/Doc/documenting/fromlatex.rst
==============================================================================
--- python/trunk/Doc/documenting/fromlatex.rst (original)
+++ python/trunk/Doc/documenting/fromlatex.rst Wed Dec 5 21:03:57 2007
@@ -183,8 +183,8 @@
* :file:`ext` -> :file:`extending`
* :file:`inst` -> :file:`installing`
* :file:`lib` -> :file:`library`
-* :file:`mac` -> merged into :file:`library`, with `mac/using.tex`
- moved to `howto/pythonmac.rst`
+* :file:`mac` -> merged into :file:`library`, with :file:`mac/using.tex`
+ moved to :file:`howto/pythonmac.rst`
* :file:`ref` -> :file:`reference`
* :file:`tut` -> :file:`tutorial`, with the single TeX file split up
From python-checkins at python.org Wed Dec 5 21:07:37 2007
From: python-checkins at python.org (ronald.oussoren)
Date: Wed, 5 Dec 2007 21:07:37 +0100 (CET)
Subject: [Python-checkins] r59369 - python/trunk/Mac/Modules/osa/_OSAmodule.c
Message-ID: <20071205200737.613701E4031@bag.python.org>
Author: ronald.oussoren
Date: Wed Dec 5 21:07:36 2007
New Revision: 59369
Modified:
python/trunk/Mac/Modules/osa/_OSAmodule.c
Log:
This "fixes" compilation issues for the Carbon._OSA module on OSX Leopard
by purging bindings to OSA's debug API's. Those APIs we're completely
unsupported on OSX 10.4 and are no longer available on OSX 10.5.
Note that this patches a generated file. This is somewhat acceptable because
regenerating the file is non-trivial and wouldn't use system headers anyway.
Modified: python/trunk/Mac/Modules/osa/_OSAmodule.c
==============================================================================
--- python/trunk/Mac/Modules/osa/_OSAmodule.c (original)
+++ python/trunk/Mac/Modules/osa/_OSAmodule.c Wed Dec 5 21:07:36 2007
@@ -726,314 +726,6 @@
return _res;
}
-static PyObject *OSAObj_OSADebuggerCreateSession(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSAID inScript;
- OSAID inContext;
- OSADebugSessionRef outSession;
-#ifndef OSADebuggerCreateSession
- PyMac_PRECHECK(OSADebuggerCreateSession);
-#endif
- if (!PyArg_ParseTuple(_args, "ll",
- &inScript,
- &inContext))
- return NULL;
- _err = OSADebuggerCreateSession(_self->ob_itself,
- inScript,
- inContext,
- &outSession);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outSession);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetSessionState(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- AERecord outState;
-#ifndef OSADebuggerGetSessionState
- PyMac_PRECHECK(OSADebuggerGetSessionState);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerGetSessionState(_self->ob_itself,
- inSession,
- &outState);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("O&",
- AEDesc_New, &outState);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerSessionStep(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- OSADebugStepKind inKind;
-#ifndef OSADebuggerSessionStep
- PyMac_PRECHECK(OSADebuggerSessionStep);
-#endif
- if (!PyArg_ParseTuple(_args, "ll",
- &inSession,
- &inKind))
- return NULL;
- _err = OSADebuggerSessionStep(_self->ob_itself,
- inSession,
- inKind);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerDisposeSession(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
-#ifndef OSADebuggerDisposeSession
- PyMac_PRECHECK(OSADebuggerDisposeSession);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerDisposeSession(_self->ob_itself,
- inSession);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetStatementRanges(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- AEDescList outStatementRangeArray;
-#ifndef OSADebuggerGetStatementRanges
- PyMac_PRECHECK(OSADebuggerGetStatementRanges);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerGetStatementRanges(_self->ob_itself,
- inSession,
- &outStatementRangeArray);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("O&",
- AEDesc_New, &outStatementRangeArray);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetBreakpoint(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- UInt32 inSrcOffset;
- OSAID outBreakpoint;
-#ifndef OSADebuggerGetBreakpoint
- PyMac_PRECHECK(OSADebuggerGetBreakpoint);
-#endif
- if (!PyArg_ParseTuple(_args, "ll",
- &inSession,
- &inSrcOffset))
- return NULL;
- _err = OSADebuggerGetBreakpoint(_self->ob_itself,
- inSession,
- inSrcOffset,
- &outBreakpoint);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outBreakpoint);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerSetBreakpoint(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- UInt32 inSrcOffset;
- OSAID inBreakpoint;
-#ifndef OSADebuggerSetBreakpoint
- PyMac_PRECHECK(OSADebuggerSetBreakpoint);
-#endif
- if (!PyArg_ParseTuple(_args, "lll",
- &inSession,
- &inSrcOffset,
- &inBreakpoint))
- return NULL;
- _err = OSADebuggerSetBreakpoint(_self->ob_itself,
- inSession,
- inSrcOffset,
- inBreakpoint);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetDefaultBreakpoint(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- OSAID outBreakpoint;
-#ifndef OSADebuggerGetDefaultBreakpoint
- PyMac_PRECHECK(OSADebuggerGetDefaultBreakpoint);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerGetDefaultBreakpoint(_self->ob_itself,
- inSession,
- &outBreakpoint);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outBreakpoint);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetCurrentCallFrame(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- OSADebugCallFrameRef outCallFrame;
-#ifndef OSADebuggerGetCurrentCallFrame
- PyMac_PRECHECK(OSADebuggerGetCurrentCallFrame);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerGetCurrentCallFrame(_self->ob_itself,
- inSession,
- &outCallFrame);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outCallFrame);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetCallFrameState(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCallFrame;
- AERecord outState;
-#ifndef OSADebuggerGetCallFrameState
- PyMac_PRECHECK(OSADebuggerGetCallFrameState);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inCallFrame))
- return NULL;
- _err = OSADebuggerGetCallFrameState(_self->ob_itself,
- inCallFrame,
- &outState);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("O&",
- AEDesc_New, &outState);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetVariable(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCallFrame;
- AEDesc inVariableName;
- OSAID outVariable;
-#ifndef OSADebuggerGetVariable
- PyMac_PRECHECK(OSADebuggerGetVariable);
-#endif
- if (!PyArg_ParseTuple(_args, "lO&",
- &inCallFrame,
- AEDesc_Convert, &inVariableName))
- return NULL;
- _err = OSADebuggerGetVariable(_self->ob_itself,
- inCallFrame,
- &inVariableName,
- &outVariable);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outVariable);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerSetVariable(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCallFrame;
- AEDesc inVariableName;
- OSAID inVariable;
-#ifndef OSADebuggerSetVariable
- PyMac_PRECHECK(OSADebuggerSetVariable);
-#endif
- if (!PyArg_ParseTuple(_args, "lO&l",
- &inCallFrame,
- AEDesc_Convert, &inVariableName,
- &inVariable))
- return NULL;
- _err = OSADebuggerSetVariable(_self->ob_itself,
- inCallFrame,
- &inVariableName,
- inVariable);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetPreviousCallFrame(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCurrentFrame;
- OSADebugCallFrameRef outPrevFrame;
-#ifndef OSADebuggerGetPreviousCallFrame
- PyMac_PRECHECK(OSADebuggerGetPreviousCallFrame);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inCurrentFrame))
- return NULL;
- _err = OSADebuggerGetPreviousCallFrame(_self->ob_itself,
- inCurrentFrame,
- &outPrevFrame);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outPrevFrame);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerDisposeCallFrame(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCallFrame;
-#ifndef OSADebuggerDisposeCallFrame
- PyMac_PRECHECK(OSADebuggerDisposeCallFrame);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inCallFrame))
- return NULL;
- _err = OSADebuggerDisposeCallFrame(_self->ob_itself,
- inCallFrame);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
static PyMethodDef OSAObj_methods[] = {
{"OSALoad", (PyCFunction)OSAObj_OSALoad, 1,
PyDoc_STR("(AEDesc scriptData, long modeFlags) -> (OSAID resultingScriptID)")},
@@ -1091,34 +783,6 @@
PyDoc_STR("(AppleEvent theAppleEvent, OSAID contextID, long modeFlags) -> (AppleEvent reply)")},
{"OSAMakeContext", (PyCFunction)OSAObj_OSAMakeContext, 1,
PyDoc_STR("(AEDesc contextName, OSAID parentContext) -> (OSAID resultingContextID)")},
- {"OSADebuggerCreateSession", (PyCFunction)OSAObj_OSADebuggerCreateSession, 1,
- PyDoc_STR("(OSAID inScript, OSAID inContext) -> (OSADebugSessionRef outSession)")},
- {"OSADebuggerGetSessionState", (PyCFunction)OSAObj_OSADebuggerGetSessionState, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> (AERecord outState)")},
- {"OSADebuggerSessionStep", (PyCFunction)OSAObj_OSADebuggerSessionStep, 1,
- PyDoc_STR("(OSADebugSessionRef inSession, OSADebugStepKind inKind) -> None")},
- {"OSADebuggerDisposeSession", (PyCFunction)OSAObj_OSADebuggerDisposeSession, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> None")},
- {"OSADebuggerGetStatementRanges", (PyCFunction)OSAObj_OSADebuggerGetStatementRanges, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> (AEDescList outStatementRangeArray)")},
- {"OSADebuggerGetBreakpoint", (PyCFunction)OSAObj_OSADebuggerGetBreakpoint, 1,
- PyDoc_STR("(OSADebugSessionRef inSession, UInt32 inSrcOffset) -> (OSAID outBreakpoint)")},
- {"OSADebuggerSetBreakpoint", (PyCFunction)OSAObj_OSADebuggerSetBreakpoint, 1,
- PyDoc_STR("(OSADebugSessionRef inSession, UInt32 inSrcOffset, OSAID inBreakpoint) -> None")},
- {"OSADebuggerGetDefaultBreakpoint", (PyCFunction)OSAObj_OSADebuggerGetDefaultBreakpoint, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> (OSAID outBreakpoint)")},
- {"OSADebuggerGetCurrentCallFrame", (PyCFunction)OSAObj_OSADebuggerGetCurrentCallFrame, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> (OSADebugCallFrameRef outCallFrame)")},
- {"OSADebuggerGetCallFrameState", (PyCFunction)OSAObj_OSADebuggerGetCallFrameState, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCallFrame) -> (AERecord outState)")},
- {"OSADebuggerGetVariable", (PyCFunction)OSAObj_OSADebuggerGetVariable, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCallFrame, AEDesc inVariableName) -> (OSAID outVariable)")},
- {"OSADebuggerSetVariable", (PyCFunction)OSAObj_OSADebuggerSetVariable, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCallFrame, AEDesc inVariableName, OSAID inVariable) -> None")},
- {"OSADebuggerGetPreviousCallFrame", (PyCFunction)OSAObj_OSADebuggerGetPreviousCallFrame, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCurrentFrame) -> (OSADebugCallFrameRef outPrevFrame)")},
- {"OSADebuggerDisposeCallFrame", (PyCFunction)OSAObj_OSADebuggerDisposeCallFrame, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCallFrame) -> None")},
{NULL, NULL, 0}
};
From python-checkins at python.org Wed Dec 5 21:10:38 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 21:10:38 +0100 (CET)
Subject: [Python-checkins] r59370 -
python/trunk/Lib/distutils/msvc9compiler.py
Message-ID: <20071205201038.4ABBF1E400F@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 21:10:38 2007
New Revision: 59370
Modified:
python/trunk/Lib/distutils/msvc9compiler.py
Log:
Fixed bug #1557 by using popen.communicate() before popen.wait()
Modified: python/trunk/Lib/distutils/msvc9compiler.py
==============================================================================
--- python/trunk/Lib/distutils/msvc9compiler.py (original)
+++ python/trunk/Lib/distutils/msvc9compiler.py Wed Dec 5 21:10:38 2007
@@ -254,10 +254,13 @@
popen = subprocess.Popen('"%s" %s & set' % (vcvarsall, arch),
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
+
+ stdout, stderr = popen.communicate()
if popen.wait() != 0:
- raise IOError(popen.stderr.read())
+ raise IOError(stderr.decode("mbcs"))
- for line in popen.stdout:
+ stdout = stdout.decode("mbcs")
+ for line in stdout.split("\n"):
line = Reg.convert_mbcs(line)
if '=' not in line:
continue
From python-checkins at python.org Wed Dec 5 21:43:58 2007
From: python-checkins at python.org (ronald.oussoren)
Date: Wed, 5 Dec 2007 21:43:58 +0100 (CET)
Subject: [Python-checkins] r59372 - in python/branches/release25-maint:
Mac/Modules/osa/_OSAmodule.c Makefile.pre.in configure
configure.in pyconfig.h.in
Message-ID: <20071205204358.8685D1E400F@bag.python.org>
Author: ronald.oussoren
Date: Wed Dec 5 21:43:57 2007
New Revision: 59372
Modified:
python/branches/release25-maint/Mac/Modules/osa/_OSAmodule.c
python/branches/release25-maint/Makefile.pre.in
python/branches/release25-maint/configure
python/branches/release25-maint/configure.in
python/branches/release25-maint/pyconfig.h.in
Log:
This is a backport of the fix in rev. 59369.
This patch doesn't remove the wrappers for OSADebug* API's but only defines
them when configure detects that the API's are present in the system's
header files.
Modified: python/branches/release25-maint/Mac/Modules/osa/_OSAmodule.c
==============================================================================
--- python/branches/release25-maint/Mac/Modules/osa/_OSAmodule.c (original)
+++ python/branches/release25-maint/Mac/Modules/osa/_OSAmodule.c Wed Dec 5 21:43:57 2007
@@ -726,6 +726,7 @@
return _res;
}
+#ifdef HAVE_OSA_DEBUG
static PyObject *OSAObj_OSADebuggerCreateSession(OSAComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
@@ -1034,6 +1035,8 @@
return _res;
}
+#endif /* HAVE_OSA_DEBUG */
+
static PyMethodDef OSAObj_methods[] = {
{"OSALoad", (PyCFunction)OSAObj_OSALoad, 1,
PyDoc_STR("(AEDesc scriptData, long modeFlags) -> (OSAID resultingScriptID)")},
@@ -1091,6 +1094,7 @@
PyDoc_STR("(AppleEvent theAppleEvent, OSAID contextID, long modeFlags) -> (AppleEvent reply)")},
{"OSAMakeContext", (PyCFunction)OSAObj_OSAMakeContext, 1,
PyDoc_STR("(AEDesc contextName, OSAID parentContext) -> (OSAID resultingContextID)")},
+#ifdef HAVE_OSA_DEBUG
{"OSADebuggerCreateSession", (PyCFunction)OSAObj_OSADebuggerCreateSession, 1,
PyDoc_STR("(OSAID inScript, OSAID inContext) -> (OSADebugSessionRef outSession)")},
{"OSADebuggerGetSessionState", (PyCFunction)OSAObj_OSADebuggerGetSessionState, 1,
@@ -1119,6 +1123,7 @@
PyDoc_STR("(OSADebugCallFrameRef inCurrentFrame) -> (OSADebugCallFrameRef outPrevFrame)")},
{"OSADebuggerDisposeCallFrame", (PyCFunction)OSAObj_OSADebuggerDisposeCallFrame, 1,
PyDoc_STR("(OSADebugCallFrameRef inCallFrame) -> None")},
+#endif /* HAVE_OSA_DEBUG */
{NULL, NULL, 0}
};
Modified: python/branches/release25-maint/Makefile.pre.in
==============================================================================
--- python/branches/release25-maint/Makefile.pre.in (original)
+++ python/branches/release25-maint/Makefile.pre.in Wed Dec 5 21:43:57 2007
@@ -82,6 +82,9 @@
# Install prefix for architecture-dependent files
exec_prefix= @exec_prefix@
+# Install prefix for data files
+datarootdir= @datarootdir@
+
# Expanded directories
BINDIR= $(exec_prefix)/bin
LIBDIR= $(exec_prefix)/lib
Modified: python/branches/release25-maint/configure
==============================================================================
--- python/branches/release25-maint/configure (original)
+++ python/branches/release25-maint/configure Wed Dec 5 21:43:57 2007
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 58647 .
+# From configure.in Revision: 58654 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.5.
#
@@ -22416,6 +22416,72 @@
echo "${ECHO_T}no" >&6; }
fi
+case $MACHDEP in
+darwin)
+ { echo "$as_me:$LINENO: checking for kOSADebuggerCreateSession" >&5
+echo $ECHO_N "checking for kOSADebuggerCreateSession... $ECHO_C" >&6; }
+ OLD_CFLAGS="${CFLAGS}"
+ CFLAGS="${CFLAGS} -Wall -framework Carbon"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include
+int
+main ()
+{
+kOSADebuggerCreateSession
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ have_osa_debug=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ have_osa_debug=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ if test $have_osa_debug = yes
+ then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_OSA_DEBUG 1
+_ACEOF
+
+ else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+ fi
+ CFLAGS="${OLD_CFLAGS}"
+ ;;
+esac
+
+
+
{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
if test "$cross_compiling" = yes; then
Modified: python/branches/release25-maint/configure.in
==============================================================================
--- python/branches/release25-maint/configure.in (original)
+++ python/branches/release25-maint/configure.in Wed Dec 5 21:43:57 2007
@@ -3383,6 +3383,25 @@
AC_MSG_RESULT(no)
fi
+case $MACHDEP in
+darwin)
+ AC_MSG_CHECKING(for kOSADebuggerCreateSession)
+ OLD_CFLAGS="${CFLAGS}"
+ CFLAGS="${CFLAGS} -Wall -framework Carbon"
+ AC_TRY_COMPILE([#include ], [kOSADebuggerCreateSession], [have_osa_debug=yes], [have_osa_debug=no])
+ if test $have_osa_debug = yes
+ then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_OSA_DEBUG, 1, [Define is the (unsupported) OSADebug API's are present.])
+ else
+ AC_MSG_RESULT(no)
+ fi
+ CFLAGS="${OLD_CFLAGS}"
+ ;;
+esac
+
+
+
AC_MSG_CHECKING(for %zd printf() format support)
AC_TRY_RUN([#include
#include
Modified: python/branches/release25-maint/pyconfig.h.in
==============================================================================
--- python/branches/release25-maint/pyconfig.h.in (original)
+++ python/branches/release25-maint/pyconfig.h.in Wed Dec 5 21:43:57 2007
@@ -359,6 +359,9 @@
/* Define to 1 if you have the `openpty' function. */
#undef HAVE_OPENPTY
+/* Define is the (unsupported) OSADebug API's are present. */
+#undef HAVE_OSA_DEBUG
+
/* Define to 1 if you have the `pathconf' function. */
#undef HAVE_PATHCONF
From python-checkins at python.org Wed Dec 5 22:11:37 2007
From: python-checkins at python.org (georg.brandl)
Date: Wed, 5 Dec 2007 22:11:37 +0100 (CET)
Subject: [Python-checkins] r59373 - in doctools/trunk/sphinx: builder.py
environment.py latexwriter.py texinputs
texinputs/fancyhdr.sty texinputs/fncychap.sty
texinputs/howto.cls texinputs/manual.cls texinputs/python.ist
texinputs/python.sty texinputs/underscore.sty
Message-ID: <20071205211137.2F4DD1E400F@bag.python.org>
Author: georg.brandl
Date: Wed Dec 5 22:11:36 2007
New Revision: 59373
Added:
doctools/trunk/sphinx/latexwriter.py
doctools/trunk/sphinx/texinputs/
doctools/trunk/sphinx/texinputs/fancyhdr.sty
doctools/trunk/sphinx/texinputs/fncychap.sty
doctools/trunk/sphinx/texinputs/howto.cls
doctools/trunk/sphinx/texinputs/manual.cls
doctools/trunk/sphinx/texinputs/python.ist
doctools/trunk/sphinx/texinputs/python.sty
doctools/trunk/sphinx/texinputs/underscore.sty
Modified:
doctools/trunk/sphinx/builder.py
doctools/trunk/sphinx/environment.py
Log:
Add beginnings of a LaTeX writer. This is in no way usable code yet.
Modified: doctools/trunk/sphinx/builder.py
==============================================================================
--- doctools/trunk/sphinx/builder.py (original)
+++ doctools/trunk/sphinx/builder.py Wed Dec 5 22:11:36 2007
@@ -20,7 +20,7 @@
import cStringIO as StringIO
from os import path
-from docutils.io import StringOutput, DocTreeInput
+from docutils.io import StringOutput, FileOutput, DocTreeInput
from docutils.core import publish_parts
from docutils.utils import new_document
from docutils.readers import doctree
@@ -32,11 +32,12 @@
from .htmlhelp import build_hhx
from .patchlevel import get_version_info, get_sys_version_info
from .htmlwriter import HTMLWriter
-#from .latexwriter import LaTeXWriter
-from .environment import BuildEnvironment
+from .latexwriter import LaTeXWriter
+from .environment import BuildEnvironment, NoUri
from .highlighting import pygments, get_stylesheet
from .util.console import bold, purple, green
+from . import addnodes
# side effect: registers roles and directives
from . import roles
from . import directives
@@ -225,6 +226,16 @@
self.msg('creating index...')
self.env.create_index(self)
+ # another indirection to support methods which don't build files
+ # individually
+ self.write(filenames)
+
+ # finish (write style files etc.)
+ self.msg('finishing...')
+ self.finish()
+ self.msg('done!')
+
+ def write(self, filenames):
if filenames:
# add all TOC files that may have changed
filenames_set = set(filenames)
@@ -246,11 +257,6 @@
doctree = self.env.get_and_resolve_doctree(filename, self)
self.write_file(filename, doctree)
- # finish (write style files etc.)
- self.msg('finishing...')
- self.finish()
- self.msg('done!')
-
def prepare_writing(self, filenames):
raise NotImplementedError
@@ -641,36 +647,85 @@
name = 'latex'
def init(self):
- pass
+ self.filenames = []
def get_outdated_files(self):
# always rebuild everything for now
return self.env.all_files
def get_target_uri(self, source_filename):
- # XXX: returns nothing for now
- return ''
+ if source_filename not in self.filenames:
+ raise NoUri
+ else:
+ return ''
- def prepare_writing(self, filenames):
- self.docwriter = LaTeXWriter(self.config, self.name)
- self.docsettings = OptionParser(
+ def write(self, filenames):
+ # "filenames" is ignored here...
+
+ # first, assemble the "special" docs that are in every PDF
+ specials = []
+ for fname in ["license", "copyright", "about", "glossary"]:
+ specials.extend(self.env.get_doctree(fname+".rst").children)
+
+ docwriter = LaTeXWriter(self.config, self.name)
+ docsettings = OptionParser(
defaults=self.env.settings,
- components=(self.docwriter,)).get_default_values()
-
+ components=(docwriter,)).get_default_values()
- def write_file(self, filename, doctree):
- destination = StringOutput(encoding='utf-8')
- doctree.settings = self.docsettings
- output = self.docwriter.write(doctree, destination)
- print output
+ # XXX get names of toplevels automatically?
+ for docname in ["c-api"]:#, "distutils", "documenting", "extending",
+ #"howto", "install", "library", "reference",
+ #"tutorial", "using"]:
+ # XXX whatsnew missing
+ destination = FileOutput(
+ destination_path=path.join(self.outdir, docname+".tex"),
+ encoding='utf-8')
+ doctree = self.assemble_doctree(path.join(docname, "index.rst"))
+ doctree.extend(specials)
+ print "Writing..."
+ doctree.settings = docsettings
+ doctree.settings.filename = docname
+ output = docwriter.write(doctree, destination)
+ print "Done!"
+
+ def assemble_doctree(self, indexfile):
+ self.filenames = [indexfile]
+ print "Processing", indexfile
+ def process_tree(tree):
+ tree = tree.deepcopy()
+ for toctreenode in tree.traverse(addnodes.toctree):
+ index = toctreenode.parent.index(toctreenode)
+ includefiles = map(str, toctreenode['includefiles'])
+ for includefile in includefiles:
+ try:
+ print "Including", includefile
+ subtree = process_tree(self.env.get_doctree(includefile))
+ self.filenames.append(includefile)
+ except:
+ print >>self.warning_stream, 'WARNING: %s: toctree contains ' \
+ 'ref to nonexisting file %r' % (filename, includefile)
+ else:
+ toctreenode.parent[index:index] = subtree.children
+ toctreenode.parent.remove(toctreenode)
+ return tree
+ largetree = process_tree(self.env.get_doctree(indexfile))
+ print "Resolving references..."
+ self.env.resolve_references(largetree, indexfile, self)
+ #print largetree
+ return largetree
def finish(self):
- pass
+ self.msg('copying TeX support files...')
+ styledirname = path.join(path.dirname(__file__), 'texinputs')
+ for filename in os.listdir(styledirname):
+ if not filename.startswith('.'):
+ shutil.copyfile(path.join(styledirname, filename),
+ path.join(self.outdir, filename))
builders = {
'html': StandaloneHTMLBuilder,
'web': WebHTMLBuilder,
'htmlhelp': HTMLHelpBuilder,
-# 'latex': LaTeXBuilder,
+ 'latex': LaTeXBuilder,
}
Modified: doctools/trunk/sphinx/environment.py
==============================================================================
--- doctools/trunk/sphinx/environment.py (original)
+++ doctools/trunk/sphinx/environment.py Wed Dec 5 22:11:36 2007
@@ -74,6 +74,11 @@
])
+class NoUri(Exception):
+ """Raised by get_relative_uri if there is no URI available."""
+ pass
+
+
class DefaultSubstitutions(Transform):
"""
Replace some substitutions if they aren't defined in the document.
@@ -582,73 +587,75 @@
typ = node['reftype']
target = node['reftarget']
- if typ == 'ref':
- filename, labelid, sectname = self.labels.get(target, ('','',''))
- if not filename:
- newnode = doctree.reporter.system_message(
- 2, 'undefined label: %s' % target)
- print >>self.warning_stream, \
- '%s: undefined label: %s' % (docfilename, target)
- else:
- newnode = nodes.reference('', '')
- if filename == docfilename:
- newnode['refid'] = labelid
- else:
- newnode['refuri'] = builder.get_relative_uri(
- docfilename, filename) + '#' + labelid
- newnode.append(nodes.emphasis(sectname, sectname))
- elif typ in ('token', 'term', 'envvar', 'option'):
- filename, labelid = self.reftargets.get((typ, target), ('', ''))
- if not filename:
- if typ == 'term':
+ try:
+ if typ == 'ref':
+ filename, labelid, sectname = self.labels.get(target, ('','',''))
+ if not filename:
+ newnode = doctree.reporter.system_message(
+ 2, 'undefined label: %s' % target)
print >>self.warning_stream, \
- '%s: term not in glossary: %s' % (docfilename, target)
- newnode = contnode
- else:
- newnode = nodes.reference('', '')
- if filename == docfilename:
- newnode['refid'] = labelid
+ '%s: undefined label: %s' % (docfilename, target)
else:
- newnode['refuri'] = builder.get_relative_uri(
- docfilename, filename) + '#' + labelid
- newnode.append(contnode)
- elif typ == 'mod':
- filename, synopsis, platform, deprecated = \
- self.modules.get(target, ('','','', ''))
- # just link to an anchor if there are multiple modules in one file
- # because the anchor is generally below the heading which is ugly
- # but can't be helped easily
- anchor = ''
- if not filename or filename == docfilename:
- # don't link to self
- newnode = contnode
- else:
- if len(self.filemodules[filename]) > 1:
- anchor = '#' + 'module-' + target
- newnode = nodes.reference('', '')
- newnode['refuri'] = (
- builder.get_relative_uri(docfilename, filename) + anchor)
- newnode['reftitle'] = '%s%s%s' % (
- ('(%s) ' % platform if platform else ''),
- synopsis, (' (deprecated)' if deprecated else ''))
- newnode.append(contnode)
- else:
- modname = node['modname']
- clsname = node['classname']
- searchorder = 1 if node.hasattr('refspecific') else 0
- name, desc = self.find_desc(modname, clsname, target, typ, searchorder)
- if not desc:
- newnode = contnode
- else:
- newnode = nodes.reference('', '')
- if desc[0] == docfilename:
- newnode['refid'] = name
+ newnode = nodes.reference('', '')
+ if filename == docfilename:
+ newnode['refid'] = labelid
+ else:
+ newnode['refuri'] = builder.get_relative_uri(
+ docfilename, filename) + '#' + labelid
+ newnode.append(nodes.emphasis(sectname, sectname))
+ elif typ in ('token', 'term', 'envvar', 'option'):
+ filename, labelid = self.reftargets.get((typ, target), ('', ''))
+ if not filename:
+ if typ == 'term':
+ print >>self.warning_stream, \
+ '%s: term not in glossary: %s' % (docfilename, target)
+ newnode = contnode
else:
+ newnode = nodes.reference('', '')
+ if filename == docfilename:
+ newnode['refid'] = labelid
+ else:
+ newnode['refuri'] = builder.get_relative_uri(
+ docfilename, filename) + '#' + labelid
+ newnode.append(contnode)
+ elif typ == 'mod':
+ filename, synopsis, platform, deprecated = \
+ self.modules.get(target, ('','','', ''))
+ # just link to an anchor if there are multiple modules in one file
+ # because the anchor is generally below the heading which is ugly
+ # but can't be helped easily
+ anchor = ''
+ if not filename or filename == docfilename:
+ # don't link to self
+ newnode = contnode
+ else:
+ if len(self.filemodules[filename]) > 1:
+ anchor = '#' + 'module-' + target
+ newnode = nodes.reference('', '')
newnode['refuri'] = (
- builder.get_relative_uri(docfilename, desc[0])
- + '#' + name)
- newnode.append(contnode)
-
+ builder.get_relative_uri(docfilename, filename) + anchor)
+ newnode['reftitle'] = '%s%s%s' % (
+ ('(%s) ' % platform if platform else ''),
+ synopsis, (' (deprecated)' if deprecated else ''))
+ newnode.append(contnode)
+ else:
+ modname = node['modname']
+ clsname = node['classname']
+ searchorder = 1 if node.hasattr('refspecific') else 0
+ name, desc = self.find_desc(modname, clsname, target, typ, searchorder)
+ if not desc:
+ newnode = contnode
+ else:
+ newnode = nodes.reference('', '')
+ if desc[0] == docfilename:
+ newnode['refid'] = name
+ else:
+ newnode['refuri'] = (
+ builder.get_relative_uri(docfilename, desc[0])
+ + '#' + name)
+ newnode.append(contnode)
+ except NoUri:
+ newnode = contnode
if newnode:
node.replace_self(newnode)
@@ -663,8 +670,11 @@
if subword:
add_entry(subword, '', dic=entry[1])
else:
- entry[0].append(builder.get_relative_uri('genindex.rst', fn)
- + '#' + tid)
+ try:
+ entry[0].append(builder.get_relative_uri('genindex.rst', fn)
+ + '#' + tid)
+ except NoUri:
+ pass
for fn, entries in self.indexentries.iteritems():
# new entry types must be listed in directives.py!
Added: doctools/trunk/sphinx/latexwriter.py
==============================================================================
--- (empty file)
+++ doctools/trunk/sphinx/latexwriter.py Wed Dec 5 22:11:36 2007
@@ -0,0 +1,448 @@
+# -*- coding: utf-8 -*-
+"""
+ sphinx.latexwriter
+ ~~~~~~~~~~~~~~~~~~
+
+ Custom docutils writer for LaTeX.
+
+ Much of this code is adapted from Dave Kuhlman's "docpy" writer from his
+ docutils sandbox.
+
+ :copyright: 2007 by Georg Brandl, Dave Kuhlman.
+ :license: Python license.
+"""
+
+import re
+import time
+
+from docutils import frontend, nodes, languages, writers, utils
+
+
+HEADER = r'''%% Generated by Sphinx.
+\documentclass[%(papersize)s,%(pointsize)s]{manual}
+\usepackage{hyperref}
+\title{%(title)s}
+\date{%(date)s}
+\release{%(release)s}
+\author{Guido van Rossum\\
+ Fred L. Drake, Jr., editor}
+\authoraddress{
+ \strong{Python Software Foundation}\\
+ Email: \email{docs at python.org}
+}
+\makeindex
+
+'''
+
+FOOTER = r''''
+\printindex
+\end{document}
+'''
+
+
+class LaTeXWriter(writers.Writer):
+
+ supported = ('sphinxlatex',)
+
+ settings_spec = ('No options here.', '', ())
+ settings_defaults = {}
+
+ output = None
+
+ def __init__(self, config, buildername):
+ writers.Writer.__init__(self)
+ self.config = config
+
+ def translate(self):
+ try:
+ visitor = LaTeXTranslator(self.document, self.config)
+ self.document.walkabout(visitor)
+ self.output = visitor.astext()
+ except:
+ import pdb, sys, traceback
+ traceback.print_exc()
+ tb = sys.exc_info()[2]
+ pdb.post_mortem(tb)
+
+
+TABLE_MODE_NONE = 0
+TABLE_MODE_HEAD = 1
+TABLE_MODE_BODY = 2
+
+class TableSpec:
+ def __init__(self):
+ self.columnCount = 0
+ self.mode = TABLE_MODE_NONE
+ def getColumnCount(self): return self.columnCount
+ def setColumnCount(self, columnCount): self.columnCount = columnCount
+ def getMode(self): return self.mode
+ def setMode(self, mode): self.mode = mode
+
+
+class LaTeXTranslator(nodes.NodeVisitor):
+ sectionnames = ["chapter", "chapter", "section", "subsection",
+ "subsubsection", "paragraph", "subparagraph"]
+
+ def __init__(self, document, config):
+ nodes.NodeVisitor.__init__(self, document)
+ self.body = []
+ self.options = {'papersize': 'a4paper', # XXX
+ 'pointsize': '12pt',
+ 'filename': document.settings.filename,
+ 'title': '',
+ 'release': config['release'],
+ 'date': time.strftime(config.get('today_fmt', '%B %d, %Y')),
+ }
+ self.context = []
+ self.verbatim = 0
+ self.this_is_the_title = 1
+ self.sectionlevel = 0 # XXX starts with chapter now
+ self.highlightlang = 'python'
+
+ def astext(self):
+ return (HEADER % self.options) + \
+ u''.join(self.body) + \
+ (FOOTER % self.options)
+
+ def visit_document(self, node):
+ self.body.append('\\begin{document}\n\\maketitle\n')
+ def depart_document(self, node):
+ pass
+
+ def visit_highlightlang(self, node):
+ self.highlightlang = node['lang']
+ raise nodes.SkipNode
+
+ def visit_comment(self, node):
+ raise nodes.SkipNode
+
+ def visit_section(self, node):
+ if not self.this_is_the_title:
+ self.sectionlevel += 1
+ def depart_section(self, node):
+ self.sectionlevel -= 1
+
+ def visit_glossary(self, node):
+ raise nodes.SkipNode # XXX
+
+ def visit_transition(self, node):
+ self.body.append('\n\n\\hrule{}\n\n')
+
+ def depart_transition(self, node):
+ pass
+
+ def visit_title(self, node):
+ if self.this_is_the_title:
+ if len(node.children) != 1 and not isinstance(node.children[0], Text):
+ raise RuntimeError("title is not a Text node")
+ self.options['title'] = node.children[0].astext()
+ self.this_is_the_title = 0
+ raise nodes.SkipNode
+ elif isinstance(node.parent, nodes.section):
+ self.body.append('\n\n')
+ self.body.append(r'\%s{' % self.sectionnames[self.sectionlevel])
+ self.context.append('}\n')
+ else:
+ raise RuntimeError("XXX title without section")
+ def depart_title(self, node):
+ self.body.append(self.context.pop())
+
+ def visit_field_list(self, node):
+ raise nodes.SkipNode # XXX
+
+ def visit_desc(self, node):
+ raise nodes.SkipNode # XXX
+
+ def visit_seealso(self, node):
+ raise nodes.SkipNode # XXX
+
+ def visit_rubric(self, node):
+ raise nodes.SkipNode # XXX
+
+ def visit_footnote(self, node):
+ raise nodes.SkipNode # XXX
+
+ def visit_table(self, node):
+ self.tableSpec = TableSpec()
+ def depart_table(self, node):
+ self.tableSpec = None
+
+ def visit_colspec(self, node):
+ pass
+ def depart_colspec(self, node):
+ pass
+
+ def visit_tgroup(self, node):
+ columnCount = int(node.get('cols', 0))
+ self.tableSpec.setColumnCount(columnCount)
+ if columnCount == 2:
+ self.body.append('\\begin{tableii}{l|l}{textrm}')
+ elif columnCount == 3:
+ self.body.append('\\begin{tableiii}{l|l|l}{textrm}')
+ elif columnCount == 4:
+ self.body.append('\\begin{tableiv}{l|l|l|l}{textrm}')
+ elif columnCount == 5:
+ self.body.append('\\begin{tablev}{l|l|l|l|l}{textrm}')
+ def depart_tgroup(self, node):
+ if self.tableSpec.getColumnCount() == 2:
+ self.body.append('\n\\end{tableii}\n')
+ elif self.tableSpec.getColumnCount() == 3:
+ self.body.append('\n\\end{tableiii}\n')
+ elif self.tableSpec.getColumnCount() == 4:
+ self.body.append('\n\\end{tableiv}\n')
+ elif self.tableSpec.getColumnCount() == 5:
+ self.body.append('\n\\end{tablev}\n')
+
+ def visit_thead(self, node):
+ self.tableSpec.setMode(TABLE_MODE_HEAD)
+ def depart_thead(self, node):
+ self.tableSpec.setMode(TABLE_MODE_NONE)
+
+ def visit_tbody(self, node):
+ self.tableSpec.setMode(TABLE_MODE_BODY)
+ def depart_tbody(self, node):
+ self.tableSpec.setMode(TABLE_MODE_NONE)
+
+ def visit_row(self, node):
+ if self.tableSpec.getMode() == TABLE_MODE_HEAD:
+ pass
+ elif self.tableSpec.getMode() == TABLE_MODE_BODY:
+ if self.tableSpec.getColumnCount() == 2:
+ self.body.append('\n\\lineii')
+ elif self.tableSpec.getColumnCount() == 3:
+ self.body.append('\n\\lineiii')
+ elif self.tableSpec.getColumnCount() == 4:
+ self.body.append('\n\\lineiv')
+ elif self.tableSpec.getColumnCount() == 5:
+ self.body.append('\n\\linev')
+ def depart_row(self, node):
+ if self.tableSpec.getMode() == TABLE_MODE_HEAD:
+ pass
+ elif self.tableSpec.getMode() == TABLE_MODE_BODY:
+ pass
+
+ def visit_entry(self, node):
+ if self.tableSpec.getMode() == TABLE_MODE_HEAD:
+ #self.body.append('%% [(visit_entry) text: +%s+]' % node.astext())
+ self.body.append('{%s}' % node.astext().strip(' '))
+ raise nodes.SkipNode
+ elif self.tableSpec.getMode() == TABLE_MODE_BODY:
+ #self.body.append('%% [(visit_entry) text: +%s+]' % node.astext())
+ self.body.append('{%s}' % node.astext().strip(' '))
+ raise nodes.SkipNode
+ def depart_entry(self, node):
+ pass
+## if self.tableSpec.getMode() == TABLE_MODE_HEAD:
+## self.body.append('}')
+## elif self.tableSpec.getMode() == TABLE_MODE_BODY:
+## self.body.append('}')
+
+ def visit_bullet_list(self, node):
+ self.body.append('\\begin{itemize}\n' )
+ def depart_bullet_list(self, node):
+ self.body.append('\\end{itemize}\n' )
+
+ def visit_enumerated_list(self, node):
+ self.body.append('\\begin{enumerate}\n' )
+ def depart_enumerated_list(self, node):
+ self.body.append('\\end{enumerate}\n' )
+
+ def visit_list_item(self, node):
+ # Append "{}" in case the next character is "[", which would break
+ # LaTeX's list environment (no numbering and the "[" is not printed).
+ self.body.append(r'\item {} ')
+ def depart_list_item(self, node):
+ self.body.append('\n')
+
+ def visit_definition_list(self, node):
+ self.body.append('\\begin{description}\n')
+ def depart_definition_list(self, node):
+ self.body.append('\\end{description}\n')
+
+ def visit_definition_list_item(self, node):
+ pass
+ def depart_definition_list_item(self, node):
+ pass
+
+ def visit_term(self, node):
+ self.body.append('\\item[')
+ def depart_term(self, node):
+ # definition list term.
+ self.body.append(':]\n')
+
+ def visit_classifier(self, node):
+ pass # XXX
+ def depart_classifier(self, node):
+ pass
+
+ def visit_definition(self, node):
+ pass
+ def depart_definition(self, node):
+ self.body.append('\n')
+
+ def visit_paragraph(self, node):
+ self.body.append('\n')
+ def depart_paragraph(self, node):
+ self.body.append('\n')
+
+ def visit_centered(self, node):
+ self.body.append('\n\\begin{centering}')
+ def depart_centered(self, node):
+ self.body.append('\n\\end{centering}')
+
+ def visit_note(self, node):
+ self.body.append('\n\\note{')
+ def depart_note(self, node):
+ self.body.append('}\n')
+
+ def visit_warning(self, node):
+ self.body.append('\n\\warning{')
+ def depart_warning(self, node):
+ self.body.append('}\n')
+
+ def visit_versionmodified(self, node):
+ #self.body.append('\n\\vmod{')
+ pass
+ def depart_versionmodified(self, node):
+ #self.body.append('}\n')
+ pass
+
+ def visit_target(self, node):
+ if not (node.has_key('refuri') or node.has_key('refid')
+ or node.has_key('refname')):
+ for id in node['ids']:
+ self.body.append(r'\hypertarget{%s}{' % id)
+ self.context.append('}' * len(node['ids']))
+ else:
+ self.context.append('')
+ def depart_target(self, node):
+ self.body.append(self.context.pop())
+
+ def visit_index(self, node):
+ raise nodes.SkipNode # XXX
+
+ def visit_reference(self, node):
+ pass # XXX
+ def depart_reference(self, node):
+ pass
+
+ def visit_pending_xref(self, node):
+ pass
+ def depart_pending_xref(self, node):
+ pass
+
+ def visit_emphasis(self, node):
+ self.body.append(r'\emph{')
+ def depart_emphasis(self, node):
+ self.body.append('}')
+
+ def visit_literal_emphasis(self, node):
+ self.body.append(r'\emph{') # XXX
+ def depart_literal_emphasis(self, node):
+ self.body.append('}')
+
+ def visit_strong(self, node):
+ self.body.append(r'\textbf{')
+ def depart_strong(self, node):
+ self.body.append('}')
+
+ def visit_literal(self, node):
+ content = self.encode(node.astext().strip())
+ if re.search('[ \t\n]', content):
+ self.body.append(r'\samp{%s}' % content)
+ else:
+ self.body.append(r'\code{%s}' % content)
+ raise nodes.SkipNode
+
+ def visit_footnote_reference(self, node):
+ pass #XXX
+ def depart_footnote_reference(self, node):
+ pass
+
+ def visit_literal_block(self, node):
+ self.body.append('\n\\begin{verbatim}')
+ self.verbatim = 1
+ def depart_literal_block(self, node):
+ self.body.append('\\end{verbatim}\n')
+ self.verbatim = 0
+
+ def visit_line_block(self, node):
+ """line-block:
+ * whitespace (including linebreaks) is significant
+ * inline markup is supported.
+ * serif typeface
+ """
+ self.body.append('\\begin{flushleft}\n')
+ #self.insert_none_breaking_blanks = 1
+ #self.line_block_without_mbox = 1
+ #if self.line_block_without_mbox:
+ # self.insert_newline = 1
+ #else:
+ # self.mbox_newline = 1
+ # self.body.append('\\mbox{')
+ def depart_line_block(self, node):
+ #if self.line_block_without_mbox:
+ # self.insert_newline = 0
+ #else:
+ # self.body.append('}')
+ # self.mbox_newline = 0
+ #self.insert_none_breaking_blanks = 0
+ self.body.append('\n\\end{flushleft}\n')
+
+ def visit_line(self, node):
+ pass
+ def depart_line(self, node):
+ pass
+
+ def visit_block_quote(self, node):
+ # If the block quote contains a single object and that object
+ # is a list, then generate a list not a block quote.
+ # This lets us indent lists.
+ done = 0
+ if len(node.children) == 1:
+ child = node.children[0]
+ if isinstance(child, nodes.bullet_list) or \
+ isinstance(child, nodes.enumerated_list):
+ done = 1
+ if not done:
+ self.body.append('\\begin{quote}\n')
+ def depart_block_quote(self, node):
+ done = 0
+ if len(node.children) == 1:
+ child = node.children[0]
+ if isinstance(child, nodes.bullet_list) or \
+ isinstance(child, nodes.enumerated_list):
+ done = 1
+ if not done:
+ self.body.append('\\end{quote}\n')
+
+ replacements = [
+ (u"\\", ur"\textbackslash{}"),
+ (u"$", ur"\$"),
+ (u"&", ur"\&"),
+ (u"#", ur"\#"),
+ (u"_", ur"\_"),
+ (u"{", ur"\{"),
+ (u"}", ur"\}"),
+ (u"?", ur"\P{}"),
+ (u"?", ur"\S{}"),
+ (u"~", ur"\textasciitilde{}"),
+ (u"<", ur"\textless{}"),
+ (u">", ur"\textgreater{}"),
+ (u"^", ur"\textasciicircum{}"),
+ ]
+
+ def encode(self, text):
+ if self.verbatim:
+ return text
+ for x, y in self.replacements:
+ text = text.replace(x, y)
+ return text
+
+ def visit_Text(self, node):
+ self.body.append(self.encode(node.astext()))
+ def depart_Text(self, node):
+ pass
+
+ def unknown_visit(self, node):
+ raise NotImplementedError("Unknown node: " + node.__class__.__name__)
Added: doctools/trunk/sphinx/texinputs/fancyhdr.sty
==============================================================================
--- (empty file)
+++ doctools/trunk/sphinx/texinputs/fancyhdr.sty Wed Dec 5 22:11:36 2007
@@ -0,0 +1,329 @@
+% fancyhdr.sty version 1.99d
+% Fancy headers and footers for LaTeX.
+% Piet van Oostrum, Dept of Computer Science, University of Utrecht
+% Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands
+% Telephone: +31 30 2532180. Email: piet at cs.ruu.nl
+% ========================================================================
+% LICENCE: This is free software. You are allowed to use and distribute
+% this software in any way you like. You are also allowed to make modified
+% versions of it, but you can distribute a modified version only if you
+% clearly indicate that it is a modified version and the person(s) who
+% modified it. This indication should be in a prominent place, e.g. in the
+% top of the file. If possible a contact address, preferably by email,
+% should be given for these persons. If that is feasible the modifications
+% should be indicated in the source code.
+% ========================================================================
+% MODIFICATION HISTORY:
+% Sep 16, 1994
+% version 1.4: Correction for use with \reversemargin
+% Sep 29, 1994:
+% version 1.5: Added the \iftopfloat, \ifbotfloat and \iffloatpage commands
+% Oct 4, 1994:
+% version 1.6: Reset single spacing in headers/footers for use with
+% setspace.sty or doublespace.sty
+% Oct 4, 1994:
+% version 1.7: changed \let\@mkboth\markboth to
+% \def\@mkboth{\protect\markboth} to make it more robust
+% Dec 5, 1994:
+% version 1.8: corrections for amsbook/amsart: define \@chapapp and (more
+% importantly) use the \chapter/sectionmark definitions from ps at headings if
+% they exist (which should be true for all standard classes).
+% May 31, 1995:
+% version 1.9: The proposed \renewcommand{\headrulewidth}{\iffloatpage...
+% construction in the doc did not work properly with the fancyplain style.
+% June 1, 1995:
+% version 1.91: The definition of \@mkboth wasn't restored on subsequent
+% \pagestyle{fancy}'s.
+% June 1, 1995:
+% version 1.92: The sequence \pagestyle{fancyplain} \pagestyle{plain}
+% \pagestyle{fancy} would erroneously select the plain version.
+% June 1, 1995:
+% version 1.93: \fancypagestyle command added.
+% Dec 11, 1995:
+% version 1.94: suggested by Conrad Hughes
+% CJCH, Dec 11, 1995: added \footruleskip to allow control over footrule
+% position (old hardcoded value of .3\normalbaselineskip is far too high
+% when used with very small footer fonts).
+% Jan 31, 1996:
+% version 1.95: call \@normalsize in the reset code if that is defined,
+% otherwise \normalsize.
+% this is to solve a problem with ucthesis.cls, as this doesn't
+% define \@currsize. Unfortunately for latex209 calling \normalsize doesn't
+% work as this is optimized to do very little, so there \@normalsize should
+% be called. Hopefully this code works for all versions of LaTeX known to
+% mankind.
+% April 25, 1996:
+% version 1.96: initialize \headwidth to a magic (negative) value to catch
+% most common cases that people change it before calling \pagestyle{fancy}.
+% Note it can't be initialized when reading in this file, because
+% \textwidth could be changed afterwards. This is quite probable.
+% We also switch to \MakeUppercase rather than \uppercase and introduce a
+% \nouppercase command for use in headers. and footers.
+% May 3, 1996:
+% version 1.97: Two changes:
+% 1. Undo the change in version 1.8 (using the pagestyle{headings} defaults
+% for the chapter and section marks. The current version of amsbook and
+% amsart classes don't seem to need them anymore. Moreover the standard
+% latex classes don't use \markboth if twoside isn't selected, and this is
+% confusing as \leftmark doesn't work as expected.
+% 2. include a call to \ps at empty in ps@@fancy. This is to solve a problem
+% in the amsbook and amsart classes, that make global changes to \topskip,
+% which are reset in \ps at empty. Hopefully this doesn't break other things.
+% May 7, 1996:
+% version 1.98:
+% Added % after the line \def\nouppercase
+% May 7, 1996:
+% version 1.99: This is the alpha version of fancyhdr 2.0
+% Introduced the new commands \fancyhead, \fancyfoot, and \fancyhf.
+% Changed \headrulewidth, \footrulewidth, \footruleskip to
+% macros rather than length parameters, In this way they can be
+% conditionalized and they don't consume length registers. There is no need
+% to have them as length registers unless you want to do calculations with
+% them, which is unlikely. Note that this may make some uses of them
+% incompatible (i.e. if you have a file that uses \setlength or \xxxx=)
+% May 10, 1996:
+% version 1.99a:
+% Added a few more % signs
+% May 10, 1996:
+% version 1.99b:
+% Changed the syntax of \f at nfor to be resistent to catcode changes of :=
+% Removed the [1] from the defs of \lhead etc. because the parameter is
+% consumed by the \@[xy]lhead etc. macros.
+% June 24, 1997:
+% version 1.99c:
+% corrected \nouppercase to also include the protected form of \MakeUppercase
+% \global added to manipulation of \headwidth.
+% \iffootnote command added.
+% Some comments added about \@fancyhead and \@fancyfoot.
+% Aug 24, 1998
+% version 1.99d
+% Changed the default \ps at empty to \ps@@empty in order to allow
+% \fancypagestyle{empty} redefinition.
+
+\let\fancy at def\gdef
+
+\def\if at mpty#1#2#3{\def\temp at ty{#1}\ifx\@empty\temp at ty #2\else#3\fi}
+
+% Usage: \@forc \var{charstring}{command to be executed for each char}
+% This is similar to LaTeX's \@tfor, but expands the charstring.
+
+\def\@forc#1#2#3{\expandafter\f at rc\expandafter#1\expandafter{#2}{#3}}
+\def\f at rc#1#2#3{\def\temp at ty{#2}\ifx\@empty\temp at ty\else
+ \f@@rc#1#2\f@@rc{#3}\fi}
+\def\f@@rc#1#2#3\f@@rc#4{\def#1{#2}#4\f at rc#1{#3}{#4}}
+
+% Usage: \f at nfor\name:=list\do{body}
+% Like LaTeX's \@for but an empty list is treated as a list with an empty
+% element
+
+\newcommand{\f at nfor}[3]{\edef\@fortmp{#2}%
+ \expandafter\@forloop#2,\@nil,\@nil\@@#1{#3}}
+
+% Usage: \def at ult \cs{defaults}{argument}
+% sets \cs to the characters from defaults appearing in argument
+% or defaults if it would be empty. All characters are lowercased.
+
+\newcommand\def at ult[3]{%
+ \edef\temp at a{\lowercase{\edef\noexpand\temp at a{#3}}}\temp at a
+ \def#1{}%
+ \@forc\tmpf at ra{#2}%
+ {\expandafter\if at in\tmpf at ra\temp at a{\edef#1{#1\tmpf at ra}}{}}%
+ \ifx\@empty#1\def#1{#2}\fi}
+%
+% \if at in
+%
+\newcommand{\if at in}[4]{%
+ \edef\temp at a{#2}\def\temp at b##1#1##2\temp at b{\def\temp at b{##1}}%
+ \expandafter\temp at b#2#1\temp at b\ifx\temp at a\temp at b #4\else #3\fi}
+
+\newcommand{\fancyhead}{\@ifnextchar[{\f at ncyhf h}{\f at ncyhf h[]}}
+\newcommand{\fancyfoot}{\@ifnextchar[{\f at ncyhf f}{\f at ncyhf f[]}}
+\newcommand{\fancyhf}{\@ifnextchar[{\f at ncyhf {}}{\f at ncyhf {}[]}}
+
+% The header and footer fields are stored in command sequences with
+% names of the form: \f at ncy with for [eo], form [lcr]
+% and from [hf].
+
+\def\f at ncyhf#1[#2]#3{%
+ \def\temp at c{}%
+ \@forc\tmpf at ra{#2}%
+ {\expandafter\if at in\tmpf at ra{eolcrhf,EOLCRHF}%
+ {}{\edef\temp at c{\temp at c\tmpf at ra}}}%
+ \ifx\@empty\temp at c\else
+ \ifx\PackageError\undefined
+ \errmessage{Illegal char `\temp at c' in fancyhdr argument:
+ [#2]}\else
+ \PackageError{Fancyhdr}{Illegal char `\temp at c' in fancyhdr argument:
+ [#2]}{}\fi
+ \fi
+ \f at nfor\temp at c{#2}%
+ {\def at ult\f@@@eo{eo}\temp at c
+ \def at ult\f@@@lcr{lcr}\temp at c
+ \def at ult\f@@@hf{hf}{#1\temp at c}%
+ \@forc\f@@eo\f@@@eo
+ {\@forc\f@@lcr\f@@@lcr
+ {\@forc\f@@hf\f@@@hf
+ {\expandafter\fancy at def\csname
+ f at ncy\f@@eo\f@@lcr\f@@hf\endcsname
+ {#3}}}}}}
+
+% Fancyheadings version 1 commands. These are more or less deprecated,
+% but they continue to work.
+
+\newcommand{\lhead}{\@ifnextchar[{\@xlhead}{\@ylhead}}
+\def\@xlhead[#1]#2{\fancy at def\f at ncyelh{#1}\fancy at def\f at ncyolh{#2}}
+\def\@ylhead#1{\fancy at def\f at ncyelh{#1}\fancy at def\f at ncyolh{#1}}
+
+\newcommand{\chead}{\@ifnextchar[{\@xchead}{\@ychead}}
+\def\@xchead[#1]#2{\fancy at def\f at ncyech{#1}\fancy at def\f at ncyoch{#2}}
+\def\@ychead#1{\fancy at def\f at ncyech{#1}\fancy at def\f at ncyoch{#1}}
+
+\newcommand{\rhead}{\@ifnextchar[{\@xrhead}{\@yrhead}}
+\def\@xrhead[#1]#2{\fancy at def\f at ncyerh{#1}\fancy at def\f at ncyorh{#2}}
+\def\@yrhead#1{\fancy at def\f at ncyerh{#1}\fancy at def\f at ncyorh{#1}}
+
+\newcommand{\lfoot}{\@ifnextchar[{\@xlfoot}{\@ylfoot}}
+\def\@xlfoot[#1]#2{\fancy at def\f at ncyelf{#1}\fancy at def\f at ncyolf{#2}}
+\def\@ylfoot#1{\fancy at def\f at ncyelf{#1}\fancy at def\f at ncyolf{#1}}
+
+\newcommand{\cfoot}{\@ifnextchar[{\@xcfoot}{\@ycfoot}}
+\def\@xcfoot[#1]#2{\fancy at def\f at ncyecf{#1}\fancy at def\f at ncyocf{#2}}
+\def\@ycfoot#1{\fancy at def\f at ncyecf{#1}\fancy at def\f at ncyocf{#1}}
+
+\newcommand{\rfoot}{\@ifnextchar[{\@xrfoot}{\@yrfoot}}
+\def\@xrfoot[#1]#2{\fancy at def\f at ncyerf{#1}\fancy at def\f at ncyorf{#2}}
+\def\@yrfoot#1{\fancy at def\f at ncyerf{#1}\fancy at def\f at ncyorf{#1}}
+
+\newdimen\headwidth
+\newcommand{\headrulewidth}{0.4pt}
+\newcommand{\footrulewidth}{\z at skip}
+\newcommand{\footruleskip}{.3\normalbaselineskip}
+
+% Fancyplain stuff shouldn't be used anymore (rather
+% \fancypagestyle{plain} should be used), but it must be present for
+% compatibility reasons.
+
+\newcommand{\plainheadrulewidth}{\z at skip}
+\newcommand{\plainfootrulewidth}{\z at skip}
+\newif\if at fancyplain \@fancyplainfalse
+\def\fancyplain#1#2{\if at fancyplain#1\else#2\fi}
+
+\headwidth=-123456789sp %magic constant
+
+% Command to reset various things in the headers:
+% a.o. single spacing (taken from setspace.sty)
+% and the catcode of ^^M (so that epsf files in the header work if a
+% verbatim crosses a page boundary)
+% It also defines a \nouppercase command that disables \uppercase and
+% \Makeuppercase. It can only be used in the headers and footers.
+\def\fancy at reset{\restorecr
+ \def\baselinestretch{1}%
+ \def\nouppercase##1{{\let\uppercase\relax\let\MakeUppercase\relax
+ \expandafter\let\csname MakeUppercase \endcsname\relax##1}}%
+ \ifx\undefined\@newbaseline% NFSS not present; 2.09 or 2e
+ \ifx\@normalsize\undefined \normalsize % for ucthesis.cls
+ \else \@normalsize \fi
+ \else% NFSS (2.09) present
+ \@newbaseline%
+ \fi}
+
+% Initialization of the head and foot text.
+
+% The default values still contain \fancyplain for compatibility.
+\fancyhf{} % clear all
+% lefthead empty on ``plain'' pages, \rightmark on even, \leftmark on odd pages
+% evenhead empty on ``plain'' pages, \leftmark on even, \rightmark on odd pages
+\fancyhead[el,or]{\fancyplain{}{\sl\rightmark}}
+\fancyhead[er,ol]{\fancyplain{}{\sl\leftmark}}
+\fancyfoot[c]{\rm\thepage} % page number
+
+% Put together a header or footer given the left, center and
+% right text, fillers at left and right and a rule.
+% The \lap commands put the text into an hbox of zero size,
+% so overlapping text does not generate an errormessage.
+% These macros have 5 parameters:
+% 1. \@lodd or \@rodd % This determines at which side the header will stick
+% out.
+% 2. \f at ncyolh, \f at ncyelh, \f at ncyolf or \f at ncyelf. This is the left component.
+% 3. \f at ncyoch, \f at ncyech, \f at ncyocf or \f at ncyecf. This is the middle comp.
+% 4. \f at ncyorh, \f at ncyerh, \f at ncyorf or \f at ncyerf. This is the right component.
+% 5. \@lodd or \@rodd % This determines at which side the header will stick
+% out. This is the reverse of parameter nr. 1. One of them is always
+% \relax and the other one is \hss (after expansion).
+
+\def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy at reset\vbox{\hbox
+{\rlap{\parbox[b]{\headwidth}{\raggedright#2\strut}}\hfill
+\parbox[b]{\headwidth}{\centering#3\strut}\hfill
+\llap{\parbox[b]{\headwidth}{\raggedleft#4\strut}}}\headrule}}#5}
+
+\def\@fancyfoot#1#2#3#4#5{#1\hbox to\headwidth{\fancy at reset\vbox{\footrule
+\hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2\strut}}\hfill
+\parbox[t]{\headwidth}{\centering#3\strut}\hfill
+\llap{\parbox[t]{\headwidth}{\raggedleft#4\strut}}}}}#5}
+
+\def\headrule{{\if at fancyplain\let\headrulewidth\plainheadrulewidth\fi
+\hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}}
+
+\def\footrule{{\if at fancyplain\let\footrulewidth\plainfootrulewidth\fi
+\vskip-\footruleskip\vskip-\footrulewidth
+\hrule\@width\headwidth\@height\footrulewidth\vskip\footruleskip}}
+
+\def\ps at fancy{%
+\@ifundefined{@chapapp}{\let\@chapapp\chaptername}{}%for amsbook
+%
+% Define \MakeUppercase for old LaTeXen.
+% Note: we used \def rather than \let, so that \let\uppercase\relax (from
+% the version 1 documentation) will still work.
+%
+\@ifundefined{MakeUppercase}{\def\MakeUppercase{\uppercase}}{}%
+\@ifundefined{chapter}{\def\sectionmark##1{\markboth
+{\MakeUppercase{\ifnum \c at secnumdepth>\z@
+ \thesection\hskip 1em\relax \fi ##1}}{}}%
+\def\subsectionmark##1{\markright {\ifnum \c at secnumdepth >\@ne
+ \thesubsection\hskip 1em\relax \fi ##1}}}%
+{\def\chaptermark##1{\markboth {\MakeUppercase{\ifnum \c at secnumdepth>\m at ne
+ \@chapapp\ \thechapter. \ \fi ##1}}{}}%
+\def\sectionmark##1{\markright{\MakeUppercase{\ifnum \c at secnumdepth >\z@
+ \thesection. \ \fi ##1}}}}%
+%\csname ps at headings\endcsname % use \ps at headings defaults if they exist
+\ps@@fancy
+\gdef\ps at fancy{\@fancyplainfalse\ps@@fancy}%
+% Initialize \headwidth if the user didn't
+%
+\ifdim\headwidth<0sp
+%
+% This catches the case that \headwidth hasn't been initialized and the
+% case that the user added something to \headwidth in the expectation that
+% it was initialized to \textwidth. We compensate this now. This loses if
+% the user intended to multiply it by a factor. But that case is more
+% likely done by saying something like \headwidth=1.2\textwidth.
+% The doc says you have to change \headwidth after the first call to
+% \pagestyle{fancy}. This code is just to catch the most common cases were
+% that requirement is violated.
+%
+ \global\advance\headwidth123456789sp\global\advance\headwidth\textwidth
+\fi}
+\def\ps at fancyplain{\ps at fancy \let\ps at plain\ps at plain@fancy}
+\def\ps at plain@fancy{\@fancyplaintrue\ps@@fancy}
+\let\ps@@empty\ps at empty
+\def\ps@@fancy{%
+\ps@@empty % This is for amsbook/amsart, which do strange things with \topskip
+\def\@mkboth{\protect\markboth}%
+\def\@oddhead{\@fancyhead\@lodd\f at ncyolh\f at ncyoch\f at ncyorh\@rodd}%
+\def\@oddfoot{\@fancyfoot\@lodd\f at ncyolf\f at ncyocf\f at ncyorf\@rodd}%
+\def\@evenhead{\@fancyhead\@rodd\f at ncyelh\f at ncyech\f at ncyerh\@lodd}%
+\def\@evenfoot{\@fancyfoot\@rodd\f at ncyelf\f at ncyecf\f at ncyerf\@lodd}%
+}
+\def\@lodd{\if at reversemargin\hss\else\relax\fi}
+\def\@rodd{\if at reversemargin\relax\else\hss\fi}
+
+\newif\iffootnote
+\let\latex at makecol\@makecol
+\def\@makecol{\ifvoid\footins\footnotetrue\else\footnotefalse\fi
+\let\topfloat\@toplist\let\botfloat\@botlist\latex at makecol}
+\def\iftopfloat#1#2{\ifx\topfloat\empty #2\else #1\fi}
+\def\ifbotfloat#1#2{\ifx\botfloat\empty #2\else #1\fi}
+\def\iffloatpage#1#2{\if at fcolmade #1\else #2\fi}
+
+\newcommand{\fancypagestyle}[2]{%
+ \@namedef{ps@#1}{\let\fancy at def\def#2\relax\ps at fancy}}
Added: doctools/trunk/sphinx/texinputs/fncychap.sty
==============================================================================
--- (empty file)
+++ doctools/trunk/sphinx/texinputs/fncychap.sty Wed Dec 5 22:11:36 2007
@@ -0,0 +1,433 @@
+%%% Derived from the original fncychap.sty,
+%%% but changed ``TWELV'' to ``TWELVE''.
+
+%%% Copyright Ulf A. Lindgren
+%%% Department of Applied Electronics
+%%% Chalmers University of Technology
+%%% S-412 96 Gothenburg, Sweden
+%%% E-mail lindgren at ae.chalmers.se
+%%%
+%%% Note Permission is granted to modify this file under
+%%% the condition that it is saved using another
+%%% file and package name.
+%%%
+%%% Revision 1.1
+%%%
+%%% Jan. 8th Modified package name base date option
+%%% Jan. 22th Modified FmN and FmTi for error in book.cls
+%%% \MakeUppercase{#}->{\MakeUppercase#}
+%%% Apr. 6th Modified Lenny option to prevent undesired
+%%% skip of line.
+%%% Nov. 8th Fixed \@chapapp for AMS
+%%% Feb. 11th Fixed appendix problem related to Bjarne
+%%% Last modified Feb. 11th 1998
+
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{fncychap}
+ [1997/04/06 v1.11
+ LaTeX package (Revised chapters)]
+
+%%%% DEFINITION OF Chapapp variables
+\newcommand{\CNV}{\huge\bfseries}
+\newcommand{\ChNameVar}[1]{\renewcommand{\CNV}{#1}}
+
+
+%%%% DEFINITION OF TheChapter variables
+\newcommand{\CNoV}{\huge\bfseries}
+\newcommand{\ChNumVar}[1]{\renewcommand{\CNoV}{#1}}
+
+\newif\ifUCN
+\UCNfalse
+\newif\ifLCN
+\LCNfalse
+\def\ChNameLowerCase{\LCNtrue\UCNfalse}
+\def\ChNameUpperCase{\UCNtrue\LCNfalse}
+\def\ChNameAsIs{\UCNfalse\LCNfalse}
+
+%%%%% Fix for AMSBook 971008
+
+\@ifundefined{@chapapp}{\let\@chapapp\chaptername}{}
+
+
+%%%%% Fix for Bjarne and appendix 980211
+
+\newif\ifinapp
+\inappfalse
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \inapptrue%
+ \renewcommand\@chapapp{\appendixname}%
+ \renewcommand\thechapter{\@Alph\c at chapter}}
+
+%%%%%
+
+\newcommand{\FmN}[1]{%
+\ifUCN
+ {\MakeUppercase#1}\LCNfalse
+\else
+ \ifLCN
+ {\MakeLowercase#1}\UCNfalse
+ \else #1
+ \fi
+\fi}
+
+
+%%%% DEFINITION OF Title variables
+\newcommand{\CTV}{\Huge\bfseries}
+\newcommand{\ChTitleVar}[1]{\renewcommand{\CTV}{#1}}
+
+%%%% DEFINITION OF the basic rule width
+\newlength{\RW}
+\setlength{\RW}{1pt}
+\newcommand{\ChRuleWidth}[1]{\setlength{\RW}{#1}}
+
+\newif\ifUCT
+\UCTfalse
+\newif\ifLCT
+\LCTfalse
+\def\ChTitleLowerCase{\LCTtrue\UCTfalse}
+\def\ChTitleUpperCase{\UCTtrue\LCTfalse}
+\def\ChTitleAsIs{\UCTfalse\LCTfalse}
+\newcommand{\FmTi}[1]{%
+\ifUCT
+
+ {\MakeUppercase#1}\LCTfalse
+\else
+ \ifLCT
+ {\MakeLowercase#1}\UCTfalse
+ \else #1
+ \fi
+\fi}
+
+
+
+\newlength{\mylen}
+\newlength{\myhi}
+\newlength{\px}
+\newlength{\py}
+\newlength{\pyy}
+\newlength{\pxx}
+
+
+\def\mghrulefill#1{\leavevmode\leaders\hrule\@height #1\hfill\kern\z@}
+
+\newcommand{\DOCH}{%
+ \CNV\FmN{\@chapapp}\space \CNoV\thechapter
+ \par\nobreak
+ \vskip 20\p@
+ }
+\newcommand{\DOTI}[1]{%
+ \CTV\FmTi{#1}\par\nobreak
+ \vskip 40\p@
+ }
+\newcommand{\DOTIS}[1]{%
+ \CTV\FmTi{#1}\par\nobreak
+ \vskip 40\p@
+ }
+
+%%%%%% SONNY DEF
+
+\DeclareOption{Sonny}{%
+ \ChNameVar{\Large\sf}
+ \ChNumVar{\Huge}
+ \ChTitleVar{\Large\sf}
+ \ChRuleWidth{0.5pt}
+ \ChNameUpperCase
+ \renewcommand{\DOCH}{%
+ \raggedleft
+ \CNV\FmN{\@chapapp}\space \CNoV\thechapter
+ \par\nobreak
+ \vskip 40\p@}
+ \renewcommand{\DOTI}[1]{%
+ \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
+ \vskip 5\p@
+ \CTV\FmTi{#1}\par\nobreak
+ \mghrulefill{\RW}\par\nobreak
+ \vskip 40\p@}
+ \renewcommand{\DOTIS}[1]{%
+ \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
+ \vskip 5\p@
+ \CTV\FmTi{#1}\par\nobreak
+ \mghrulefill{\RW}\par\nobreak
+ \vskip 40\p@}
+}
+
+%%%%%% LENNY DEF
+
+\DeclareOption{Lenny}{%
+
+ \ChNameVar{\fontsize{14}{16}\usefont{OT1}{phv}{m}{n}\selectfont}
+ \ChNumVar{\fontsize{60}{62}\usefont{OT1}{ptm}{m}{n}\selectfont}
+ \ChTitleVar{\Huge\bfseries\rm}
+ \ChRuleWidth{1pt}
+ \renewcommand{\DOCH}{%
+ \settowidth{\px}{\CNV\FmN{\@chapapp}}
+ \addtolength{\px}{2pt}
+ \settoheight{\py}{\CNV\FmN{\@chapapp}}
+ \addtolength{\py}{1pt}
+
+ \settowidth{\mylen}{\CNV\FmN{\@chapapp}\space\CNoV\thechapter}
+ \addtolength{\mylen}{1pt}
+ \settowidth{\pxx}{\CNoV\thechapter}
+ \addtolength{\pxx}{-1pt}
+
+ \settoheight{\pyy}{\CNoV\thechapter}
+ \addtolength{\pyy}{-2pt}
+ \setlength{\myhi}{\pyy}
+ \addtolength{\myhi}{-1\py}
+ \par
+ \parbox[b]{\textwidth}{%
+ \rule[\py]{\RW}{\myhi}%
+ \hskip -\RW%
+ \rule[\pyy]{\px}{\RW}%
+ \hskip -\px%
+ \raggedright%
+ \CNV\FmN{\@chapapp}\space\CNoV\thechapter%
+ \hskip1pt%
+ \mghrulefill{\RW}%
+ \rule{\RW}{\pyy}\par\nobreak%
+ \vskip -\baselineskip%
+ \vskip -\pyy%
+ \hskip \mylen%
+ \mghrulefill{\RW}\par\nobreak%
+ \vskip \pyy}%
+ \vskip 20\p@}
+
+
+ \renewcommand{\DOTI}[1]{%
+ \raggedright
+ \CTV\FmTi{#1}\par\nobreak
+ \vskip 40\p@}
+
+ \renewcommand{\DOTIS}[1]{%
+ \raggedright
+ \CTV\FmTi{#1}\par\nobreak
+ \vskip 40\p@}
+ }
+
+
+%%%%%%% GLENN DEF
+
+
+\DeclareOption{Glenn}{%
+ \ChNameVar{\bfseries\Large\sf}
+ \ChNumVar{\Huge}
+ \ChTitleVar{\bfseries\Large\rm}
+ \ChRuleWidth{1pt}
+ \ChNameUpperCase
+ \ChTitleUpperCase
+ \renewcommand{\DOCH}{%
+ \settoheight{\myhi}{\CTV\FmTi{Test}}
+ \setlength{\py}{\baselineskip}
+ \addtolength{\py}{\RW}
+ \addtolength{\py}{\myhi}
+ \setlength{\pyy}{\py}
+ \addtolength{\pyy}{-1\RW}
+
+ \raggedright
+ \CNV\FmN{\@chapapp}\space\CNoV\thechapter
+ \hskip 3pt\mghrulefill{\RW}\rule[-1\pyy]{2\RW}{\py}\par\nobreak}
+
+ \renewcommand{\DOTI}[1]{%
+ \addtolength{\pyy}{-4pt}
+ \settoheight{\myhi}{\CTV\FmTi{#1}}
+ \addtolength{\myhi}{\py}
+ \addtolength{\myhi}{-1\RW}
+ \vskip -1\pyy
+ \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 2pt
+ \raggedleft\CTV\FmTi{#1}\par\nobreak
+ \vskip 80\p@}
+
+ \renewcommand{\DOTIS}[1]{%
+ \setlength{\py}{10pt}
+ \setlength{\pyy}{\py}
+ \addtolength{\pyy}{\RW}
+ \setlength{\myhi}{\baselineskip}
+ \addtolength{\myhi}{\pyy}
+ \mghrulefill{\RW}\rule[-1\py]{2\RW}{\pyy}\par\nobreak
+% \addtolength{}{}
+\vskip -1\baselineskip
+ \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 2pt
+ \raggedleft\CTV\FmTi{#1}\par\nobreak
+ \vskip 60\p@}
+ }
+
+%%%%%%% CONNY DEF
+
+\DeclareOption{Conny}{%
+ \ChNameUpperCase
+ \ChTitleUpperCase
+ \ChNameVar{\centering\Huge\rm\bfseries}
+ \ChNumVar{\Huge}
+ \ChTitleVar{\centering\Huge\rm}
+ \ChRuleWidth{2pt}
+
+ \renewcommand{\DOCH}{%
+ \mghrulefill{3\RW}\par\nobreak
+ \vskip -0.5\baselineskip
+ \mghrulefill{\RW}\par\nobreak
+ \CNV\FmN{\@chapapp}\space \CNoV\thechapter
+ \par\nobreak
+ \vskip -0.5\baselineskip
+ }
+ \renewcommand{\DOTI}[1]{%
+ \mghrulefill{\RW}\par\nobreak
+ \CTV\FmTi{#1}\par\nobreak
+ \vskip 60\p@
+ }
+ \renewcommand{\DOTIS}[1]{%
+ \mghrulefill{\RW}\par\nobreak
+ \CTV\FmTi{#1}\par\nobreak
+ \vskip 60\p@
+ }
+ }
+
+%%%%%%% REJNE DEF
+
+\DeclareOption{Rejne}{%
+
+ \ChNameUpperCase
+ \ChTitleUpperCase
+ \ChNameVar{\centering\Large\rm}
+ \ChNumVar{\Huge}
+ \ChTitleVar{\centering\Huge\rm}
+ \ChRuleWidth{1pt}
+ \renewcommand{\DOCH}{%
+ \settoheight{\py}{\CNoV\thechapter}
+ \addtolength{\py}{-1pt}
+ \CNV\FmN{\@chapapp}\par\nobreak
+ \vskip 20\p@
+ \setlength{\myhi}{2\baselineskip}
+ \setlength{\px}{\myhi}
+ \addtolength{\px}{-1\RW}
+ \rule[-1\px]{\RW}{\myhi}\mghrulefill{\RW}\hskip
+ 10pt\raisebox{-0.5\py}{\CNoV\thechapter}\hskip
+10pt\mghrulefill{\RW}\rule[-1\px]{\RW}{\myhi}\par\nobreak
+ \vskip -1\p@
+ }
+ \renewcommand{\DOTI}[1]{%
+ \setlength{\mylen}{\textwidth}
+ \addtolength{\mylen}{-2\RW}
+ {\vrule width\RW}\parbox{\mylen}{\CTV\FmTi{#1}}{\vrule
+width\RW}\par\nobreak
+ \vskip
+-1pt\rule{\RW}{2\baselineskip}\mghrulefill{\RW}\rule{\RW}{2\baselineskip}
+ \vskip 60\p@
+ }
+ \renewcommand{\DOTIS}[1]{%
+ \setlength{\py}{\fboxrule}
+ \setlength{\fboxrule}{\RW}
+ \setlength{\mylen}{\textwidth}
+ \addtolength{\mylen}{-2\RW}
+ \fbox{\parbox{\mylen}{\vskip
+2\baselineskip\CTV\FmTi{#1}\par\nobreak\vskip \baselineskip}}
+ \setlength{\fboxrule}{\py}
+ \vskip 60\p@
+ }
+ }
+
+
+%%%%%%% BJARNE DEF
+
+\DeclareOption{Bjarne}{%
+ \ChNameUpperCase
+ \ChTitleUpperCase
+ \ChNameVar{\raggedleft\normalsize\rm}
+ \ChNumVar{\raggedleft \bfseries\Large}
+ \ChTitleVar{\raggedleft \Large\rm}
+ \ChRuleWidth{1pt}
+
+
+%% Note thechapter -> c at chapter fix appendix bug
+
+ \newcounter{AlphaCnt}
+ \newcounter{AlphaDecCnt}
+ \newcommand{\AlphaNo}{%
+ \ifcase\number\theAlphaCnt
+ \ifnum\c at chapter=0
+ ZERO\else{}\fi
+ \or ONE\or TWO\or THREE\or FOUR\or FIVE
+ \or SIX\or SEVEN\or EIGHT\or NINE\or TEN
+ \or ELEVEN\or TWELVE\or THIRTEEN\or FOURTEEN\or FIFTEEN
+ \or SIXTEEN\or SEVENTEEN\or EIGHTEEN\or NINETEEN\fi
+}
+
+ \newcommand{\AlphaDecNo}{%
+ \setcounter{AlphaDecCnt}{0}
+ \@whilenum\number\theAlphaCnt>0\do
+ {\addtocounter{AlphaCnt}{-10}
+ \addtocounter{AlphaDecCnt}{1}}
+ \ifnum\number\theAlphaCnt=0
+ \else
+ \addtocounter{AlphaDecCnt}{-1}
+ \addtocounter{AlphaCnt}{10}
+ \fi
+
+
+ \ifcase\number\theAlphaDecCnt\or TEN\or TWENTY\or THIRTY\or
+ FORTY\or FIFTY\or SIXTY\or SEVENTY\or EIGHTY\or NINETY\fi
+ }
+ \newcommand{\TheAlphaChapter}{%
+
+ \ifinapp
+ \thechapter
+ \else
+ \setcounter{AlphaCnt}{\c at chapter}
+ \ifnum\c at chapter<20
+ \AlphaNo
+ \else
+ \AlphaDecNo\AlphaNo
+ \fi
+ \fi
+ }
+ \renewcommand{\DOCH}{%
+ \mghrulefill{\RW}\par\nobreak
+ \CNV\FmN{\@chapapp}\par\nobreak
+ \CNoV\TheAlphaChapter\par\nobreak
+ \vskip -1\baselineskip\vskip 5pt\mghrulefill{\RW}\par\nobreak
+ \vskip 20\p@
+ }
+ \renewcommand{\DOTI}[1]{%
+ \CTV\FmTi{#1}\par\nobreak
+ \vskip 40\p@
+ }
+ \renewcommand{\DOTIS}[1]{%
+ \CTV\FmTi{#1}\par\nobreak
+ \vskip 40\p@
+ }
+}
+
+\DeclareOption*{%
+ \PackageWarning{fancychapter}{unknown style option}
+ }
+
+\ProcessOptions* \relax
+
+\def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright \normalfont
+ \ifnum \c at secnumdepth >\m at ne
+ \DOCH
+ \fi
+ \interlinepenalty\@M
+ \DOTI{#1}
+ }}
+\def\@schapter#1{\if at twocolumn
+ \@topnewpage[\@makeschapterhead{#1}]%
+ \else
+ \@makeschapterhead{#1}%
+ \@afterheading
+ \fi}
+\def\@makeschapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright
+ \normalfont
+ \interlinepenalty\@M
+ \DOTIS{#1}
+ \vskip 40\p@
+ }}
+
+\endinput
+
+
Added: doctools/trunk/sphinx/texinputs/howto.cls
==============================================================================
--- (empty file)
+++ doctools/trunk/sphinx/texinputs/howto.cls Wed Dec 5 22:11:36 2007
@@ -0,0 +1,113 @@
+%
+% howto.cls for the Python documentation
+%
+
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesClass{howto}
+ [1998/02/25 Document class (Python HOWTO)]
+
+\RequirePackage{fancybox}
+
+% Change the options here to get a different set of basic options, This
+% is where to add things like "a4paper" or "10pt".
+%
+\LoadClass[twoside]{article}
+
+\setcounter{secnumdepth}{1}
+
+% Optional packages:
+%
+% If processing of these documents fails at your TeX installation,
+% these may be commented out (independently) to make things work.
+% These are both supplied with the current version of the teTeX
+% distribution.
+%
+% The "fancyhdr" package makes nicer page footers reasonable to
+% implement, and is used to put the chapter and section information in
+% the footers.
+%
+\RequirePackage{fancyhdr}\typeout{Using fancier footers than usual.}
+
+
+% Required package:
+%
+% This gives us all the Python-specific markup that we really want.
+% This should come last. Do not change this.
+%
+\RequirePackage{python}
+
+% This comes after python.sty because it otherwise defines its own
+% "seealso" command.
+\RequirePackage{makeidx}
+
+
+% support for module synopsis sections:
+\newcommand{\py at ModSynopsisFilename}{\jobname.syn}
+
+
+% need to do one of these....
+\newcommand{\py at doHorizontalRule}{\rule{\textwidth}{1pt}}
+
+
+% Change the title page to look a bit better, and fit in with the
+% fncychap ``Bjarne'' style a bit better.
+%
+\renewcommand{\maketitle}{
+ \py at doHorizontalRule
+ \ifpdf
+ \begingroup
+ % This \def is required to deal with multi-line authors; it
+ % changes \\ to ', ' (comma-space), making it pass muster for
+ % generating document info in the PDF file.
+ \def\\{, }
+ \pdfinfo{
+ /Author (\@author)
+ /Title (\@title)
+ }
+ \endgroup
+ \fi
+ \begin{flushright}
+ {\rm\Huge\py at HeaderFamily \@title} \par
+ {\em\large\py at HeaderFamily \py at release\releaseinfo} \par
+ \vspace{25pt}
+ {\Large\py at HeaderFamily \@author} \par
+ \vspace{25pt}
+ \@date \par
+ \py at authoraddress \par
+ \end{flushright}
+ \@thanks
+ \setcounter{footnote}{0}
+ \let\thanks\relax\let\maketitle\relax
+ \gdef\@thanks{}\gdef\@author{}\gdef\@title{}
+}
+
+
+\let\py at OldTableofcontents=\tableofcontents
+\renewcommand{\tableofcontents}{
+ \begingroup
+ \parskip = 0mm
+ \py at OldTableofcontents
+ \endgroup
+ \py at doHorizontalRule
+ \vspace{12pt}
+ \py at doing@page at targetstrue
+}
+
+% Fix the theindex environment to add an entry to the Table of
+% Contents; this is much nicer than just having to jump to the end of
+% the book and flip around, especially with multiple indexes.
+%
+\let\py at OldTheindex=\theindex
+\renewcommand{\theindex}{
+ \clearpage
+ \py at OldTheindex
+ \addcontentsline{toc}{section}{\indexname}
+}
+
+\@ifundefined{fancyhf}{
+ \pagestyle{plain}}{
+ \pagestyle{normal}} % start this way; change for
+\pagenumbering{arabic} % ToC & chapters
+\setcounter{secnumdepth}{2}
+
+\thispagestyle{empty}
Added: doctools/trunk/sphinx/texinputs/manual.cls
==============================================================================
--- (empty file)
+++ doctools/trunk/sphinx/texinputs/manual.cls Wed Dec 5 22:11:36 2007
@@ -0,0 +1,159 @@
+%
+% manual.cls for the Python documentation
+%
+
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesClass{manual}
+ [1998/03/03 Document class (Python manual)]
+
+\RequirePackage{fancybox}
+
+% Change the options here to get a different set of basic options, but only
+% if you have to.
+%
+\LoadClass[twoside,openright]{report}
+
+\setcounter{secnumdepth}{2}
+
+% Optional packages:
+%
+% If processing of these documents fails at your TeX installation,
+% these may be commented out (independently) to make things work.
+% These are both supplied with the current version of the teTeX
+% distribution.
+%
+% The "fancyhdr" package makes nicer page footers reasonable to
+% implement, and is used to put the chapter and section information in
+% the footers.
+%
+\RequirePackage{fancyhdr}\typeout{Using fancier footers than usual.}
+
+
+% Required packages:
+%
+% The "fncychap" package is used to get the nice chapter headers. The
+% .sty file is distributed with Python, so you should not need to disable
+% it. You'd also end up with a mixed page style; uglier than stock LaTeX!
+%
+\RequirePackage[Bjarne]{fncychap}\typeout{Using fancy chapter headings.}
+% Do horizontal rules it this way to match:
+\newcommand{\py at doHorizontalRule}{\mghrulefill{\RW}}
+%
+%
+% This gives us all the Python-specific markup that we really want.
+% This should come last. Do not change this.
+%
+\RequirePackage{python}
+
+% This comes after python.sty because it otherwise defines its own
+% "seealso" command.
+\RequirePackage{makeidx}
+
+
+% support for module synopsis sections:
+\newcommand{\py at ModSynopsisFilename}{\jobname\thechapter.syn}
+\let\py at OldChapter=\chapter
+\renewcommand{\chapter}{
+ \py at ProcessModSynopsis
+ \py at closeModSynopsisFile
+ \py at OldChapter
+}
+
+
+% Change the title page to look a bit better, and fit in with the
+% fncychap ``Bjarne'' style a bit better.
+%
+\renewcommand{\maketitle}{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\footnoterule\relax
+ \py at doHorizontalRule%
+ \ifpdf
+ \begingroup
+ % This \def is required to deal with multi-line authors; it
+ % changes \\ to ', ' (comma-space), making it pass muster for
+ % generating document info in the PDF file.
+ \def\\{, }
+ \pdfinfo{
+ /Author (\@author)
+ /Title (\@title)
+ }
+ \endgroup
+ \fi
+ \begin{flushright}%
+ {\rm\Huge\py at HeaderFamily \@title \par}%
+ {\em\LARGE\py at HeaderFamily \py at release\releaseinfo \par}
+ \vfill
+ {\LARGE\py at HeaderFamily \@author \par}
+ \vfill\vfill
+ {\large
+ \@date \par
+ \vfill
+ \py at authoraddress \par
+ }%
+ \end{flushright}%\par
+ \@thanks
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \let\thanks\relax\let\maketitle\relax
+ \gdef\@thanks{}\gdef\@author{}\gdef\@title{}
+}
+
+
+% Catch the end of the {abstract} environment, but here make sure the
+% abstract is followed by a blank page if the 'openright' option is used.
+%
+\let\py at OldEndAbstract=\endabstract
+\renewcommand{\endabstract}{
+ \if at openright
+ \ifodd\value{page}
+ \typeout{Adding blank page after the abstract.}
+ \vfil\pagebreak
+ \fi
+ \fi
+ \py at OldEndAbstract
+}
+
+% This wraps the \tableofcontents macro with all the magic to get the
+% spacing right and have the right number of pages if the 'openright'
+% option has been used. This eliminates a fair amount of crud in the
+% individual document files.
+%
+\let\py at OldTableofcontents=\tableofcontents
+\renewcommand{\tableofcontents}{%
+ \setcounter{page}{1}%
+ \pagebreak%
+ \pagestyle{plain}%
+ {%
+ \parskip = 0mm%
+ \py at OldTableofcontents%
+ \if at openright%
+ \ifodd\value{page}%
+ \typeout{Adding blank page after the table of contents.}%
+ \pagebreak\hspace{0pt}%
+ \fi%
+ \fi%
+ \cleardoublepage%
+ }%
+ \pagenumbering{arabic}%
+ \@ifundefined{fancyhf}{}{\pagestyle{normal}}%
+ \py at doing@page at targetstrue%
+}
+% This is needed to get the width of the section # area wide enough in the
+% library reference. Doing it here keeps it the same for all the manuals.
+%
+\renewcommand*\l at section{\@dottedtocline{1}{1.5em}{2.6em}}
+\renewcommand*\l at subsection{\@dottedtocline{2}{4.1em}{3.5em}}
+\setcounter{tocdepth}{1}
+
+
+% Fix the theindex environment to add an entry to the Table of
+% Contents; this is much nicer than just having to jump to the end of
+% the book and flip around, especially with multiple indexes.
+%
+\let\py at OldTheindex=\theindex
+\renewcommand{\theindex}{
+ \cleardoublepage
+ \py at OldTheindex
+ \addcontentsline{toc}{chapter}{\indexname}
+}
Added: doctools/trunk/sphinx/texinputs/python.ist
==============================================================================
--- (empty file)
+++ doctools/trunk/sphinx/texinputs/python.ist Wed Dec 5 22:11:36 2007
@@ -0,0 +1,11 @@
+line_max 100
+headings_flag 1
+heading_prefix " \\bigletter "
+
+preamble "\\begin{theindex}
+\\def\\bigletter#1{{\\Large\\sffamily#1}\\nopagebreak\\vspace{1mm}}
+
+"
+
+symhead_positive "{Symbols}"
+numhead_positive "{Numbers}"
Added: doctools/trunk/sphinx/texinputs/python.sty
==============================================================================
--- (empty file)
+++ doctools/trunk/sphinx/texinputs/python.sty Wed Dec 5 22:11:36 2007
@@ -0,0 +1,1328 @@
+%
+% python.sty for the Python docummentation [works only with Latex2e]
+%
+
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{python}
+ [1998/01/11 LaTeX package (Python markup)]
+
+\RequirePackage{longtable}
+\RequirePackage{underscore}
+\RequirePackage{times}
+
+% Uncomment these two lines to ignore the paper size and make the page
+% size more like a typical published manual.
+%\renewcommand{\paperheight}{9in}
+%\renewcommand{\paperwidth}{8.5in} % typical squarish manual
+%\renewcommand{\paperwidth}{7in} % O'Reilly ``Programmming Python''
+
+% These packages can be used to add marginal annotations which indicate
+% index entries and labels; useful for reviewing this messy documentation!
+%
+%\RequirePackage{showkeys}
+%\RequirePackage{showidx}
+
+% If we ever want to indent paragraphs, this needs to be changed.
+% This is used inside the macros defined here instead of coding
+% \noindent directly.
+\let\py at parindent=\noindent
+
+% for PDF output, use maximal compression & a lot of other stuff
+% (test for PDF recommended by Tanmoy Bhattacharya )
+%
+\newif\ifpy at doing@page at targets
+\py at doing@page at targetsfalse
+
+\newif\ifpdf\pdffalse
+\ifx\pdfoutput\undefined\else\ifcase\pdfoutput
+\else
+ \pdftrue
+ \input{pdfcolor}
+ \let\py at LinkColor=\NavyBlue
+ \let\py at NormalColor=\Black
+ \pdfcompresslevel=9
+ \pdfpagewidth=\paperwidth % page width of PDF output
+ \pdfpageheight=\paperheight % page height of PDF output
+ %
+ % Pad the number with '0' to 3 digits wide so no page name is a prefix
+ % of any other.
+ %
+ \newcommand{\py at targetno}[1]{\ifnum#1<100 0\fi\ifnum#1<10 0\fi#1}
+ \newcommand{\py at pageno}{\py at targetno\thepage}
+ %
+ % This definition allows the entries in the page-view of the ToC to be
+ % active links. Some work, some don't.
+ %
+ \let\py at OldContentsline=\contentsline
+ %
+ % Backward compatibility hack: pdfTeX 0.13 defined \pdfannotlink,
+ % but it changed to \pdfstartlink in 0.14. This let's us use either
+ % version and still get useful behavior.
+ %
+ \@ifundefined{pdfstartlink}{
+ \let\pdfstartlink=\pdfannotlink
+ }{}
+ %
+ % The \py at parindent here is a hack -- we're forcing pdfTeX into
+ % horizontal mode since \pdfstartlink requires that.
+ \def\py at pdfstartlink{%
+ \ifvmode\py at parindent\fi%
+ \pdfstartlink%
+ }
+ %
+ % Macro that takes two args: the name to link to and the content of
+ % the link. This takes care of the PDF magic, getting the colors
+ % the same for each link, and avoids having lots of garbage all over
+ % this style file.
+ \newcommand{\py at linkToName}[2]{%
+ \py at pdfstartlink attr{/Border [0 0 0]} goto name{#1}%
+ \py at LinkColor#2\py at NormalColor%
+ \pdfendlink%
+ }
+ % Compute the padded page number separately since we end up with a pair of
+ % \relax tokens; this gets the right string computed and works.
+ \renewcommand{\contentsline}[3]{%
+ \def\my at pageno{\py at targetno{#3}}%
+ \py at OldContentsline{#1}{\py at linkToName{page\my at pageno}{#2}}{#3}%
+ }
+ \AtEndDocument{
+ \def\_{\string_}
+ \InputIfFileExists{\jobname.bkm}{\pdfcatalog{/PageMode /UseOutlines}}{}
+ }
+ \newcommand{\py at target}[1]{%
+ \ifpy at doing@page at targets%
+ {\pdfdest name{#1} xyz}%
+ \fi%
+ }
+ \let\py at OldLabel=\label
+ \renewcommand{\label}[1]{%
+ \py at OldLabel{#1}%
+ \py at target{label-#1}%
+ }
+ % This stuff adds a page# destination to every PDF page, where # is three
+ % digits wide, padded with leading zeros. This doesn't really help with
+ % the frontmatter, but does fine with the body.
+ %
+ % This is *heavily* based on the hyperref package.
+ %
+ \def\@begindvi{%
+ \unvbox \@begindvibox
+ \@hyperfixhead
+ }
+ \def\@hyperfixhead{%
+ \let\H at old@thehead\@thehead
+ \global\def\@foo{\py at target{page\py at pageno}}%
+ \expandafter\ifx\expandafter\@empty\H at old@thehead
+ \def\H at old@thehead{\hfil}\fi
+ \def\@thehead{\@foo\relax\H at old@thehead}%
+ }
+\fi\fi
+
+% Increase printable page size (copied from fullpage.sty)
+\topmargin 0pt
+\advance \topmargin by -\headheight
+\advance \topmargin by -\headsep
+
+% attempt to work a little better for A4 users
+\textheight \paperheight
+\advance\textheight by -2in
+
+\oddsidemargin 0pt
+\evensidemargin 0pt
+%\evensidemargin -.25in % for ``manual size'' documents
+\marginparwidth 0.5in
+
+\textwidth \paperwidth
+\advance\textwidth by -2in
+
+
+% Style parameters and macros used by most documents here
+\raggedbottom
+\sloppy
+\parindent = 0mm
+\parskip = 2mm
+\hbadness = 5000 % don't print trivial gripes
+
+\pagestyle{empty} % start this way; change for
+\pagenumbering{roman} % ToC & chapters
+
+% Use this to set the font family for headers and other decor:
+\newcommand{\py at HeaderFamily}{\sffamily}
+
+% Set up abstract ways to get the normal and smaller font sizes that
+% work even in footnote context.
+\newif\ifpy at infootnote \py at infootnotefalse
+\let\py at oldmakefntext\@makefntext
+\def\@makefntext#1{%
+ \bgroup%
+ \py at infootnotetrue
+ \py at oldmakefntext{#1}%
+ \egroup%
+}
+\def\py at defaultsize{%
+ \ifpy at infootnote\footnotesize\else\normalsize\fi%
+}
+\def\py at smallsize{%
+ \ifpy at infootnote\scriptsize\else\small\fi%
+}
+
+% Redefine the 'normal' header/footer style when using "fancyhdr" package:
+\@ifundefined{fancyhf}{}{
+ % Use \pagestyle{normal} as the primary pagestyle for text.
+ \fancypagestyle{normal}{
+ \fancyhf{}
+ \fancyfoot[LE,RO]{{\py at HeaderFamily\thepage}}
+ \fancyfoot[LO]{{\py at HeaderFamily\nouppercase{\rightmark}}}
+ \fancyfoot[RE]{{\py at HeaderFamily\nouppercase{\leftmark}}}
+ \renewcommand{\headrulewidth}{0pt}
+ \renewcommand{\footrulewidth}{0.4pt}
+ }
+ % Update the plain style so we get the page number & footer line,
+ % but not a chapter or section title. This is to keep the first
+ % page of a chapter and the blank page between chapters `clean.'
+ \fancypagestyle{plain}{
+ \fancyhf{}
+ \fancyfoot[LE,RO]{{\py at HeaderFamily\thepage}}
+ \renewcommand{\headrulewidth}{0pt}
+ \renewcommand{\footrulewidth}{0.4pt}
+ }
+ % Redefine \cleardoublepage so that the blank page between chapters
+ % gets the plain style and not the fancy style. This is described
+ % in the documentation for the fancyhdr package by Piet von Oostrum.
+ \@ifundefined{chapter}{}{
+ \renewcommand{\cleardoublepage}{
+ \clearpage\if at openright \ifodd\c at page\else
+ \hbox{}
+ \thispagestyle{plain}
+ \newpage
+ \if at twocolumn\hbox{}\newpage\fi\fi\fi
+ }
+ }
+}
+
+% This sets up the {verbatim} environment to be indented and a minipage,
+% and to have all the other mostly nice properties that we want for
+% code samples.
+
+\let\py at OldVerbatim=\verbatim
+\let\py at OldEndVerbatim=\endverbatim
+\RequirePackage{verbatim}
+\let\py at OldVerbatimInput=\verbatiminput
+
+% Variable used by begin code command
+\newlength{\py at codewidth}
+
+\renewcommand{\verbatim}{%
+ \setlength{\parindent}{1cm}%
+ % Calculate the text width for the minipage:
+ \setlength{\py at codewidth}{\linewidth}%
+ \addtolength{\py at codewidth}{-\parindent}%
+ %
+ \par\indent%
+ \begin{minipage}[t]{\py at codewidth}%
+ \small%
+ \py at OldVerbatim%
+}
+\renewcommand{\endverbatim}{%
+ \py at OldEndVerbatim%
+ \end{minipage}%
+}
+\renewcommand{\verbatiminput}[1]{%
+ {\setlength{\parindent}{1cm}%
+ % Calculate the text width for the minipage:
+ \setlength{\py at codewidth}{\linewidth}%
+ \addtolength{\py at codewidth}{-\parindent}%
+ %
+ \small%
+ \begin{list}{}{\setlength{\leftmargin}{1cm}}
+ \item%
+ \py at OldVerbatimInput{#1}%
+ \end{list}
+ }%
+}
+
+% This does a similar thing for the {alltt} environment:
+\RequirePackage{alltt}
+\let\py at OldAllTT=\alltt
+\let\py at OldEndAllTT=\endalltt
+
+\renewcommand{\alltt}{%
+ \setlength{\parindent}{1cm}%
+ % Calculate the text width for the minipage:
+ \setlength{\py at codewidth}{\linewidth}%
+ \addtolength{\py at codewidth}{-\parindent}%
+ \let\e=\textbackslash%
+ %
+ \par\indent%
+ \begin{minipage}[t]{\py at codewidth}%
+ \small%
+ \py at OldAllTT%
+}
+\renewcommand{\endalltt}{%
+ \py at OldEndAllTT%
+ \end{minipage}%
+}
+
+
+\newcommand{\py at modulebadkey}{{--just-some-junk--}}
+
+
+%% Lots of index-entry generation support.
+
+% Command to wrap around stuff that refers to function / module /
+% attribute names in the index. Default behavior: like \code{}. To
+% just keep the index entries in the roman font, uncomment the second
+% definition; it matches O'Reilly style more.
+%
+\newcommand{\py at idxcode}[1]{\texttt{#1}}
+%\renewcommand{\py at idxcode}[1]{#1}
+
+% Command to generate two index entries (using subentries)
+\newcommand{\indexii}[2]{\index{#1!#2}\index{#2!#1}}
+
+% And three entries (using only one level of subentries)
+\newcommand{\indexiii}[3]{\index{#1!#2 #3}\index{#2!#3, #1}\index{#3!#1 #2}}
+
+% And four (again, using only one level of subentries)
+\newcommand{\indexiv}[4]{
+\index{#1!#2 #3 #4}
+\index{#2!#3 #4, #1}
+\index{#3!#4, #1 #2}
+\index{#4!#1 #2 #3}
+}
+
+% Command to generate a reference to a function, statement, keyword,
+% operator.
+\newcommand{\kwindex}[1]{\indexii{keyword}{#1@{\py at idxcode{#1}}}}
+\newcommand{\stindex}[1]{\indexii{statement}{#1@{\py at idxcode{#1}}}}
+\newcommand{\opindex}[1]{\indexii{operator}{#1@{\py at idxcode{#1}}}}
+\newcommand{\exindex}[1]{\indexii{exception}{#1@{\py at idxcode{#1}}}}
+\newcommand{\obindex}[1]{\indexii{object}{#1}}
+\newcommand{\bifuncindex}[1]{%
+ \index{#1@{\py at idxcode{#1()}} (built-in function)}}
+
+% Add an index entry for a module
+\newcommand{\py at refmodule}[2]{\index{#1@{\py at idxcode{#1}} (#2module)}}
+\newcommand{\refmodindex}[1]{\py at refmodule{#1}{}}
+\newcommand{\refbimodindex}[1]{\py at refmodule{#1}{built-in }}
+\newcommand{\refexmodindex}[1]{\py at refmodule{#1}{extension }}
+\newcommand{\refstmodindex}[1]{\py at refmodule{#1}{standard }}
+
+% Refer to a module's documentation using a hyperlink of the module's
+% name, at least if we're building PDF:
+\ifpdf
+ \newcommand{\refmodule}[2][\py at modulebadkey]{%
+ \ifx\py at modulebadkey#1\def\py at modulekey{#2}\else\def\py at modulekey{#1}\fi%
+ \py at linkToName{label-module-\py at modulekey}{\module{#2}}%
+ }
+\else
+ \newcommand{\refmodule}[2][\py at modulebadkey]{\module{#2}}
+\fi
+
+% support for the module index
+\newif\ifpy at UseModuleIndex
+\py at UseModuleIndexfalse
+
+\newcommand{\makemodindex}{
+ \newwrite\modindexfile
+ \openout\modindexfile=mod\jobname.idx
+ \py at UseModuleIndextrue
+}
+
+% Add the defining entry for a module
+\newcommand{\py at modindex}[2]{%
+ \renewcommand{\py at thismodule}{#1}
+ \setindexsubitem{(in module #1)}%
+ \index{#1@{\py at idxcode{#1}} (#2module)|textbf}%
+ \ifpy at UseModuleIndex%
+ \@ifundefined{py at modplat@\py at thismodulekey}{
+ \write\modindexfile{\protect\indexentry{#1@{\texttt{#1}}}{\thepage}}%
+ }{\write\modindexfile{\protect\indexentry{#1@{\texttt{#1} %
+ \emph{(\py at platformof[\py at thismodulekey]{})}}}{\thepage}}%
+ }
+ \fi%
+}
+
+% *** XXX *** THE NEXT FOUR MACROS ARE NOW OBSOLETE !!! ***
+
+% built-in & Python modules in the main distribution
+\newcommand{\bimodindex}[1]{\py at modindex{#1}{built-in }%
+ \typeout{*** MACRO bimodindex IS OBSOLETE -- USE declaremodule INSTEAD!}}
+\newcommand{\stmodindex}[1]{\py at modindex{#1}{standard }%
+ \typeout{*** MACRO stmodindex IS OBSOLETE -- USE declaremodule INSTEAD!}}
+
+% Python & extension modules outside the main distribution
+\newcommand{\modindex}[1]{\py at modindex{#1}{}%
+ \typeout{*** MACRO modindex IS OBSOLETE -- USE declaremodule INSTEAD!}}
+\newcommand{\exmodindex}[1]{\py at modindex{#1}{extension }%
+ \typeout{*** MACRO exmodindex IS OBSOLETE -- USE declaremodule INSTEAD!}}
+
+% Additional string for an index entry
+\newif\ifpy at usingsubitem\py at usingsubitemfalse
+\newcommand{\py at indexsubitem}{}
+\newcommand{\setindexsubitem}[1]{\renewcommand{\py at indexsubitem}{ #1}%
+ \py at usingsubitemtrue}
+\newcommand{\ttindex}[1]{%
+ \ifpy at usingsubitem
+ \index{#1@{\py at idxcode{#1}}\py at indexsubitem}%
+ \else%
+ \index{#1@{\py at idxcode{#1}}}%
+ \fi%
+}
+\newcommand{\withsubitem}[2]{%
+ \begingroup%
+ \def\ttindex##1{\index{##1@{\py at idxcode{##1}} #1}}%
+ #2%
+ \endgroup%
+}
+
+
+% Module synopsis processing -----------------------------------------------
+%
+\newcommand{\py at thisclass}{}
+\newcommand{\py at thismodule}{}
+\newcommand{\py at thismodulekey}{}
+\newcommand{\py at thismoduletype}{}
+
+\newcommand{\py at standardIndexModule}[1]{\py at modindex{#1}{standard }}
+\newcommand{\py at builtinIndexModule}[1]{\py at modindex{#1}{built-in }}
+\newcommand{\py at extensionIndexModule}[1]{\py at modindex{#1}{extension }}
+\newcommand{\py at IndexModule}[1]{\py at modindex{#1}{}}
+
+\newif\ifpy at HaveModSynopsis \py at HaveModSynopsisfalse
+\newif\ifpy at ModSynopsisFileIsOpen \py at ModSynopsisFileIsOpenfalse
+\newif\ifpy at HaveModPlatform \py at HaveModPlatformfalse
+
+% \declaremodule[key]{type}{name}
+\newcommand{\declaremodule}[3][\py at modulebadkey]{
+ \py at openModSynopsisFile
+ \renewcommand{\py at thismoduletype}{#2}
+ \ifx\py at modulebadkey#1
+ \renewcommand{\py at thismodulekey}{#3}
+ \else
+ \renewcommand{\py at thismodulekey}{#1}
+ \fi
+ \@ifundefined{py@#2IndexModule}{%
+ \typeout{*** MACRO declaremodule called with unknown module type: `#2'}
+ \py at IndexModule{#3}%
+ }{%
+ \csname py@#2IndexModule\endcsname{#3}%
+ }
+ \label{module-\py at thismodulekey}
+}
+\newif\ifpy at ModPlatformFileIsOpen \py at ModPlatformFileIsOpenfalse
+\newcommand{\py at ModPlatformFilename}{\jobname.pla}
+\newcommand{\platform}[1]{
+ \ifpy at ModPlatformFileIsOpen\else
+ \newwrite\py at ModPlatformFile
+ \openout\py at ModPlatformFile=\py at ModPlatformFilename
+ \py at ModPlatformFileIsOpentrue
+ \fi
+}
+\InputIfFileExists{\jobname.pla}{}{}
+\newcommand{\py at platformof}[2][\py at modulebadkey]{%
+ \ifx\py at modulebadkey#1 \def\py at key{#2}%
+ \else \def\py at key{#1}%
+ \fi%
+ \csname py at modplat@\py at key\endcsname%
+}
+\newcommand{\ignorePlatformAnnotation}[1]{}
+
+% \moduleauthor{name}{email}
+\newcommand{\moduleauthor}[2]{}
+
+% \sectionauthor{name}{email}
+\newcommand{\sectionauthor}[2]{}
+
+
+\newcommand{\py at defsynopsis}{Module has no synopsis.}
+\newcommand{\py at modulesynopsis}{\py at defsynopsis}
+\newcommand{\modulesynopsis}[1]{
+ \py at HaveModSynopsistrue
+ \renewcommand{\py at modulesynopsis}{#1}
+}
+
+% define the file
+\newwrite\py at ModSynopsisFile
+
+% hacked from \addtocontents from latex.ltx:
+\long\def\py at writeModSynopsisFile#1{%
+ \protected at write\py at ModSynopsisFile%
+ {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble}%
+ {\string#1}%
+}
+\newcommand{\py at closeModSynopsisFile}{
+ \ifpy at ModSynopsisFileIsOpen
+ \closeout\py at ModSynopsisFile
+ \py at ModSynopsisFileIsOpenfalse
+ \fi
+}
+\newcommand{\py at openModSynopsisFile}{
+ \ifpy at ModSynopsisFileIsOpen\else
+ \openout\py at ModSynopsisFile=\py at ModSynopsisFilename
+ \py at ModSynopsisFileIsOpentrue
+ \fi
+}
+
+\newcommand{\py at ProcessModSynopsis}{
+ \ifpy at HaveModSynopsis
+ \py at writeModSynopsisFile{\modulesynopsis%
+ {\py at thismodulekey}{\py at thismodule}%
+ {\py at thismoduletype}{\py at modulesynopsis}}%
+ \py at HaveModSynopsisfalse
+ \fi
+ \renewcommand{\py at modulesynopsis}{\py at defsynopsis}
+}
+\AtEndDocument{\py at ProcessModSynopsis\py at closeModSynopsisFile}
+
+
+\long\def\py at writeModPlatformFile#1{%
+ \protected at write\py at ModPlatformFile%
+ {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble}%
+ {\string#1}%
+}
+
+
+\newcommand{\localmoduletable}{
+ \IfFileExists{\py at ModSynopsisFilename}{
+ \begin{synopsistable}
+ \input{\py at ModSynopsisFilename}
+ \end{synopsistable}
+ }{}
+}
+
+\ifpdf
+ \newcommand{\py at ModSynopsisSummary}[4]{%
+ \py at linkToName{label-module-#1}{\bfcode{#2}} & #4\\
+ }
+\else
+ \newcommand{\py at ModSynopsisSummary}[4]{\bfcode{#2} & #4\\}
+\fi
+\newenvironment{synopsistable}{
+ % key, name, type, synopsis
+ \let\modulesynopsis=\py at ModSynopsisSummary
+ \begin{tabular}{ll}
+}{
+ \end{tabular}
+}
+%
+% --------------------------------------------------------------------------
+
+
+\newcommand{\py at reset}{
+ \py at usingsubitemfalse
+ \py at ProcessModSynopsis
+ \renewcommand{\py at thisclass}{}
+ \renewcommand{\py at thismodule}{}
+ \renewcommand{\py at thismodulekey}{}
+ \renewcommand{\py at thismoduletype}{}
+}
+
+% Augment the sectioning commands used to get our own font family in place,
+% and reset some internal data items:
+\renewcommand{\section}{\py at reset%
+ \@startsection{section}{1}{\z@}%
+ {-3.5ex \@plus -1ex \@minus -.2ex}%
+ {2.3ex \@plus.2ex}%
+ {\reset at font\Large\py at HeaderFamily}}
+\renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\reset at font\large\py at HeaderFamily}}
+\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\reset at font\normalsize\py at HeaderFamily}}
+\renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\reset at font\normalsize\py at HeaderFamily}}
+\renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
+ {3.25ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\reset at font\normalsize\py at HeaderFamily}}
+
+
+% Now for a lot of semantically-loaded environments that do a ton of magical
+% things to get the right formatting and index entries for the stuff in
+% Python modules and C API.
+
+
+% {fulllineitems} is used in one place in libregex.tex, but is really for
+% internal use in this file.
+%
+\newcommand{\py at itemnewline}[1]{%
+ \@tempdima\linewidth%
+ \advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}%
+}
+
+\newenvironment{fulllineitems}{
+ \begin{list}{}{\labelwidth \leftmargin \labelsep 0pt
+ \rightmargin 0pt \topsep -\parskip \partopsep \parskip
+ \itemsep -\parsep
+ \let\makelabel=\py at itemnewline}
+}{\end{list}}
+
+% \optional is mostly for use in the arguments parameters to the various
+% {*desc} environments defined below, but may be used elsewhere. Known to
+% be used in the debugger chapter.
+%
+% Typical usage:
+%
+% \begin{funcdesc}{myfunc}{reqparm\optional{, optparm}}
+% ^^^ ^^^
+% No space here No space here
+%
+% When a function has multiple optional parameters, \optional should be
+% nested, not chained. This is right:
+%
+% \begin{funcdesc}{myfunc}{\optional{parm1\optional{, parm2}}}
+%
+\let\py at badkey=\@undefined
+
+\newcommand{\optional}[1]{%
+ {\textnormal{\Large[}}{#1}\hspace{0.5mm}{\textnormal{\Large]}}}
+
+% This can be used when a function or method accepts an varying number
+% of arguments, such as by using the *args syntax in the parameter list.
+\newcommand{\py at moreargs}{...}
+
+% This can be used when you don't want to document the parameters to a
+% function or method, but simply state that it's an alias for
+% something else.
+\newcommand{\py at unspecified}{...}
+
+
+\newlength{\py at argswidth}
+\newcommand{\py at sigparams}[1]{%
+ \parbox[t]{\py at argswidth}{\py at varvars{#1}\code{)}}}
+\newcommand{\py at sigline}[2]{%
+ \settowidth{\py at argswidth}{#1\code{(}}%
+ \addtolength{\py at argswidth}{-2\py at argswidth}%
+ \addtolength{\py at argswidth}{\textwidth}%
+ \item[#1\code{(}\py at sigparams{#2}]}
+
+% C functions ------------------------------------------------------------
+% \begin{cfuncdesc}[refcount]{type}{name}{arglist}
+% Note that the [refcount] slot should only be filled in by
+% tools/anno-api.py; it pulls the value from the refcounts database.
+\newcommand{\cfuncline}[3]{
+ \py at sigline{\code{#1 \bfcode{#2}}}{#3}%
+ \index{#2@{\py at idxcode{#2()}}}
+}
+\newenvironment{cfuncdesc}[4][\py at badkey]{
+ \begin{fulllineitems}
+ \cfuncline{#2}{#3}{#4}
+ \ifx\@undefined#1\relax\else%
+ \emph{Return value: \textbf{#1}.}\\
+ \fi
+}{\end{fulllineitems}}
+
+% C variables ------------------------------------------------------------
+% \begin{cvardesc}{type}{name}
+\newenvironment{cvardesc}[2]{
+ \begin{fulllineitems}
+ \item[\code{#1 \bfcode{#2}}\index{#2@{\py at idxcode{#2}}}]
+}{\end{fulllineitems}}
+
+% C data types -----------------------------------------------------------
+% \begin{ctypedesc}[index name]{typedef name}
+\newenvironment{ctypedesc}[2][\py at badkey]{
+ \begin{fulllineitems}
+ \item[\bfcode{#2}%
+ \ifx\@undefined#1\relax%
+ \index{#2@{\py at idxcode{#2}} (C type)}
+ \else%
+ \index{#2@{\py at idxcode{#1}} (C type)}
+ \fi]
+}{\end{fulllineitems}}
+
+% C type fields ----------------------------------------------------------
+% \begin{cmemberdesc}{container type}{ctype}{membername}
+\newcommand{\cmemberline}[3]{
+ \item[\code{#2 \bfcode{#3}}]
+ \index{#3@{\py at idxcode{#3}} (#1 member)}
+}
+\newenvironment{cmemberdesc}[3]{
+ \begin{fulllineitems}
+ \cmemberline{#1}{#2}{#3}
+}{\end{fulllineitems}}
+
+% Funky macros -----------------------------------------------------------
+% \begin{csimplemacrodesc}{name}
+% -- "simple" because it has no args; NOT for constant definitions!
+\newenvironment{csimplemacrodesc}[1]{
+ \begin{fulllineitems}
+ \item[\bfcode{#1}\index{#1@{\py at idxcode{#1}} (macro)}]
+}{\end{fulllineitems}}
+
+% simple functions (not methods) -----------------------------------------
+% \begin{funcdesc}{name}{args}
+\newcommand{\funcline}[2]{%
+ \funclineni{#1}{#2}%
+ \index{#1@{\py at idxcode{#1()}} (in module \py at thismodule)}}
+\newenvironment{funcdesc}[2]{
+ \begin{fulllineitems}
+ \funcline{#1}{#2}
+}{\end{fulllineitems}}
+
+% similar to {funcdesc}, but doesn't add to the index
+\newcommand{\funclineni}[2]{%
+ \py at sigline{\bfcode{#1}}{#2}}
+\newenvironment{funcdescni}[2]{
+ \begin{fulllineitems}
+ \funclineni{#1}{#2}
+}{\end{fulllineitems}}
+
+% classes ----------------------------------------------------------------
+% \begin{classdesc}{name}{constructor args}
+\newenvironment{classdesc}[2]{
+ % Using \renewcommand doesn't work for this, for unknown reasons:
+ \global\def\py at thisclass{#1}
+ \begin{fulllineitems}
+ \py at sigline{\strong{class }\bfcode{#1}}{#2}%
+ \index{#1@{\py at idxcode{#1}} (class in \py at thismodule)}
+}{\end{fulllineitems}}
+
+% \begin{classdesc*}{name}
+\newenvironment{classdesc*}[1]{
+ % Using \renewcommand doesn't work for this, for unknown reasons:
+ \global\def\py at thisclass{#1}
+ \begin{fulllineitems}
+ \item[\strong{class }\code{\bfcode{#1}}%
+ \index{#1@{\py at idxcode{#1}} (class in \py at thismodule)}]
+}{\end{fulllineitems}}
+
+% \begin{excclassdesc}{name}{constructor args}
+% but indexes as an exception
+\newenvironment{excclassdesc}[2]{
+ % Using \renewcommand doesn't work for this, for unknown reasons:
+ \global\def\py at thisclass{#1}
+ \begin{fulllineitems}
+ \py at sigline{\strong{exception }\bfcode{#1}}{#2}%
+ \index{#1@{\py at idxcode{#1}} (exception in \py at thismodule)}
+}{\end{fulllineitems}}
+
+% There is no corresponding {excclassdesc*} environment. To describe
+% a class exception without parameters, use the {excdesc} environment.
+
+
+\let\py at classbadkey=\@undefined
+
+% object method ----------------------------------------------------------
+% \begin{methoddesc}[classname]{methodname}{args}
+\newcommand{\methodline}[3][\@undefined]{
+ \methodlineni{#2}{#3}
+ \ifx\@undefined#1\relax
+ \index{#2@{\py at idxcode{#2()}} (\py at thisclass\ method)}
+ \else
+ \index{#2@{\py at idxcode{#2()}} (#1 method)}
+ \fi
+}
+\newenvironment{methoddesc}[3][\@undefined]{
+ \begin{fulllineitems}
+ \ifx\@undefined#1\relax
+ \methodline{#2}{#3}
+ \else
+ \def\py at thisclass{#1}
+ \methodline{#2}{#3}
+ \fi
+}{\end{fulllineitems}}
+
+% similar to {methoddesc}, but doesn't add to the index
+% (never actually uses the optional argument)
+\newcommand{\methodlineni}[3][\py at classbadkey]{%
+ \py at sigline{\bfcode{#2}}{#3}}
+\newenvironment{methoddescni}[3][\py at classbadkey]{
+ \begin{fulllineitems}
+ \methodlineni{#2}{#3}
+}{\end{fulllineitems}}
+
+% object data attribute --------------------------------------------------
+% \begin{memberdesc}[classname]{membername}
+\newcommand{\memberline}[2][\py at classbadkey]{%
+ \ifx\@undefined#1\relax
+ \memberlineni{#2}
+ \index{#2@{\py at idxcode{#2}} (\py at thisclass\ attribute)}
+ \else
+ \memberlineni{#2}
+ \index{#2@{\py at idxcode{#2}} (#1 attribute)}
+ \fi
+}
+\newenvironment{memberdesc}[2][\py at classbadkey]{
+ \begin{fulllineitems}
+ \ifx\@undefined#1\relax
+ \memberline{#2}
+ \else
+ \def\py at thisclass{#1}
+ \memberline{#2}
+ \fi
+}{\end{fulllineitems}}
+
+% similar to {memberdesc}, but doesn't add to the index
+% (never actually uses the optional argument)
+\newcommand{\memberlineni}[2][\py at classbadkey]{\item[\bfcode{#2}]}
+\newenvironment{memberdescni}[2][\py at classbadkey]{
+ \begin{fulllineitems}
+ \memberlineni{#2}
+}{\end{fulllineitems}}
+
+% For exceptions: --------------------------------------------------------
+% \begin{excdesc}{name}
+% -- for constructor information, use excclassdesc instead
+\newenvironment{excdesc}[1]{
+ \begin{fulllineitems}
+ \item[\strong{exception }\bfcode{#1}%
+ \index{#1@{\py at idxcode{#1}} (exception in \py at thismodule)}]
+}{\end{fulllineitems}}
+
+% Module data or constants: ----------------------------------------------
+% \begin{datadesc}{name}
+\newcommand{\dataline}[1]{%
+ \datalineni{#1}\index{#1@{\py at idxcode{#1}} (data in \py at thismodule)}}
+\newenvironment{datadesc}[1]{
+ \begin{fulllineitems}
+ \dataline{#1}
+}{\end{fulllineitems}}
+
+% similar to {datadesc}, but doesn't add to the index
+\newcommand{\datalineni}[1]{\item[\bfcode{#1}]\nopagebreak}
+\newenvironment{datadescni}[1]{
+ \begin{fulllineitems}
+ \datalineni{#1}
+}{\end{fulllineitems}}
+
+% bytecode instruction ---------------------------------------------------
+% \begin{opcodedesc}{name}{var}
+% -- {var} may be {}
+\newenvironment{opcodedesc}[2]{
+ \begin{fulllineitems}
+ \item[\bfcode{#1}\quad\var{#2}]
+}{\end{fulllineitems}}
+
+
+\newcommand{\nodename}[1]{\label{#1}}
+
+% For these commands, use \command{} to get the typography right, not
+% {\command}. This works better with the texinfo translation.
+\newcommand{\ABC}{{\sc abc}}
+\newcommand{\UNIX}{{\sc Unix}}
+\newcommand{\POSIX}{POSIX}
+\newcommand{\ASCII}{{\sc ascii}}
+\newcommand{\Cpp}{C\protect\raisebox{.18ex}{++}}
+\newcommand{\C}{C}
+\newcommand{\EOF}{{\sc eof}}
+\newcommand{\NULL}{\constant{NULL}}
+\newcommand{\infinity}{\ensuremath{\infty}}
+\newcommand{\plusminus}{\ensuremath{\pm}}
+
+% \guilabel{Start}
+\newcommand{\guilabel}[1]{\textsf{#1}}
+% \menuselection{Start \sub Programs \sub Python}
+\newcommand{\menuselection}[1]{\guilabel{{\def\sub{ \ensuremath{>} }#1}}}
+
+% Also for consistency: spell Python "Python", not "python"!
+
+% code is the most difficult one...
+\newcommand{\code}[1]{\textrm{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}%
+\texttt{#1}}}
+
+\newcommand{\bfcode}[1]{\code{\bfseries#1}} % bold-faced code font
+\newcommand{\csimplemacro}[1]{\code{#1}}
+\newcommand{\kbd}[1]{\code{#1}}
+\newcommand{\samp}[1]{`\code{#1}'}
+\newcommand{\var}[1]{%
+ \ifmmode%
+ \hbox{\py at defaultsize\textrm{\textit{#1\/}}}%
+ \else%
+ \py at defaultsize\textrm{\textit{#1\/}}%
+ \fi%
+}
+\renewcommand{\emph}[1]{{\em #1}}
+\newcommand{\dfn}[1]{\emph{#1}}
+\newcommand{\strong}[1]{{\bf #1}}
+% let's experiment with a new font:
+\newcommand{\file}[1]{`\filenq{#1}'}
+\newcommand{\filenq}[1]{{\py at smallsize\textsf{\let\e=\textbackslash#1}}}
+
+% Use this def/redef approach for \url{} since hyperref defined this already,
+% but only if we actually used hyperref:
+\ifpdf
+ \newcommand{\url}[1]{{%
+ \py at pdfstartlink%
+ attr{ /Border [0 0 0] }%
+ user{%
+ /Subtype/Link%
+ /A<<%
+ /Type/Action%
+ /S/URI%
+ /URI(#1)%
+ >>%
+ }%
+ \py at LinkColor% color of the link text
+ \py at smallsize\sf #1%
+ \py at NormalColor% Turn it back off; these are declarative
+ \pdfendlink}% and don't appear bound to the current
+ }% formatting "box".
+\else
+ \newcommand{\url}[1]{\mbox{\py at smallsize\textsf{#1}}}
+\fi
+\newcommand{\email}[1]{{\py at smallsize\textsf{#1}}}
+\newcommand{\newsgroup}[1]{{\py at smallsize\textsf{#1}}}
+
+\newcommand{\py at varvars}[1]{{%
+ {\let\unspecified=\py at unspecified%
+ \let\moreargs=\py at moreargs%
+ \var{#1}}}}
+
+% I'd really like to get rid of this!
+\newif\iftexi\texifalse
+
+% This is used to get l2h to put the copyright and abstract on
+% a separate HTML page.
+\newif\ifhtml\htmlfalse
+
+
+% These should be used for all references to identifiers which are
+% used to refer to instances of specific language constructs. See the
+% names for specific semantic assignments.
+%
+% For now, don't do anything really fancy with them; just use them as
+% logical markup. This might change in the future.
+%
+\newcommand{\module}[1]{\texttt{#1}}
+\newcommand{\keyword}[1]{\texttt{#1}}
+\newcommand{\exception}[1]{\texttt{#1}}
+\newcommand{\class}[1]{\texttt{#1}}
+\newcommand{\function}[1]{\texttt{#1}}
+\newcommand{\member}[1]{\texttt{#1}}
+\newcommand{\method}[1]{\texttt{#1}}
+
+\newcommand{\pytype}[1]{#1} % built-in Python type
+
+\newcommand{\cfunction}[1]{\texttt{#1}}
+\newcommand{\ctype}[1]{\texttt{#1}} % C struct or typedef name
+\newcommand{\cdata}[1]{\texttt{#1}} % C variable, typically global
+
+\newcommand{\mailheader}[1]{{\py at smallsize\textsf{#1:}}}
+\newcommand{\mimetype}[1]{{\py at smallsize\textsf{#1}}}
+% The \! is a "negative thin space" in math mode.
+\newcommand{\regexp}[1]{%
+ {\tiny$^{^\lceil}\!\!$%
+ {\py at defaultsize\code{#1}}%
+ $\!\rfloor\!$%
+ }}
+\newcommand{\envvar}[1]{%
+ #1%
+ \index{#1}%
+ \index{environment variables!{#1}}%
+}
+\newcommand{\makevar}[1]{#1} % variable in a Makefile
+\newcommand{\character}[1]{\samp{#1}}
+
+% constants defined in Python modules or C headers, not language constants:
+\newcommand{\constant}[1]{\code{#1}} % manifest constant, not syntactic
+
+\newcommand{\manpage}[2]{{\emph{#1}(#2)}}
+\newcommand{\pep}[1]{PEP #1\index{Python Enhancement Proposals!PEP #1}}
+\newcommand{\rfc}[1]{RFC #1\index{RFC!RFC #1}}
+\newcommand{\program}[1]{\strong{#1}}
+\newcommand{\programopt}[1]{\strong{#1}}
+% Note that \longprogramopt provides the '--'!
+\newcommand{\longprogramopt}[1]{\strong{-{}-#1}}
+
+% \ulink{link text}{URL}
+\ifpdf
+ \newcommand{\ulink}[2]{{%
+ % For PDF, we *should* only generate a link when the URL is absolute.
+ \py at pdfstartlink%
+ attr{ /Border [0 0 0] }%
+ user{%
+ /Subtype/Link%
+ /A<<%
+ /Type/Action%
+ /S/URI%
+ /URI(#2)%
+ >>%
+ }%
+ \py at LinkColor% color of the link text
+ #1%
+ \py at NormalColor% Turn it back off; these are declarative
+ \pdfendlink}% and don't appear bound to the current
+ }% formatting "box".
+\else
+ \newcommand{\ulink}[2]{#1}
+\fi
+
+% cited titles: \citetitle{Title of Work}
+% online: \citetitle[url-to-resource]{Title of Work}
+\ifpdf
+ \newcommand{\citetitle}[2][\py at modulebadkey]{%
+ \ifx\py at modulebadkey#1\emph{#2}\else\ulink{\emph{#2}}{#1}\fi%
+ }
+\else
+ \newcommand{\citetitle}[2][URL]{\emph{#2}}
+\fi
+
+
+
+% This version is being checked in for the historical record; it shows
+% how I've managed to get some aspects of this to work. It will not
+% be used in practice, so a subsequent revision will change things
+% again. This version has problems, but shows how to do something
+% that proved more tedious than I'd expected, so I don't want to lose
+% the example completely.
+%
+\newcommand{\grammartoken}[1]{\texttt{#1}}
+\newenvironment{productionlist}[1][\py at badkey]{
+ \def\optional##1{{\Large[}##1{\Large]}}
+ \def\production##1##2{\code{##1}&::=&\code{##2}\\}
+ \def\productioncont##1{& &\code{##1}\\}
+ \def\token##1{##1}
+ \let\grammartoken=\token
+ \parindent=2em
+ \indent
+ \begin{tabular}{lcl}
+}{%
+ \end{tabular}
+}
+
+\newlength{\py at noticelength}
+
+\newcommand{\py at heavybox}{
+ \setlength{\fboxrule}{2pt}
+ \setlength{\fboxsep}{7pt}
+ \setlength{\py at noticelength}{\linewidth}
+ \addtolength{\py at noticelength}{-2\fboxsep}
+ \addtolength{\py at noticelength}{-2\fboxrule}
+ \setlength{\shadowsize}{3pt}
+ \Sbox
+ \minipage{\py at noticelength}
+}
+\newcommand{\py at endheavybox}{
+ \endminipage
+ \endSbox
+ \fbox{\TheSbox}
+}
+
+% a 'note' is as plain as it gets:
+\newcommand{\py at noticelabel@note}{Note:}
+\newcommand{\py at noticestart@note}{}
+\newcommand{\py at noticeend@note}{}
+
+% a 'warning' gets more visible distinction:
+\newcommand{\py at noticelabel@warning}{Warning:}
+\newcommand{\py at noticestart@warning}{\py at heavybox}
+\newcommand{\py at noticeend@warning}{\py at endheavybox}
+
+\newenvironment{notice}[1][note]{
+ \def\py at noticetype{#1}
+ \csname py at noticestart@#1\endcsname
+ \par\strong{\csname py at noticelabel@#1\endcsname}
+}{\csname py at noticeend@\py at noticetype\endcsname}
+\newcommand{\note}[1]{\strong{\py at noticelabel@note} #1}
+\newcommand{\warning}[1]{\strong{\py at noticelabel@warning} #1}
+
+% Deprecation stuff.
+% Should be extended to allow an index / list of deprecated stuff. But
+% there's a lot of stuff that needs to be done to make that automatable.
+%
+% First parameter is the release number that deprecates the feature, the
+% second is the action the should be taken by users of the feature.
+%
+% Example:
+% \deprecated{1.5.1}{Use \method{frobnicate()} instead.}
+%
+\newcommand{\deprecated}[2]{%
+ \strong{Deprecated since release #1.} #2\par}
+
+% New stuff.
+% This should be used to mark things which have been added to the
+% development tree but that aren't in the release, but are documented.
+% This allows release of documentation that already includes updated
+% descriptions. Place at end of descriptor environment.
+%
+% Example:
+% \versionadded{1.5.2}
+% \versionchanged[short explanation]{2.0}
+%
+\newcommand{\versionadded}[2][\py at badkey]{%
+ \ifx\@undefined#1\relax%
+ { New in version #2. }%
+ \else%
+ { New in version #2:\ #1. }%
+ \fi%
+}
+\newcommand{\versionchanged}[2][\py at badkey]{%
+ \ifx\@undefined#1\relax%
+ { Changed in version #2. }%
+ \else%
+ { Changed in version #2:\ #1. }%
+ \fi%
+}
+
+
+% Tables.
+%
+\newenvironment{tableii}[4]{%
+ \begin{center}%
+ \def\lineii##1##2{\csname#2\endcsname{##1}#2\\}%
+ \begin{tabular}{#1}\strong{#3}&\strong{#4} \\* \hline%
+}{%
+ \end{tabular}%
+ \end{center}%
+}
+
+\newenvironment{longtableii}[4]{%
+ \begin{center}%
+ \def\lineii##1##2{\csname#2\endcsname{##1}#2\\}%
+ \begin{longtable}[c]{#1}\strong{#3}&\strong{#4} \\* \hline\endhead%
+}{%
+ \end{longtable}%
+ \end{center}%
+}
+
+\newenvironment{tableiii}[5]{%
+ \begin{center}%
+ \def\lineiii##1##2##3{\csname#2\endcsname{##1}#2#3\\}%
+ \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5} \\%
+ \hline%
+}{%
+ \end{tabular}%
+ \end{center}%
+}
+
+\newenvironment{longtableiii}[5]{%
+ \begin{center}%
+ \def\lineiii##1##2##3{\csname#2\endcsname{##1}#2#3\\}%
+ \begin{longtable}[c]{#1}\strong{#3}&\strong{#4}&\strong{#5} \\%
+ \hline\endhead%
+}{%
+ \end{longtable}%
+ \end{center}%
+}
+
+\newenvironment{tableiv}[6]{%
+ \begin{center}%
+ \def\lineiv##1##2##3##4{\csname#2\endcsname{##1}#2#3#4\\}%
+ \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6} \\%
+ \hline%
+}{%
+ \end{tabular}%
+ \end{center}%
+}
+
+\newenvironment{longtableiv}[6]{%
+ \begin{center}%
+ \def\lineiv##1##2##3##4{\csname#2\endcsname{##1}#2#3#4\\}%
+ \begin{longtable}[c]{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6}%
+ \\%
+ \hline\endhead%
+}{%
+ \end{longtable}%
+ \end{center}%
+}
+
+\newenvironment{tablev}[7]{%
+ \begin{center}%
+ \def\linev##1##2##3##4##5{\csname#2\endcsname{##1}#2#3#4#5\\}%
+ \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6}&\strong{#7} \\%
+ \hline%
+}{%
+ \end{tabular}%
+ \end{center}%
+}
+
+\newenvironment{longtablev}[7]{%
+ \begin{center}%
+ \def\linev##1##2##3##4##5{\csname#2\endcsname{##1}#2#3#4#5\\}%
+ \begin{longtable}[c]{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6}&\strong{#7}%
+ \\%
+ \hline\endhead%
+}{%
+ \end{longtable}%
+ \end{center}%
+}
+
+% XXX Don't think we can use this yet, though it cleans up some
+% tedious markup. There's no equivalent for the HTML transform yet,
+% and that needs to exist. I don't know how to write it.
+%
+% This should really have something that makes it easier to bind a
+% table's ``Notes'' column and an associated tablenotes environment,
+% and generates the right magic for getting the numbers right in the
+% table.
+%
+% So this is quite incomplete.
+%
+\newcounter{py at tablenotescounter}
+\newenvironment{tablenotes}{%
+ \noindent Notes:
+ \par
+ \setcounter{py at tablenotescounter}{0}
+ \begin{list}{(\arabic{py at tablenotescounter})}%
+ {\usecounter{py at tablenotescounter}}
+}{\end{list}}
+
+
+% Cross-referencing (AMK, new impl. FLD)
+% Sample usage:
+% \begin{seealso}
+% \seemodule{rand}{Uniform random number generator.}; % Module xref
+% \seetext{\emph{Encyclopedia Britannica}}. % Ref to a book
+%
+% % A funky case: module name contains '_'; have to supply an optional key
+% \seemodule[copyreg]{copy_reg}{Interface constructor registration for
+% \module{pickle}.}
+% \end{seealso}
+%
+% Note that the last parameter for \seemodule and \seetext should be complete
+% sentences and be terminated with the proper punctuation.
+
+\ifpdf
+ \newcommand{\py at seemodule}[3][\py at modulebadkey]{%
+ \par%
+ \ifx\py at modulebadkey#1\def\py at modulekey{#2}\else\def\py at modulekey{#1}\fi%
+ \begin{fulllineitems}
+ \item[\py at linkToName{label-module-\py at modulekey}{Module \module{#2}}
+ (section \ref{module-\py at modulekey}):]
+ #3
+ \end{fulllineitems}
+ }
+\else
+ \newcommand{\py at seemodule}[3][\py at modulebadkey]{%
+ \par%
+ \ifx\py at modulebadkey#1\def\py at modulekey{#2}\else\def\py at modulekey{#1}\fi%
+ \begin{fulllineitems}
+ \item[Module \module{#2} (section \ref{module-\py at modulekey}):]
+ #3
+ \end{fulllineitems}
+ }
+\fi
+
+% \seelink{url}{link text}{why it's interesting}
+\newcommand{\py at seelink}[3]{%
+ \par
+ \begin{fulllineitems}
+ \item[\ulink{#2}{#1}]
+ #3
+ \end{fulllineitems}
+}
+% \seetitle[url]{title}{why it's interesting}
+\newcommand{\py at seetitle}[3][\py at modulebadkey]{%
+ \par
+ \begin{fulllineitems}
+ \item[\citetitle{#2}]
+ \ifx\py at modulebadkey#1\else
+ \item[{\small{(\url{#1})}}]
+ \fi
+ #3
+ \end{fulllineitems}
+}
+% \seepep{number}{title}{why it's interesting}
+\newcommand{\py at seepep}[3]{%
+ \par%
+ \begin{fulllineitems}
+ \item[\pep{#1}, ``\emph{#2}'']
+ #3
+ \end{fulllineitems}
+}
+% \seerfc{number}{title}{why it's interesting}
+\newcommand{\py at seerfc}[3]{%
+ \par%
+ \begin{fulllineitems}
+ \item[\rfc{#1}, ``\emph{#2}'']
+ #3
+ \end{fulllineitems}
+}
+% \seeurl{url}{why it's interesting}
+\newcommand{\py at seeurl}[2]{%
+ \par%
+ \begin{fulllineitems}
+ \item[\url{#1}]
+ #2
+ \end{fulllineitems}
+}
+
+\newenvironment{seealso*}{
+ \par
+ \def\seetext##1{\par{##1}}
+ \let\seemodule=\py at seemodule
+ \let\seepep=\py at seepep
+ \let\seerfc=\py at seerfc
+ \let\seetitle=\py at seetitle
+ \let\seeurl=\py at seeurl
+ \let\seelink=\py at seelink
+}{\par}
+\newenvironment{seealso}{
+ \par
+ \strong{See Also:}
+ \par
+ \def\seetext##1{\par{##1}}
+ \let\seemodule=\py at seemodule
+ \let\seepep=\py at seepep
+ \let\seerfc=\py at seerfc
+ \let\seetitle=\py at seetitle
+ \let\seeurl=\py at seeurl
+ \let\seelink=\py at seelink
+}{\par}
+
+% Allow the Python release number to be specified independently of the
+% \date{}. This allows the date to reflect the document's date and
+% release to specify the Python release that is documented.
+%
+\newcommand{\py at release}{}
+\newcommand{\version}{}
+\newcommand{\shortversion}{}
+\newcommand{\releaseinfo}{}
+\newcommand{\releasename}{Release}
+\newcommand{\release}[1]{%
+ \renewcommand{\py at release}{\releasename\space\version}%
+ \renewcommand{\version}{#1}}
+\newcommand{\setshortversion}[1]{%
+ \renewcommand{\shortversion}{#1}}
+\newcommand{\setreleaseinfo}[1]{%
+ \renewcommand{\releaseinfo}{#1}}
+
+% Allow specification of the author's address separately from the
+% author's name. This can be used to format them differently, which
+% is a good thing.
+%
+\newcommand{\py at authoraddress}{}
+\newcommand{\authoraddress}[1]{\renewcommand{\py at authoraddress}{#1}}
+\let\developersaddress=\authoraddress
+\let\developer=\author
+\let\developers=\author
+
+% This sets up the fancy chapter headings that make the documents look
+% at least a little better than the usual LaTeX output.
+%
+\@ifundefined{ChTitleVar}{}{
+ \ChNameVar{\raggedleft\normalsize\py at HeaderFamily}
+ \ChNumVar{\raggedleft \bfseries\Large\py at HeaderFamily}
+ \ChTitleVar{\raggedleft \rm\Huge\py at HeaderFamily}
+ % This creates chapter heads without the leading \vspace*{}:
+ \def\@makechapterhead#1{%
+ {\parindent \z@ \raggedright \normalfont
+ \ifnum \c at secnumdepth >\m at ne
+ \DOCH
+ \fi
+ \interlinepenalty\@M
+ \DOTI{#1}
+ }
+ }
+}
+
+
+% Definition lists; requested by AMK for HOWTO documents. Probably useful
+% elsewhere as well, so keep in in the general style support.
+%
+\newenvironment{definitions}{%
+ \begin{description}%
+ \def\term##1{\item[##1]\mbox{}\\*[0mm]}
+}{%
+ \end{description}%
+}
+
+% Tell TeX about pathological hyphenation cases:
+\hyphenation{Base-HTTP-Re-quest-Hand-ler}
Added: doctools/trunk/sphinx/texinputs/underscore.sty
==============================================================================
--- (empty file)
+++ doctools/trunk/sphinx/texinputs/underscore.sty Wed Dec 5 22:11:36 2007
@@ -0,0 +1,232 @@
+% underscore.sty 12-Oct-2001 Donald Arseneau asnd at triumf.ca
+% Make the "_" character print as "\textunderscore" in text.
+% Copyright 1998,2001 Donald Arseneau; Distribute freely if unchanged.
+% Instructions follow after the definitions.
+
+\ProvidesPackage{underscore}[2001/10/12]
+
+\begingroup
+ \catcode`\_=\active
+ \gdef_{% \relax % No relax gives a small vulnerability in alignments
+ \ifx\if at safe@actives\iftrue % must be outermost test!
+ \string_%
+ \else
+ \ifx\protect\@typeset at protect
+ \ifmmode \sb \else \BreakableUnderscore \fi
+ \else
+ \ifx\protect\@unexpandable at protect \noexpand_%
+ \else \protect_%
+ \fi\fi
+ \fi}
+\endgroup
+
+% At begin: set catcode; fix \long \ttdefault so I can use it in comparisons;
+\AtBeginDocument{%
+ {\immediate\write\@auxout{\catcode\number\string`\_ \string\active}}%
+ \catcode\string`\_\string=\active
+ \edef\ttdefault{\ttdefault}%
+}
+
+\newcommand{\BreakableUnderscore}{\leavevmode\nobreak\hskip\z at skip
+ \ifx\f at family\ttdefault \string_\else \textunderscore\fi
+ \usc at dischyph\nobreak\hskip\z at skip}
+
+\DeclareRobustCommand{\_}{%
+ \ifmmode \nfss at text{\textunderscore}\else \BreakableUnderscore \fi}
+
+\let\usc at dischyph\@dischyph
+\DeclareOption{nohyphen}{\def\usc at dischyph{\discretionary{}{}{}}}
+\DeclareOption{strings}{\catcode`\_=\active}
+
+\ProcessOptions
+\ifnum\catcode`\_=\active\else \endinput \fi
+
+%%%%%%%% Redefine commands that use character strings %%%%%%%%
+
+\@ifundefined{UnderscoreCommands}{\let\UnderscoreCommands\@empty}{}
+\expandafter\def\expandafter\UnderscoreCommands\expandafter{%
+ \UnderscoreCommands
+ \do\include \do\includeonly
+ \do\@input \do\@iinput \do\InputIfFileExists
+ \do\ref \do\pageref \do\newlabel
+ \do\bibitem \do\@bibitem \do\cite \do\nocite \do\bibcite
+}
+
+% Macro to redefine a macro to pre-process its string argument
+% with \protect -> \string.
+\def\do#1{% Avoid double processing if user includes command twice!
+ \@ifundefined{US\string_\expandafter\@gobble\string#1}{%
+ \edef\@tempb{\meaning#1}% Check if macro is just a protection shell...
+ \def\@tempc{\protect}%
+ \edef\@tempc{\meaning\@tempc\string#1\space\space}%
+ \ifx\@tempb\@tempc % just a shell: hook into the protected inner command
+ \expandafter\do
+ \csname \expandafter\@gobble\string#1 \expandafter\endcsname
+ \else % Check if macro takes an optional argument
+ \def\@tempc{\@ifnextchar[}%
+ \edef\@tempa{\def\noexpand\@tempa####1\meaning\@tempc}%
+ \@tempa##2##3\@tempa{##2\relax}%
+ \edef\@tempb{\meaning#1\meaning\@tempc}%
+ \edef\@tempc{\noexpand\@tempd \csname
+ US\string_\expandafter\@gobble\string#1\endcsname}%
+ \if \expandafter\@tempa\@tempb \relax 12\@tempa % then no optional arg
+ \@tempc #1\US at prot
+ \else % There is optional arg
+ \@tempc #1\US at protopt
+ \fi
+ \fi
+ }{}}
+
+\def\@tempd#1#2#3{\let#1#2\def#2{#3#1}}
+
+\def\US at prot#1#2{\let\@@protect\protect \let\protect\string
+ \edef\US at temp##1{##1{#2}}\restore at protect\US at temp#1}
+\def\US at protopt#1{\@ifnextchar[{\US at protarg#1}{\US at prot#1}}
+\def\US at protarg #1[#2]{\US at prot{{#1[#2]}}}
+
+\UnderscoreCommands
+\let\do\relax \let\@tempd\relax % un-do
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput
+
+underscore.sty 12-Oct-2001 Donald Arseneau
+
+Features:
+~~~~~~~~~
+\_ prints an underscore so that the hyphenation of constituent words
+is not affected and hyphenation is permitted after the underscore.
+For example, "compound\_fracture" hyphenates as com- pound_- frac- ture.
+If you prefer the underscore to break without a hyphen (but still with
+the same rules for explicit hyphen-breaks) then use the [nohyphen]
+package option.
+
+A simple _ acts just like \_ in text mode, but makes a subscript in
+math mode: activation_energy $E_a$
+
+Both forms use an underscore character if the font encoding contains
+one (e.g., "\usepackage[T1]{fontenc}" or typewriter fonts in any encoding),
+but they use a rule if the there is no proper character.
+
+Deficiencies:
+~~~~~~~~~~~~~
+The skips and penalties ruin any kerning with the underscore character
+(when a character is used). However, there doesn't seem to be much, if
+any, such kerning in the ec fonts, and there is never any kerning with
+a rule.
+
+You must avoid "_" in file names and in cite or ref tags, or you must use
+the babel package, with its active-character controls, or you must give
+the [strings] option, which attempts to redefine several commands (and
+may not work perfectly). Even without the [strings] option or babel, you
+can use occasional underscores like: "\include{file\string_name}".
+
+Option: [strings]
+~~~~~~~~~~~~~~~~~
+The default operation is quite simple and needs no customization; but
+you must avoid using "_" in any place where LaTeX uses an argument as
+a string of characters for some control function or as a name. These
+include the tags for \cite and \ref, file names for \input, \include,
+and \includegraphics, environment names, counter names, and placement
+parameters (like "[t]"). The problem with these contexts is that they
+are `moving arguments' but LaTeX does not `switch on' the \protect
+mechanism for them.
+
+If you need to use the underscore character in these places, the package
+option [strings] is provided to redefine commands taking a string argument
+so that the argument is protected (with \protect -> \string). The list
+of commands is given in "\UnderscoreCommands", with "\do" before each,
+covering \cite, \ref, \input, and their variants. Not included are many
+commands regarding font names, everything with counter names, environment
+names, page styles, and versions of \ref and \cite defined by external
+packages (e.g. \vref and \citeyear).
+
+You can add to the list of supported commands by defining \UnderscoreCommands
+before loading this package; e.g.
+
+ \usepackage{chicago}
+ \newcommand{\UnderscoreCommands}{% (\cite already done)
+ \do\citeNP \do\citeA \do\citeANP \do\citeN \do\shortcite
+ \do\shortciteNP \do\shortciteA \do\shortciteANP \do\shortciteN
+ \do\citeyear \do\citeyearNP
+ }
+ \usepackage[strings]{underscore}
+
+Not all commands can be supported this way! Only commands that take a
+string argument *first* can be protected. One optional argument before
+the string argument is also permitted, as exemplified by \cite: both
+\cite{tags} and \cite[text]{tags} are allowed. A command like
+\@addtoreset which takes two counter names as arguments could not
+be protected by adding it to \UnderscoreCommands.
+
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!! When you use the [strings] option, you must load this package !!
+!! last (or nearly last). !!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+There are two reasons: 1) The redefinitions done for protection must come
+after other packages define their customized versions of those commands.
+2) The [strings] option requires the _ character to be activated immediately
+in order for the cite and ref tags to be read properly from the .aux file
+as plain strings, and this catcode setting might disrupt other packages.
+
+The babel package implements a protection mechanism for many commands,
+and will be a complete fix for most documents without the [strings] option.
+Many add-on packages are compatible with babel, so they will get the
+strings protection also. However, there are several commands that are
+not covered by babel, but can easily be supported by the [strings] and
+\UnderscoreCommands mechanism. Beware that using both [strings] and babel
+may lead to conflicts, but does appear to work (load babel last).
+
+Implementation Notes:
+~~~~~~~~~~~~~~~~~~~~~
+The first setting of "_" to be an active character is performed in a local
+group so as to not interfere with other packages. The catcode setting
+is repeated with \AtBeginDocument so the definition is in effect for the
+text. However, the catcode setting is repeated immediately when the
+[strings] option is detected.
+
+The definition of the active "_" is essentially:
+ \ifmmode \sb \else \BreakableUnderscore \fi
+where "\sb" retains the normal subscript meaning of "_" and where
+"\BreakableUnderscore" is essentially "\_". The rest of the definition
+handles the "\protect"ion without causing \relax to be inserted before
+the character.
+
+\BreakableUnderscore uses "\nobreak\hskip\z at skip" to separate the
+underscore from surrounding words, thus allowing TeX to hyphenate them,
+but preventing free breaks around the underscore. Next, it checks the
+current font family, and uses the underscore character from tt fonts or
+otherwise \textunderscore (which is a character or rule depending on
+the font encoding). After the underscore, it inserts a discretionary
+hyphenation point as "\usc at dischyph", which is usually just "\-"
+except that it still works in the tabbing environment, although it
+will give "\discretionary{}{}{}" under the [nohyphen] option. After
+that, another piece of non-breaking interword glue is inserted.
+Ordinarily, the comparison "\ifx\f at family\ttdefault" will always fail
+because \ttdefault is `long' where \f at family is not (boooo hisss), but
+\ttdefault is redefined to be non-long by "\AtBeginDocument".
+
+The "\_" command is then defined to use "\BreakableUnderscore".
+
+If the [strings] option is not given, then that is all!
+
+Under the [strings] option, the list of special commands is processed to:
+- retain the original command as \US_command (\US_ref)
+- redefine the command as \US at prot\US_command for ordinary commands
+ (\ref -> \US at prot\US_ref) or as \US at protopt\US_command when an optional
+ argument is possible (\bibitem -> \US at protopt\US_bibitem).
+- self-protecting commands (\cite) retain their self-protection.
+Diagnosing the state of the pre-existing command is done by painful
+contortions involving \meaning.
+
+\US at prot and \US at protopt read the argument, process it with \protect
+enabled, then invoke the saved \US_command.
+
+Modifications:
+~~~~~~~~~~~~~~
+12-Oct-2001 Babel (safe at actives) compatibility and [nohyphen] option.
+
+Test file integrity: ASCII 32-57, 58-126: !"#$%&'()*+,-./0123456789
+:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
From buildbot at python.org Wed Dec 5 22:51:38 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 21:51:38 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071205215138.E26471E400F@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/353
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Wed Dec 5 22:52:40 2007
From: python-checkins at python.org (georg.brandl)
Date: Wed, 5 Dec 2007 22:52:40 +0100 (CET)
Subject: [Python-checkins] r59374 - python/trunk/Doc/ACKS.txt
Message-ID: <20071205215240.C626C1E400F@bag.python.org>
Author: georg.brandl
Date: Wed Dec 5 22:52:40 2007
New Revision: 59374
Modified:
python/trunk/Doc/ACKS.txt
Log:
Add Ross Light, a GHOP student, to ACKs.
Modified: python/trunk/Doc/ACKS.txt
==============================================================================
--- python/trunk/Doc/ACKS.txt (original)
+++ python/trunk/Doc/ACKS.txt Wed Dec 5 22:52:40 2007
@@ -108,6 +108,7 @@
* Glyph Lefkowitz
* Robert Lehmann
* Marc-Andr? Lemburg
+* Ross Light
* Ulf A. Lindgren
* Everett Lipman
* Mirko Liss
From python-checkins at python.org Wed Dec 5 22:57:25 2007
From: python-checkins at python.org (christian.heimes)
Date: Wed, 5 Dec 2007 22:57:25 +0100 (CET)
Subject: [Python-checkins] r59375 - python/trunk/PCbuild9/bz2.vcproj
python/trunk/PCbuild9/pgupdate.vsprops
python/trunk/PCbuild9/pyexpat.vcproj
python/trunk/PCbuild9/pyproject.vsprops
python/trunk/PCbuild9/python.vcproj
python/trunk/PCbuild9/pythoncore.vcproj
python/trunk/PCbuild9/pythonw.vcproj
python/trunk/PCbuild9/readme.txt
python/trunk/PCbuild9/w9xpopen.vcproj
python/trunk/PCbuild9/x64.vsprops
Message-ID: <20071205215725.F0AE51E400F@bag.python.org>
Author: christian.heimes
Date: Wed Dec 5 22:57:25 2007
New Revision: 59375
Modified:
python/trunk/PCbuild9/bz2.vcproj
python/trunk/PCbuild9/pgupdate.vsprops
python/trunk/PCbuild9/pyexpat.vcproj
python/trunk/PCbuild9/pyproject.vsprops
python/trunk/PCbuild9/python.vcproj
python/trunk/PCbuild9/pythoncore.vcproj
python/trunk/PCbuild9/pythonw.vcproj
python/trunk/PCbuild9/readme.txt
python/trunk/PCbuild9/w9xpopen.vcproj
python/trunk/PCbuild9/x64.vsprops
Log:
The macros _WIN32, _WIN64 and _M_X64 are defined by the compiler. The VS 2008 IDE doesn't know about (some) of the macros and can display wrong information. In my case a section #ifdef _WIN64 was grayed out although the platform was x64. I've added the macros to pyproject.vsprops and x64.vsprops.
I've also added a paragraph about the property files to the readme and fixed the order of pyupdate > pyinstrument.
Modified: python/trunk/PCbuild9/bz2.vcproj
==============================================================================
--- python/trunk/PCbuild9/bz2.vcproj (original)
+++ python/trunk/PCbuild9/bz2.vcproj Wed Dec 5 22:57:25 2007
@@ -402,7 +402,7 @@
@@ -465,7 +465,7 @@
Modified: python/trunk/PCbuild9/pgupdate.vsprops
==============================================================================
--- python/trunk/PCbuild9/pgupdate.vsprops (original)
+++ python/trunk/PCbuild9/pgupdate.vsprops Wed Dec 5 22:57:25 2007
@@ -2,7 +2,7 @@
Modified: python/trunk/PCbuild9/pyexpat.vcproj
==============================================================================
--- python/trunk/PCbuild9/pyexpat.vcproj (original)
+++ python/trunk/PCbuild9/pyexpat.vcproj Wed Dec 5 22:57:25 2007
@@ -390,7 +390,7 @@
@@ -451,7 +451,7 @@
Modified: python/trunk/PCbuild9/pyproject.vsprops
==============================================================================
--- python/trunk/PCbuild9/pyproject.vsprops (original)
+++ python/trunk/PCbuild9/pyproject.vsprops Wed Dec 5 22:57:25 2007
@@ -12,7 +12,7 @@
InlineFunctionExpansion="1"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\Include; ..\PC"
- PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE"
+ PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_WIN32"
StringPooling="true"
ExceptionHandling="0"
RuntimeLibrary="0"
Modified: python/trunk/PCbuild9/python.vcproj
==============================================================================
--- python/trunk/PCbuild9/python.vcproj (original)
+++ python/trunk/PCbuild9/python.vcproj Wed Dec 5 22:57:25 2007
@@ -318,7 +318,7 @@
@@ -400,7 +400,7 @@
@@ -476,7 +476,7 @@
@@ -550,7 +550,7 @@
Modified: python/trunk/PCbuild9/pythonw.vcproj
==============================================================================
--- python/trunk/PCbuild9/pythonw.vcproj (original)
+++ python/trunk/PCbuild9/pythonw.vcproj Wed Dec 5 22:57:25 2007
@@ -305,7 +305,7 @@
@@ -377,7 +377,7 @@
@@ -450,7 +450,7 @@
@@ -522,7 +522,7 @@
Modified: python/trunk/PCbuild9/readme.txt
==============================================================================
--- python/trunk/PCbuild9/readme.txt (original)
+++ python/trunk/PCbuild9/readme.txt Wed Dec 5 22:57:25 2007
@@ -293,6 +293,31 @@
change the "Runtime Library" from "Multi-threaded DLL (/MD)" to
"Multi-threaded (/MT)".
+Visual Studio properties
+------------------------
+
+The PCbuild9 solution makes heavy use of Visual Studio property files
+(*.vsprops). The properties can be viewed and altered in the Property
+Manager (View -> Other Windows -> Property Manager).
+
+ * debug (debug macros)
+ * pginstrument (PGO)
+ * pgupdate (PGO)
+ +-- pginstrument
+ * pyd (python extension, release build)
+ +-- release
+ +-- pyproject
+ * pyd_d (python extension, debug build)
+ +-- debug
+ +-- pyproject
+ * pyproject (base settings for all projects)
+ * release (release macros)
+ * x64 (AMD64 / x64 platform specific settings)
+
+The pyproject propertyfile defines _WIN32 and x64 defines _WIN64 and _M_X64
+although the macros are set by the compiler, too. The GUI doesn't always know
+about the macros and confuse the user with false information.
+
YOUR OWN EXTENSION DLLs
-----------------------
If you want to create your own extension module DLL, there's an example
Modified: python/trunk/PCbuild9/w9xpopen.vcproj
==============================================================================
--- python/trunk/PCbuild9/w9xpopen.vcproj (original)
+++ python/trunk/PCbuild9/w9xpopen.vcproj Wed Dec 5 22:57:25 2007
@@ -285,7 +285,7 @@
The Buildbot has detected a new failure of x86 FreeBSD 2.5.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%202.5/builds/65
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-freebsd
Build Reason:
Build Source Stamp: [branch branches/release25-maint] HEAD
Blamelist: ronald.oussoren
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_thread test_threading
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 00:47:57 2007
From: buildbot at python.org (buildbot at python.org)
Date: Wed, 05 Dec 2007 23:47:57 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable trunk
Message-ID: <20071205234758.021621E400F@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%20trunk/builds/418
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Thu Dec 6 01:24:23 2007
From: python-checkins at python.org (georg.brandl)
Date: Thu, 6 Dec 2007 01:24:23 +0100 (CET)
Subject: [Python-checkins] r59377 - in python/trunk/Doc: ACKS.txt
c-api/newtypes.rst
Message-ID: <20071206002423.74E6F1E4018@bag.python.org>
Author: georg.brandl
Date: Thu Dec 6 01:24:23 2007
New Revision: 59377
Modified:
python/trunk/Doc/ACKS.txt
python/trunk/Doc/c-api/newtypes.rst
Log:
Add another GHOP student to ACKS.
Modified: python/trunk/Doc/ACKS.txt
==============================================================================
--- python/trunk/Doc/ACKS.txt (original)
+++ python/trunk/Doc/ACKS.txt Thu Dec 6 01:24:23 2007
@@ -121,6 +121,7 @@
* Vincent Marchetti
* Laura Matson
* Daniel May
+* Rebecca McCreary
* Doug Mennella
* Paolo Milani
* Skip Montanaro
Modified: python/trunk/Doc/c-api/newtypes.rst
==============================================================================
--- python/trunk/Doc/c-api/newtypes.rst (original)
+++ python/trunk/Doc/c-api/newtypes.rst Thu Dec 6 01:24:23 2007
@@ -1592,13 +1592,13 @@
.. cmember:: binaryfunc PySequenceMethods.sq_concat
This function is used by :cfunc:`PySequence_Concat` and has the same
- signature. It is also used by the `+` operator, after trying the numeric
+ signature. It is also used by the ``+`` operator, after trying the numeric
addition via the :attr:`tp_as_number.nb_add` slot.
.. cmember:: ssizeargfunc PySequenceMethods.sq_repeat
This function is used by :cfunc:`PySequence_Repeat` and has the same
- signature. It is also used by the `*` operator, after trying numeric
+ signature. It is also used by the ``*`` operator, after trying numeric
multiplication via the :attr:`tp_as_number.nb_mul` slot.
.. cmember:: ssizeargfunc PySequenceMethods.sq_item
From buildbot at python.org Thu Dec 6 01:31:25 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 00:31:25 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu 3.0
Message-ID: <20071206003125.9C6D31E407C@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%203.0/builds/344
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
make: *** [buildbottest] Unknown signal 37
sincerely,
-The Buildbot
From python-checkins at python.org Thu Dec 6 01:56:54 2007
From: python-checkins at python.org (raymond.hettinger)
Date: Thu, 6 Dec 2007 01:56:54 +0100 (CET)
Subject: [Python-checkins] r59378 - in python/trunk: Include/abstract.h
Lib/test/list_tests.py Objects/abstract.c
Objects/listobject.c Python/bltinmodule.c
Message-ID: <20071206005654.040D61E400F@bag.python.org>
Author: raymond.hettinger
Date: Thu Dec 6 01:56:53 2007
New Revision: 59378
Modified:
python/trunk/Include/abstract.h
python/trunk/Lib/test/list_tests.py
python/trunk/Objects/abstract.c
python/trunk/Objects/listobject.c
python/trunk/Python/bltinmodule.c
Log:
Fix Issue 1045.
Factor-out common calling code by simplifying the length_hint API.
Speed-up the function by caching the PyObject_String for the attribute lookup.
Modified: python/trunk/Include/abstract.h
==============================================================================
--- python/trunk/Include/abstract.h (original)
+++ python/trunk/Include/abstract.h Thu Dec 6 01:56:53 2007
@@ -433,25 +433,12 @@
PyAPI_FUNC(Py_ssize_t) PyObject_Length(PyObject *o);
#define PyObject_Length PyObject_Size
- PyAPI_FUNC(Py_ssize_t) _PyObject_LengthHint(PyObject *o);
+ PyAPI_FUNC(Py_ssize_t) _PyObject_LengthHint(PyObject *o, Py_ssize_t);
/*
- Return the size of object o. If the object, o, provides
- both sequence and mapping protocols, the sequence size is
- returned. On error, -1 is returned. If the object provides
- a __length_hint__() method, its value is returned. This is an
- internal undocumented API provided for performance reasons;
- for compatibility, don't use it outside the core. This is the
- equivalent to the Python expression:
- try:
- return len(o)
- except (AttributeError, TypeError):
- exc_type, exc_value, exc_tb = sys.exc_info()
- try:
- return o.__length_hint__()
- except:
- pass
- raise exc_type, exc_value, exc_tb
+ Guess the size of object o using len(o) or o.__length_hint__().
+ If neither of those return a non-negative value, then return the
+ default value. This function never fails. All exceptions are cleared.
*/
PyAPI_FUNC(PyObject *) PyObject_GetItem(PyObject *o, PyObject *key);
Modified: python/trunk/Lib/test/list_tests.py
==============================================================================
--- python/trunk/Lib/test/list_tests.py (original)
+++ python/trunk/Lib/test/list_tests.py Thu Dec 6 01:56:53 2007
@@ -523,7 +523,5 @@
# Bug #1242657
class F(object):
def __iter__(self):
- yield 23
- def __len__(self):
raise KeyboardInterrupt
self.assertRaises(KeyboardInterrupt, list, F())
Modified: python/trunk/Objects/abstract.c
==============================================================================
--- python/trunk/Objects/abstract.c (original)
+++ python/trunk/Objects/abstract.c Thu Dec 6 01:56:53 2007
@@ -82,29 +82,47 @@
}
#define PyObject_Length PyObject_Size
+
+/* The length hint function returns a non-negative value from o.__len__()
+ or o.__length_hint__(). If those methods aren't found or return a negative
+ value, then the defaultvalue is returned. This function never fails.
+ Accordingly, it will mask exceptions raised in either method.
+*/
+
Py_ssize_t
-_PyObject_LengthHint(PyObject *o)
+_PyObject_LengthHint(PyObject *o, Py_ssize_t defaultvalue)
{
- Py_ssize_t rv = PyObject_Size(o);
- if (rv != -1)
+ static PyObject *hintstrobj = NULL;
+ PyObject *ro;
+ Py_ssize_t rv;
+
+ /* try o.__len__() */
+ rv = PyObject_Size(o);
+ if (rv >= 0)
return rv;
- if (PyErr_ExceptionMatches(PyExc_TypeError) ||
- PyErr_ExceptionMatches(PyExc_AttributeError)) {
- PyObject *err_type, *err_value, *err_tb, *ro;
-
- PyErr_Fetch(&err_type, &err_value, &err_tb);
- ro = PyObject_CallMethod(o, "__length_hint__", NULL);
- if (ro != NULL) {
- rv = PyInt_AsLong(ro);
- Py_DECREF(ro);
- Py_XDECREF(err_type);
- Py_XDECREF(err_value);
- Py_XDECREF(err_tb);
- return rv;
- }
- PyErr_Restore(err_type, err_value, err_tb);
+ if (PyErr_Occurred())
+ PyErr_Clear();
+
+ /* cache a hashed version of the attribute string */
+ if (hintstrobj == NULL) {
+ hintstrobj = PyString_InternFromString("__length_hint__");
+ if (hintstrobj == NULL)
+ goto defaultcase;
}
- return -1;
+
+ /* try o.__length_hint__() */
+ ro = PyObject_CallMethodObjArgs(o, hintstrobj, NULL);
+ if (ro == NULL)
+ goto defaultcase;
+ rv = PyInt_AsLong(ro);
+ Py_DECREF(ro);
+ if (rv >= 0)
+ return rv;
+
+defaultcase:
+ if (PyErr_Occurred())
+ PyErr_Clear();
+ return defaultvalue;
}
PyObject *
@@ -1505,17 +1523,7 @@
return NULL;
/* Guess result size and allocate space. */
- n = _PyObject_LengthHint(v);
- if (n < 0) {
- if (PyErr_Occurred()
- && !PyErr_ExceptionMatches(PyExc_TypeError)
- && !PyErr_ExceptionMatches(PyExc_AttributeError)) {
- Py_DECREF(it);
- return NULL;
- }
- PyErr_Clear();
- n = 10; /* arbitrary */
- }
+ n = _PyObject_LengthHint(v, 10);
result = PyTuple_New(n);
if (result == NULL)
goto Fail;
Modified: python/trunk/Objects/listobject.c
==============================================================================
--- python/trunk/Objects/listobject.c (original)
+++ python/trunk/Objects/listobject.c Thu Dec 6 01:56:53 2007
@@ -794,17 +794,7 @@
iternext = *it->ob_type->tp_iternext;
/* Guess a result list size. */
- n = _PyObject_LengthHint(b);
- if (n < 0) {
- if (PyErr_Occurred()
- && !PyErr_ExceptionMatches(PyExc_TypeError)
- && !PyErr_ExceptionMatches(PyExc_AttributeError)) {
- Py_DECREF(it);
- return NULL;
- }
- PyErr_Clear();
- n = 8; /* arbitrary */
- }
+ n = _PyObject_LengthHint(b, 8);
m = Py_Size(self);
mn = m + n;
if (mn >= m) {
Modified: python/trunk/Python/bltinmodule.c
==============================================================================
--- python/trunk/Python/bltinmodule.c (original)
+++ python/trunk/Python/bltinmodule.c Thu Dec 6 01:56:53 2007
@@ -236,15 +236,7 @@
goto Fail_arg;
/* Guess a result list size. */
- len = _PyObject_LengthHint(seq);
- if (len < 0) {
- if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
- !PyErr_ExceptionMatches(PyExc_AttributeError)) {
- goto Fail_it;
- }
- PyErr_Clear();
- len = 8; /* arbitrary */
- }
+ len = _PyObject_LengthHint(seq, 8);
/* Get a result list. */
if (PyList_Check(seq) && seq->ob_refcnt == 1) {
@@ -905,15 +897,7 @@
}
/* Update len. */
- curlen = _PyObject_LengthHint(curseq);
- if (curlen < 0) {
- if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
- !PyErr_ExceptionMatches(PyExc_AttributeError)) {
- goto Fail_2;
- }
- PyErr_Clear();
- curlen = 8; /* arbitrary */
- }
+ curlen = _PyObject_LengthHint(curseq, 8);
if (curlen > len)
len = curlen;
}
@@ -2243,13 +2227,8 @@
len = -1; /* unknown */
for (i = 0; i < itemsize; ++i) {
PyObject *item = PyTuple_GET_ITEM(args, i);
- Py_ssize_t thislen = _PyObject_LengthHint(item);
+ Py_ssize_t thislen = _PyObject_LengthHint(item, -1);
if (thislen < 0) {
- if (!PyErr_ExceptionMatches(PyExc_TypeError) &&
- !PyErr_ExceptionMatches(PyExc_AttributeError)) {
- return NULL;
- }
- PyErr_Clear();
len = -1;
break;
}
From alexandre at peadrop.com Thu Dec 6 02:36:35 2007
From: alexandre at peadrop.com (Alexandre Vassalotti)
Date: Wed, 5 Dec 2007 20:36:35 -0500
Subject: [Python-checkins] r59378 - in python/trunk: Include/abstract.h
Lib/test/list_tests.py Objects/abstract.c
Objects/listobject.c Python/bltinmodule.c
In-Reply-To: <20071206005654.040D61E400F@bag.python.org>
References: <20071206005654.040D61E400F@bag.python.org>
Message-ID:
On Dec 5, 2007 7:56 PM, raymond.hettinger wrote:
> Author: raymond.hettinger
> Date: Thu Dec 6 01:56:53 2007
> New Revision: 59378
>
> Modified:
> python/trunk/Include/abstract.h
> python/trunk/Lib/test/list_tests.py
> python/trunk/Objects/abstract.c
> python/trunk/Objects/listobject.c
> python/trunk/Python/bltinmodule.c
> Log:
> Fix Issue 1045.
> Factor-out common calling code by simplifying the length_hint API.
I like that change. :-) Good work!
> Speed-up the function by caching the PyObject_String for the attribute lookup.
>
From python-checkins at python.org Thu Dec 6 02:52:25 2007
From: python-checkins at python.org (georg.brandl)
Date: Thu, 6 Dec 2007 02:52:25 +0100 (CET)
Subject: [Python-checkins] r59380 - python/trunk/Doc/library/bdb.rst
python/trunk/Doc/library/logging.rst
python/trunk/Doc/library/othergui.rst
python/trunk/Doc/library/ssl.rst
python/trunk/Doc/library/tarfile.rst
python/trunk/Doc/library/warnings.rst
Message-ID: <20071206015225.78F381E4024@bag.python.org>
Author: georg.brandl
Date: Thu Dec 6 02:52:24 2007
New Revision: 59380
Modified:
python/trunk/Doc/library/bdb.rst
python/trunk/Doc/library/logging.rst
python/trunk/Doc/library/othergui.rst
python/trunk/Doc/library/ssl.rst
python/trunk/Doc/library/tarfile.rst
python/trunk/Doc/library/warnings.rst
Log:
Diverse markup fixes.
Modified: python/trunk/Doc/library/bdb.rst
==============================================================================
--- python/trunk/Doc/library/bdb.rst (original)
+++ python/trunk/Doc/library/bdb.rst Thu Dec 6 02:52:24 2007
@@ -239,7 +239,7 @@
.. method:: Bdb.clear_bpbynumber(arg)
Delete the breakpoint which has the index *arg* in the
- :attr:`Breakpoint.bpbynumber`. If `arg` is not numeric or out of range,
+ :attr:`Breakpoint.bpbynumber`. If *arg* is not numeric or out of range,
return an error message.
.. method:: Bdb.clear_all_file_breaks(filename)
Modified: python/trunk/Doc/library/logging.rst
==============================================================================
--- python/trunk/Doc/library/logging.rst (original)
+++ python/trunk/Doc/library/logging.rst Thu Dec 6 02:52:24 2007
@@ -749,7 +749,7 @@
The proposal which described this feature for inclusion in the Python standard
library.
- `Original Python :mod:`logging` package `_
+ `Original Python logging package `_
This is the original source for the :mod:`logging` package. The version of the
package available from this site is suitable for use with Python 1.5.2, 2.1.x
and 2.2.x, which do not include the :mod:`logging` package in the standard
Modified: python/trunk/Doc/library/othergui.rst
==============================================================================
--- python/trunk/Doc/library/othergui.rst (original)
+++ python/trunk/Doc/library/othergui.rst Thu Dec 6 02:52:24 2007
@@ -48,7 +48,7 @@
online `tutorial `_ is
available.
- `PyQt /http://www.riverbankcomputing.co.uk/pyqt/index.php>`_
+ `PyQt `_
PyQt is a :program:`sip`\ -wrapped binding to the Qt toolkit. Qt is an
extensive C++ GUI application development framework that is
available for Unix, Windows and Mac OS X. :program:`sip` is a tool
Modified: python/trunk/Doc/library/ssl.rst
==============================================================================
--- python/trunk/Doc/library/ssl.rst (original)
+++ python/trunk/Doc/library/ssl.rst Thu Dec 6 02:52:24 2007
@@ -112,13 +112,14 @@
======================== ========= ========= ========== =========
*client* / **server** **SSLv2** **SSLv3** **SSLv23** **TLSv1**
+ ------------------------ --------- --------- ---------- ---------
*SSLv2* yes no yes* no
*SSLv3* yes yes yes no
*SSLv23* yes no yes no
*TLSv1* no no yes yes
======================== ========= ========= ========== =========
- `*` In some older versions of OpenSSL (for instance, 0.9.7l on OS X 10.4),
+ In some older versions of OpenSSL (for instance, 0.9.7l on OS X 10.4),
an SSLv2 client could not connect to an SSLv23 server.
.. function:: RAND_status()
Modified: python/trunk/Doc/library/tarfile.rst
==============================================================================
--- python/trunk/Doc/library/tarfile.rst (original)
+++ python/trunk/Doc/library/tarfile.rst Thu Dec 6 02:52:24 2007
@@ -15,7 +15,7 @@
The :mod:`tarfile` module makes it possible to read and write tar
archives, including those using gzip or bz2 compression.
-(`.zip` files can be read and written using the :mod:`zipfile` module.)
+(:file:`.zip` files can be read and written using the :mod:`zipfile` module.)
Some facts and figures:
Modified: python/trunk/Doc/library/warnings.rst
==============================================================================
--- python/trunk/Doc/library/warnings.rst (original)
+++ python/trunk/Doc/library/warnings.rst Thu Dec 6 02:52:24 2007
@@ -203,7 +203,7 @@
.. function:: warnpy3k(message[, category[, stacklevel]])
Issue a warning related to Python 3.x deprecation. Warnings are only shown
- when Python is started with the -3 option. Like func:`warn` *message* must
+ when Python is started with the -3 option. Like :func:`warn` *message* must
be a string and *category* a subclass of :exc:`Warning`. :func:`warnpy3k`
is using :exc:`DeprecationWarning` as default warning class.
From python-checkins at python.org Thu Dec 6 03:00:02 2007
From: python-checkins at python.org (georg.brandl)
Date: Thu, 6 Dec 2007 03:00:02 +0100 (CET)
Subject: [Python-checkins] r59381 - in doctools/trunk/sphinx: addnodes.py
builder.py directives.py htmlwriter.py latexwriter.py
texinputs/fancyhdr.sty texinputs/fncychap.sty
texinputs/python.sty texinputs/underscore.sty
Message-ID: <20071206020002.86C9A1E400F@bag.python.org>
Author: georg.brandl
Date: Thu Dec 6 03:00:01 2007
New Revision: 59381
Removed:
doctools/trunk/sphinx/texinputs/fancyhdr.sty
doctools/trunk/sphinx/texinputs/fncychap.sty
doctools/trunk/sphinx/texinputs/underscore.sty
Modified:
doctools/trunk/sphinx/addnodes.py
doctools/trunk/sphinx/builder.py
doctools/trunk/sphinx/directives.py
doctools/trunk/sphinx/htmlwriter.py
doctools/trunk/sphinx/latexwriter.py
doctools/trunk/sphinx/texinputs/python.sty
Log:
Continue work on the PDF builder. The documents now build and run through LaTeX.
Some elements are still missing though.
Modified: doctools/trunk/sphinx/addnodes.py
==============================================================================
--- doctools/trunk/sphinx/addnodes.py (original)
+++ doctools/trunk/sphinx/addnodes.py Thu Dec 6 03:00:01 2007
@@ -17,10 +17,15 @@
class desc_content(nodes.General, nodes.Element): pass
class desc_signature(nodes.Part, nodes.Inline, nodes.TextElement): pass
class desc_classname(nodes.Part, nodes.Inline, nodes.TextElement): pass
+class desc_type(nodes.Part, nodes.Inline, nodes.TextElement): pass
class desc_name(nodes.Part, nodes.Inline, nodes.TextElement): pass
-class desc_parameterlist(nodes.Part, nodes.Inline, nodes.TextElement): pass
+class desc_parameterlist(nodes.Part, nodes.Inline, nodes.TextElement):
+ child_text_separator = ', '
class desc_parameter(nodes.Part, nodes.Inline, nodes.TextElement): pass
-class desc_optional(nodes.Part, nodes.Inline, nodes.TextElement): pass
+class desc_optional(nodes.Part, nodes.Inline, nodes.TextElement):
+ child_text_separator = ', '
+ def astext(self):
+ return '[' + nodes.TextElement.astext(self) + ']'
# refcount annotation
class refcount(nodes.emphasis): pass
@@ -58,7 +63,7 @@
# make them known to docutils. this is needed, because the HTMl writer
# will choke at some point if these are not added
-nodes._add_node_class_names("""index desc desc_content desc_signature
+nodes._add_node_class_names("""index desc desc_content desc_signature desc_type
desc_classname desc_name desc_parameterlist desc_parameter desc_optional
centered versionmodified seealso productionlist production toctree
pending_xref compact_paragraph highlightlang literal_emphasis
Modified: doctools/trunk/sphinx/builder.py
==============================================================================
--- doctools/trunk/sphinx/builder.py (original)
+++ doctools/trunk/sphinx/builder.py Thu Dec 6 03:00:01 2007
@@ -664,8 +664,8 @@
# first, assemble the "special" docs that are in every PDF
specials = []
- for fname in ["license", "copyright", "about", "glossary"]:
- specials.extend(self.env.get_doctree(fname+".rst").children)
+ for fname in ["glossary", "about", "license", "copyright"]:
+ specials.append(self.env.get_doctree(fname+".rst"))
docwriter = LaTeXWriter(self.config, self.name)
docsettings = OptionParser(
@@ -673,7 +673,7 @@
components=(docwriter,)).get_default_values()
# XXX get names of toplevels automatically?
- for docname in ["c-api"]:#, "distutils", "documenting", "extending",
+ for docname in ["library"]:#, "distutils", "documenting", "extending",
#"howto", "install", "library", "reference",
#"tutorial", "using"]:
# XXX whatsnew missing
@@ -682,36 +682,37 @@
encoding='utf-8')
doctree = self.assemble_doctree(path.join(docname, "index.rst"))
doctree.extend(specials)
- print "Writing..."
+ print "writing...",
doctree.settings = docsettings
doctree.settings.filename = docname
+ doctree.settings.docclass = 'manual' # XXX howto for whatsnew
output = docwriter.write(doctree, destination)
- print "Done!"
+ print "done"
def assemble_doctree(self, indexfile):
self.filenames = [indexfile]
- print "Processing", indexfile
+ print "processing", indexfile
def process_tree(tree):
- tree = tree.deepcopy()
+ #tree = tree.deepcopy()
for toctreenode in tree.traverse(addnodes.toctree):
- index = toctreenode.parent.index(toctreenode)
+ newnodes = []
includefiles = map(str, toctreenode['includefiles'])
for includefile in includefiles:
try:
- print "Including", includefile
+ print green(includefile),
subtree = process_tree(self.env.get_doctree(includefile))
self.filenames.append(includefile)
except:
print >>self.warning_stream, 'WARNING: %s: toctree contains ' \
'ref to nonexisting file %r' % (filename, includefile)
else:
- toctreenode.parent[index:index] = subtree.children
- toctreenode.parent.remove(toctreenode)
+ newnodes.extend(subtree.children)
+ toctreenode.parent.replace(toctreenode, newnodes)
return tree
largetree = process_tree(self.env.get_doctree(indexfile))
- print "Resolving references..."
+ print
+ print "resolving references..."
self.env.resolve_references(largetree, indexfile, self)
- #print largetree
return largetree
def finish(self):
Modified: doctools/trunk/sphinx/directives.py
==============================================================================
--- doctools/trunk/sphinx/directives.py (original)
+++ doctools/trunk/sphinx/directives.py Thu Dec 6 03:00:01 2007
@@ -217,7 +217,8 @@
raise ValueError('no match')
rettype, name, arglist = m.groups()
- parse_c_type(signode, rettype)
+ signode += addnodes.desc_type("", "")
+ parse_c_type(signode[-1], rettype)
signode += addnodes.desc_name(name, name)
if not arglist:
if desctype == 'cfunction':
@@ -293,6 +294,7 @@
node['desctype'] = desctype
noindex = ('noindex' in options)
+ node['noindex'] = noindex
# remove backslashes to support (dummy) escapes; helps Vim's highlighting
signatures = map(lambda s: s.strip().replace('\\', ''), arguments[0].split('\n'))
names = []
Modified: doctools/trunk/sphinx/htmlwriter.py
==============================================================================
--- doctools/trunk/sphinx/htmlwriter.py (original)
+++ doctools/trunk/sphinx/htmlwriter.py Thu Dec 6 03:00:01 2007
@@ -63,6 +63,12 @@
def depart_desc_classname(self, node):
self.body.append('')
+ def visit_desc_type(self, node):
+ # return type of C functions -- nothing to do here
+ pass
+ def depart_desc_type(self, node):
+ pass
+
def visit_desc_name(self, node):
self.body.append(self.starttag(node, 'tt', '', CLASS='descname'))
def depart_desc_name(self, node):
Modified: doctools/trunk/sphinx/latexwriter.py
==============================================================================
--- doctools/trunk/sphinx/latexwriter.py (original)
+++ doctools/trunk/sphinx/latexwriter.py Thu Dec 6 03:00:01 2007
@@ -14,18 +14,21 @@
import re
import time
+import string
from docutils import frontend, nodes, languages, writers, utils
+from . import addnodes
+
HEADER = r'''%% Generated by Sphinx.
-\documentclass[%(papersize)s,%(pointsize)s]{manual}
-\usepackage{hyperref}
+\documentclass[%(papersize)s,%(pointsize)s]{%(docclass)s}
+\usepackage[colorlinks]{hyperref}
\title{%(title)s}
\date{%(date)s}
\release{%(release)s}
-\author{Guido van Rossum\\
- Fred L. Drake, Jr., editor}
+\author{Guido van Rossum\\ %% XXX
+ Fred L. Drake, Jr., editor} %% XXX
\authoraddress{
\strong{Python Software Foundation}\\
Email: \email{docs at python.org}
@@ -34,7 +37,7 @@
'''
-FOOTER = r''''
+FOOTER = r'''
\printindex
\end{document}
'''
@@ -65,18 +68,19 @@
pdb.post_mortem(tb)
-TABLE_MODE_NONE = 0
-TABLE_MODE_HEAD = 1
-TABLE_MODE_BODY = 2
+# Helper classes
class TableSpec:
def __init__(self):
self.columnCount = 0
- self.mode = TABLE_MODE_NONE
- def getColumnCount(self): return self.columnCount
- def setColumnCount(self, columnCount): self.columnCount = columnCount
- def getMode(self): return self.mode
- def setMode(self, mode): self.mode = mode
+ self.firstRow = 1
+
+class Desc:
+ def __init__(self, node):
+ self.env = LaTeXTranslator.desc_map[node['desctype']]
+ self.ni = node['noindex']
+ self.type = self.cls = self.name = self.params = ''
+ self.count = 0
class LaTeXTranslator(nodes.NodeVisitor):
@@ -86,18 +90,24 @@
def __init__(self, document, config):
nodes.NodeVisitor.__init__(self, document)
self.body = []
- self.options = {'papersize': 'a4paper', # XXX
+ self.options = {'docclass': document.settings.docclass,
+ 'papersize': 'a4paper', # XXX
'pointsize': '12pt',
'filename': document.settings.filename,
- 'title': '',
+ 'title': None, # comes later
'release': config['release'],
'date': time.strftime(config.get('today_fmt', '%B %d, %Y')),
}
self.context = []
+ self.descstack = []
+ self.highlightlang = 'python'
+ self.written_ids = set()
+ # flags
self.verbatim = 0
+ self.in_title = 0
+ self.first_document = 1
self.this_is_the_title = 1
- self.sectionlevel = 0 # XXX starts with chapter now
- self.highlightlang = 'python'
+ self.literal_whitespace = 0
def astext(self):
return (HEADER % self.options) + \
@@ -105,7 +115,13 @@
(FOOTER % self.options)
def visit_document(self, node):
- self.body.append('\\begin{document}\n\\maketitle\n')
+ if self.first_document == 1:
+ self.body.append('\\begin{document}\n\\maketitle\n\\tableofcontents\n')
+ self.first_document = 0
+ elif self.first_document == 0:
+ self.body.append('\n\\appendix\n')
+ self.first_document = -1
+ self.sectionlevel = 0
def depart_document(self, node):
pass
@@ -119,48 +135,164 @@
def visit_section(self, node):
if not self.this_is_the_title:
self.sectionlevel += 1
+ self.body.append('\n\n')
+ if node.get('ids'):
+ for id in node['ids']:
+ if id not in self.written_ids:
+ self.body.append(r'\hypertarget{%s}{}' % id)
+ self.written_ids.add(id)
def depart_section(self, node):
self.sectionlevel -= 1
def visit_glossary(self, node):
raise nodes.SkipNode # XXX
- def visit_transition(self, node):
- self.body.append('\n\n\\hrule{}\n\n')
+ def visit_productionlist(self, node):
+ raise nodes.SkipNode # XXX
+ def visit_transition(self, node):
+ self.body.append('\n\n\\bigskip\\hrule{}\\bigskip\n\n')
def depart_transition(self, node):
pass
def visit_title(self, node):
- if self.this_is_the_title:
+ if isinstance(node.parent, addnodes.seealso):
+ # the environment already handles this
+ raise nodes.SkipNode
+ elif self.this_is_the_title:
if len(node.children) != 1 and not isinstance(node.children[0], Text):
raise RuntimeError("title is not a Text node")
self.options['title'] = node.children[0].astext()
self.this_is_the_title = 0
raise nodes.SkipNode
elif isinstance(node.parent, nodes.section):
- self.body.append('\n\n')
self.body.append(r'\%s{' % self.sectionnames[self.sectionlevel])
self.context.append('}\n')
else:
raise RuntimeError("XXX title without section")
+ self.in_title = 1
def depart_title(self, node):
+ self.in_title = 0
self.body.append(self.context.pop())
def visit_field_list(self, node):
raise nodes.SkipNode # XXX
+ desc_map = {
+ 'function' : 'funcdesc',
+ 'class': 'classdesc',
+ #'classdesc*': ('class', '0'), XXX
+ 'method': 'methoddesc',
+ 'exception': 'excdesc',
+ #'excclassdesc': ('exception', '0(1)'), XXX
+ 'data': 'datadesc',
+ 'attribute': 'memberdesc',
+ 'opcode': 'opcodedesc',
+
+ 'cfunction': 'cfuncdesc',
+ 'cmember': 'cmemberdesc',
+ 'cmacro': 'csimplemacrodesc',
+ 'ctype': 'ctypedesc',
+ 'cvar': 'cvardesc',
+
+ 'describe': 'describe',
+ 'cmdoption': 'describe', # XXX?
+ 'envvar': 'describe',
+ }
+
def visit_desc(self, node):
- raise nodes.SkipNode # XXX
+ self.descstack.append(Desc(node))
+ def depart_desc(self, node):
+ d = self.descstack.pop()
+ self.body.append("\\end{%s%s}\n" % (d.env, d.ni and 'ni' or ''))
+
+ def visit_desc_signature(self, node):
+ pass
+ def depart_desc_signature(self, node):
+ d = self.descstack[-1]
+ d.cls = d.cls.rstrip('.')
+ if node.parent['desctype'] != 'describe' and node['ids']:
+ hyper = '\\hypertarget{%s}{}' % node['ids'][0]
+ else:
+ hyper = ''
+ if d.count == 0:
+ t1 = "\n\n%s\\begin{%s%s}" % (hyper, d.env, (d.ni and 'ni' or ''))
+ else:
+ t1 = "\n%s\\%sline%s" % (hyper, d.env[:-4], (d.ni and 'ni' or ''))
+ d.count += 1
+ if d.env in ('funcdesc', 'classdesc', 'excclassdesc'):
+ t2 = "{%s}{%s}" % (d.name, d.params)
+ elif d.env in ('datadesc', 'classdesc*', 'excdesc', 'csimplemacrodesc'):
+ t2 = "{%s}" % (d.name)
+ elif d.env == 'methoddesc':
+ t2 = "[%s]{%s}{%s}" % (d.cls, d.name, d.params)
+ elif d.env == 'memberdesc':
+ t2 = "[%s]{%s}" % (d.cls, d.name)
+ elif d.env == 'cfuncdesc':
+ t2 = "{%s}{%s}{%s}" % (d.type, d.name, d.params)
+ elif d.env == 'cmemberdesc':
+ try:
+ type, container = d.type.rsplit(' ', 1)
+ container = container.rstrip('.')
+ except:
+ container = ''
+ type = d.type
+ t2 = "{%s}{%s}{%s}" % (container, type, d.name)
+ elif d.env == 'cvardesc':
+ t2 = "{%s}{%s}" % (d.type, d.name)
+ elif d.env == 'ctypedesc':
+ t2 = "{%s}" % (d.name)
+ elif d.env == 'opcodedesc':
+ t2 = "{%s}{%s}" % (d.name, d.params)
+ elif d.env == 'describe':
+ t2 = "{%s}" % d.name
+ self.body.append(t1 + t2)
+
+ def visit_desc_type(self, node):
+ self.descstack[-1].type = self.encode(node.astext().strip())
+ raise nodes.SkipNode
+
+ def visit_desc_name(self, node):
+ self.descstack[-1].name = self.encode(node.astext().strip())
+ raise nodes.SkipNode
+
+ def visit_desc_classname(self, node):
+ self.descstack[-1].cls = self.encode(node.astext().strip())
+ raise nodes.SkipNode
+
+ def visit_desc_parameterlist(self, node):
+ self.descstack[-1].params = self.encode(node.astext().strip())
+ raise nodes.SkipNode
+
+ def visit_refcount(self, node):
+ self.body.append("\\emph{")
+ def depart_refcount(self, node):
+ self.body.append("}\\\\")
+
+ def visit_desc_content(self, node):
+ pass
+ def depart_desc_content(self, node):
+ pass
def visit_seealso(self, node):
- raise nodes.SkipNode # XXX
+ self.body.append("\n\n\\begin{seealso}\n")
+ def depart_seealso(self, node):
+ self.body.append("\n\\end{seealso}\n")
def visit_rubric(self, node):
- raise nodes.SkipNode # XXX
+ if len(node.children) == 1 and node.children[0].astext() == 'Footnotes':
+ raise nodes.SkipNode
+ raise RuntimeError("rubric not supported except for footnotes heading")
def visit_footnote(self, node):
- raise nodes.SkipNode # XXX
+ # XXX not optimal, footnotes are at section end
+ num = node.children[0].astext().strip()
+ self.body.append('\\footnotetext[%s]{' % num)
+ def depart_footnote(self, node):
+ self.body.append('}')
+
+ def visit_label(self, node):
+ raise nodes.SkipNode
def visit_table(self, node):
self.tableSpec = TableSpec()
@@ -174,7 +306,7 @@
def visit_tgroup(self, node):
columnCount = int(node.get('cols', 0))
- self.tableSpec.setColumnCount(columnCount)
+ self.tableSpec.columnCount = columnCount
if columnCount == 2:
self.body.append('\\begin{tableii}{l|l}{textrm}')
elif columnCount == 3:
@@ -183,59 +315,53 @@
self.body.append('\\begin{tableiv}{l|l|l|l}{textrm}')
elif columnCount == 5:
self.body.append('\\begin{tablev}{l|l|l|l|l}{textrm}')
+ else:
+ raise RuntimeError("XXX table with too many columns found")
def depart_tgroup(self, node):
- if self.tableSpec.getColumnCount() == 2:
- self.body.append('\n\\end{tableii}\n')
- elif self.tableSpec.getColumnCount() == 3:
- self.body.append('\n\\end{tableiii}\n')
- elif self.tableSpec.getColumnCount() == 4:
- self.body.append('\n\\end{tableiv}\n')
- elif self.tableSpec.getColumnCount() == 5:
- self.body.append('\n\\end{tablev}\n')
+ if self.tableSpec.columnCount == 2:
+ self.body.append('\n\\end{tableii}\n\n')
+ elif self.tableSpec.columnCount == 3:
+ self.body.append('\n\\end{tableiii}\n\n')
+ elif self.tableSpec.columnCount == 4:
+ self.body.append('\n\\end{tableiv}\n\n')
+ elif self.tableSpec.columnCount == 5:
+ self.body.append('\n\\end{tablev}\n\n')
def visit_thead(self, node):
- self.tableSpec.setMode(TABLE_MODE_HEAD)
+ pass
def depart_thead(self, node):
- self.tableSpec.setMode(TABLE_MODE_NONE)
+ pass
def visit_tbody(self, node):
- self.tableSpec.setMode(TABLE_MODE_BODY)
+ pass
def depart_tbody(self, node):
- self.tableSpec.setMode(TABLE_MODE_NONE)
+ pass
def visit_row(self, node):
- if self.tableSpec.getMode() == TABLE_MODE_HEAD:
- pass
- elif self.tableSpec.getMode() == TABLE_MODE_BODY:
- if self.tableSpec.getColumnCount() == 2:
+ if not self.tableSpec.firstRow:
+ if self.tableSpec.columnCount == 2:
self.body.append('\n\\lineii')
- elif self.tableSpec.getColumnCount() == 3:
+ elif self.tableSpec.columnCount == 3:
self.body.append('\n\\lineiii')
- elif self.tableSpec.getColumnCount() == 4:
+ elif self.tableSpec.columnCount == 4:
self.body.append('\n\\lineiv')
- elif self.tableSpec.getColumnCount() == 5:
+ elif self.tableSpec.columnCount == 5:
self.body.append('\n\\linev')
def depart_row(self, node):
- if self.tableSpec.getMode() == TABLE_MODE_HEAD:
- pass
- elif self.tableSpec.getMode() == TABLE_MODE_BODY:
- pass
+ if self.tableSpec.firstRow:
+ self.tableSpec.firstRow = 0
def visit_entry(self, node):
- if self.tableSpec.getMode() == TABLE_MODE_HEAD:
- #self.body.append('%% [(visit_entry) text: +%s+]' % node.astext())
- self.body.append('{%s}' % node.astext().strip(' '))
- raise nodes.SkipNode
- elif self.tableSpec.getMode() == TABLE_MODE_BODY:
- #self.body.append('%% [(visit_entry) text: +%s+]' % node.astext())
- self.body.append('{%s}' % node.astext().strip(' '))
+ if self.tableSpec.firstRow:
+ self.body.append('{%s}' % self.encode(node.astext().strip(' ')))
raise nodes.SkipNode
+ else:
+ self.body.append('{')
def depart_entry(self, node):
- pass
-## if self.tableSpec.getMode() == TABLE_MODE_HEAD:
-## self.body.append('}')
-## elif self.tableSpec.getMode() == TABLE_MODE_BODY:
-## self.body.append('}')
+ if self.tableSpec.firstRow:
+ pass
+ else:
+ self.body.append('}')
def visit_bullet_list(self, node):
self.body.append('\\begin{itemize}\n' )
@@ -268,12 +394,12 @@
self.body.append('\\item[')
def depart_term(self, node):
# definition list term.
- self.body.append(':]\n')
+ self.body.append(']\n')
def visit_classifier(self, node):
- pass # XXX
+ self.body.append('{[}')
def depart_classifier(self, node):
- pass
+ self.body.append('{]}')
def visit_definition(self, node):
pass
@@ -291,28 +417,45 @@
self.body.append('\n\\end{centering}')
def visit_note(self, node):
- self.body.append('\n\\note{')
+ self.body.append('\n\\begin{notice}[note]')
def depart_note(self, node):
- self.body.append('}\n')
+ self.body.append('\\end{notice}\n')
def visit_warning(self, node):
- self.body.append('\n\\warning{')
+ self.body.append('\n\\begin{notice}[warning]')
def depart_warning(self, node):
- self.body.append('}\n')
+ self.body.append('\\end{notice}\n')
def visit_versionmodified(self, node):
- #self.body.append('\n\\vmod{')
- pass
+ self.body.append('\\%s' % node['type'])
+ if node['type'] == 'deprecated':
+ self.body.append('{%s}{' % node['version'])
+ self.context.append('}')
+ else:
+ if len(node):
+ self.body.append('[')
+ self.context.append(']{%s}' % node['version'])
+ else:
+ self.body.append('{%s}' % node['version'])
+ self.context.append('')
def depart_versionmodified(self, node):
- #self.body.append('}\n')
- pass
+ self.body.append(self.context.pop())
def visit_target(self, node):
+ # XXX: no "index-" targets
if not (node.has_key('refuri') or node.has_key('refid')
or node.has_key('refname')):
+ ctx = ''
for id in node['ids']:
- self.body.append(r'\hypertarget{%s}{' % id)
- self.context.append('}' * len(node['ids']))
+ if id not in self.written_ids:
+ self.body.append(r'\hypertarget{%s}{' % id)
+ self.written_ids.add(id)
+ ctx += '}'
+ self.context.append(ctx)
+ elif node.has_key('refid') and node['refid'] not in self.written_ids:
+ self.body.append(r'\hypertarget{%s}{' % node['refid'])
+ self.written_ids.add(node['refid'])
+ self.context.append('}')
else:
self.context.append('')
def depart_target(self, node):
@@ -322,9 +465,19 @@
raise nodes.SkipNode # XXX
def visit_reference(self, node):
- pass # XXX
+ uri = node.get('refuri', '')
+ if self.in_title or not uri:
+ self.context.append('')
+ elif uri.startswith(('mailto:', 'http:', 'ftp:')):
+ self.body.append('\\href{%s}{' % self.encode(uri))
+ self.context.append('}')
+ elif uri.startswith('#'):
+ self.body.append('\\hyperlink{%s}{' % uri[1:])
+ self.context.append('}')
+ else:
+ raise RuntimeError('XXX malformed reference target %s' % uri)
def depart_reference(self, node):
- pass
+ self.body.append(self.context.pop())
def visit_pending_xref(self, node):
pass
@@ -346,25 +499,31 @@
def depart_strong(self, node):
self.body.append('}')
+ def visit_title_reference(self, node):
+ raise RuntimeError("XXX title reference node found")
+
def visit_literal(self, node):
content = self.encode(node.astext().strip())
- if re.search('[ \t\n]', content):
+ if self.in_title:
+ self.body.append(r'\texttt{%s}' % content)
+ elif re.search('[ \t\n]', content):
self.body.append(r'\samp{%s}' % content)
else:
self.body.append(r'\code{%s}' % content)
raise nodes.SkipNode
def visit_footnote_reference(self, node):
- pass #XXX
- def depart_footnote_reference(self, node):
- pass
+ self.body.append('\\footnotemark[%s]' % node.astext())
+ raise nodes.SkipNode
def visit_literal_block(self, node):
- self.body.append('\n\\begin{verbatim}')
+ self.body.append('\n\\begin{Verbatim}\n')
self.verbatim = 1
def depart_literal_block(self, node):
- self.body.append('\\end{verbatim}\n')
+ self.body.append('\n\\end{Verbatim}\n')
self.verbatim = 0
+ visit_doctest_block = visit_literal_block
+ depart_doctest_block = depart_literal_block
def visit_line_block(self, node):
"""line-block:
@@ -373,20 +532,9 @@
* serif typeface
"""
self.body.append('\\begin{flushleft}\n')
- #self.insert_none_breaking_blanks = 1
- #self.line_block_without_mbox = 1
- #if self.line_block_without_mbox:
- # self.insert_newline = 1
- #else:
- # self.mbox_newline = 1
- # self.body.append('\\mbox{')
+ self.literal_whitespace = 1
def depart_line_block(self, node):
- #if self.line_block_without_mbox:
- # self.insert_newline = 0
- #else:
- # self.body.append('}')
- # self.mbox_newline = 0
- #self.insert_none_breaking_blanks = 0
+ self.literal_whitespace = 0
self.body.append('\n\\end{flushleft}\n')
def visit_line(self, node):
@@ -417,19 +565,23 @@
self.body.append('\\end{quote}\n')
replacements = [
- (u"\\", ur"\textbackslash{}"),
+ (u"\\", u"\x00"),
(u"$", ur"\$"),
+ (r"%", ur"\%"),
(u"&", ur"\&"),
(u"#", ur"\#"),
(u"_", ur"\_"),
(u"{", ur"\{"),
(u"}", ur"\}"),
+ (u"[", ur"{[}"),
+ (u"]", ur"{]}"),
(u"?", ur"\P{}"),
(u"?", ur"\S{}"),
(u"~", ur"\textasciitilde{}"),
(u"<", ur"\textless{}"),
(u">", ur"\textgreater{}"),
(u"^", ur"\textasciicircum{}"),
+ (u"\x00", ur"\textbackslash{}"),
]
def encode(self, text):
@@ -437,6 +589,10 @@
return text
for x, y in self.replacements:
text = text.replace(x, y)
+ if self.literal_whitespace:
+ # Insert a blank before the newline, to avoid
+ # ! LaTeX Error: There's no line here to end.
+ text = text.replace("\n", '~\\\\\n').replace(" ", "~")
return text
def visit_Text(self, node):
Deleted: /doctools/trunk/sphinx/texinputs/fancyhdr.sty
==============================================================================
--- /doctools/trunk/sphinx/texinputs/fancyhdr.sty Thu Dec 6 03:00:01 2007
+++ (empty file)
@@ -1,329 +0,0 @@
-% fancyhdr.sty version 1.99d
-% Fancy headers and footers for LaTeX.
-% Piet van Oostrum, Dept of Computer Science, University of Utrecht
-% Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands
-% Telephone: +31 30 2532180. Email: piet at cs.ruu.nl
-% ========================================================================
-% LICENCE: This is free software. You are allowed to use and distribute
-% this software in any way you like. You are also allowed to make modified
-% versions of it, but you can distribute a modified version only if you
-% clearly indicate that it is a modified version and the person(s) who
-% modified it. This indication should be in a prominent place, e.g. in the
-% top of the file. If possible a contact address, preferably by email,
-% should be given for these persons. If that is feasible the modifications
-% should be indicated in the source code.
-% ========================================================================
-% MODIFICATION HISTORY:
-% Sep 16, 1994
-% version 1.4: Correction for use with \reversemargin
-% Sep 29, 1994:
-% version 1.5: Added the \iftopfloat, \ifbotfloat and \iffloatpage commands
-% Oct 4, 1994:
-% version 1.6: Reset single spacing in headers/footers for use with
-% setspace.sty or doublespace.sty
-% Oct 4, 1994:
-% version 1.7: changed \let\@mkboth\markboth to
-% \def\@mkboth{\protect\markboth} to make it more robust
-% Dec 5, 1994:
-% version 1.8: corrections for amsbook/amsart: define \@chapapp and (more
-% importantly) use the \chapter/sectionmark definitions from ps at headings if
-% they exist (which should be true for all standard classes).
-% May 31, 1995:
-% version 1.9: The proposed \renewcommand{\headrulewidth}{\iffloatpage...
-% construction in the doc did not work properly with the fancyplain style.
-% June 1, 1995:
-% version 1.91: The definition of \@mkboth wasn't restored on subsequent
-% \pagestyle{fancy}'s.
-% June 1, 1995:
-% version 1.92: The sequence \pagestyle{fancyplain} \pagestyle{plain}
-% \pagestyle{fancy} would erroneously select the plain version.
-% June 1, 1995:
-% version 1.93: \fancypagestyle command added.
-% Dec 11, 1995:
-% version 1.94: suggested by Conrad Hughes
-% CJCH, Dec 11, 1995: added \footruleskip to allow control over footrule
-% position (old hardcoded value of .3\normalbaselineskip is far too high
-% when used with very small footer fonts).
-% Jan 31, 1996:
-% version 1.95: call \@normalsize in the reset code if that is defined,
-% otherwise \normalsize.
-% this is to solve a problem with ucthesis.cls, as this doesn't
-% define \@currsize. Unfortunately for latex209 calling \normalsize doesn't
-% work as this is optimized to do very little, so there \@normalsize should
-% be called. Hopefully this code works for all versions of LaTeX known to
-% mankind.
-% April 25, 1996:
-% version 1.96: initialize \headwidth to a magic (negative) value to catch
-% most common cases that people change it before calling \pagestyle{fancy}.
-% Note it can't be initialized when reading in this file, because
-% \textwidth could be changed afterwards. This is quite probable.
-% We also switch to \MakeUppercase rather than \uppercase and introduce a
-% \nouppercase command for use in headers. and footers.
-% May 3, 1996:
-% version 1.97: Two changes:
-% 1. Undo the change in version 1.8 (using the pagestyle{headings} defaults
-% for the chapter and section marks. The current version of amsbook and
-% amsart classes don't seem to need them anymore. Moreover the standard
-% latex classes don't use \markboth if twoside isn't selected, and this is
-% confusing as \leftmark doesn't work as expected.
-% 2. include a call to \ps at empty in ps@@fancy. This is to solve a problem
-% in the amsbook and amsart classes, that make global changes to \topskip,
-% which are reset in \ps at empty. Hopefully this doesn't break other things.
-% May 7, 1996:
-% version 1.98:
-% Added % after the line \def\nouppercase
-% May 7, 1996:
-% version 1.99: This is the alpha version of fancyhdr 2.0
-% Introduced the new commands \fancyhead, \fancyfoot, and \fancyhf.
-% Changed \headrulewidth, \footrulewidth, \footruleskip to
-% macros rather than length parameters, In this way they can be
-% conditionalized and they don't consume length registers. There is no need
-% to have them as length registers unless you want to do calculations with
-% them, which is unlikely. Note that this may make some uses of them
-% incompatible (i.e. if you have a file that uses \setlength or \xxxx=)
-% May 10, 1996:
-% version 1.99a:
-% Added a few more % signs
-% May 10, 1996:
-% version 1.99b:
-% Changed the syntax of \f at nfor to be resistent to catcode changes of :=
-% Removed the [1] from the defs of \lhead etc. because the parameter is
-% consumed by the \@[xy]lhead etc. macros.
-% June 24, 1997:
-% version 1.99c:
-% corrected \nouppercase to also include the protected form of \MakeUppercase
-% \global added to manipulation of \headwidth.
-% \iffootnote command added.
-% Some comments added about \@fancyhead and \@fancyfoot.
-% Aug 24, 1998
-% version 1.99d
-% Changed the default \ps at empty to \ps@@empty in order to allow
-% \fancypagestyle{empty} redefinition.
-
-\let\fancy at def\gdef
-
-\def\if at mpty#1#2#3{\def\temp at ty{#1}\ifx\@empty\temp at ty #2\else#3\fi}
-
-% Usage: \@forc \var{charstring}{command to be executed for each char}
-% This is similar to LaTeX's \@tfor, but expands the charstring.
-
-\def\@forc#1#2#3{\expandafter\f at rc\expandafter#1\expandafter{#2}{#3}}
-\def\f at rc#1#2#3{\def\temp at ty{#2}\ifx\@empty\temp at ty\else
- \f@@rc#1#2\f@@rc{#3}\fi}
-\def\f@@rc#1#2#3\f@@rc#4{\def#1{#2}#4\f at rc#1{#3}{#4}}
-
-% Usage: \f at nfor\name:=list\do{body}
-% Like LaTeX's \@for but an empty list is treated as a list with an empty
-% element
-
-\newcommand{\f at nfor}[3]{\edef\@fortmp{#2}%
- \expandafter\@forloop#2,\@nil,\@nil\@@#1{#3}}
-
-% Usage: \def at ult \cs{defaults}{argument}
-% sets \cs to the characters from defaults appearing in argument
-% or defaults if it would be empty. All characters are lowercased.
-
-\newcommand\def at ult[3]{%
- \edef\temp at a{\lowercase{\edef\noexpand\temp at a{#3}}}\temp at a
- \def#1{}%
- \@forc\tmpf at ra{#2}%
- {\expandafter\if at in\tmpf at ra\temp at a{\edef#1{#1\tmpf at ra}}{}}%
- \ifx\@empty#1\def#1{#2}\fi}
-%
-% \if at in
-%
-\newcommand{\if at in}[4]{%
- \edef\temp at a{#2}\def\temp at b##1#1##2\temp at b{\def\temp at b{##1}}%
- \expandafter\temp at b#2#1\temp at b\ifx\temp at a\temp at b #4\else #3\fi}
-
-\newcommand{\fancyhead}{\@ifnextchar[{\f at ncyhf h}{\f at ncyhf h[]}}
-\newcommand{\fancyfoot}{\@ifnextchar[{\f at ncyhf f}{\f at ncyhf f[]}}
-\newcommand{\fancyhf}{\@ifnextchar[{\f at ncyhf {}}{\f at ncyhf {}[]}}
-
-% The header and footer fields are stored in command sequences with
-% names of the form: \f at ncy with for [eo], form [lcr]
-% and from [hf].
-
-\def\f at ncyhf#1[#2]#3{%
- \def\temp at c{}%
- \@forc\tmpf at ra{#2}%
- {\expandafter\if at in\tmpf at ra{eolcrhf,EOLCRHF}%
- {}{\edef\temp at c{\temp at c\tmpf at ra}}}%
- \ifx\@empty\temp at c\else
- \ifx\PackageError\undefined
- \errmessage{Illegal char `\temp at c' in fancyhdr argument:
- [#2]}\else
- \PackageError{Fancyhdr}{Illegal char `\temp at c' in fancyhdr argument:
- [#2]}{}\fi
- \fi
- \f at nfor\temp at c{#2}%
- {\def at ult\f@@@eo{eo}\temp at c
- \def at ult\f@@@lcr{lcr}\temp at c
- \def at ult\f@@@hf{hf}{#1\temp at c}%
- \@forc\f@@eo\f@@@eo
- {\@forc\f@@lcr\f@@@lcr
- {\@forc\f@@hf\f@@@hf
- {\expandafter\fancy at def\csname
- f at ncy\f@@eo\f@@lcr\f@@hf\endcsname
- {#3}}}}}}
-
-% Fancyheadings version 1 commands. These are more or less deprecated,
-% but they continue to work.
-
-\newcommand{\lhead}{\@ifnextchar[{\@xlhead}{\@ylhead}}
-\def\@xlhead[#1]#2{\fancy at def\f at ncyelh{#1}\fancy at def\f at ncyolh{#2}}
-\def\@ylhead#1{\fancy at def\f at ncyelh{#1}\fancy at def\f at ncyolh{#1}}
-
-\newcommand{\chead}{\@ifnextchar[{\@xchead}{\@ychead}}
-\def\@xchead[#1]#2{\fancy at def\f at ncyech{#1}\fancy at def\f at ncyoch{#2}}
-\def\@ychead#1{\fancy at def\f at ncyech{#1}\fancy at def\f at ncyoch{#1}}
-
-\newcommand{\rhead}{\@ifnextchar[{\@xrhead}{\@yrhead}}
-\def\@xrhead[#1]#2{\fancy at def\f at ncyerh{#1}\fancy at def\f at ncyorh{#2}}
-\def\@yrhead#1{\fancy at def\f at ncyerh{#1}\fancy at def\f at ncyorh{#1}}
-
-\newcommand{\lfoot}{\@ifnextchar[{\@xlfoot}{\@ylfoot}}
-\def\@xlfoot[#1]#2{\fancy at def\f at ncyelf{#1}\fancy at def\f at ncyolf{#2}}
-\def\@ylfoot#1{\fancy at def\f at ncyelf{#1}\fancy at def\f at ncyolf{#1}}
-
-\newcommand{\cfoot}{\@ifnextchar[{\@xcfoot}{\@ycfoot}}
-\def\@xcfoot[#1]#2{\fancy at def\f at ncyecf{#1}\fancy at def\f at ncyocf{#2}}
-\def\@ycfoot#1{\fancy at def\f at ncyecf{#1}\fancy at def\f at ncyocf{#1}}
-
-\newcommand{\rfoot}{\@ifnextchar[{\@xrfoot}{\@yrfoot}}
-\def\@xrfoot[#1]#2{\fancy at def\f at ncyerf{#1}\fancy at def\f at ncyorf{#2}}
-\def\@yrfoot#1{\fancy at def\f at ncyerf{#1}\fancy at def\f at ncyorf{#1}}
-
-\newdimen\headwidth
-\newcommand{\headrulewidth}{0.4pt}
-\newcommand{\footrulewidth}{\z at skip}
-\newcommand{\footruleskip}{.3\normalbaselineskip}
-
-% Fancyplain stuff shouldn't be used anymore (rather
-% \fancypagestyle{plain} should be used), but it must be present for
-% compatibility reasons.
-
-\newcommand{\plainheadrulewidth}{\z at skip}
-\newcommand{\plainfootrulewidth}{\z at skip}
-\newif\if at fancyplain \@fancyplainfalse
-\def\fancyplain#1#2{\if at fancyplain#1\else#2\fi}
-
-\headwidth=-123456789sp %magic constant
-
-% Command to reset various things in the headers:
-% a.o. single spacing (taken from setspace.sty)
-% and the catcode of ^^M (so that epsf files in the header work if a
-% verbatim crosses a page boundary)
-% It also defines a \nouppercase command that disables \uppercase and
-% \Makeuppercase. It can only be used in the headers and footers.
-\def\fancy at reset{\restorecr
- \def\baselinestretch{1}%
- \def\nouppercase##1{{\let\uppercase\relax\let\MakeUppercase\relax
- \expandafter\let\csname MakeUppercase \endcsname\relax##1}}%
- \ifx\undefined\@newbaseline% NFSS not present; 2.09 or 2e
- \ifx\@normalsize\undefined \normalsize % for ucthesis.cls
- \else \@normalsize \fi
- \else% NFSS (2.09) present
- \@newbaseline%
- \fi}
-
-% Initialization of the head and foot text.
-
-% The default values still contain \fancyplain for compatibility.
-\fancyhf{} % clear all
-% lefthead empty on ``plain'' pages, \rightmark on even, \leftmark on odd pages
-% evenhead empty on ``plain'' pages, \leftmark on even, \rightmark on odd pages
-\fancyhead[el,or]{\fancyplain{}{\sl\rightmark}}
-\fancyhead[er,ol]{\fancyplain{}{\sl\leftmark}}
-\fancyfoot[c]{\rm\thepage} % page number
-
-% Put together a header or footer given the left, center and
-% right text, fillers at left and right and a rule.
-% The \lap commands put the text into an hbox of zero size,
-% so overlapping text does not generate an errormessage.
-% These macros have 5 parameters:
-% 1. \@lodd or \@rodd % This determines at which side the header will stick
-% out.
-% 2. \f at ncyolh, \f at ncyelh, \f at ncyolf or \f at ncyelf. This is the left component.
-% 3. \f at ncyoch, \f at ncyech, \f at ncyocf or \f at ncyecf. This is the middle comp.
-% 4. \f at ncyorh, \f at ncyerh, \f at ncyorf or \f at ncyerf. This is the right component.
-% 5. \@lodd or \@rodd % This determines at which side the header will stick
-% out. This is the reverse of parameter nr. 1. One of them is always
-% \relax and the other one is \hss (after expansion).
-
-\def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy at reset\vbox{\hbox
-{\rlap{\parbox[b]{\headwidth}{\raggedright#2\strut}}\hfill
-\parbox[b]{\headwidth}{\centering#3\strut}\hfill
-\llap{\parbox[b]{\headwidth}{\raggedleft#4\strut}}}\headrule}}#5}
-
-\def\@fancyfoot#1#2#3#4#5{#1\hbox to\headwidth{\fancy at reset\vbox{\footrule
-\hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2\strut}}\hfill
-\parbox[t]{\headwidth}{\centering#3\strut}\hfill
-\llap{\parbox[t]{\headwidth}{\raggedleft#4\strut}}}}}#5}
-
-\def\headrule{{\if at fancyplain\let\headrulewidth\plainheadrulewidth\fi
-\hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}}
-
-\def\footrule{{\if at fancyplain\let\footrulewidth\plainfootrulewidth\fi
-\vskip-\footruleskip\vskip-\footrulewidth
-\hrule\@width\headwidth\@height\footrulewidth\vskip\footruleskip}}
-
-\def\ps at fancy{%
-\@ifundefined{@chapapp}{\let\@chapapp\chaptername}{}%for amsbook
-%
-% Define \MakeUppercase for old LaTeXen.
-% Note: we used \def rather than \let, so that \let\uppercase\relax (from
-% the version 1 documentation) will still work.
-%
-\@ifundefined{MakeUppercase}{\def\MakeUppercase{\uppercase}}{}%
-\@ifundefined{chapter}{\def\sectionmark##1{\markboth
-{\MakeUppercase{\ifnum \c at secnumdepth>\z@
- \thesection\hskip 1em\relax \fi ##1}}{}}%
-\def\subsectionmark##1{\markright {\ifnum \c at secnumdepth >\@ne
- \thesubsection\hskip 1em\relax \fi ##1}}}%
-{\def\chaptermark##1{\markboth {\MakeUppercase{\ifnum \c at secnumdepth>\m at ne
- \@chapapp\ \thechapter. \ \fi ##1}}{}}%
-\def\sectionmark##1{\markright{\MakeUppercase{\ifnum \c at secnumdepth >\z@
- \thesection. \ \fi ##1}}}}%
-%\csname ps at headings\endcsname % use \ps at headings defaults if they exist
-\ps@@fancy
-\gdef\ps at fancy{\@fancyplainfalse\ps@@fancy}%
-% Initialize \headwidth if the user didn't
-%
-\ifdim\headwidth<0sp
-%
-% This catches the case that \headwidth hasn't been initialized and the
-% case that the user added something to \headwidth in the expectation that
-% it was initialized to \textwidth. We compensate this now. This loses if
-% the user intended to multiply it by a factor. But that case is more
-% likely done by saying something like \headwidth=1.2\textwidth.
-% The doc says you have to change \headwidth after the first call to
-% \pagestyle{fancy}. This code is just to catch the most common cases were
-% that requirement is violated.
-%
- \global\advance\headwidth123456789sp\global\advance\headwidth\textwidth
-\fi}
-\def\ps at fancyplain{\ps at fancy \let\ps at plain\ps at plain@fancy}
-\def\ps at plain@fancy{\@fancyplaintrue\ps@@fancy}
-\let\ps@@empty\ps at empty
-\def\ps@@fancy{%
-\ps@@empty % This is for amsbook/amsart, which do strange things with \topskip
-\def\@mkboth{\protect\markboth}%
-\def\@oddhead{\@fancyhead\@lodd\f at ncyolh\f at ncyoch\f at ncyorh\@rodd}%
-\def\@oddfoot{\@fancyfoot\@lodd\f at ncyolf\f at ncyocf\f at ncyorf\@rodd}%
-\def\@evenhead{\@fancyhead\@rodd\f at ncyelh\f at ncyech\f at ncyerh\@lodd}%
-\def\@evenfoot{\@fancyfoot\@rodd\f at ncyelf\f at ncyecf\f at ncyerf\@lodd}%
-}
-\def\@lodd{\if at reversemargin\hss\else\relax\fi}
-\def\@rodd{\if at reversemargin\relax\else\hss\fi}
-
-\newif\iffootnote
-\let\latex at makecol\@makecol
-\def\@makecol{\ifvoid\footins\footnotetrue\else\footnotefalse\fi
-\let\topfloat\@toplist\let\botfloat\@botlist\latex at makecol}
-\def\iftopfloat#1#2{\ifx\topfloat\empty #2\else #1\fi}
-\def\ifbotfloat#1#2{\ifx\botfloat\empty #2\else #1\fi}
-\def\iffloatpage#1#2{\if at fcolmade #1\else #2\fi}
-
-\newcommand{\fancypagestyle}[2]{%
- \@namedef{ps@#1}{\let\fancy at def\def#2\relax\ps at fancy}}
Deleted: /doctools/trunk/sphinx/texinputs/fncychap.sty
==============================================================================
--- /doctools/trunk/sphinx/texinputs/fncychap.sty Thu Dec 6 03:00:01 2007
+++ (empty file)
@@ -1,433 +0,0 @@
-%%% Derived from the original fncychap.sty,
-%%% but changed ``TWELV'' to ``TWELVE''.
-
-%%% Copyright Ulf A. Lindgren
-%%% Department of Applied Electronics
-%%% Chalmers University of Technology
-%%% S-412 96 Gothenburg, Sweden
-%%% E-mail lindgren at ae.chalmers.se
-%%%
-%%% Note Permission is granted to modify this file under
-%%% the condition that it is saved using another
-%%% file and package name.
-%%%
-%%% Revision 1.1
-%%%
-%%% Jan. 8th Modified package name base date option
-%%% Jan. 22th Modified FmN and FmTi for error in book.cls
-%%% \MakeUppercase{#}->{\MakeUppercase#}
-%%% Apr. 6th Modified Lenny option to prevent undesired
-%%% skip of line.
-%%% Nov. 8th Fixed \@chapapp for AMS
-%%% Feb. 11th Fixed appendix problem related to Bjarne
-%%% Last modified Feb. 11th 1998
-
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{fncychap}
- [1997/04/06 v1.11
- LaTeX package (Revised chapters)]
-
-%%%% DEFINITION OF Chapapp variables
-\newcommand{\CNV}{\huge\bfseries}
-\newcommand{\ChNameVar}[1]{\renewcommand{\CNV}{#1}}
-
-
-%%%% DEFINITION OF TheChapter variables
-\newcommand{\CNoV}{\huge\bfseries}
-\newcommand{\ChNumVar}[1]{\renewcommand{\CNoV}{#1}}
-
-\newif\ifUCN
-\UCNfalse
-\newif\ifLCN
-\LCNfalse
-\def\ChNameLowerCase{\LCNtrue\UCNfalse}
-\def\ChNameUpperCase{\UCNtrue\LCNfalse}
-\def\ChNameAsIs{\UCNfalse\LCNfalse}
-
-%%%%% Fix for AMSBook 971008
-
-\@ifundefined{@chapapp}{\let\@chapapp\chaptername}{}
-
-
-%%%%% Fix for Bjarne and appendix 980211
-
-\newif\ifinapp
-\inappfalse
-\renewcommand\appendix{\par
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \inapptrue%
- \renewcommand\@chapapp{\appendixname}%
- \renewcommand\thechapter{\@Alph\c at chapter}}
-
-%%%%%
-
-\newcommand{\FmN}[1]{%
-\ifUCN
- {\MakeUppercase#1}\LCNfalse
-\else
- \ifLCN
- {\MakeLowercase#1}\UCNfalse
- \else #1
- \fi
-\fi}
-
-
-%%%% DEFINITION OF Title variables
-\newcommand{\CTV}{\Huge\bfseries}
-\newcommand{\ChTitleVar}[1]{\renewcommand{\CTV}{#1}}
-
-%%%% DEFINITION OF the basic rule width
-\newlength{\RW}
-\setlength{\RW}{1pt}
-\newcommand{\ChRuleWidth}[1]{\setlength{\RW}{#1}}
-
-\newif\ifUCT
-\UCTfalse
-\newif\ifLCT
-\LCTfalse
-\def\ChTitleLowerCase{\LCTtrue\UCTfalse}
-\def\ChTitleUpperCase{\UCTtrue\LCTfalse}
-\def\ChTitleAsIs{\UCTfalse\LCTfalse}
-\newcommand{\FmTi}[1]{%
-\ifUCT
-
- {\MakeUppercase#1}\LCTfalse
-\else
- \ifLCT
- {\MakeLowercase#1}\UCTfalse
- \else #1
- \fi
-\fi}
-
-
-
-\newlength{\mylen}
-\newlength{\myhi}
-\newlength{\px}
-\newlength{\py}
-\newlength{\pyy}
-\newlength{\pxx}
-
-
-\def\mghrulefill#1{\leavevmode\leaders\hrule\@height #1\hfill\kern\z@}
-
-\newcommand{\DOCH}{%
- \CNV\FmN{\@chapapp}\space \CNoV\thechapter
- \par\nobreak
- \vskip 20\p@
- }
-\newcommand{\DOTI}[1]{%
- \CTV\FmTi{#1}\par\nobreak
- \vskip 40\p@
- }
-\newcommand{\DOTIS}[1]{%
- \CTV\FmTi{#1}\par\nobreak
- \vskip 40\p@
- }
-
-%%%%%% SONNY DEF
-
-\DeclareOption{Sonny}{%
- \ChNameVar{\Large\sf}
- \ChNumVar{\Huge}
- \ChTitleVar{\Large\sf}
- \ChRuleWidth{0.5pt}
- \ChNameUpperCase
- \renewcommand{\DOCH}{%
- \raggedleft
- \CNV\FmN{\@chapapp}\space \CNoV\thechapter
- \par\nobreak
- \vskip 40\p@}
- \renewcommand{\DOTI}[1]{%
- \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
- \vskip 5\p@
- \CTV\FmTi{#1}\par\nobreak
- \mghrulefill{\RW}\par\nobreak
- \vskip 40\p@}
- \renewcommand{\DOTIS}[1]{%
- \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
- \vskip 5\p@
- \CTV\FmTi{#1}\par\nobreak
- \mghrulefill{\RW}\par\nobreak
- \vskip 40\p@}
-}
-
-%%%%%% LENNY DEF
-
-\DeclareOption{Lenny}{%
-
- \ChNameVar{\fontsize{14}{16}\usefont{OT1}{phv}{m}{n}\selectfont}
- \ChNumVar{\fontsize{60}{62}\usefont{OT1}{ptm}{m}{n}\selectfont}
- \ChTitleVar{\Huge\bfseries\rm}
- \ChRuleWidth{1pt}
- \renewcommand{\DOCH}{%
- \settowidth{\px}{\CNV\FmN{\@chapapp}}
- \addtolength{\px}{2pt}
- \settoheight{\py}{\CNV\FmN{\@chapapp}}
- \addtolength{\py}{1pt}
-
- \settowidth{\mylen}{\CNV\FmN{\@chapapp}\space\CNoV\thechapter}
- \addtolength{\mylen}{1pt}
- \settowidth{\pxx}{\CNoV\thechapter}
- \addtolength{\pxx}{-1pt}
-
- \settoheight{\pyy}{\CNoV\thechapter}
- \addtolength{\pyy}{-2pt}
- \setlength{\myhi}{\pyy}
- \addtolength{\myhi}{-1\py}
- \par
- \parbox[b]{\textwidth}{%
- \rule[\py]{\RW}{\myhi}%
- \hskip -\RW%
- \rule[\pyy]{\px}{\RW}%
- \hskip -\px%
- \raggedright%
- \CNV\FmN{\@chapapp}\space\CNoV\thechapter%
- \hskip1pt%
- \mghrulefill{\RW}%
- \rule{\RW}{\pyy}\par\nobreak%
- \vskip -\baselineskip%
- \vskip -\pyy%
- \hskip \mylen%
- \mghrulefill{\RW}\par\nobreak%
- \vskip \pyy}%
- \vskip 20\p@}
-
-
- \renewcommand{\DOTI}[1]{%
- \raggedright
- \CTV\FmTi{#1}\par\nobreak
- \vskip 40\p@}
-
- \renewcommand{\DOTIS}[1]{%
- \raggedright
- \CTV\FmTi{#1}\par\nobreak
- \vskip 40\p@}
- }
-
-
-%%%%%%% GLENN DEF
-
-
-\DeclareOption{Glenn}{%
- \ChNameVar{\bfseries\Large\sf}
- \ChNumVar{\Huge}
- \ChTitleVar{\bfseries\Large\rm}
- \ChRuleWidth{1pt}
- \ChNameUpperCase
- \ChTitleUpperCase
- \renewcommand{\DOCH}{%
- \settoheight{\myhi}{\CTV\FmTi{Test}}
- \setlength{\py}{\baselineskip}
- \addtolength{\py}{\RW}
- \addtolength{\py}{\myhi}
- \setlength{\pyy}{\py}
- \addtolength{\pyy}{-1\RW}
-
- \raggedright
- \CNV\FmN{\@chapapp}\space\CNoV\thechapter
- \hskip 3pt\mghrulefill{\RW}\rule[-1\pyy]{2\RW}{\py}\par\nobreak}
-
- \renewcommand{\DOTI}[1]{%
- \addtolength{\pyy}{-4pt}
- \settoheight{\myhi}{\CTV\FmTi{#1}}
- \addtolength{\myhi}{\py}
- \addtolength{\myhi}{-1\RW}
- \vskip -1\pyy
- \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 2pt
- \raggedleft\CTV\FmTi{#1}\par\nobreak
- \vskip 80\p@}
-
- \renewcommand{\DOTIS}[1]{%
- \setlength{\py}{10pt}
- \setlength{\pyy}{\py}
- \addtolength{\pyy}{\RW}
- \setlength{\myhi}{\baselineskip}
- \addtolength{\myhi}{\pyy}
- \mghrulefill{\RW}\rule[-1\py]{2\RW}{\pyy}\par\nobreak
-% \addtolength{}{}
-\vskip -1\baselineskip
- \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 2pt
- \raggedleft\CTV\FmTi{#1}\par\nobreak
- \vskip 60\p@}
- }
-
-%%%%%%% CONNY DEF
-
-\DeclareOption{Conny}{%
- \ChNameUpperCase
- \ChTitleUpperCase
- \ChNameVar{\centering\Huge\rm\bfseries}
- \ChNumVar{\Huge}
- \ChTitleVar{\centering\Huge\rm}
- \ChRuleWidth{2pt}
-
- \renewcommand{\DOCH}{%
- \mghrulefill{3\RW}\par\nobreak
- \vskip -0.5\baselineskip
- \mghrulefill{\RW}\par\nobreak
- \CNV\FmN{\@chapapp}\space \CNoV\thechapter
- \par\nobreak
- \vskip -0.5\baselineskip
- }
- \renewcommand{\DOTI}[1]{%
- \mghrulefill{\RW}\par\nobreak
- \CTV\FmTi{#1}\par\nobreak
- \vskip 60\p@
- }
- \renewcommand{\DOTIS}[1]{%
- \mghrulefill{\RW}\par\nobreak
- \CTV\FmTi{#1}\par\nobreak
- \vskip 60\p@
- }
- }
-
-%%%%%%% REJNE DEF
-
-\DeclareOption{Rejne}{%
-
- \ChNameUpperCase
- \ChTitleUpperCase
- \ChNameVar{\centering\Large\rm}
- \ChNumVar{\Huge}
- \ChTitleVar{\centering\Huge\rm}
- \ChRuleWidth{1pt}
- \renewcommand{\DOCH}{%
- \settoheight{\py}{\CNoV\thechapter}
- \addtolength{\py}{-1pt}
- \CNV\FmN{\@chapapp}\par\nobreak
- \vskip 20\p@
- \setlength{\myhi}{2\baselineskip}
- \setlength{\px}{\myhi}
- \addtolength{\px}{-1\RW}
- \rule[-1\px]{\RW}{\myhi}\mghrulefill{\RW}\hskip
- 10pt\raisebox{-0.5\py}{\CNoV\thechapter}\hskip
-10pt\mghrulefill{\RW}\rule[-1\px]{\RW}{\myhi}\par\nobreak
- \vskip -1\p@
- }
- \renewcommand{\DOTI}[1]{%
- \setlength{\mylen}{\textwidth}
- \addtolength{\mylen}{-2\RW}
- {\vrule width\RW}\parbox{\mylen}{\CTV\FmTi{#1}}{\vrule
-width\RW}\par\nobreak
- \vskip
--1pt\rule{\RW}{2\baselineskip}\mghrulefill{\RW}\rule{\RW}{2\baselineskip}
- \vskip 60\p@
- }
- \renewcommand{\DOTIS}[1]{%
- \setlength{\py}{\fboxrule}
- \setlength{\fboxrule}{\RW}
- \setlength{\mylen}{\textwidth}
- \addtolength{\mylen}{-2\RW}
- \fbox{\parbox{\mylen}{\vskip
-2\baselineskip\CTV\FmTi{#1}\par\nobreak\vskip \baselineskip}}
- \setlength{\fboxrule}{\py}
- \vskip 60\p@
- }
- }
-
-
-%%%%%%% BJARNE DEF
-
-\DeclareOption{Bjarne}{%
- \ChNameUpperCase
- \ChTitleUpperCase
- \ChNameVar{\raggedleft\normalsize\rm}
- \ChNumVar{\raggedleft \bfseries\Large}
- \ChTitleVar{\raggedleft \Large\rm}
- \ChRuleWidth{1pt}
-
-
-%% Note thechapter -> c at chapter fix appendix bug
-
- \newcounter{AlphaCnt}
- \newcounter{AlphaDecCnt}
- \newcommand{\AlphaNo}{%
- \ifcase\number\theAlphaCnt
- \ifnum\c at chapter=0
- ZERO\else{}\fi
- \or ONE\or TWO\or THREE\or FOUR\or FIVE
- \or SIX\or SEVEN\or EIGHT\or NINE\or TEN
- \or ELEVEN\or TWELVE\or THIRTEEN\or FOURTEEN\or FIFTEEN
- \or SIXTEEN\or SEVENTEEN\or EIGHTEEN\or NINETEEN\fi
-}
-
- \newcommand{\AlphaDecNo}{%
- \setcounter{AlphaDecCnt}{0}
- \@whilenum\number\theAlphaCnt>0\do
- {\addtocounter{AlphaCnt}{-10}
- \addtocounter{AlphaDecCnt}{1}}
- \ifnum\number\theAlphaCnt=0
- \else
- \addtocounter{AlphaDecCnt}{-1}
- \addtocounter{AlphaCnt}{10}
- \fi
-
-
- \ifcase\number\theAlphaDecCnt\or TEN\or TWENTY\or THIRTY\or
- FORTY\or FIFTY\or SIXTY\or SEVENTY\or EIGHTY\or NINETY\fi
- }
- \newcommand{\TheAlphaChapter}{%
-
- \ifinapp
- \thechapter
- \else
- \setcounter{AlphaCnt}{\c at chapter}
- \ifnum\c at chapter<20
- \AlphaNo
- \else
- \AlphaDecNo\AlphaNo
- \fi
- \fi
- }
- \renewcommand{\DOCH}{%
- \mghrulefill{\RW}\par\nobreak
- \CNV\FmN{\@chapapp}\par\nobreak
- \CNoV\TheAlphaChapter\par\nobreak
- \vskip -1\baselineskip\vskip 5pt\mghrulefill{\RW}\par\nobreak
- \vskip 20\p@
- }
- \renewcommand{\DOTI}[1]{%
- \CTV\FmTi{#1}\par\nobreak
- \vskip 40\p@
- }
- \renewcommand{\DOTIS}[1]{%
- \CTV\FmTi{#1}\par\nobreak
- \vskip 40\p@
- }
-}
-
-\DeclareOption*{%
- \PackageWarning{fancychapter}{unknown style option}
- }
-
-\ProcessOptions* \relax
-
-\def\@makechapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \raggedright \normalfont
- \ifnum \c at secnumdepth >\m at ne
- \DOCH
- \fi
- \interlinepenalty\@M
- \DOTI{#1}
- }}
-\def\@schapter#1{\if at twocolumn
- \@topnewpage[\@makeschapterhead{#1}]%
- \else
- \@makeschapterhead{#1}%
- \@afterheading
- \fi}
-\def\@makeschapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \raggedright
- \normalfont
- \interlinepenalty\@M
- \DOTIS{#1}
- \vskip 40\p@
- }}
-
-\endinput
-
-
Modified: doctools/trunk/sphinx/texinputs/python.sty
==============================================================================
--- doctools/trunk/sphinx/texinputs/python.sty (original)
+++ doctools/trunk/sphinx/texinputs/python.sty Thu Dec 6 03:00:01 2007
@@ -7,8 +7,9 @@
[1998/01/11 LaTeX package (Python markup)]
\RequirePackage{longtable}
-\RequirePackage{underscore}
\RequirePackage{times}
+\RequirePackage{fancyvrb}
+\renewcommand{\sfdefault}{cmbr}
% Uncomment these two lines to ignore the paper size and make the page
% size more like a typical published manual.
@@ -676,12 +677,14 @@
% classes ----------------------------------------------------------------
% \begin{classdesc}{name}{constructor args}
+\newcommand{\classline}[2]{
+ \py at sigline{\strong{class }\bfcode{#1}}{#2}%
+ \index{#1@{\py at idxcode{#1}} (class in \py at thismodule)}}
\newenvironment{classdesc}[2]{
% Using \renewcommand doesn't work for this, for unknown reasons:
\global\def\py at thisclass{#1}
\begin{fulllineitems}
- \py at sigline{\strong{class }\bfcode{#1}}{#2}%
- \index{#1@{\py at idxcode{#1}} (class in \py at thismodule)}
+ \classline{#1}{#2}
}{\end{fulllineitems}}
% \begin{classdesc*}{name}
@@ -800,6 +803,11 @@
\item[\bfcode{#1}\quad\var{#2}]
}{\end{fulllineitems}}
+% generic description ----------------------------------------------------
+\newenvironment{describe}[1]{
+ \begin{fulllineitems}
+ \item[\bfcode{#1}]\nopagebreak
+}{\end{fulllineitems}}
\newcommand{\nodename}[1]{\label{#1}}
@@ -990,7 +998,7 @@
\newlength{\py at noticelength}
\newcommand{\py at heavybox}{
- \setlength{\fboxrule}{2pt}
+ \setlength{\fboxrule}{1pt}
\setlength{\fboxsep}{7pt}
\setlength{\py at noticelength}{\linewidth}
\addtolength{\py at noticelength}{-2\fboxsep}
@@ -1050,14 +1058,14 @@
\ifx\@undefined#1\relax%
{ New in version #2. }%
\else%
- { New in version #2:\ #1. }%
+ { New in version #2:\ #1 }%
\fi%
}
\newcommand{\versionchanged}[2][\py at badkey]{%
\ifx\@undefined#1\relax%
{ Changed in version #2. }%
\else%
- { Changed in version #2:\ #1. }%
+ { Changed in version #2:\ #1 }%
\fi%
}
Deleted: /doctools/trunk/sphinx/texinputs/underscore.sty
==============================================================================
--- /doctools/trunk/sphinx/texinputs/underscore.sty Thu Dec 6 03:00:01 2007
+++ (empty file)
@@ -1,232 +0,0 @@
-% underscore.sty 12-Oct-2001 Donald Arseneau asnd at triumf.ca
-% Make the "_" character print as "\textunderscore" in text.
-% Copyright 1998,2001 Donald Arseneau; Distribute freely if unchanged.
-% Instructions follow after the definitions.
-
-\ProvidesPackage{underscore}[2001/10/12]
-
-\begingroup
- \catcode`\_=\active
- \gdef_{% \relax % No relax gives a small vulnerability in alignments
- \ifx\if at safe@actives\iftrue % must be outermost test!
- \string_%
- \else
- \ifx\protect\@typeset at protect
- \ifmmode \sb \else \BreakableUnderscore \fi
- \else
- \ifx\protect\@unexpandable at protect \noexpand_%
- \else \protect_%
- \fi\fi
- \fi}
-\endgroup
-
-% At begin: set catcode; fix \long \ttdefault so I can use it in comparisons;
-\AtBeginDocument{%
- {\immediate\write\@auxout{\catcode\number\string`\_ \string\active}}%
- \catcode\string`\_\string=\active
- \edef\ttdefault{\ttdefault}%
-}
-
-\newcommand{\BreakableUnderscore}{\leavevmode\nobreak\hskip\z at skip
- \ifx\f at family\ttdefault \string_\else \textunderscore\fi
- \usc at dischyph\nobreak\hskip\z at skip}
-
-\DeclareRobustCommand{\_}{%
- \ifmmode \nfss at text{\textunderscore}\else \BreakableUnderscore \fi}
-
-\let\usc at dischyph\@dischyph
-\DeclareOption{nohyphen}{\def\usc at dischyph{\discretionary{}{}{}}}
-\DeclareOption{strings}{\catcode`\_=\active}
-
-\ProcessOptions
-\ifnum\catcode`\_=\active\else \endinput \fi
-
-%%%%%%%% Redefine commands that use character strings %%%%%%%%
-
-\@ifundefined{UnderscoreCommands}{\let\UnderscoreCommands\@empty}{}
-\expandafter\def\expandafter\UnderscoreCommands\expandafter{%
- \UnderscoreCommands
- \do\include \do\includeonly
- \do\@input \do\@iinput \do\InputIfFileExists
- \do\ref \do\pageref \do\newlabel
- \do\bibitem \do\@bibitem \do\cite \do\nocite \do\bibcite
-}
-
-% Macro to redefine a macro to pre-process its string argument
-% with \protect -> \string.
-\def\do#1{% Avoid double processing if user includes command twice!
- \@ifundefined{US\string_\expandafter\@gobble\string#1}{%
- \edef\@tempb{\meaning#1}% Check if macro is just a protection shell...
- \def\@tempc{\protect}%
- \edef\@tempc{\meaning\@tempc\string#1\space\space}%
- \ifx\@tempb\@tempc % just a shell: hook into the protected inner command
- \expandafter\do
- \csname \expandafter\@gobble\string#1 \expandafter\endcsname
- \else % Check if macro takes an optional argument
- \def\@tempc{\@ifnextchar[}%
- \edef\@tempa{\def\noexpand\@tempa####1\meaning\@tempc}%
- \@tempa##2##3\@tempa{##2\relax}%
- \edef\@tempb{\meaning#1\meaning\@tempc}%
- \edef\@tempc{\noexpand\@tempd \csname
- US\string_\expandafter\@gobble\string#1\endcsname}%
- \if \expandafter\@tempa\@tempb \relax 12\@tempa % then no optional arg
- \@tempc #1\US at prot
- \else % There is optional arg
- \@tempc #1\US at protopt
- \fi
- \fi
- }{}}
-
-\def\@tempd#1#2#3{\let#1#2\def#2{#3#1}}
-
-\def\US at prot#1#2{\let\@@protect\protect \let\protect\string
- \edef\US at temp##1{##1{#2}}\restore at protect\US at temp#1}
-\def\US at protopt#1{\@ifnextchar[{\US at protarg#1}{\US at prot#1}}
-\def\US at protarg #1[#2]{\US at prot{{#1[#2]}}}
-
-\UnderscoreCommands
-\let\do\relax \let\@tempd\relax % un-do
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\endinput
-
-underscore.sty 12-Oct-2001 Donald Arseneau
-
-Features:
-~~~~~~~~~
-\_ prints an underscore so that the hyphenation of constituent words
-is not affected and hyphenation is permitted after the underscore.
-For example, "compound\_fracture" hyphenates as com- pound_- frac- ture.
-If you prefer the underscore to break without a hyphen (but still with
-the same rules for explicit hyphen-breaks) then use the [nohyphen]
-package option.
-
-A simple _ acts just like \_ in text mode, but makes a subscript in
-math mode: activation_energy $E_a$
-
-Both forms use an underscore character if the font encoding contains
-one (e.g., "\usepackage[T1]{fontenc}" or typewriter fonts in any encoding),
-but they use a rule if the there is no proper character.
-
-Deficiencies:
-~~~~~~~~~~~~~
-The skips and penalties ruin any kerning with the underscore character
-(when a character is used). However, there doesn't seem to be much, if
-any, such kerning in the ec fonts, and there is never any kerning with
-a rule.
-
-You must avoid "_" in file names and in cite or ref tags, or you must use
-the babel package, with its active-character controls, or you must give
-the [strings] option, which attempts to redefine several commands (and
-may not work perfectly). Even without the [strings] option or babel, you
-can use occasional underscores like: "\include{file\string_name}".
-
-Option: [strings]
-~~~~~~~~~~~~~~~~~
-The default operation is quite simple and needs no customization; but
-you must avoid using "_" in any place where LaTeX uses an argument as
-a string of characters for some control function or as a name. These
-include the tags for \cite and \ref, file names for \input, \include,
-and \includegraphics, environment names, counter names, and placement
-parameters (like "[t]"). The problem with these contexts is that they
-are `moving arguments' but LaTeX does not `switch on' the \protect
-mechanism for them.
-
-If you need to use the underscore character in these places, the package
-option [strings] is provided to redefine commands taking a string argument
-so that the argument is protected (with \protect -> \string). The list
-of commands is given in "\UnderscoreCommands", with "\do" before each,
-covering \cite, \ref, \input, and their variants. Not included are many
-commands regarding font names, everything with counter names, environment
-names, page styles, and versions of \ref and \cite defined by external
-packages (e.g. \vref and \citeyear).
-
-You can add to the list of supported commands by defining \UnderscoreCommands
-before loading this package; e.g.
-
- \usepackage{chicago}
- \newcommand{\UnderscoreCommands}{% (\cite already done)
- \do\citeNP \do\citeA \do\citeANP \do\citeN \do\shortcite
- \do\shortciteNP \do\shortciteA \do\shortciteANP \do\shortciteN
- \do\citeyear \do\citeyearNP
- }
- \usepackage[strings]{underscore}
-
-Not all commands can be supported this way! Only commands that take a
-string argument *first* can be protected. One optional argument before
-the string argument is also permitted, as exemplified by \cite: both
-\cite{tags} and \cite[text]{tags} are allowed. A command like
-\@addtoreset which takes two counter names as arguments could not
-be protected by adding it to \UnderscoreCommands.
-
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! When you use the [strings] option, you must load this package !!
-!! last (or nearly last). !!
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
-There are two reasons: 1) The redefinitions done for protection must come
-after other packages define their customized versions of those commands.
-2) The [strings] option requires the _ character to be activated immediately
-in order for the cite and ref tags to be read properly from the .aux file
-as plain strings, and this catcode setting might disrupt other packages.
-
-The babel package implements a protection mechanism for many commands,
-and will be a complete fix for most documents without the [strings] option.
-Many add-on packages are compatible with babel, so they will get the
-strings protection also. However, there are several commands that are
-not covered by babel, but can easily be supported by the [strings] and
-\UnderscoreCommands mechanism. Beware that using both [strings] and babel
-may lead to conflicts, but does appear to work (load babel last).
-
-Implementation Notes:
-~~~~~~~~~~~~~~~~~~~~~
-The first setting of "_" to be an active character is performed in a local
-group so as to not interfere with other packages. The catcode setting
-is repeated with \AtBeginDocument so the definition is in effect for the
-text. However, the catcode setting is repeated immediately when the
-[strings] option is detected.
-
-The definition of the active "_" is essentially:
- \ifmmode \sb \else \BreakableUnderscore \fi
-where "\sb" retains the normal subscript meaning of "_" and where
-"\BreakableUnderscore" is essentially "\_". The rest of the definition
-handles the "\protect"ion without causing \relax to be inserted before
-the character.
-
-\BreakableUnderscore uses "\nobreak\hskip\z at skip" to separate the
-underscore from surrounding words, thus allowing TeX to hyphenate them,
-but preventing free breaks around the underscore. Next, it checks the
-current font family, and uses the underscore character from tt fonts or
-otherwise \textunderscore (which is a character or rule depending on
-the font encoding). After the underscore, it inserts a discretionary
-hyphenation point as "\usc at dischyph", which is usually just "\-"
-except that it still works in the tabbing environment, although it
-will give "\discretionary{}{}{}" under the [nohyphen] option. After
-that, another piece of non-breaking interword glue is inserted.
-Ordinarily, the comparison "\ifx\f at family\ttdefault" will always fail
-because \ttdefault is `long' where \f at family is not (boooo hisss), but
-\ttdefault is redefined to be non-long by "\AtBeginDocument".
-
-The "\_" command is then defined to use "\BreakableUnderscore".
-
-If the [strings] option is not given, then that is all!
-
-Under the [strings] option, the list of special commands is processed to:
-- retain the original command as \US_command (\US_ref)
-- redefine the command as \US at prot\US_command for ordinary commands
- (\ref -> \US at prot\US_ref) or as \US at protopt\US_command when an optional
- argument is possible (\bibitem -> \US at protopt\US_bibitem).
-- self-protecting commands (\cite) retain their self-protection.
-Diagnosing the state of the pre-existing command is done by painful
-contortions involving \meaning.
-
-\US at prot and \US at protopt read the argument, process it with \protect
-enabled, then invoke the saved \US_command.
-
-Modifications:
-~~~~~~~~~~~~~~
-12-Oct-2001 Babel (safe at actives) compatibility and [nohyphen] option.
-
-Test file integrity: ASCII 32-57, 58-126: !"#$%&'()*+,-./0123456789
-:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
From buildbot at python.org Thu Dec 6 03:11:16 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 02:11:16 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable 3.0
Message-ID: <20071206021116.F34331E4017@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%203.0/builds/362
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
======================================================================
ERROR: test_fail_no_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 423, in test_fail_no_info
p.pow(6,8)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1121, in request
resp = http_conn.getresponse()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 961, in getresponse
response.begin()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 425, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 267, in readheaders
line = str(self.fp.readline(), "iso-8859-1")
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 403, in readline
b = self.read(nreadahead())
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 465, in read
n = self.readinto(b)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/socket.py", line 215, in readinto
return self._sock.recv_into(b)
socket.error: [Errno 104] Connection reset by peer
======================================================================
ERROR: test_fail_with_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 441, in test_fail_with_info
p.pow(6,8)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1121, in request
resp = http_conn.getresponse()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 961, in getresponse
response.begin()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 425, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 267, in readheaders
line = str(self.fp.readline(), "iso-8859-1")
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 403, in readline
b = self.read(nreadahead())
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 465, in read
n = self.readinto(b)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/socket.py", line 215, in readinto
return self._sock.recv_into(b)
socket.error: [Errno 104] Connection reset by peer
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 03:25:07 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 02:25:07 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071206022508.2DB711E4019@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/356
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: georg.brandl,raymond.hettinger
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 04:58:57 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 03:58:57 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071206035857.6A1241E4017@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/344
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_codecmaps_cn
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 05:04:13 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 04:04:13 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu trunk
Message-ID: <20071206040414.192A11E4017@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%20trunk/builds/1118
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: georg.brandl,raymond.hettinger
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_urllibnet
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 06:33:37 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 05:33:37 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc 3.0
Message-ID: <20071206053337.3A2BE1E4017@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%203.0/builds/423
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_urllib2net
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 06:35:34 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 05:35:34 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo 3.0
Message-ID: <20071206053534.728681E4017@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%203.0/builds/284
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
3 tests failed:
test_ssl test_urllib2net test_urllibnet
======================================================================
ERROR: test_header (test.test_urllibnet.urlretrieveNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/test/test_urllibnet.py", line 146, in test_header
file_location, header = urllib.urlretrieve("http://www.python.org/")
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/urllib.py", line 88, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/urllib.py", line 230, in retrieve
fp = self.open(url, data)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/urllib.py", line 202, in open
raise IOError('socket error', msg).with_traceback(sys.exc_info()[2])
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/urllib.py", line 198, in open
return getattr(self, name)(url)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/urllib.py", line 371, in open_http
return self._open_generic_http(httplib.HTTPConnection, url, data)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/urllib.py", line 351, in _open_generic_http
http_conn.request("GET", selector, headers=headers)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 884, in request
self._send_request(method, url, body, headers)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 921, in _send_request
self.endheaders()
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 879, in endheaders
self._send_output()
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 745, in _send_output
self.send(msg)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 704, in send
self.connect()
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/httplib.py", line 688, in connect
self.timeout)
File "/home/buildbot/slave/py-build/3.0.norwitz-amd64/build/Lib/socket.py", line 277, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
IOError: [Errno socket error] [Errno -2] Name or service not known
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 06:58:30 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 05:58:30 +0000
Subject: [Python-checkins] buildbot failure in MIPS Debian 2.5
Message-ID: <20071206055830.523DE1E4017@bag.python.org>
The Buildbot has detected a new failure of MIPS Debian 2.5.
Full details are available at:
http://www.python.org/dev/buildbot/all/MIPS%20Debian%202.5/builds/57
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-mips
Build Reason:
Build Source Stamp: [branch branches/release25-maint] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_resource
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 549, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
File "/home/pybot/buildarea/2.5.klose-debian-mips/build/Lib/test/test_resource.py", line 42, in
f.close()
IOError: [Errno 27] File too large
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 07:18:28 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 06:18:28 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071206061828.E13C81E4017@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/366
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_urllib2net
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Thu Dec 6 10:45:40 2007
From: python-checkins at python.org (georg.brandl)
Date: Thu, 6 Dec 2007 10:45:40 +0100 (CET)
Subject: [Python-checkins] r59383 - python/trunk/Doc/library/re.rst
Message-ID: <20071206094540.227F51E4017@bag.python.org>
Author: georg.brandl
Date: Thu Dec 6 10:45:39 2007
New Revision: 59383
Modified:
python/trunk/Doc/library/re.rst
Log:
Better re.split examples.
Modified: python/trunk/Doc/library/re.rst
==============================================================================
--- python/trunk/Doc/library/re.rst (original)
+++ python/trunk/Doc/library/re.rst Thu Dec 6 10:45:39 2007
@@ -1091,16 +1091,21 @@
easily read and modified by Python as demonstrated in the following example that
creates a phonebook.
-First, get the input using triple-quoted string syntax::
+First, here is the input. Normally it may come from a file, here we are using
+triple-quoted string syntax::
- >>> input = """Ross McFluff 834.345.1254 155 Elm Street
- Ronald Heathmore 892.345.3428 436 Finley Avenue
- Frank Burger 925.541.7625 662 South Dogwood Way
- Heather Albrecht 548.326.4584 919 Park Place"""
+ >>> input = """Ross McFluff: 834.345.1254 155 Elm Street
-Then, convert the string into a list with each line having its own entry::
+ Ronald Heathmore: 892.345.3428 436 Finley Avenue
+ Frank Burger: 925.541.7625 662 South Dogwood Way
- >>> entries = re.split("\n", input)
+
+ Heather Albrecht: 548.326.4584 919 Park Place"""
+
+The entries are separated by one or more newlines. Now we convert the string
+into a list with each nonempty line having its own entry::
+
+ >>> entries = re.split("\n+", input)
>>> entries
['Ross McFluff 834.345.1254 155 Elm Street',
'Ronald Heathmore 892.345.3428 436 Finley Avenue',
@@ -1111,16 +1116,17 @@
number, and address. We use the ``maxsplit`` paramater of :func:`split`
because the address has spaces, our splitting pattern, in it::
- >>> [re.split(" ", entry, 3) for entry in entries]
+ >>> [re.split(":? ", entry, 3) for entry in entries]
[['Ross', 'McFluff', '834.345.1254', '155 Elm Street'],
['Ronald', 'Heathmore', '892.345.3428', '436 Finley Avenue'],
['Frank', 'Burger', '925.541.7625', '662 South Dogwood Way'],
['Heather', 'Albrecht', '548.326.4584', '919 Park Place']]
-With a ``maxsplit`` of ``4``, we could seperate the house number from the street
-name::
+The ``:?`` pattern matches the colon after the last name, so that it does not
+occur in the result list. With a ``maxsplit`` of ``4``, we could seperate the
+house number from the street name::
- >>> [re.split(" ", entry, 4) for entry in entries]
+ >>> [re.split(":? ", entry, 4) for entry in entries]
[['Ross', 'McFluff', '834.345.1254', '155', 'Elm Street'],
['Ronald', 'Heathmore', '892.345.3428', '436', 'Finley Avenue'],
['Frank', 'Burger', '925.541.7625', '662', 'South Dogwood Way'],
From python-checkins at python.org Thu Dec 6 11:00:58 2007
From: python-checkins at python.org (georg.brandl)
Date: Thu, 6 Dec 2007 11:00:58 +0100 (CET)
Subject: [Python-checkins] r59384 - doctools/trunk/sphinx/builder.py
doctools/trunk/sphinx/highlighting.py
doctools/trunk/sphinx/latexwriter.py
Message-ID: <20071206100058.3CE3C1E4017@bag.python.org>
Author: georg.brandl
Date: Thu Dec 6 11:00:57 2007
New Revision: 59384
Modified:
doctools/trunk/sphinx/builder.py
doctools/trunk/sphinx/highlighting.py
doctools/trunk/sphinx/latexwriter.py
Log:
Add highlighting for LaTeX builder.
Modified: doctools/trunk/sphinx/builder.py
==============================================================================
--- doctools/trunk/sphinx/builder.py (original)
+++ doctools/trunk/sphinx/builder.py Thu Dec 6 11:00:57 2007
@@ -673,7 +673,7 @@
components=(docwriter,)).get_default_values()
# XXX get names of toplevels automatically?
- for docname in ["library"]:#, "distutils", "documenting", "extending",
+ for docname in ["c-api"]:#, "distutils", "documenting", "extending",
#"howto", "install", "library", "reference",
#"tutorial", "using"]:
# XXX whatsnew missing
Modified: doctools/trunk/sphinx/highlighting.py
==============================================================================
--- doctools/trunk/sphinx/highlighting.py (original)
+++ doctools/trunk/sphinx/highlighting.py Thu Dec 6 11:00:57 2007
@@ -18,7 +18,7 @@
from pygments import highlight
from pygments.lexers import PythonLexer, PythonConsoleLexer, CLexer, \
TextLexer, RstLexer
- from pygments.formatters import HtmlFormatter
+ from pygments.formatters import HtmlFormatter, LatexFormatter
from pygments.filters import ErrorToken
from pygments.style import Style
from pygments.styles.friendly import FriendlyStyle
@@ -28,7 +28,8 @@
else:
class PythonDocStyle(Style):
"""
- Like friendly, but a bit darker to enhance contrast on the green background.
+ Like friendly, but a bit darker to enhance contrast on
+ the green background.
"""
background_color = '#eeffcc'
@@ -51,12 +52,18 @@
for _lexer in lexers.values():
_lexer.add_filter('raiseonerror')
- fmter = HtmlFormatter(style=PythonDocStyle)
+ hfmter = HtmlFormatter(style=PythonDocStyle)
+ lfmter = LatexFormatter(style=PythonDocStyle)
-def highlight_block(source, lang):
+def highlight_block(source, lang, dest='html'):
+ def unhighlighted():
+ if dest == 'html':
+ return '' + cgi.escape(source) + '
\n'
+ else:
+ return source
if not pygments:
- return '' + cgi.escape(source) + '
\n'
+ return unhighlighted()
if lang == 'python':
if source.startswith('>>>'):
# interactive session
@@ -67,16 +74,16 @@
parser.suite('from __future__ import with_statement\n' +
source + '\n')
except (SyntaxError, UnicodeEncodeError):
- return '' + cgi.escape(source) + '
\n'
+ return unhighlighted()
else:
lexer = lexers['python']
else:
lexer = lexers[lang]
try:
- return highlight(source, lexer, fmter)
+ return highlight(source, lexer, dest == 'html' and hfmter or lfmter)
except ErrorToken:
# this is most probably not Python, so let it pass unhighlighted
- return '' + cgi.escape(source) + '
\n'
+ return unhighlighted()
-def get_stylesheet():
- return fmter.get_style_defs()
+def get_stylesheet(dest='html'):
+ return (dest == 'html' and hfmter or lfmter).get_style_defs()
Modified: doctools/trunk/sphinx/latexwriter.py
==============================================================================
--- doctools/trunk/sphinx/latexwriter.py (original)
+++ doctools/trunk/sphinx/latexwriter.py Thu Dec 6 11:00:57 2007
@@ -19,6 +19,7 @@
from docutils import frontend, nodes, languages, writers, utils
from . import addnodes
+from . import highlighting
HEADER = r'''%% Generated by Sphinx.
@@ -103,7 +104,7 @@
self.highlightlang = 'python'
self.written_ids = set()
# flags
- self.verbatim = 0
+ self.verbatim = None
self.in_title = 0
self.first_document = 1
self.this_is_the_title = 1
@@ -111,6 +112,7 @@
def astext(self):
return (HEADER % self.options) + \
+ highlighting.get_stylesheet('latex') + '\n\n' + \
u''.join(self.body) + \
(FOOTER % self.options)
@@ -517,11 +519,14 @@
raise nodes.SkipNode
def visit_literal_block(self, node):
- self.body.append('\n\\begin{Verbatim}\n')
- self.verbatim = 1
+ #self.body.append('\n\\begin{Verbatim}\n')
+ self.verbatim = ''
def depart_literal_block(self, node):
- self.body.append('\n\\end{Verbatim}\n')
- self.verbatim = 0
+ #self.body.append('\n\\end{Verbatim}\n')
+ self.body.append('\n' + highlighting.highlight_block(self.verbatim,
+ self.highlightlang,
+ 'latex'))
+ self.verbatim = None
visit_doctest_block = visit_literal_block
depart_doctest_block = depart_literal_block
@@ -585,8 +590,6 @@
]
def encode(self, text):
- if self.verbatim:
- return text
for x, y in self.replacements:
text = text.replace(x, y)
if self.literal_whitespace:
@@ -596,7 +599,10 @@
return text
def visit_Text(self, node):
- self.body.append(self.encode(node.astext()))
+ if self.verbatim is not None:
+ self.verbatim += node.astext()
+ else:
+ self.body.append(self.encode(node.astext()))
def depart_Text(self, node):
pass
From python-checkins at python.org Thu Dec 6 11:08:17 2007
From: python-checkins at python.org (georg.brandl)
Date: Thu, 6 Dec 2007 11:08:17 +0100 (CET)
Subject: [Python-checkins] r59385 - doctools/trunk/sphinx/builder.py
doctools/trunk/sphinx/highlighting.py
doctools/trunk/sphinx/latexwriter.py
Message-ID: <20071206100817.3C3971E4017@bag.python.org>
Author: georg.brandl
Date: Thu Dec 6 11:08:16 2007
New Revision: 59385
Modified:
doctools/trunk/sphinx/builder.py
doctools/trunk/sphinx/highlighting.py
doctools/trunk/sphinx/latexwriter.py
Log:
Fix highlighting code a bit.
Modified: doctools/trunk/sphinx/builder.py
==============================================================================
--- doctools/trunk/sphinx/builder.py (original)
+++ doctools/trunk/sphinx/builder.py Thu Dec 6 11:08:16 2007
@@ -673,7 +673,7 @@
components=(docwriter,)).get_default_values()
# XXX get names of toplevels automatically?
- for docname in ["c-api"]:#, "distutils", "documenting", "extending",
+ for docname in ["library"]:#, "distutils", "documenting", "extending",
#"howto", "install", "library", "reference",
#"tutorial", "using"]:
# XXX whatsnew missing
@@ -693,7 +693,7 @@
self.filenames = [indexfile]
print "processing", indexfile
def process_tree(tree):
- #tree = tree.deepcopy()
+ #tree = tree.deepcopy() XXX
for toctreenode in tree.traverse(addnodes.toctree):
newnodes = []
includefiles = map(str, toctreenode['includefiles'])
Modified: doctools/trunk/sphinx/highlighting.py
==============================================================================
--- doctools/trunk/sphinx/highlighting.py (original)
+++ doctools/trunk/sphinx/highlighting.py Thu Dec 6 11:08:16 2007
@@ -61,7 +61,7 @@
if dest == 'html':
return '' + cgi.escape(source) + '
\n'
else:
- return source
+ return highlight(source, lexers['none'], lfmter)
if not pygments:
return unhighlighted()
if lang == 'python':
Modified: doctools/trunk/sphinx/latexwriter.py
==============================================================================
--- doctools/trunk/sphinx/latexwriter.py (original)
+++ doctools/trunk/sphinx/latexwriter.py Thu Dec 6 11:08:16 2007
@@ -600,7 +600,7 @@
def visit_Text(self, node):
if self.verbatim is not None:
- self.verbatim += node.astext()
+ self.verbatim += node.astext().replace('@', '@@')
else:
self.body.append(self.encode(node.astext()))
def depart_Text(self, node):
From python-checkins at python.org Thu Dec 6 14:15:13 2007
From: python-checkins at python.org (christian.heimes)
Date: Thu, 6 Dec 2007 14:15:13 +0100 (CET)
Subject: [Python-checkins] r59386 - in python/trunk/Lib/distutils:
sysconfig.py tests/test_sysconfig.py
Message-ID: <20071206131513.BE4E01E402A@bag.python.org>
Author: christian.heimes
Date: Thu Dec 6 14:15:13 2007
New Revision: 59386
Added:
python/trunk/Lib/distutils/tests/test_sysconfig.py (contents, props changed)
Modified:
python/trunk/Lib/distutils/sysconfig.py
Log:
Fixed get_config_h_filename for Windows. Without the patch it can't find the pyconfig.h file inside a build tree.
Added several small unit tests for sysconfig.
Modified: python/trunk/Lib/distutils/sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/sysconfig.py (original)
+++ python/trunk/Lib/distutils/sysconfig.py Thu Dec 6 14:15:13 2007
@@ -22,16 +22,17 @@
PREFIX = os.path.normpath(sys.prefix)
EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
+# Path to the base directory of the project. On Windows the binary may
+# live in project/PCBuild9
+project_base = os.path.dirname(os.path.abspath(sys.executable))
+if os.name == "nt" and "pcbuild" in project_base[-8:].lower():
+ project_base = os.path.abspath(os.path.join(project_base, os.path.pardir))
+
# python_build: (Boolean) if true, we're either building Python or
# building an extension with an un-installed Python, so we use
# different (hard-wired) directories.
-
-argv0_path = os.path.dirname(os.path.abspath(sys.executable))
-landmark = os.path.join(argv0_path, "Modules", "Setup")
-
-python_build = os.path.isfile(landmark)
-
-del landmark
+python_build = os.path.isfile(os.path.join(project_base, "Modules",
+ "Setup.dist"))
def get_python_version():
@@ -185,7 +186,10 @@
def get_config_h_filename():
"""Return full pathname of installed pyconfig.h file."""
if python_build:
- inc_dir = argv0_path
+ if os.name == "nt":
+ inc_dir = os.path.join(project_base, "PC")
+ else:
+ inc_dir = project_base
else:
inc_dir = get_python_inc(plat_specific=1)
if get_python_version() < '2.2':
@@ -428,6 +432,8 @@
g['SO'] = '.pyd'
g['EXE'] = ".exe"
+ g['VERSION'] = get_python_version().replace(".", "")
+ g['BINDIR'] = os.path.dirname(os.path.abspath(sys.executable))
global _config_vars
_config_vars = g
Added: python/trunk/Lib/distutils/tests/test_sysconfig.py
==============================================================================
--- (empty file)
+++ python/trunk/Lib/distutils/tests/test_sysconfig.py Thu Dec 6 14:15:13 2007
@@ -0,0 +1,36 @@
+"""Tests for distutils.dist."""
+
+from distutils import sysconfig
+import os
+import sys
+import unittest
+
+from test.test_support import TESTFN
+
+class SysconfigTestCase(unittest.TestCase):
+
+ def test_get_config_h_filename(self):
+ config_h = sysconfig.get_config_h_filename()
+ self.assert_(os.path.isfile(config_h), config_h)
+
+ def test_get_python_lib(self):
+ lib_dir = sysconfig.get_python_lib()
+ self.assert_(os.path.isdir(lib_dir), lib_dir)
+ # test for pythonxx.lib?
+
+ def test_get_python_inc(self):
+ inc_dir = sysconfig.get_python_inc()
+ self.assert_(os.path.isdir(inc_dir), inc_dir)
+ python_h = os.path.join(inc_dir, "Python.h")
+ self.assert_(os.path.isfile(python_h), python_h)
+
+ def test_get_config_vars(self):
+ cvars = sysconfig.get_config_vars()
+ self.assert_(isinstance(cvars, dict))
+ self.assert_(cvars)
+
+
+def test_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(SysconfigTestCase))
+ return suite
From python-checkins at python.org Thu Dec 6 14:30:11 2007
From: python-checkins at python.org (christian.heimes)
Date: Thu, 6 Dec 2007 14:30:11 +0100 (CET)
Subject: [Python-checkins] r59387 - python/trunk/PCbuild9/pyproject.vsprops
Message-ID: <20071206133011.7E8B91E4005@bag.python.org>
Author: christian.heimes
Date: Thu Dec 6 14:30:11 2007
New Revision: 59387
Modified:
python/trunk/PCbuild9/pyproject.vsprops
Log:
Silence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined in pyconfig.h but several projects don't include it.
Modified: python/trunk/PCbuild9/pyproject.vsprops
==============================================================================
--- python/trunk/PCbuild9/pyproject.vsprops (original)
+++ python/trunk/PCbuild9/pyproject.vsprops Thu Dec 6 14:30:11 2007
@@ -12,7 +12,7 @@
InlineFunctionExpansion="1"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\Include; ..\PC"
- PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_WIN32"
+ PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WIN32"
StringPooling="true"
ExceptionHandling="0"
RuntimeLibrary="0"
From buildbot at python.org Thu Dec 6 14:42:10 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 13:42:10 +0000
Subject: [Python-checkins] buildbot failure in x86 gentoo trunk
Message-ID: <20071206134210.69FF41E4005@bag.python.org>
The Buildbot has detected a new failure of x86 gentoo trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20gentoo%20trunk/builds/2693
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-x86
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
Traceback (most recent call last):
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '1000-1000-1000-1000-1000'
Traceback (most recent call last):
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '0002-0002-0002-0002-0002'
Traceback (most recent call last):
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '2000-2000-2000-2000-2000'
1 test failed:
test_distutils
======================================================================
FAIL: test_get_python_lib (distutils.tests.test_sysconfig.SysconfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/distutils/tests/test_sysconfig.py", line 18, in test_get_python_lib
self.assert_(os.path.isdir(lib_dir), lib_dir)
AssertionError: /usr/local/lib/python2.6/site-packages
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 14:43:11 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 13:43:11 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc trunk
Message-ID: <20071206134312.0DD5C1E4005@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%20trunk/builds/1034
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_distutils
======================================================================
FAIL: test_get_python_lib (distutils.tests.test_sysconfig.SysconfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home2/buildbot/slave/trunk.loewis-linux/build/Lib/distutils/tests/test_sysconfig.py", line 18, in test_get_python_lib
self.assert_(os.path.isdir(lib_dir), lib_dir)
AssertionError: /usr/local/lib/python2.6/site-packages
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 14:44:41 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 13:44:41 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo trunk
Message-ID: <20071206134441.D16371E4005@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%20trunk/builds/2356
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
Traceback (most recent call last):
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '1001-1001-1001-1001-1001'
Traceback (most recent call last):
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '2000-2000-2000-2000-2000'
Traceback (most recent call last):
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/bsddb/test/test_thread.py", line 260, in writerThread
self.assertEqual(data, self.makeData(key))
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/unittest.py", line 343, in failUnlessEqual
(msg or '%r != %r' % (first, second))
AssertionError: None != '0002-0002-0002-0002-0002'
1 test failed:
test_distutils
======================================================================
FAIL: test_get_python_lib (distutils.tests.test_sysconfig.SysconfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/slave/py-build/trunk.norwitz-amd64/build/Lib/distutils/tests/test_sysconfig.py", line 18, in test_get_python_lib
self.assert_(os.path.isdir(lib_dir), lib_dir)
AssertionError: /usr/local/lib/python2.6/site-packages
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 14:48:02 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 13:48:02 +0000
Subject: [Python-checkins] buildbot failure in x86 OpenBSD trunk
Message-ID: <20071206134803.0A2691E4005@bag.python.org>
The Buildbot has detected a new failure of x86 OpenBSD trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20OpenBSD%20trunk/builds/153
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: cortesi
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_distutils
======================================================================
FAIL: test_get_python_lib (distutils.tests.test_sysconfig.SysconfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildbot/trunk.cortesi/build/Lib/distutils/tests/test_sysconfig.py", line 18, in test_get_python_lib
self.assert_(os.path.isdir(lib_dir), lib_dir)
AssertionError: /usr/local/lib/python2.6/site-packages
sincerely,
-The Buildbot
From python-checkins at python.org Thu Dec 6 14:55:02 2007
From: python-checkins at python.org (christian.heimes)
Date: Thu, 6 Dec 2007 14:55:02 +0100 (CET)
Subject: [Python-checkins] r59389 -
python/trunk/Lib/distutils/tests/test_sysconfig.py
Message-ID: <20071206135502.4B6161E4005@bag.python.org>
Author: christian.heimes
Date: Thu Dec 6 14:55:01 2007
New Revision: 59389
Modified:
python/trunk/Lib/distutils/tests/test_sysconfig.py
Log:
Disabled one test that is failing on Unix
Modified: python/trunk/Lib/distutils/tests/test_sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/tests/test_sysconfig.py (original)
+++ python/trunk/Lib/distutils/tests/test_sysconfig.py Thu Dec 6 14:55:01 2007
@@ -15,7 +15,8 @@
def test_get_python_lib(self):
lib_dir = sysconfig.get_python_lib()
- self.assert_(os.path.isdir(lib_dir), lib_dir)
+ # XXX doesn't work on Inux when Python was never installed before
+ #self.assert_(os.path.isdir(lib_dir), lib_dir)
# test for pythonxx.lib?
def test_get_python_inc(self):
From buildbot at python.org Thu Dec 6 15:04:22 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 14:04:22 +0000
Subject: [Python-checkins] buildbot failure in amd64 XP trunk
Message-ID: <20071206140423.0CFA41E401B@bag.python.org>
The Buildbot has detected a new failure of amd64 XP trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%20trunk/builds/406
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_winsound
======================================================================
ERROR: test_extremes (test.test_winsound.BeepTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\trunk.heller-windows-amd64\build\lib\test\test_winsound.py", line 18, in test_extremes
winsound.Beep(37, 75)
RuntimeError: Failed to beep
======================================================================
ERROR: test_increasingfrequency (test.test_winsound.BeepTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\trunk.heller-windows-amd64\build\lib\test\test_winsound.py", line 23, in test_increasingfrequency
winsound.Beep(i, 75)
RuntimeError: Failed to beep
======================================================================
ERROR: test_alias_asterisk (test.test_winsound.PlaySoundTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\trunk.heller-windows-amd64\build\lib\test\test_winsound.py", line 64, in test_alias_asterisk
winsound.PlaySound('SystemAsterisk', winsound.SND_ALIAS)
RuntimeError: Failed to play sound
======================================================================
ERROR: test_alias_exclamation (test.test_winsound.PlaySoundTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\trunk.heller-windows-amd64\build\lib\test\test_winsound.py", line 74, in test_alias_exclamation
winsound.PlaySound('SystemExclamation', winsound.SND_ALIAS)
RuntimeError: Failed to play sound
======================================================================
ERROR: test_alias_exit (test.test_winsound.PlaySoundTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\trunk.heller-windows-amd64\build\lib\test\test_winsound.py", line 84, in test_alias_exit
winsound.PlaySound('SystemExit', winsound.SND_ALIAS)
RuntimeError: Failed to play sound
======================================================================
ERROR: test_alias_hand (test.test_winsound.PlaySoundTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\trunk.heller-windows-amd64\build\lib\test\test_winsound.py", line 94, in test_alias_hand
winsound.PlaySound('SystemHand', winsound.SND_ALIAS)
RuntimeError: Failed to play sound
======================================================================
ERROR: test_alias_question (test.test_winsound.PlaySoundTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\trunk.heller-windows-amd64\build\lib\test\test_winsound.py", line 104, in test_alias_question
winsound.PlaySound('SystemQuestion', winsound.SND_ALIAS)
RuntimeError: Failed to play sound
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 15:05:40 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 14:05:40 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-4 trunk
Message-ID: <20071206140540.535D31E42BF@bag.python.org>
The Buildbot has detected a new failure of x86 XP-4 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-4%20trunk/builds/263
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_urllib2net
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 15:12:56 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 14:12:56 +0000
Subject: [Python-checkins] buildbot failure in g4 osx.4 trunk
Message-ID: <20071206141256.512A31E4005@bag.python.org>
The Buildbot has detected a new failure of g4 osx.4 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/g4%20osx.4%20trunk/builds/2444
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: psf-g4
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_distutils
======================================================================
FAIL: test_get_python_lib (distutils.tests.test_sysconfig.SysconfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/buildslave/bb/trunk.psf-g4/build/Lib/distutils/tests/test_sysconfig.py", line 18, in test_get_python_lib
self.assert_(os.path.isdir(lib_dir), lib_dir)
AssertionError: /usr/local/lib/python2.6/site-packages
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 15:15:52 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 14:15:52 +0000
Subject: [Python-checkins] buildbot failure in x86 FreeBSD trunk
Message-ID: <20071206141552.839E51E4005@bag.python.org>
The Buildbot has detected a new failure of x86 FreeBSD trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%20trunk/builds/245
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-freebsd
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_distutils
======================================================================
FAIL: test_get_python_lib (distutils.tests.test_sysconfig.SysconfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/distutils/tests/test_sysconfig.py", line 18, in test_get_python_lib
self.assert_(os.path.isdir(lib_dir), lib_dir)
AssertionError: /usr/local/lib/python2.6/site-packages
sincerely,
-The Buildbot
From buildbot at python.org Thu Dec 6 15:26:14 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 14:26:14 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian trunk
Message-ID: <20071206142615.0814E1E4005@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%20trunk/builds/1394
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_distutils
======================================================================
FAIL: test_get_python_lib (distutils.tests.test_sysconfig.SysconfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-debian-s390/build/Lib/distutils/tests/test_sysconfig.py", line 18, in test_get_python_lib
self.assert_(os.path.isdir(lib_dir), lib_dir)
AssertionError: /usr/local/lib/python2.6/site-packages
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Thu Dec 6 18:49:45 2007
From: python-checkins at python.org (guido.van.rossum)
Date: Thu, 6 Dec 2007 18:49:45 +0100 (CET)
Subject: [Python-checkins] r59391 - peps/trunk/pep-3141.txt
Message-ID: <20071206174945.1DC741E4026@bag.python.org>
Author: guido.van.rossum
Date: Thu Dec 6 18:49:44 2007
New Revision: 59391
Modified:
peps/trunk/pep-3141.txt
Log:
Some small updates, with Jeffrey's OK.
Modified: peps/trunk/pep-3141.txt
==============================================================================
--- peps/trunk/pep-3141.txt (original)
+++ peps/trunk/pep-3141.txt Thu Dec 6 18:49:44 2007
@@ -60,8 +60,8 @@
class Complex(Number):
"""Complex defines the operations that work on the builtin complex type.
- In short, those are: a conversion to complex, .real, .imag, +, -,
- *, /, abs(), .conjugate, ==, and !=.
+ In short, those are: conversion to complex, bool(), .real, .imag,
+ +, -, *, /, **, abs(), .conjugate(), ==, and !=.
If it is given heterogenous arguments, and doesn't have special
knowledge about them, it should fall back to the builtin complex
@@ -105,10 +105,7 @@
raise NotImplementedError
def __pos__(self):
- """+self
-
- Coerces self to whatever class defines the method.
- """
+ """Coerces self to whatever class defines the method."""
raise NotImplementedError
def __sub__(self, other):
@@ -127,6 +124,7 @@
@abstractmethod
def __div__(self, other):
+ """a/b; should promote to float or complex when necessary."""
raise NotImplementedError
@abstractmethod
@@ -135,7 +133,7 @@
@abstractmethod
def __pow__(self, exponent):
- """Like division, a**b should promote to complex when necessary."""
+ """a**b; should promote to float or complex when necessary."""
raise NotImplementedError
@abstractmethod
@@ -156,8 +154,7 @@
def __eq__(self, other):
raise NotImplementedError
- def __ne__(self, other):
- return not (self == other)
+ # __ne__ is inherited from object and negates whatever __eq__ does.
The ``Real`` ABC indicates that the value is on the real line, and
@@ -167,12 +164,15 @@
class Real(Complex):
"""To Complex, Real adds the operations that work on real numbers.
- In short, those are: a conversion to float, trunc(), divmod,
- %, <, <=, >, and >=.
+ In short, those are: conversion to float, trunc(), math.floor(),
+ math.ceil(), round(), divmod(), //, %, <, <=, >, and >=.
- Real also provides defaults for the derived operations.
+ Real also provides defaults for some of the derived operations.
"""
+ # XXX What to do about the __int__ implementation that's
+ # currently present on float and Decimal? Get rid of it?
+
@abstractmethod
def __float__(self):
"""Any Real can be converted to a native float object."""
@@ -183,10 +183,10 @@
"""Truncates self to an Integral.
Returns an Integral i such that:
- * i>=0 iff self>0
- * abs(i) <= abs(self).
+ * i>=0 iff self>0;
+ * abs(i) <= abs(self);
* for any Integral j satisfying the first two conditions,
- abs(i) >= abs(j) [i.e. i has "maximal" abs among those]
+ abs(i) >= abs(j) [i.e. i has "maximal" abs among those].
i.e. "truncate towards 0".
"""
raise NotImplementedError
@@ -205,7 +205,7 @@
def __round__(self, ndigits:Integral=None):
"""Rounds self to ndigits decimal places, defaulting to 0.
- If ndigits is omitted, returns an Integral, otherwise
+ If ndigits is omitted or None, returns an Integral, otherwise
returns a Real. Rounds half toward even.
"""
raise NotImplementedError
@@ -261,14 +261,18 @@
def __le__(self, other):
raise NotImplementedError
+ # __gt__ and __ge__ are automatically done by reversing the arguments.
+ # (But __le__ is not computed as the opposite of __gt__!)
+
# Concrete implementations of Complex abstract methods.
+ # Subclasses may override these, but don't have to.
def __complex__(self):
return complex(float(self))
@property
def real(self):
- return self
+ return +self
@property
def imag(self):
@@ -276,10 +280,10 @@
def conjugate(self):
"""Conjugate is a no-op for Reals."""
- return self
+ return +self
-We need to clean up Demo/classes/Rat.py and promote it into
+We should clean up Demo/classes/Rat.py and promote it into
rational.py in the standard library. Then it will implement the
Rational ABC. ::
@@ -295,6 +299,7 @@
raise NotImplementedError
# Concrete implementation of Real's conversion to float.
+ # (This invokes Integer.__div__().)
def __float__(self):
return self.numerator / self.denominator
@@ -310,21 +315,25 @@
raise NotImplementedError
def __index__(self):
+ """__index__() exists because float and Decimal have __int__()."""
return int(self)
@abstractmethod
- def __pow__(self, exponent, modulus):
+ def __pow__(self, exponent, modulus=None):
"""self ** exponent % modulus, but maybe faster.
- Implement this if you want to support the 3-argument version
- of pow(). Otherwise, just implement the 2-argument version
- described in Complex. Raise a TypeError if exponent < 0 or any
- argument isn't Integral.
+ Implement this if you want to support the 3-argument
+ version of pow(). Otherwise, just implement the 2-argument
+ version described in Complex. If modulus is None, this
+ should behave as the 2-argument version; otherwise, raise
+ a TypeError if exponent < 0 or any argument isn't
+ Integral.
"""
raise NotImplementedError
@abstractmethod
def __lshift__(self, other):
+ """i<>j returns i // 2**j."""
raise NotImplementedError
@abstractmethod
@@ -374,7 +384,7 @@
@property
def numerator(self):
- return self
+ return +self
@property
def denominator(self):
@@ -390,7 +400,7 @@
functions deal with this isn't a problem, but it is something to be
aware of.
-Therefore, I define ``Exact`` and ``Inexact`` ABCs to mark whether
+Therefore, we define ``Exact`` and ``Inexact`` ABCs to mark whether
types have this problem. Every instance of ``Integral`` and
``Rational`` should be Exact, but ``Reals`` and ``Complexes`` may or
may not be. (Do we really only need one of these, and the other is
@@ -404,7 +414,7 @@
-------------------------------------------
To support more precise narrowing from float to int (and more
-generally, from Real to Integral), I'm proposing the following new
+generally, from Real to Integral), we propose the following new
__magic__ methods, to be called from the corresponding library
functions. All of these return Integrals rather than Reals.
@@ -418,12 +428,14 @@
least Integral ``>= x``.
4. ``__round__(self)``, called from ``round(x)``, which returns the
- Integral closest to ``x``, rounding half toward even. The
- 2-argument version should return a Real.
-
-Because the ``int()`` conversion from ``float`` is equivalent to but
-less explicit than ``trunc()``, let's remove it. (Or, if that breaks
-too much, just add a deprecation warning.)
+ Integral closest to ``x``, rounding half toward even. There is also
+ a 2-argument version, ``__round__(self, other)``, called from
+ ``round(x, y)``, which should return a Real.
+
+Because the ``int()`` conversion implemented by ``float`` (and by
+``decimal.Decimal``) is equivalent to but less explicit than
+``trunc()``, let's remove it. (Or, if that breaks too much, just add a
+deprecation warning.)
``complex.__{divmod,mod,floordiv,int,float}__`` also go away. It would
be nice to provide a nice error message to help confused porters, but
@@ -519,14 +531,14 @@
The initial version of this PEP defined an algebraic hierarchy
inspired by a Haskell Numeric Prelude [#numericprelude]_ including
MonoidUnderPlus, AdditiveGroup, Ring, and Field, and mentioned several
-other possible algebraic types before getting to the numbers. I had
+other possible algebraic types before getting to the numbers. We had
expected this to be useful to people using vectors and matrices, but
the NumPy community really wasn't interested, and we ran into the
issue that even if ``x`` is an instance of ``X <: MonoidUnderPlus``
and ``y`` is an instance of ``Y <: MonoidUnderPlus``, ``x + y`` may
still not make sense.
-Then I gave the numbers a much more branching structure to include
+Then we gave the numbers a much more branching structure to include
things like the Gaussian Integers and Z/nZ, which could be Complex but
wouldn't necessarily support things like division. The community
decided that this was too much complication for Python, so I've now
@@ -540,10 +552,11 @@
.. [#pep3119] Introducing Abstract Base Classes
(http://www.python.org/dev/peps/pep-3119/)
-.. [#classtree] Possible Python 3K Class Tree?, wiki page created by Bill Janssen
+.. [#classtree] Possible Python 3K Class Tree?, wiki page by Bill Janssen
(http://wiki.python.org/moin/AbstractBaseClasses)
-.. [#numericprelude] NumericPrelude: An experimental alternative hierarchy of numeric type classes
+.. [#numericprelude] NumericPrelude: An experimental alternative hierarchy
+ of numeric type classes
(http://darcs.haskell.org/numericprelude/docs/html/index.html)
.. [#schemetower] The Scheme numerical tower
From martin at v.loewis.de Thu Dec 6 19:42:23 2007
From: martin at v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=)
Date: Thu, 06 Dec 2007 19:42:23 +0100
Subject: [Python-checkins] r59387 -
python/trunk/PCbuild9/pyproject.vsprops
In-Reply-To: <20071206133011.7E8B91E4005@bag.python.org>
References: <20071206133011.7E8B91E4005@bag.python.org>
Message-ID: <4758428F.8010706@v.loewis.de>
> Silence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined
> in pyconfig.h but several projects don't include it.
That patch is incorrect. All projects should include pyconfig.h, so
if some don't, the correction is not to make _CRT_NONSTDC_NO_DEPRECATE
predefined, but to include it were it's missing.
(unless there is a good reason for not including it which I fail to see)
Regards,
Martin
From python-checkins at python.org Thu Dec 6 20:11:29 2007
From: python-checkins at python.org (brett.cannon)
Date: Thu, 6 Dec 2007 20:11:29 +0100 (CET)
Subject: [Python-checkins] r59396 - peps/trunk/pep-3108.txt
Message-ID: <20071206191129.686CC1E401F@bag.python.org>
Author: brett.cannon
Date: Thu Dec 6 20:11:29 2007
New Revision: 59396
Modified:
peps/trunk/pep-3108.txt
Log:
Let getopt live.
Modified: peps/trunk/pep-3108.txt
==============================================================================
--- peps/trunk/pep-3108.txt (original)
+++ peps/trunk/pep-3108.txt Thu Dec 6 20:11:29 2007
@@ -302,16 +302,6 @@
+ All functionality is supported by string interpolation.
-* getopt
-
- + optparse provides better functionality.
- + But ...
-
- - getopt is still widely used.
- - optparse does not handle the issue of when people set
- incompatible options very well.
- - optparse does not allow option arguments to be optional.
-
* ihooks
+ Undocumented.
@@ -551,6 +541,10 @@
+ Testimonials from people that new installations of NIS are still
occurring
+* getopt
+
+ + Simpler than optparse.
+
* telnetlib
+ Really handy for quick-and-dirty remote access.
From lists at cheimes.de Thu Dec 6 20:19:40 2007
From: lists at cheimes.de (Christian Heimes)
Date: Thu, 06 Dec 2007 20:19:40 +0100
Subject: [Python-checkins] r59387 -
python/trunk/PCbuild9/pyproject.vsprops
In-Reply-To: <4758428F.8010706@v.loewis.de>
References: <20071206133011.7E8B91E4005@bag.python.org>
<4758428F.8010706@v.loewis.de>
Message-ID: <47584B4C.4030500@cheimes.de>
Martin v. L?wis wrote:
> That patch is incorrect. All projects should include pyconfig.h, so
> if some don't, the correction is not to make _CRT_NONSTDC_NO_DEPRECATE
> predefined, but to include it were it's missing.
>
> (unless there is a good reason for not including it which I fail to see)
The projects make_buildinfo and make_versioninfo don't include
pyconfig.h. The patch silences a warning in make_buildinfo about an
insecure unlink() call.
I could remove _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE
from pyproject.vsprops and add them to make_buildinfo and
make_versioninfo. But I see no harm in defining them globally.
Christian
From python-checkins at python.org Thu Dec 6 20:19:54 2007
From: python-checkins at python.org (guido.van.rossum)
Date: Thu, 6 Dec 2007 20:19:54 +0100 (CET)
Subject: [Python-checkins] r59397 - python/tags/r30a2
python/tags/r30a2/RELNOTES
Message-ID: <20071206191955.0297C1E401D@bag.python.org>
Author: guido.van.rossum
Date: Thu Dec 6 20:19:54 2007
New Revision: 59397
Added:
python/tags/r30a2/
- copied from r59396, python/branches/py3k/
Modified:
python/tags/r30a2/RELNOTES
Log:
Tagging 3.0a2 for release. Fingers crossed.
Modified: python/tags/r30a2/RELNOTES
==============================================================================
--- python/branches/py3k/RELNOTES (original)
+++ python/tags/r30a2/RELNOTES Thu Dec 6 20:19:54 2007
@@ -8,8 +8,9 @@
Version 3.0a2 - Release Date 07-Dec-2007
----------------------------------------
-* SSL support is back! However, the SSL code appears to be leaking
- quite a bit.
+* SSL support is back! However, while the tests pass, the SSL code
+ appears to be leaking quite a bit, and there are still bugs.
+ We'll be working on this for the next release.
* On Windows Python can't be run from a directory with non ASCII chars
in its path name (bug #1342).
From buildbot at python.org Thu Dec 6 20:35:52 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 19:35:52 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu 3.0
Message-ID: <20071206193552.674FC1E4019@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%203.0/builds/349
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
make: *** [buildbottest] Unknown signal 37
sincerely,
-The Buildbot
From martin at v.loewis.de Thu Dec 6 20:38:34 2007
From: martin at v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=)
Date: Thu, 06 Dec 2007 20:38:34 +0100
Subject: [Python-checkins] r59387 -
python/trunk/PCbuild9/pyproject.vsprops
In-Reply-To: <47584B4C.4030500@cheimes.de>
References: <20071206133011.7E8B91E4005@bag.python.org>
<4758428F.8010706@v.loewis.de> <47584B4C.4030500@cheimes.de>
Message-ID: <47584FBA.8070103@v.loewis.de>
> The projects make_buildinfo and make_versioninfo don't include
> pyconfig.h. The patch silences a warning in make_buildinfo about an
> insecure unlink() call.
Ok. As make_buildinfo is windows-specific, it would be best to follow
the Microsoft-recommended solution to the problem (which I think is to
call _unlink). IIUC, they don't complain that it is insecure, but that
it is non-standard.
> I could remove _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE
> from pyproject.vsprops and add them to make_buildinfo and
> make_versioninfo. But I see no harm in defining them globally.
I do. Anything defined in the project files is both hidden and
undocumented. It's hidden because you can't clearly see what gets
defined by just reading the source, and applying your platform
knowledge, and it's undocumented because these project files don't allow
for documentation of the various configuration options.
So I rather prefer to have settings minimal. The same applies to Unix,
btw: people sometimes suggest that we should add these 10 options
to the compiler invocations to make it work on platform XYZ; I always
request an explicit rationale for each option, and in many cases, it
turns out that there are better ways to solve the problem, or that the
option was just given because everybody else uses it, and nobody
remembers anymore why it's needed.
Regards,
Martin
From buildbot at python.org Thu Dec 6 21:09:27 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 20:09:27 +0000
Subject: [Python-checkins] buildbot failure in ppc Debian unstable 3.0
Message-ID: <20071206200927.5F38C1E4005@bag.python.org>
The Buildbot has detected a new failure of ppc Debian unstable 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ppc%20Debian%20unstable%203.0/builds/368
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ppc
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_xmlrpc
======================================================================
ERROR: test_fail_with_info (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/test/test_xmlrpc.py", line 441, in test_fail_with_info
p.pow(6,8)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1091, in __call__
return self.__send(self.__name, args)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1349, in __request
verbose=self.__verbose
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/xmlrpclib.py", line 1121, in request
resp = http_conn.getresponse()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 961, in getresponse
response.begin()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 425, in begin
self.msg = HTTPMessage(self.fp, 0)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/mimetools.py", line 16, in __init__
rfc822.Message.__init__(self, fp, seekable)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/rfc822.py", line 104, in __init__
self.readheaders()
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/httplib.py", line 267, in readheaders
line = str(self.fp.readline(), "iso-8859-1")
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 403, in readline
b = self.read(nreadahead())
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/io.py", line 465, in read
n = self.readinto(b)
File "/home/pybot/buildarea/3.0.klose-debian-ppc/build/Lib/socket.py", line 215, in readinto
return self._sock.recv_into(b)
socket.error: [Errno 104] Connection reset by peer
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Thu Dec 6 21:30:52 2007
From: python-checkins at python.org (guido.van.rossum)
Date: Thu, 6 Dec 2007 21:30:52 +0100 (CET)
Subject: [Python-checkins] r59398 - peps/trunk/pep-3000.txt
Message-ID: <20071206203052.95E4A1E4028@bag.python.org>
Author: guido.van.rossum
Date: Thu Dec 6 21:30:52 2007
New Revision: 59398
Modified:
peps/trunk/pep-3000.txt
Log:
Slip the 2.6 release dates a month and note the 3.0a2 release.
Modified: peps/trunk/pep-3000.txt
==============================================================================
--- peps/trunk/pep-3000.txt (original)
+++ peps/trunk/pep-3000.txt Thu Dec 6 21:30:52 2007
@@ -55,9 +55,10 @@
Hopeful future deadlines:
* August 2007: release 3.0a1.
-* December 2007: release 2.6a1.
-* April 2008: full feature freeze.
-* June 2008: release 2.6 (final).
+* December 2007: release 3.0a2.
+* Early 2007 (pre-PyCon): release 2.6a1.
+* May 2008 (post-PyCon): full feature freeze for 3.0 and 2.6.
+* July 2008: release 2.6 (final).
* August 2008: release 3.0 (final).
See PEP 361 for more details on the Python 2.6 release schedule.
From python-checkins at python.org Thu Dec 6 22:13:07 2007
From: python-checkins at python.org (christian.heimes)
Date: Thu, 6 Dec 2007 22:13:07 +0100 (CET)
Subject: [Python-checkins] r59399 - in python/trunk: PC/pyconfig.h
PCbuild9/build_tkinter.py PCbuild9/make_buildinfo.c
PCbuild9/pyproject.vsprops PCbuild9/readme.txt
Message-ID: <20071206211307.6AD381E4017@bag.python.org>
Author: christian.heimes
Date: Thu Dec 6 22:13:06 2007
New Revision: 59399
Modified:
python/trunk/PC/pyconfig.h
python/trunk/PCbuild9/build_tkinter.py
python/trunk/PCbuild9/make_buildinfo.c
python/trunk/PCbuild9/pyproject.vsprops
python/trunk/PCbuild9/readme.txt
Log:
Several Windows related cleanups:
* Removed a #define from pyconfig.h. The macro was already defined a few lines higher.
* Fixed path to tix in the build_tkinter.py script
* Changed make_buildinfo.c to use versions of unlink and strcat which are considered safe by Windows (as suggested by MvL).
* Removed two defines from pyproject.vsprops that are no longer required. Both are defined in pyconfig.h and make_buildinfo.c doesn't use the unsafe versions any more (as suggested by MvL).
* Added some more information about PGO and the property files to PCbuild9/readme.txt.
Are you fine with the changes, Martin?
Modified: python/trunk/PC/pyconfig.h
==============================================================================
--- python/trunk/PC/pyconfig.h (original)
+++ python/trunk/PC/pyconfig.h Thu Dec 6 22:13:06 2007
@@ -209,12 +209,6 @@
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
#define Py_IS_FINITE(X) _finite(X)
-/* Turn off warnings about deprecated C runtime functions in
- VisualStudio .NET 2005 */
-#if _MSC_VER >= 1400 && !defined _CRT_SECURE_NO_DEPRECATE
-#define _CRT_SECURE_NO_DEPRECATE
-#endif
-
#endif /* _MSC_VER */
/* define some ANSI types that are not defined in earlier Win headers */
Modified: python/trunk/PCbuild9/build_tkinter.py
==============================================================================
--- python/trunk/PCbuild9/build_tkinter.py (original)
+++ python/trunk/PCbuild9/build_tkinter.py Thu Dec 6 22:13:06 2007
@@ -14,7 +14,7 @@
TCL = "tcl8.4.16"
TK = "tk8.4.16"
-TIX = "Tix8.4.0"
+TIX = "tix-8.4.0"
#TIX = "Tix8.4.2"
ROOT = os.path.abspath(os.path.join(here, par, par))
NMAKE = "nmake /nologo "
@@ -53,6 +53,7 @@
# TIX
if True:
+ # python9.mak is available at http://svn.python.org
os.chdir(os.path.join(ROOT, TIX, "win"))
if clean:
system(NMAKE + "/f python9.mak clean")
Modified: python/trunk/PCbuild9/make_buildinfo.c
==============================================================================
--- python/trunk/PCbuild9/make_buildinfo.c (original)
+++ python/trunk/PCbuild9/make_buildinfo.c Thu Dec 6 22:13:06 2007
@@ -3,6 +3,8 @@
#include
#include
+#define CMD_SIZE 500
+
/* This file creates the getbuildinfo.o object, by first
invoking subwcrev.exe (if found), and then invoking cl.exe.
As a side effect, it might generate PCBuild\getbuildinfo2.c
@@ -23,7 +25,7 @@
{
struct _stat st;
HKEY hTortoise;
- char command[500];
+ char command[CMD_SIZE+1];
DWORD type, size;
if (_stat(".svn", &st) < 0)
return 0;
@@ -40,11 +42,11 @@
type != REG_SZ)
/* Registry corrupted */
return 0;
- strcat(command, "bin\\subwcrev.exe");
+ strcat_s(command, CMD_SIZE, "bin\\subwcrev.exe");
if (_stat(command+1, &st) < 0)
/* subwcrev.exe not part of the release */
return 0;
- strcat(command, "\" .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");
+ strcat_s(command, CMD_SIZE, "\" .. ..\\Modules\\getbuildinfo.c getbuildinfo2.c");
puts(command); fflush(stdout);
if (system(command) < 0)
return 0;
@@ -60,17 +62,17 @@
return EXIT_FAILURE;
}
if (strcmp(argv[1], "Release") == 0) {
- strcat(command, "-MD ");
+ strcat_s(command, CMD_SIZE, "-MD ");
}
else if (strcmp(argv[1], "Debug") == 0) {
- strcat(command, "-D_DEBUG -MDd ");
+ strcat_s(command, CMD_SIZE, "-D_DEBUG -MDd ");
}
else if (strcmp(argv[1], "ReleaseItanium") == 0) {
- strcat(command, "-MD /USECL:MS_ITANIUM ");
+ strcat_s(command, CMD_SIZE, "-MD /USECL:MS_ITANIUM ");
}
else if (strcmp(argv[1], "ReleaseAMD64") == 0) {
- strcat(command, "-MD ");
- strcat(command, "-MD /USECL:MS_OPTERON ");
+ strcat_s(command, CMD_SIZE, "-MD ");
+ strcat_s(command, CMD_SIZE, "-MD /USECL:MS_OPTERON ");
}
else {
fprintf(stderr, "unsupported configuration %s\n", argv[1]);
@@ -78,14 +80,14 @@
}
if ((do_unlink = make_buildinfo2()))
- strcat(command, "getbuildinfo2.c -DSUBWCREV ");
+ strcat_s(command, CMD_SIZE, "getbuildinfo2.c -DSUBWCREV ");
else
- strcat(command, "..\\Modules\\getbuildinfo.c");
- strcat(command, " -Fogetbuildinfo.o -I..\\Include -I..\\PC");
+ strcat_s(command, CMD_SIZE, "..\\Modules\\getbuildinfo.c");
+ strcat_s(command, CMD_SIZE, " -Fogetbuildinfo.o -I..\\Include -I..\\PC");
puts(command); fflush(stdout);
result = system(command);
if (do_unlink)
- unlink("getbuildinfo2.c");
+ _unlink("getbuildinfo2.c");
if (result < 0)
return EXIT_FAILURE;
return 0;
Modified: python/trunk/PCbuild9/pyproject.vsprops
==============================================================================
--- python/trunk/PCbuild9/pyproject.vsprops (original)
+++ python/trunk/PCbuild9/pyproject.vsprops Thu Dec 6 22:13:06 2007
@@ -12,7 +12,7 @@
InlineFunctionExpansion="1"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\Include; ..\PC"
- PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WIN32"
+ PreprocessorDefinitions="_WIN32"
StringPooling="true"
ExceptionHandling="0"
RuntimeLibrary="0"
Modified: python/trunk/PCbuild9/readme.txt
==============================================================================
--- python/trunk/PCbuild9/readme.txt (original)
+++ python/trunk/PCbuild9/readme.txt Thu Dec 6 22:13:06 2007
@@ -281,6 +281,14 @@
Profile Guided Optimization
---------------------------
+The solution has two configurations for PGO. The PGInstrument configuration
+must be build first. The PGInstrument binaries are lniked against a profiling
+library and contain extra debug information. The PGUpdate configuration takes the profiling data and generates optimized binaries.
+
+The build_pgo.bat script automates the creation of optimized binaries. It
+creates the PGI files, runs the unit test suite or PyBench with the PGI
+python and finally creates the optimized files.
+
http://msdn2.microsoft.com/en-us/library/e7k32f4k(VS.90).aspx
Static library
@@ -300,7 +308,7 @@
(*.vsprops). The properties can be viewed and altered in the Property
Manager (View -> Other Windows -> Property Manager).
- * debug (debug macros)
+ * debug (debug macro: _DEBUG)
* pginstrument (PGO)
* pgupdate (PGO)
+-- pginstrument
@@ -310,8 +318,8 @@
* pyd_d (python extension, debug build)
+-- debug
+-- pyproject
- * pyproject (base settings for all projects)
- * release (release macros)
+ * pyproject (base settings for all projects, user macros like PyDllName)
+ * release (release macro: NDEBUG)
* x64 (AMD64 / x64 platform specific settings)
The pyproject propertyfile defines _WIN32 and x64 defines _WIN64 and _M_X64
@@ -320,6 +328,7 @@
YOUR OWN EXTENSION DLLs
-----------------------
+
If you want to create your own extension module DLL, there's an example
with easy-to-follow instructions in ../PC/example/; read the file
readme.txt there first.
From lists at cheimes.de Thu Dec 6 22:22:28 2007
From: lists at cheimes.de (Christian Heimes)
Date: Thu, 06 Dec 2007 22:22:28 +0100
Subject: [Python-checkins] r59387 -
python/trunk/PCbuild9/pyproject.vsprops
In-Reply-To: <47584FBA.8070103@v.loewis.de>
References: <20071206133011.7E8B91E4005@bag.python.org>
<4758428F.8010706@v.loewis.de> <47584B4C.4030500@cheimes.de>
<47584FBA.8070103@v.loewis.de>
Message-ID: <47586814.400@cheimes.de>
Martin v. L?wis wrote:
> Ok. As make_buildinfo is windows-specific, it would be best to follow
> the Microsoft-recommended solution to the problem (which I think is to
> call _unlink). IIUC, they don't complain that it is insecure, but that
> it is non-standard.
I've changed the file as you suggested. It's now using _unlink() instead
of unlink() and strcat_s() instead of strcat().
> I do. Anything defined in the project files is both hidden and
> undocumented. It's hidden because you can't clearly see what gets
> defined by just reading the source, and applying your platform
> knowledge, and it's undocumented because these project files don't allow
> for documentation of the various configuration options.
I understand your concern and I'm starting to agree with your point of
view. I've removed _CRT_SECURE_NO_DEPRECATE and
_CRT_NONSTDC_NO_DEPRECATE from pyproject.vsprops. I've also added some
more information about the property files to readme.txt.
I hope you don't mind that the property files are defining _WIN32 plus
_WIN64 and _M_X64 for x64 builds. I've explained my motivation in
readme.txt and the checkin message of r59375:
The macros _WIN32, _WIN64 and _M_X64 are defined by the compiler. The VS
2008 IDE doesn't know about (some) of the macros and can display wrong
information. In my case a section #ifdef _WIN64 was grayed out although
the platform was x64. I've added the macros to pyproject.vsprops and
x64.vsprops.
Christian
From buildbot at python.org Thu Dec 6 22:53:58 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 21:53:58 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-3 trunk
Message-ID: <20071206215358.8E5491E4017@bag.python.org>
The Buildbot has detected a new failure of x86 XP-3 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-3%20trunk/builds/470
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_urllib2 test_urllib2net
======================================================================
ERROR: test_trivial (test.test_urllib2.TrivialTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2.py", line 19, in test_trivial
self.assertRaises(ValueError, urllib2.urlopen, 'bogus url')
File "C:\buildbot\work\trunk.heller-windows\build\lib\unittest.py", line 329, in failUnlessRaises
callableObj(*args, **kwargs)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_file (test.test_urllib2.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2.py", line 625, in test_file
r.close()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 925, in close
if self.fp: self.fp.close()
AttributeError: addinfourl instance has no attribute 'fp'
======================================================================
ERROR: test_http (test.test_urllib2.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2.py", line 725, in test_http
r.read; r.readline # wrapped MockFile methods
AttributeError: addinfourl instance has no attribute 'read'
======================================================================
ERROR: test_build_opener (test.test_urllib2.MiscTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2.py", line 1031, in test_build_opener
o = build_opener(FooHandler, BarHandler)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: testURLread (test.test_urllib2net.URLTimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 24, in testURLread
f = urllib2.urlopen("http://www.python.org/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_bad_address (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 147, in test_bad_address
urllib2.urlopen, "http://www.python.invalid./")
File "C:\buildbot\work\trunk.heller-windows\build\lib\unittest.py", line 329, in failUnlessRaises
callableObj(*args, **kwargs)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_basic (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 105, in test_basic
open_url = urllib2.urlopen("http://www.python.org/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_geturl (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 129, in test_geturl
open_url = urllib2.urlopen(URL)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_info (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 116, in test_info
open_url = urllib2.urlopen("http://www.python.org/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_file (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 187, in test_file
self._test_urls(urls, self._extra_handlers())
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 235, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 175, in test_ftp
self._test_urls(urls, self._extra_handlers())
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 235, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_http (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 199, in test_http
self._test_urls(urls, self._extra_handlers())
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 235, in _test_urls
urllib2.install_opener(urllib2.build_opener(*handlers))
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_range (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 160, in test_range
result = urllib2.urlopen(req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_close (test.test_urllib2net.CloseSocketTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 76, in test_close
response = urllib2.urlopen("http://www.python.org/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_ftp_NoneNodefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 304, in test_ftp_NoneNodefault
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=None)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_ftp_NoneWithdefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 298, in test_ftp_NoneWithdefault
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=None)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_ftp_Value (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 308, in test_ftp_Value
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=60)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_ftp_basic (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 291, in test_ftp_basic
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_http_NoneNodefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 287, in test_http_NoneNodefault
u = urllib2.urlopen("http://www.python.org", timeout=None)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_http_NoneWithdefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 277, in test_http_NoneWithdefault
u = urllib2.urlopen("http://www.python.org", timeout=None)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_http_Value (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 283, in test_http_Value
u = urllib2.urlopen("http://www.python.org", timeout=120)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
======================================================================
ERROR: test_http_basic (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 270, in test_http_basic
u = urllib2.urlopen("http://www.python.org")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 123, in urlopen
_opener = build_opener()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 461, in build_opener
opener.add_handler(klass())
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 670, in __init__
proxies = getproxies()
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib.py", line 1376, in getproxies
return getproxies_environment() or getproxies_registry()
TypeError: 'NoneType' object is not callable
sincerely,
-The Buildbot
From martin at v.loewis.de Thu Dec 6 23:08:04 2007
From: martin at v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=)
Date: Thu, 06 Dec 2007 23:08:04 +0100
Subject: [Python-checkins] r59399 - in python/trunk:
PC/pyconfig.h PCbuild9/build_tkinter.py
PCbuild9/make_buildinfo.c PCbuild9/pyproject.vsprops PCbuild9/readme.txt
In-Reply-To: <20071206211307.6AD381E4017@bag.python.org>
References: <20071206211307.6AD381E4017@bag.python.org>
Message-ID: <475872C4.6010202@v.loewis.de>
> Are you fine with the changes, Martin?
Looks all fine. However, I just noticed that /USECL: flags are still
in the projects. This is an vsextcomp invention, and has no use for
VS 2008 (and vsextcomp has no use for that environment anymore, either).
So these flags can all be dropped. Also, make_buildinfo.c still tests
for the ReleaseAMD64/ReleaseItanium configurations, which can get
dropped. What's the value of $(ConfigurationName)? Is it still
Debug/Release, or does it include the platform?
Regards,
Martin
From martin at v.loewis.de Thu Dec 6 23:14:14 2007
From: martin at v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=)
Date: Thu, 06 Dec 2007 23:14:14 +0100
Subject: [Python-checkins] r59387 -
python/trunk/PCbuild9/pyproject.vsprops
In-Reply-To: <47586814.400@cheimes.de>
References: <20071206133011.7E8B91E4005@bag.python.org>
<4758428F.8010706@v.loewis.de> <47584B4C.4030500@cheimes.de>
<47584FBA.8070103@v.loewis.de> <47586814.400@cheimes.de>
Message-ID: <47587436.2000103@v.loewis.de>
> I hope you don't mind that the property files are defining _WIN32 plus
> _WIN64 and _M_X64 for x64 builds. I've explained my motivation in
> readme.txt and the checkin message of r59375:
I'll have to look at this myself (does it really change the graying-out
when you change the target platform, or the configuration?) But assuming
that's really how VS works - then it's a reasonable work-around. I'd
consider it a bug that VS knows what the target platform is, but fails
to consider that the set of compiler predefs may change with the
platform.
Regards,
Martin
From buildbot at python.org Thu Dec 6 23:37:58 2007
From: buildbot at python.org (buildbot at python.org)
Date: Thu, 06 Dec 2007 22:37:58 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071206223758.DC0861E402E@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/360
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From lists at cheimes.de Thu Dec 6 23:45:49 2007
From: lists at cheimes.de (Christian Heimes)
Date: Thu, 06 Dec 2007 23:45:49 +0100
Subject: [Python-checkins] r59387 -
python/trunk/PCbuild9/pyproject.vsprops
In-Reply-To: <47587436.2000103@v.loewis.de>
References: <20071206133011.7E8B91E4005@bag.python.org>
<4758428F.8010706@v.loewis.de> <47584B4C.4030500@cheimes.de>
<47584FBA.8070103@v.loewis.de> <47586814.400@cheimes.de>
<47587436.2000103@v.loewis.de>
Message-ID: <47587B9D.2030608@cheimes.de>
Martin v. L?wis wrote:
> I'll have to look at this myself (does it really change the graying-out
> when you change the target platform, or the configuration?) But assuming
> that's really how VS works - then it's a reasonable work-around. I'd
> consider it a bug that VS knows what the target platform is, but fails
> to consider that the set of compiler predefs may change with the
> platform.
It now does change the graying out after Intellisense has finished its
run. It takes about half a minute on my machine.
I agree with you. I view it as a bug in VS, too - and it's confusing.
Christian
From python-checkins at python.org Fri Dec 7 02:53:01 2007
From: python-checkins at python.org (raymond.hettinger)
Date: Fri, 7 Dec 2007 02:53:01 +0100 (CET)
Subject: [Python-checkins] r59400 - python/trunk/Doc/library/objects.rst
Message-ID: <20071207015301.939821E4006@bag.python.org>
Author: raymond.hettinger
Date: Fri Dec 7 02:53:01 2007
New Revision: 59400
Modified:
python/trunk/Doc/library/objects.rst
Log:
Don't have the docs berate themselves. Keep a professional tone.
If a todo is needed, put it in the tracker.
Modified: python/trunk/Doc/library/objects.rst
==============================================================================
--- python/trunk/Doc/library/objects.rst (original)
+++ python/trunk/Doc/library/objects.rst Fri Dec 7 02:53:01 2007
@@ -25,8 +25,3 @@
have no real choice.) See :ref:`operator-summary` for the complete picture on
operator priorities.
-.. rubric:: Footnotes
-
-.. [#] Most descriptions sorely lack explanations of the exceptions that may be raised
- --- this will be fixed in a future version of this manual.
-
From python-checkins at python.org Fri Dec 7 10:07:11 2007
From: python-checkins at python.org (georg.brandl)
Date: Fri, 7 Dec 2007 10:07:11 +0100 (CET)
Subject: [Python-checkins] r59402 - in python/trunk: Lib/test/test_xmlrpc.py
Misc/ACKS
Message-ID: <20071207090711.8E1451E4026@bag.python.org>
Author: georg.brandl
Date: Fri Dec 7 10:07:10 2007
New Revision: 59402
Modified:
python/trunk/Lib/test/test_xmlrpc.py
python/trunk/Misc/ACKS
Log:
Increase unit test coverage of SimpleXMLRPCServer.
Written for GHOP by Turkay Eren.
Modified: python/trunk/Lib/test/test_xmlrpc.py
==============================================================================
--- python/trunk/Lib/test/test_xmlrpc.py (original)
+++ python/trunk/Lib/test/test_xmlrpc.py Fri Dec 7 10:07:10 2007
@@ -7,6 +7,9 @@
import SimpleXMLRPCServer
import threading
import mimetools
+import httplib
+import socket
+import os
from test import test_support
try:
@@ -296,9 +299,16 @@
def http_server(evt, numrequests):
class TestInstanceClass:
def div(self, x, y):
- '''This is the div function'''
return x // y
+ def _methodHelp(self, name):
+ if name == 'div':
+ return 'This is the div function'
+
+ def my_function():
+ '''This is my function'''
+ return True
+
try:
serv = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 0),
logRequests=False, bind_and_activate=False)
@@ -311,6 +321,7 @@
serv.register_multicall_functions()
serv.register_function(pow)
serv.register_function(lambda x,y: x+y, 'add')
+ serv.register_function(my_function)
serv.register_instance(TestInstanceClass())
# handle up to 'numrequests' requests
@@ -325,7 +336,6 @@
PORT = None
evt.set()
-
def is_unavailable_exception(e):
'''Returns True if the given ProtocolError is the product of a server-side
exception caused by the 'temporarily unavailable' response sometimes
@@ -382,12 +392,24 @@
# protocol error; provide additional information in test output
self.fail("%s\n%s" % (e, e.headers))
+ def test_404(self):
+ # send POST with httplib, it should return 404 header and
+ # 'Not Found' message.
+ conn = httplib.HTTPConnection('localhost', PORT)
+ conn.request('POST', '/this-is-not-valid')
+ response = conn.getresponse()
+ conn.close()
+
+ self.assertEqual(response.status, 404)
+ self.assertEqual(response.reason, 'Not Found')
+
def test_introspection1(self):
try:
p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT)
meth = p.system.listMethods()
- expected_methods = set(['pow', 'div', 'add', 'system.listMethods',
- 'system.methodHelp', 'system.methodSignature', 'system.multicall'])
+ expected_methods = set(['pow', 'div', 'my_function', 'add',
+ 'system.listMethods', 'system.methodHelp',
+ 'system.methodSignature', 'system.multicall'])
self.assertEqual(set(meth), expected_methods)
except xmlrpclib.ProtocolError, e:
# ignore failures due to non-blocking socket 'unavailable' errors
@@ -397,6 +419,7 @@
def test_introspection2(self):
try:
+ # test _methodHelp()
p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT)
divhelp = p.system.methodHelp('div')
self.assertEqual(divhelp, 'This is the div function')
@@ -407,6 +430,18 @@
self.fail("%s\n%s" % (e, e.headers))
def test_introspection3(self):
+ try:
+ # test native doc
+ p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT)
+ myfunction = p.system.methodHelp('my_function')
+ self.assertEqual(myfunction, 'This is my function')
+ except xmlrpclib.ProtocolError, e:
+ # ignore failures due to non-blocking socket 'unavailable' errors
+ if not is_unavailable_exception(e):
+ # protocol error; provide additional information in test output
+ self.fail("%s\n%s" % (e, e.headers))
+
+ def test_introspection4(self):
# the SimpleXMLRPCServer doesn't support signatures, but
# at least check that we can try making the call
try:
@@ -436,6 +471,34 @@
# protocol error; provide additional information in test output
self.fail("%s\n%s" % (e, e.headers))
+ def test_non_existing_multicall(self):
+ try:
+ p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT)
+ multicall = xmlrpclib.MultiCall(p)
+ multicall.this_is_not_exists()
+ result = multicall()
+
+ # result.results contains;
+ # [{'faultCode': 1, 'faultString': ':'
+ # 'method "this_is_not_exists" is not supported'>}]
+
+ self.assertEqual(result.results[0]['faultCode'], 1)
+ self.assertEqual(result.results[0]['faultString'],
+ ':method "this_is_not_exists" '
+ 'is not supported')
+ except xmlrpclib.ProtocolError, e:
+ # ignore failures due to non-blocking socket 'unavailable' errors
+ if not is_unavailable_exception(e):
+ # protocol error; provide additional information in test output
+ self.fail("%s\n%s" % (e, e.headers))
+
+ def test_dotted_attribute(self):
+ # this will raise AttirebuteError because code don't want us to use
+ # private methods
+ self.assertRaises(AttributeError,
+ SimpleXMLRPCServer.resolve_dotted_attribute, str, '__add')
+
+ self.assert_(SimpleXMLRPCServer.resolve_dotted_attribute(str, 'title'))
# This is a contrived way to make a failure occur on the server side
# in order to test the _send_traceback_header flag on the server
@@ -525,6 +588,70 @@
else:
self.fail('ProtocolError not raised')
+class CGIHandlerTestCase(unittest.TestCase):
+ def setUp(self):
+ self.cgi = SimpleXMLRPCServer.CGIXMLRPCRequestHandler()
+
+ def tearDown(self):
+ self.cgi = None
+
+ def test_cgi_get(self):
+ os.environ['REQUEST_METHOD'] = 'GET'
+ # if the method is GET and no request_text is given, it runs handle_get
+ # get sysout output
+ tmp = sys.stdout
+ sys.stdout = open(test_support.TESTFN, "w")
+ self.cgi.handle_request()
+ sys.stdout.close()
+ sys.stdout = tmp
+
+ # parse Status header
+ handle = open(test_support.TESTFN, "r").read()
+ status = handle.split()[1]
+ message = ' '.join(handle.split()[2:4])
+
+ self.assertEqual(status, '400')
+ self.assertEqual(message, 'Bad Request')
+
+ os.remove(test_support.TESTFN)
+ os.environ['REQUEST_METHOD'] = ''
+
+ def test_cgi_xmlrpc_response(self):
+ data = """
+
+ test_method
+
+
+ foo
+
+
+ bar
+
+
+
+"""
+ open("xmldata.txt", "w").write(data)
+ tmp1 = sys.stdin
+ tmp2 = sys.stdout
+
+ sys.stdin = open("xmldata.txt", "r")
+ sys.stdout = open(test_support.TESTFN, "w")
+
+ self.cgi.handle_request()
+
+ sys.stdin.close()
+ sys.stdout.close()
+ sys.stdin = tmp1
+ sys.stdout = tmp2
+
+ # will respond exception, if so, our goal is achieved ;)
+ handle = open(test_support.TESTFN, "r").read()
+
+ # start with 44th char so as not to get http header, we just need only xml
+ self.assertRaises(xmlrpclib.Fault, xmlrpclib.loads, handle[44:])
+
+ os.remove("xmldata.txt")
+ os.remove(test_support.TESTFN)
def test_main():
xmlrpc_tests = [XMLRPCTestCase, HelperTestCase, DateTimeTestCase,
@@ -537,6 +664,7 @@
if sys.platform != 'win32':
xmlrpc_tests.append(SimpleServerTestCase)
xmlrpc_tests.append(FailingServerTestCase)
+ xmlrpc_tests.append(CGIHandlerTestCase)
test_support.run_unittest(*xmlrpc_tests)
Modified: python/trunk/Misc/ACKS
==============================================================================
--- python/trunk/Misc/ACKS (original)
+++ python/trunk/Misc/ACKS Fri Dec 7 10:07:10 2007
@@ -189,6 +189,7 @@
Jeff Epler
Tom Epperly
Stoffel Erasmus
+Turkay Eren
J?rgen A. Erhard
Michael Ernst
Ben Escoto
From nnorwitz at gmail.com Fri Dec 7 10:16:05 2007
From: nnorwitz at gmail.com (Neal Norwitz)
Date: Fri, 7 Dec 2007 04:16:05 -0500
Subject: [Python-checkins] Python Regression Test Failures opt (1)
Message-ID: <20071207091605.GA2007@python.psfb.org>
test_grammar
test_opcodes
test_dict
test_builtin
test_exceptions
test_types
test_unittest
test_doctest
test_doctest2
test_MimeWriter
test_StringIO
test___all__
test___future__
test__locale
test_abc
test_aepack
test_aepack skipped -- No module named aepack
test_al
test_al skipped -- No module named al
test_anydbm
test_applesingle
test_applesingle skipped -- No module named macostools
test_array
test_ast
test_asynchat
test_asyncore
test_atexit
test_audioop
test_augassign
test_base64
test_bastion
test_bigaddrspace
test_bigmem
test_binascii
test_binhex
test_binop
test_bisect
test_bool
test_bsddb
test_bsddb185
test_bsddb185 skipped -- No module named bsddb185
test_bsddb3
test_bsddb3 skipped -- Use of the `bsddb' resource not enabled
test_buffer
test_bufio
test_bz2
test_cProfile
test_calendar
test_call
test_capi
test_cd
test_cd skipped -- No module named cd
test_cfgparser
test_cgi
test_charmapcodec
test_cl
test_cl skipped -- No module named cl
test_class
test_cmath
test_cmd
test_cmd_line
test_cmd_line_script
test_code
test_codeccallbacks
test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecmaps_cn
test_codecmaps_cn skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_hk
test_codecmaps_hk skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_jp
test_codecmaps_jp skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_kr
test_codecmaps_kr skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_tw
test_codecmaps_tw skipped -- Use of the `urlfetch' resource not enabled
test_codecs
test_codeop
test_coding
test_coercion
test_collections
test_colorsys
test_commands
test_compare
test_compile
test_compiler
test_complex
test_complex_args
test_contains
test_contextlib
test_cookie
test_cookielib
test_copy
test_copy_reg
test_cpickle
test_crypt
test_csv
test_ctypes
test_curses
test_curses skipped -- Use of the `curses' resource not enabled
test_datetime
test_dbm
test_decimal
test_decorators
test_defaultdict
test_deque
test_descr
test_descrtut
test_difflib
test_dircache
test_dis
test_distutils
[9139 refs]
test_dl
test_dumbdbm
test_dummy_thread
test_dummy_threading
test_email
test_email_codecs
test_email_renamed
test_enumerate
test_eof
test_errno
test_exception_variations
test_extcall
test_fcntl
test_file
test_filecmp
test_fileinput
test_float
test_fnmatch
test_fork1
test_format
test_fpformat
test_frozen
test_ftplib
test_funcattrs
test_functools
test_future
test_gc
test_gdbm
test_generators
test_genericpath
test_genexps
test_getargs
test_getargs2
test_getopt
test_gettext
test_gl
test_gl skipped -- No module named gl
test_glob
test_global
test_grp
test_gzip
test_hash
test_hashlib
test_heapq
test_hexoct
test_hmac
test_hotshot
test_htmllib
test_htmlparser
test_httplib
test_imageop
test_imageop skipped -- No module named imgfile
test_imaplib
test_imgfile
test_imgfile skipped -- No module named imgfile
test_imp
test_import
test_importhooks
test_index
test_inspect
test_ioctl
test_ioctl skipped -- Unable to open /dev/tty
test_isinstance
test_iter
test_iterlen
test_itertools
test_largefile
test_linuxaudiodev
test_linuxaudiodev skipped -- Use of the `audio' resource not enabled
test_list
test_locale
test_logging
test_long
test_long_future
test_longexp
test_macostools
test_macostools skipped -- No module named macostools
test_macpath
test_mailbox
test_marshal
test_math
test_md5
test_mhlib
test_mimetools
test_mimetypes
test_minidom
test_mmap
test_module
test_modulefinder
test_multibytecodec
test_multibytecodec_support
test_multifile
test_mutants
test_netrc
test_new
test_nis
test_normalization
test_normalization skipped -- Use of the `urlfetch' resource not enabled
test_ntpath
test_old_mailbox
test_openpty
test_operator
test_optparse
test_os
test_ossaudiodev
test_ossaudiodev skipped -- Use of the `audio' resource not enabled
test_parser
test_peepholer
test_pep247
test_pep263
test_pep277
test_pep277 skipped -- test works only on NT+
test_pep292
test_pep352
test_pickle
test_pickletools
test_pipes
test_pkg
test_pkgimport
test_platform
test_plistlib
test_plistlib skipped -- No module named plistlib
test_poll
test_popen
[7385 refs]
[7385 refs]
[7385 refs]
test_popen2
test_poplib
test_posix
test_posixpath
test_pow
test_pprint
test_profile
test_profilehooks
test_pty
test_pwd
test_pyclbr
test_pyexpat
test_queue
test_quopri
[7764 refs]
[7764 refs]
test_random
test_re
test_repr
test_resource
test_rfc822
test_richcmp
test_robotparser
test_runpy
test_sax
test_scope
test_scriptpackages
test_scriptpackages skipped -- No module named aetools
test_select
test_set
test_sets
test_sgmllib
test_sha
test_shelve
test_shlex
test_shutil
test_signal
test_site
test_slice
test_smtplib
test_socket
test_socket_ssl
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:94: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ssl_sock = socket.ssl(s)
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:130: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ss = socket.ssl(s)
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:144: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
ss = socket.ssl(s)
test_socketserver
test_socketserver skipped -- Use of the `network' resource not enabled
test_softspace
test_sort
test_sqlite
test_ssl
test_startfile
test_startfile skipped -- cannot import name startfile
test_str
test_strftime
test_string
test_stringprep
test_strop
test_strptime
test_struct
test_structmembers
test_structseq
test_subprocess
[7380 refs]
[7381 refs]
[7380 refs]
[7380 refs]
[7380 refs]
[7380 refs]
[7380 refs]
[7380 refs]
[7380 refs]
[7380 refs]
[7381 refs]
[8998 refs]
[7598 refs]
[7381 refs]
[7380 refs]
[7380 refs]
[7380 refs]
[7380 refs]
[7380 refs]
.
[7380 refs]
[7380 refs]
this bit of output is from a test of stdout in a different process ...
[7380 refs]
[7380 refs]
[7598 refs]
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_sundry
test_symtable
test_syntax
test_sys
[7380 refs]
[7380 refs]
test_tarfile
test_tcl
test_tcl skipped -- No module named _tkinter
test_telnetlib
test test_telnetlib failed -- errors occurred; run in verbose mode for details
test_tempfile
[7384 refs]
test_textwrap
test_thread
test_threaded_import
test_threadedtempfile
test_threading
[10482 refs]
test_threading_local
test_threadsignals
test_time
test_timeout
test_timeout skipped -- Use of the `network' resource not enabled
test_tokenize
test_trace
test_traceback
test_transformer
test_tuple
test_typechecks
test_ucn
test_unary
test_unicode
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_unicodedata
test_univnewlines
test_unpack
test_urllib
test_urllib2
test_urllib2_localnet
test_urllib2net
test_urllib2net skipped -- Use of the `network' resource not enabled
test_urllibnet
test_urllibnet skipped -- Use of the `network' resource not enabled
test_urlparse
test_userdict
test_userlist
test_userstring
test_uu
test_uuid
WARNING: uuid.getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
WARNING: uuid._unixdll_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly.
test_wait3
test_wait4
test_warnings
test_wave
test_weakref
test_whichdb
test_winreg
test_winreg skipped -- No module named _winreg
test_winsound
test_winsound skipped -- No module named winsound
test_with
test_wsgiref
test_xdrlib
test_xml_etree
test_xml_etree_c
test_xmllib
test_xmlrpc
test_xpickle
test_xrange
test_zipfile
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_zipimport
test_zlib
298 tests OK.
1 test failed:
test_telnetlib
35 tests skipped:
test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
test_cd test_cl test_codecmaps_cn test_codecmaps_hk
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
test_gl test_imageop test_imgfile test_ioctl test_linuxaudiodev
test_macostools test_normalization test_ossaudiodev test_pep277
test_plistlib test_scriptpackages test_socketserver test_startfile
test_sunaudiodev test_tcl test_timeout test_unicode_file
test_urllib2net test_urllibnet test_winreg test_winsound
test_zipfile64
1 skip unexpected on linux2:
test_ioctl
[519269 refs]
From python-checkins at python.org Fri Dec 7 12:11:14 2007
From: python-checkins at python.org (fred.drake)
Date: Fri, 7 Dec 2007 12:11:14 +0100 (CET)
Subject: [Python-checkins] r59404 - peps/trunk/pep-3108.txt
Message-ID: <20071207111114.D9D751E402B@bag.python.org>
Author: fred.drake
Date: Fri Dec 7 12:11:14 2007
New Revision: 59404
Modified:
peps/trunk/pep-3108.txt
Log:
note that markupbase renaming is done
Modified: peps/trunk/pep-3108.txt
==============================================================================
--- peps/trunk/pep-3108.txt (original)
+++ peps/trunk/pep-3108.txt Fri Dec 7 12:11:14 2007
@@ -445,7 +445,7 @@
Current Name Replacement Name
============ ===============================
bdb _bdb
-markupbase _markupbase
+markupbase _markupbase [done]
opcode _opcode
dummy_thread _dummy_thread (assuming thread
is deprecated)
From buildbot at python.org Fri Dec 7 13:02:54 2007
From: buildbot at python.org (buildbot at python.org)
Date: Fri, 07 Dec 2007 12:02:54 +0000
Subject: [Python-checkins] buildbot failure in x86 FreeBSD trunk
Message-ID: <20071207120254.71AB41E400C@bag.python.org>
The Buildbot has detected a new failure of x86 FreeBSD trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%20trunk/builds/248
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-freebsd
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: georg.brandl,raymond.hettinger
BUILD FAILED: failed test
Excerpt from the test logfile:
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 222, in handle_request
self.process_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 241, in process_request
self.finish_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 523, in __init__
self.handle()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 299, in handle_one_request
self.raw_requestline = self.rfile.readline()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/socket.py", line 366, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 35] Resource temporarily unavailable
1 test failed:
test_threading
sincerely,
-The Buildbot
From buildbot at python.org Fri Dec 7 14:26:28 2007
From: buildbot at python.org (buildbot at python.org)
Date: Fri, 07 Dec 2007 13:26:28 +0000
Subject: [Python-checkins] buildbot failure in x86 FreeBSD 3.0
Message-ID: <20071207132628.9A20F1E402B@bag.python.org>
The Buildbot has detected a new failure of x86 FreeBSD 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%203.0/builds/299
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-freebsd
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: fred.drake,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_asynchat
======================================================================
FAIL: test_close_when_done (test.test_asynchat.TestAsynchat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/3.0.bolen-freebsd/build/Lib/test/test_asynchat.py", line 211, in test_close_when_done
self.assertTrue(len(s.buffer) > 0)
AssertionError: None
======================================================================
FAIL: test_close_when_done (test.test_asynchat.TestAsynchat_WithPoll)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/3.0.bolen-freebsd/build/Lib/test/test_asynchat.py", line 211, in test_close_when_done
self.assertTrue(len(s.buffer) > 0)
AssertionError: None
sincerely,
-The Buildbot
From python-checkins at python.org Fri Dec 7 16:16:57 2007
From: python-checkins at python.org (georg.brandl)
Date: Fri, 7 Dec 2007 16:16:57 +0100 (CET)
Subject: [Python-checkins] r59406 - python/trunk/Doc/using/windows.rst
Message-ID: <20071207151657.C64801E402E@bag.python.org>
Author: georg.brandl
Date: Fri Dec 7 16:16:57 2007
New Revision: 59406
Modified:
python/trunk/Doc/using/windows.rst
Log:
Update to windows doc from Robert.
Modified: python/trunk/Doc/using/windows.rst
==============================================================================
--- python/trunk/Doc/using/windows.rst (original)
+++ python/trunk/Doc/using/windows.rst Fri Dec 7 16:16:57 2007
@@ -73,6 +73,8 @@
Popular modules (such as PyWin32) with their respective documentation, tool
suite for building extensible python applications
+Notice that these packages are likely to install *older* versions of Python.
+
Configuring Python
@@ -85,10 +87,11 @@
Excursus: Setting environment variables
---------------------------------------
-Windows has a built-in dialog for changing environment variables: Right-click
-the icon for your machine (usually located on your Desktop and called "My
-Computer") and choose :menuselection:`Properties` there. Then, open the
-:guilabel:`Advanced` tab and click the :guilabel:`Environment Variables` button.
+Windows has a built-in dialog for changing environment variables (following
+guide applies to XP classical view): Right-click the icon for your machine
+(usually located on your Desktop and called "My Computer") and choose
+:menuselection:`Properties` there. Then, open the :guilabel:`Advanced` tab
+and click the :guilabel:`Environment Variables` button.
In short, your path is:
@@ -107,7 +110,8 @@
set PYTHONPATH=%PYTHONPATH%;C:\My_python_lib
To make this setting permanent, you could add the corresponding command line to
-your :file:`autoexec.bat`.
+your :file:`autoexec.bat`. :program:`msconfig` is a graphical interface to this
+file.
Viewing environment variables can also be done more straight-forward: The
command prompt will expand strings wrapped into percent signs automatically::
@@ -124,6 +128,9 @@
http://support.microsoft.com/kb/310519
How To Manage Environment Variables in Windows XP
+ http://www.chem.gla.ac.uk/~louis/software/faq/q1.html
+ Setting Environment variables, Louis J. Farrugia
+
Finding the Python executable
-----------------------------
From python-checkins at python.org Fri Dec 7 20:19:56 2007
From: python-checkins at python.org (armin.rigo)
Date: Fri, 7 Dec 2007 20:19:56 +0100 (CET)
Subject: [Python-checkins] r59407 - python/trunk/Lib/test/test_tempfile.py
Message-ID: <20071207191956.388E21E4014@bag.python.org>
Author: armin.rigo
Date: Fri Dec 7 20:19:55 2007
New Revision: 59407
Modified:
python/trunk/Lib/test/test_tempfile.py
Log:
This is probably what was meant here.
Modified: python/trunk/Lib/test/test_tempfile.py
==============================================================================
--- python/trunk/Lib/test/test_tempfile.py (original)
+++ python/trunk/Lib/test/test_tempfile.py Fri Dec 7 20:19:55 2007
@@ -299,7 +299,7 @@
# On Windows a spawn* /path/ with embedded spaces shouldn't be quoted,
# but an arg with embedded spaces should be decorated with double
# quotes on each end
- if sys.platform in ('win32'):
+ if sys.platform in ('win32',):
decorated = '"%s"' % sys.executable
tester = '"%s"' % tester
else:
From python-checkins at python.org Fri Dec 7 21:27:52 2007
From: python-checkins at python.org (georg.brandl)
Date: Fri, 7 Dec 2007 21:27:52 +0100 (CET)
Subject: [Python-checkins] r59408 - in doctools/trunk: TODO
sphinx/addnodes.py sphinx/builder.py sphinx/directives.py
sphinx/environment.py sphinx/htmlwriter.py
sphinx/latexwriter.py sphinx/util/__init__.py
Message-ID: <20071207202752.F35741E4CC5@bag.python.org>
Author: georg.brandl
Date: Fri Dec 7 21:27:52 2007
New Revision: 59408
Modified:
doctools/trunk/TODO
doctools/trunk/sphinx/addnodes.py
doctools/trunk/sphinx/builder.py
doctools/trunk/sphinx/directives.py
doctools/trunk/sphinx/environment.py
doctools/trunk/sphinx/htmlwriter.py
doctools/trunk/sphinx/latexwriter.py
doctools/trunk/sphinx/util/__init__.py
Log:
- rename webify/unwebify to canonical/os_path
- build all documents correctly, including howtos
- pack ACKS content into an .. acks directive, to
make it possible to render it into a comma-separated
list in latex
Modified: doctools/trunk/TODO
==============================================================================
--- doctools/trunk/TODO (original)
+++ doctools/trunk/TODO Fri Dec 7 21:27:52 2007
@@ -10,6 +10,7 @@
- "seealso" links to external examples, see http://svn.python.org/projects/sandbox/trunk/seealso/ and http://effbot.org/zone/idea-seealso.htm
- write a "printable" builder (export to latex, most probably)
- "often used" combo box in sidebar
+- link to keywords
- source file cross-references?
Web App
Modified: doctools/trunk/sphinx/addnodes.py
==============================================================================
--- doctools/trunk/sphinx/addnodes.py (original)
+++ doctools/trunk/sphinx/addnodes.py Fri Dec 7 21:27:52 2007
@@ -52,6 +52,9 @@
# compact paragraph -- never makes a
class compact_paragraph(nodes.paragraph): pass
+# for the ACKS list
+class acks(nodes.Element): pass
+
# sets the highlighting language for literal blocks
class highlightlang(nodes.Element): pass
@@ -67,4 +70,4 @@
desc_classname desc_name desc_parameterlist desc_parameter desc_optional
centered versionmodified seealso productionlist production toctree
pending_xref compact_paragraph highlightlang literal_emphasis
- glossary""".split())
+ glossary acks""".split())
Modified: doctools/trunk/sphinx/builder.py
==============================================================================
--- doctools/trunk/sphinx/builder.py (original)
+++ doctools/trunk/sphinx/builder.py Fri Dec 7 21:27:52 2007
@@ -26,9 +26,8 @@
from docutils.readers import doctree
from docutils.frontend import OptionParser
-from .util import (get_matching_files, attrdict, status_iterator,
- ensuredir, get_category, relative_uri,
- webify_filepath, unwebify_filepath)
+from .util import (get_matching_files, attrdict, status_iterator, ensuredir,
+ get_category, relative_uri, os_path, SEP)
from .htmlhelp import build_hhx
from .patchlevel import get_version_info, get_sys_version_info
from .htmlwriter import HTMLWriter
@@ -491,12 +490,12 @@
self.srcdir, '*.rst', exclude=set(self.config.get('unused_files', ()))):
try:
targetmtime = path.getmtime(path.join(self.outdir,
- unwebify_filepath(filename)[:-4] + '.html'))
+ os_path(filename)[:-4] + '.html'))
except:
targetmtime = 0
if filename not in self.env.all_files:
yield filename
- elif path.getmtime(path.join(self.srcdir, unwebify_filepath(filename))) > targetmtime:
+ elif path.getmtime(path.join(self.srcdir, os_path(filename))) > targetmtime:
yield filename
@@ -521,7 +520,7 @@
ctx = self.globalcontext.copy()
ctx.update(context)
output = self.templates[templatename].render(ctx)
- outfilename = path.join(self.outdir, unwebify_filepath(filename)[:-4] + '.html')
+ outfilename = path.join(self.outdir, os_path(filename)[:-4] + '.html')
ensuredir(path.dirname(outfilename)) # normally different from self.outdir
try:
with codecs.open(outfilename, 'w', 'utf-8') as fp:
@@ -530,8 +529,8 @@
print >>self.warning_stream, "Error writing file %s: %s" % (outfilename, err)
if self.copysource and context.get('sourcename'):
# copy the source file for the "show source" link
- shutil.copyfile(path.join(self.srcdir, unwebify_filepath(filename)),
- path.join(self.outdir, context['sourcename']))
+ shutil.copyfile(path.join(self.srcdir, os_path(filename)),
+ path.join(self.outdir, os_path(context['sourcename'])))
def handle_finish(self):
self.msg('dumping search index...')
@@ -554,19 +553,20 @@
for filename in get_matching_files(
self.srcdir, '*.rst', exclude=set(self.config.get('unused_files', ()))):
try:
- targetmtime = path.getmtime(path.join(self.outdir,
- unwebify_filepath(filename)[:-4] + '.fpickle'))
+ targetmtime = path.getmtime(
+ path.join(self.outdir, os_path(filename)[:-4] + '.fpickle'))
except:
targetmtime = 0
- if path.getmtime(path.join(self.srcdir, unwebify_filepath(filename))) > targetmtime:
+ if path.getmtime(path.join(self.srcdir,
+ os_path(filename))) > targetmtime:
yield filename
def get_target_uri(self, source_filename):
if source_filename == 'index.rst':
return ''
- if source_filename.endswith('/index.rst'):
- return source_filename[:-9] # up to /
- return source_filename[:-4] + '/'
+ if source_filename.endswith(SEP+'index.rst'):
+ return source_filename[:-9] # up to sep
+ return source_filename[:-4] + SEP
def load_indexer(self, filenames):
try:
@@ -585,7 +585,7 @@
self.indexer.feed(filename, category, title, doctree)
def handle_file(self, filename, context, templatename='page'):
- outfilename = path.join(self.outdir, unwebify_filepath(filename)[:-4] + '.fpickle')
+ outfilename = path.join(self.outdir, os_path(filename)[:-4] + '.fpickle')
ensuredir(path.dirname(outfilename))
context.pop('pathto', None) # can't be pickled
with file(outfilename, 'wb') as fp:
@@ -593,9 +593,9 @@
# if there is a source file, copy the source file for the "show source" link
if context.get('sourcename'):
- source_name = path.join(self.outdir, 'sources', context['sourcename'])
+ source_name = path.join(self.outdir, 'sources', os_path(context['sourcename']))
ensuredir(path.dirname(source_name))
- shutil.copyfile(path.join(self.srcdir, unwebify_filepath(filename)), source_name)
+ shutil.copyfile(path.join(self.srcdir, os_path(filename)), source_name)
def handle_finish(self):
# dump the global context
@@ -659,6 +659,17 @@
else:
return ''
+ def get_document_data(self):
+ for toplevel in ["c-api", "distutils", "documenting", "extending",
+ "install", "reference", "tutorial", "using", "library"]:
+ yield (toplevel + SEP + 'index.rst', toplevel+'.tex', 'manual')
+ yield ('whatsnew' + SEP + self.config['version'] + '.rst',
+ 'whatsnew.tex', 'howto')
+ for howto in [fn for fn in self.env.all_files
+ if fn.startswith('howto'+SEP)
+ and not fn.endswith('index.rst')]:
+ yield (howto, 'howto-'+howto[6:-4]+'.tex', 'howto')
+
def write(self, filenames):
# "filenames" is ignored here...
@@ -672,26 +683,24 @@
defaults=self.env.settings,
components=(docwriter,)).get_default_values()
- # XXX get names of toplevels automatically?
- for docname in ["library"]:#, "distutils", "documenting", "extending",
- #"howto", "install", "library", "reference",
- #"tutorial", "using"]:
- # XXX whatsnew missing
+ for sourcename, targetname, docclass in self.get_document_data():
destination = FileOutput(
- destination_path=path.join(self.outdir, docname+".tex"),
+ destination_path=path.join(self.outdir, targetname),
encoding='utf-8')
- doctree = self.assemble_doctree(path.join(docname, "index.rst"))
- doctree.extend(specials)
+ print "processing", targetname + "...",
+ doctree = self.assemble_doctree(sourcename,
+ specials=(docclass == 'manual') and specials or [])
print "writing...",
doctree.settings = docsettings
- doctree.settings.filename = docname
- doctree.settings.docclass = 'manual' # XXX howto for whatsnew
+ doctree.settings.filename = sourcename
+ doctree.settings.docclass = docclass
output = docwriter.write(doctree, destination)
print "done"
- def assemble_doctree(self, indexfile):
- self.filenames = [indexfile]
- print "processing", indexfile
+ def assemble_doctree(self, indexfile, specials):
+ self.filenames = set([indexfile, 'glossary.rst', 'about.rst',
+ 'license.rst', 'copyright.rst'])
+ print green(indexfile),
def process_tree(tree):
#tree = tree.deepcopy() XXX
for toctreenode in tree.traverse(addnodes.toctree):
@@ -701,7 +710,7 @@
try:
print green(includefile),
subtree = process_tree(self.env.get_doctree(includefile))
- self.filenames.append(includefile)
+ self.filenames.add(includefile)
except:
print >>self.warning_stream, 'WARNING: %s: toctree contains ' \
'ref to nonexisting file %r' % (filename, includefile)
@@ -710,6 +719,7 @@
toctreenode.parent.replace(toctreenode, newnodes)
return tree
largetree = process_tree(self.env.get_doctree(indexfile))
+ largetree.extend(specials)
print
print "resolving references..."
self.env.resolve_references(largetree, indexfile, self)
Modified: doctools/trunk/sphinx/directives.py
==============================================================================
--- doctools/trunk/sphinx/directives.py (original)
+++ doctools/trunk/sphinx/directives.py Fri Dec 7 21:27:52 2007
@@ -12,6 +12,7 @@
import re
import string
+import posixpath
from os import path
from docutils import nodes
@@ -19,7 +20,6 @@
from docutils.parsers.rst.directives import admonitions
from . import addnodes
-from .util import webify_filepath, unwebify_filepath
# ------ index markup --------------------------------------------------------------
@@ -552,13 +552,12 @@
def toctree_directive(name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
env = state.document.settings.env
- dirname = path.dirname(env.filename)
+ dirname = posixpath.dirname(env.filename)
subnode = addnodes.toctree()
includefiles = filter(None, content)
# absolutize filenames
- includefiles = [webify_filepath(path.normpath(path.join (dirname, x))) for x in includefiles]
- #~ includefiles = map(lambda x: path.normpath(path.join(dirname, x)), includefiles)
+ includefiles = [posixpath.normpath(posixpath.join(dirname, x)) for x in includefiles]
subnode['includefiles'] = includefiles
subnode['maxdepth'] = options.get('maxdepth', -1)
return [subnode]
@@ -603,16 +602,16 @@
return [state.document.reporter.warning('File insertion disabled', line=lineno)]
env = state.document.settings.env
fn = arguments[0]
- source_dir = webify_filepath(path.dirname(path.abspath(state_machine.input_lines.source(
- lineno - state_machine.input_offset - 1))))
- fn = webify_filepath(path.normpath(path.join(source_dir, fn)))
+ source_dir = path.dirname(path.abspath(state_machine.input_lines.source(
+ lineno - state_machine.input_offset - 1)))
+ fn = path.normpath(path.join(source_dir, fn))
try:
with open(fn) as f:
text = f.read()
except (IOError, OSError):
- retnode = state.document.reporter.warning('Include file %r not found' %
- arguments[0], line=lineno)
+ retnode = state.document.reporter.warning(
+ 'Include file %r not found or reading it failed' % arguments[0], line=lineno)
else:
retnode = nodes.literal_block(text, text, source=fn)
retnode.line = 1
@@ -654,3 +653,19 @@
glossary_directive.content = 1
glossary_directive.arguments = (0, 0, 0)
directives.register_directive('glossary', glossary_directive)
+
+
+# ------ acks directive -------------------------------------------------------------
+
+def acks_directive(name, arguments, options, content, lineno,
+ content_offset, block_text, state, state_machine):
+ node = addnodes.acks()
+ state.nested_parse(content, content_offset, node)
+ if len(node.children) != 1 or not isinstance(node.children[0], nodes.bullet_list):
+ return [state.document.reporter.warning('.. acks content is not a list',
+ line=lineno)]
+ return [node]
+
+acks_directive.content = 1
+acks_directive.arguments = (0, 0, 0)
+directives.register_directive('acks', acks_directive)
Modified: doctools/trunk/sphinx/environment.py
==============================================================================
--- doctools/trunk/sphinx/environment.py (original)
+++ doctools/trunk/sphinx/environment.py Fri Dec 7 21:27:52 2007
@@ -38,7 +38,7 @@
Body.enum.converters['upperroman'] = lambda x: None
from . import addnodes
-from .util import get_matching_files, unwebify_filepath, WEB_SEP
+from .util import get_matching_files, os_path, SEP
from .refcounting import Refcounts
default_settings = {
@@ -283,11 +283,11 @@
else:
# if the doctree file is not there, rebuild
if not path.isfile(path.join(self.doctreedir,
- unwebify_filepath(filename)[:-3] + 'doctree')):
+ os_path(filename)[:-3] + 'doctree')):
changed.append(filename)
continue
mtime, md5 = self.all_files[filename]
- newmtime = path.getmtime(path.join(self.srcdir, unwebify_filepath(filename)))
+ newmtime = path.getmtime(path.join(self.srcdir, os_path(filename)))
if newmtime == mtime:
continue
# check the MD5
@@ -302,8 +302,8 @@
"""
(Re-)read all files new or changed since last update.
Yields a summary and then filenames as it processes them.
- Store all environment filenames as webified (ie using "/"
- as a separator in place of os.path.sep).
+ Store all environment filenames in the canonical format
+ (ie using SEP as a separator in place of os.path.sep).
"""
added, changed, removed = self.get_outdated_files(config)
msg = '%s added, %s changed, %s removed' % (len(added), len(changed),
@@ -336,7 +336,7 @@
self.clear_file(filename)
if src_path is None:
- src_path = path.join(self.srcdir, unwebify_filepath(filename))
+ src_path = path.join(self.srcdir, os_path(filename))
self.filename = filename
doctree = publish_doctree(None, src_path, FileInput,
@@ -367,7 +367,7 @@
if save_parsed:
# save the parsed doctree
- doctree_filename = path.join(self.doctreedir, unwebify_filepath(filename)[:-3] + 'doctree')
+ doctree_filename = path.join(self.doctreedir, os_path(filename)[:-3] + 'doctree')
dirname = path.dirname(doctree_filename)
if not path.isdir(dirname):
os.makedirs(dirname)
@@ -523,7 +523,7 @@
def get_doctree(self, filename):
"""Read the doctree for a file from the pickle and return it."""
- doctree_filename = path.join(self.doctreedir, unwebify_filepath(filename)[:-3] + 'doctree')
+ doctree_filename = path.join(self.doctreedir, os_path(filename)[:-3] + 'doctree')
with file(doctree_filename, 'rb') as f:
doctree = pickle.load(f)
doctree.reporter = Reporter(filename, 2, 4, stream=self.warning_stream)
@@ -597,12 +597,16 @@
'%s: undefined label: %s' % (docfilename, target)
else:
newnode = nodes.reference('', '')
+ innernode = nodes.emphasis(sectname, sectname)
if filename == docfilename:
newnode['refid'] = labelid
else:
+ # in case the following calls raises NoUri...
+ # else the final node will contain a label name
+ contnode = innernode
newnode['refuri'] = builder.get_relative_uri(
docfilename, filename) + '#' + labelid
- newnode.append(nodes.emphasis(sectname, sectname))
+ newnode.append(innernode)
elif typ in ('token', 'term', 'envvar', 'option'):
filename, labelid = self.reftargets.get((typ, target), ('', ''))
if not filename:
@@ -874,6 +878,6 @@
filename. This also resolves the special `index.rst` files. If the file
does not exist the return value will be `None`.
"""
- for rstname in filename + '.rst', filename + WEB_SEP + 'index.rst':
+ for rstname in filename + '.rst', filename + SEP + 'index.rst':
if rstname in self.all_files:
return rstname
Modified: doctools/trunk/sphinx/htmlwriter.py
==============================================================================
--- doctools/trunk/sphinx/htmlwriter.py (original)
+++ doctools/trunk/sphinx/htmlwriter.py Fri Dec 7 21:27:52 2007
@@ -227,6 +227,11 @@
def depart_glossary(self, node):
pass
+ def visit_acks(self, node):
+ pass
+ def depart_acks(self, node):
+ pass
+
# these are only handled specially in the SmartyPantsHTMLTranslator
def visit_literal_emphasis(self, node):
return self.visit_emphasis(node)
Modified: doctools/trunk/sphinx/latexwriter.py
==============================================================================
--- doctools/trunk/sphinx/latexwriter.py (original)
+++ doctools/trunk/sphinx/latexwriter.py Fri Dec 7 21:27:52 2007
@@ -24,6 +24,7 @@
HEADER = r'''%% Generated by Sphinx.
\documentclass[%(papersize)s,%(pointsize)s]{%(docclass)s}
+\usepackage[utf8]{inputenc}
\usepackage[colorlinks]{hyperref}
\title{%(title)s}
\date{%(date)s}
@@ -91,7 +92,8 @@
def __init__(self, document, config):
nodes.NodeVisitor.__init__(self, document)
self.body = []
- self.options = {'docclass': document.settings.docclass,
+ docclass = document.settings.docclass
+ self.options = {'docclass': docclass,
'papersize': 'a4paper', # XXX
'pointsize': '12pt',
'filename': document.settings.filename,
@@ -103,6 +105,7 @@
self.descstack = []
self.highlightlang = 'python'
self.written_ids = set()
+ self.top_sectionlevel = 0 if docclass == 'manual' else 1
# flags
self.verbatim = None
self.in_title = 0
@@ -123,7 +126,7 @@
elif self.first_document == 0:
self.body.append('\n\\appendix\n')
self.first_document = -1
- self.sectionlevel = 0
+ self.sectionlevel = self.top_sectionlevel
def depart_document(self, node):
pass
@@ -146,6 +149,12 @@
def depart_section(self, node):
self.sectionlevel -= 1
+ def visit_topic(self, node):
+ raise nodes.SkipNode # XXX
+
+ def visit_sidebar(self, node):
+ raise nodes.SkipNode # XXX
+
def visit_glossary(self, node):
raise nodes.SkipNode # XXX
@@ -365,6 +374,14 @@
else:
self.body.append('}')
+ def visit_acks(self, node):
+ # this is a list in the source, but should be rendered as a
+ # comma-separated list here
+ self.body.append('\n\n')
+ self.body.append(', '.join(n.astext() for n in node.children[0].children))
+ self.body.append('\n\n')
+ raise nodes.SkipNode
+
def visit_bullet_list(self, node):
self.body.append('\\begin{itemize}\n' )
def depart_bullet_list(self, node):
@@ -502,7 +519,9 @@
self.body.append('}')
def visit_title_reference(self, node):
- raise RuntimeError("XXX title reference node found")
+ self.body.append(r'\emph{')
+ def depart_title_reference(self, node):
+ self.body.append('}')
def visit_literal(self, node):
content = self.encode(node.astext().strip())
@@ -519,13 +538,13 @@
raise nodes.SkipNode
def visit_literal_block(self, node):
- #self.body.append('\n\\begin{Verbatim}\n')
self.verbatim = ''
def depart_literal_block(self, node):
- #self.body.append('\n\\end{Verbatim}\n')
- self.body.append('\n' + highlighting.highlight_block(self.verbatim,
- self.highlightlang,
- 'latex'))
+ hlcode = highlighting.highlight_block(self.verbatim.rstrip('\n'),
+ self.highlightlang, 'latex')
+ # workaround for Pygments bug
+ hlcode = hlcode.replace('\n\\end{Verbatim}', '\\end{Verbatim}')
+ self.body.append('\n' + hlcode)
self.verbatim = None
visit_doctest_block = visit_literal_block
depart_doctest_block = depart_literal_block
@@ -600,7 +619,7 @@
def visit_Text(self, node):
if self.verbatim is not None:
- self.verbatim += node.astext().replace('@', '@@')
+ self.verbatim += node.astext()
else:
self.body.append(self.encode(node.astext()))
def depart_Text(self, node):
Modified: doctools/trunk/sphinx/util/__init__.py
==============================================================================
--- doctools/trunk/sphinx/util/__init__.py (original)
+++ doctools/trunk/sphinx/util/__init__.py Fri Dec 7 21:27:52 2007
@@ -15,35 +15,31 @@
from os import path
+# SEP separates path elements in the canonical file names
#
-# Define WEB_SEP as a manifest constant, not
-# so much because we expect it to change in
-# the future as to avoid the suspicion that
-# a stray "/" in the code is a hangover from
-# more *nix-oriented origins.
-#
-WEB_SEP = "/"
+# Define SEP as a manifest constant, not so much because we expect it to change
+# in the future as to avoid the suspicion that a stray "/" in the code is a
+# hangover from more *nix-oriented origins.
+SEP = "/"
+def canonical_path(ospath):
+ return ospath.replace(os.path.sep, SEP)
-def webify_filepath(filepath):
- return filepath.replace(os.path.sep, WEB_SEP)
-
-
-def unwebify_filepath(webpath):
- return webpath.replace(WEB_SEP, os.path.sep)
+def os_path(canpath):
+ return canpath.replace(SEP, os.path.sep)
def relative_uri(base, to):
"""Return a relative URL from ``base`` to ``to``."""
- b2 = base.split(WEB_SEP)
- t2 = to.split(WEB_SEP)
+ b2 = base.split(SEP)
+ t2 = to.split(SEP)
# remove common segments
for x, y in zip(b2, t2):
if x != y:
break
b2.pop(0)
t2.pop(0)
- return ('..' + WEB_SEP) * (len(b2)-1) + WEB_SEP.join(t2)
+ return ('..' + SEP) * (len(b2)-1) + SEP.join(t2)
def ensuredir(path):
@@ -78,12 +74,12 @@
qualified_name = path.join(root[dirlen:], sfile)
if qualified_name in exclude:
continue
- yield webify_filepath(qualified_name)
+ yield canonical_path(qualified_name)
def get_category(filename):
"""Get the "category" part of a RST filename."""
- parts = filename.split(WEB_SEP, 1)
+ parts = filename.split(SEP, 1)
if len(parts) < 2:
return
return parts[0]
From buildbot at python.org Fri Dec 7 21:44:43 2007
From: buildbot at python.org (buildbot at python.org)
Date: Fri, 07 Dec 2007 20:44:43 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071207204443.96A2E1E4014@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/362
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: armin.rigo,georg.brandl
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From python-checkins at python.org Sat Dec 8 01:40:42 2007
From: python-checkins at python.org (brett.cannon)
Date: Sat, 8 Dec 2007 01:40:42 +0100 (CET)
Subject: [Python-checkins] r59409 - peps/trunk/pep-0364.txt
Message-ID: <20071208004042.8AA491E401E@bag.python.org>
Author: brett.cannon
Date: Sat Dec 8 01:40:42 2007
New Revision: 59409
Modified:
peps/trunk/pep-0364.txt
Log:
Update URL to where implementation no resides at bugs.python.org.
Modified: peps/trunk/pep-0364.txt
==============================================================================
--- peps/trunk/pep-0364.txt (original)
+++ peps/trunk/pep-0364.txt Sat Dec 8 01:40:42 2007
@@ -248,9 +248,8 @@
.. [3] PEP 302, New Import Hooks, JvR, Moore
(http://www.python.org/dev/peps/pep-0302)
-.. [4] Reference implementation on SourceForge
- (https://sourceforge.net/tracker/index.php?func=detail&aid=1675334&group_id=5470&atid=305470)
-
+.. [4] Reference implementation
+ (http://bugs.python.org/issue1675334)
Copyright
=========
From python-checkins at python.org Sat Dec 8 05:38:23 2007
From: python-checkins at python.org (guido.van.rossum)
Date: Sat, 8 Dec 2007 05:38:23 +0100 (CET)
Subject: [Python-checkins] r59410 - python/trunk/Misc/NEWS
Message-ID: <20071208043823.E19921E4014@bag.python.org>
Author: guido.van.rossum
Date: Sat Dec 8 05:38:23 2007
New Revision: 59410
Modified:
python/trunk/Misc/NEWS
Log:
Be (just a bit :) more specific about release date.
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sat Dec 8 05:38:23 2007
@@ -7,7 +7,7 @@
What's New in Python 2.6 alpha 1?
=================================
-*Release date: XX-XXX-200X*
+*Release date: XX-XXX-2008*
Core and builtins
-----------------
From python-checkins at python.org Sat Dec 8 05:49:22 2007
From: python-checkins at python.org (alexandre.vassalotti)
Date: Sat, 8 Dec 2007 05:49:22 +0100 (CET)
Subject: [Python-checkins] r59411 - python/trunk/Lib/doctest.py
Message-ID: <20071208044922.B85E21E4014@bag.python.org>
Author: alexandre.vassalotti
Date: Sat Dec 8 05:49:22 2007
New Revision: 59411
Modified:
python/trunk/Lib/doctest.py
Log:
Fix issue #1530.
Return an error exit status if not all tests passes.
Modified: python/trunk/Lib/doctest.py
==============================================================================
--- python/trunk/Lib/doctest.py (original)
+++ python/trunk/Lib/doctest.py Sat Dec 8 05:49:22 2007
@@ -2657,12 +2657,15 @@
sys.path.insert(0, dirname)
m = __import__(filename[:-3])
del sys.path[0]
- testmod(m)
+ failures, _ = testmod(m)
else:
- testfile(filename, module_relative=False)
+ failures, _ = testfile(filename, module_relative=False)
+ if failures:
+ return 1
else:
r = unittest.TextTestRunner()
r.run(DocTestSuite())
+ return 0
if __name__ == "__main__":
- _test()
+ sys.exit(_test())
From buildbot at python.org Sat Dec 8 06:30:33 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 05:30:33 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-3 trunk
Message-ID: <20071208053033.B433D1E4014@bag.python.org>
The Buildbot has detected a new failure of x86 XP-3 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-3%20trunk/builds/473
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: alexandre.vassalotti,guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
2 tests failed:
test_socket_ssl test_urllib2net
======================================================================
ERROR: test_978833 (test.test_socket_ssl.BasicTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_socket_ssl.py", line 123, in test_978833
raise test_support.TestFailed("Failed to close socket")
File "C:\buildbot\work\trunk.heller-windows\build\lib\contextlib.py", line 33, in __exit__
self.gen.throw(type, value, traceback)
File "C:\buildbot\work\trunk.heller-windows\build\lib\contextlib.py", line 117, in nested
yield vars
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_socket_ssl.py", line 113, in test_978833
s.connect(("svn.python.org", 443))
File "", line 1, in connect
error: [Errno 10061] No connection could be made because the target machine actively refused it
======================================================================
ERROR: testURLread (test.test_urllib2net.URLTimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 24, in testURLread
f = urllib2.urlopen("http://www.python.org/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_basic (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 105, in test_basic
open_url = urllib2.urlopen("http://www.python.org/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_geturl (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 129, in test_geturl
open_url = urllib2.urlopen(URL)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_info (test.test_urllib2net.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 116, in test_info
open_url = urllib2.urlopen("http://www.python.org/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_range (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 160, in test_range
result = urllib2.urlopen(req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_close (test.test_urllib2net.CloseSocketTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 76, in test_close
response = urllib2.urlopen("http://www.python.org/")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_http_NoneNodefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 287, in test_http_NoneNodefault
u = urllib2.urlopen("http://www.python.org", timeout=None)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_http_NoneWithdefault (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 277, in test_http_NoneWithdefault
u = urllib2.urlopen("http://www.python.org", timeout=None)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_http_Value (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 283, in test_http_Value
u = urllib2.urlopen("http://www.python.org", timeout=120)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
======================================================================
ERROR: test_http_basic (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\work\trunk.heller-windows\build\lib\test\test_urllib2net.py", line 270, in test_http_basic
u = urllib2.urlopen("http://www.python.org")
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 380, in open
response = self._open(req, data)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 398, in _open
'_open', req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 358, in _call_chain
result = func(*args)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1108, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\buildbot\work\trunk.heller-windows\build\lib\urllib2.py", line 1083, in do_open
raise URLError(err)
URLError:
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 06:31:26 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 05:31:26 +0000
Subject: [Python-checkins] buildbot failure in x86 XP-4 trunk
Message-ID: <20071208053126.3BC2F1E4014@bag.python.org>
The Buildbot has detected a new failure of x86 XP-4 trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20XP-4%20trunk/builds/268
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-windows
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: alexandre.vassalotti,guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_socket_ssl
======================================================================
ERROR: test_978833 (test.test_socket_ssl.BasicTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\test\test_socket_ssl.py", line 123, in test_978833
raise test_support.TestFailed("Failed to close socket")
File "E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\contextlib.py", line 33, in __exit__
self.gen.throw(type, value, traceback)
File "E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\contextlib.py", line 117, in nested
yield vars
File "E:\cygwin\home\db3l\buildarea\trunk.bolen-windows\build\lib\test\test_socket_ssl.py", line 113, in test_978833
s.connect(("svn.python.org", 443))
File "", line 1, in connect
error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 06:53:53 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 05:53:53 +0000
Subject: [Python-checkins] buildbot failure in x86 FreeBSD trunk
Message-ID: <20071208055353.AD1241E4017@bag.python.org>
The Buildbot has detected a new failure of x86 FreeBSD trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%20trunk/builds/250
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-freebsd
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: alexandre.vassalotti,guido.van.rossum
BUILD FAILED: failed test
Excerpt from the test logfile:
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 222, in handle_request
self.process_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 241, in process_request
self.finish_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 523, in __init__
self.handle()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 299, in handle_one_request
self.raw_requestline = self.rfile.readline()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/socket.py", line 366, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 35] Resource temporarily unavailable
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 222, in handle_request
self.process_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 241, in process_request
self.finish_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 523, in __init__
self.handle()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 299, in handle_one_request
self.raw_requestline = self.rfile.readline()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/socket.py", line 366, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 35] Resource temporarily unavailable
3 tests failed:
test_socket_ssl test_ssl test_xmlrpc
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 222, in handle_request
self.process_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 241, in process_request
self.finish_request(request, client_address)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/SocketServer.py", line 523, in __init__
self.handle()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/BaseHTTPServer.py", line 299, in handle_one_request
self.raw_requestline = self.rfile.readline()
File "/usr/home/db3l/buildarea/trunk.bolen-freebsd/build/Lib/socket.py", line 366, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 35] Resource temporarily unavailable
sincerely,
-The Buildbot
From python-checkins at python.org Sat Dec 8 11:48:08 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 8 Dec 2007 11:48:08 +0100 (CET)
Subject: [Python-checkins] r59412 - peps/trunk/pep-0003.txt
Message-ID: <20071208104808.79CE91E401B@bag.python.org>
Author: georg.brandl
Date: Sat Dec 8 11:48:07 2007
New Revision: 59412
Modified:
peps/trunk/pep-0003.txt
Log:
Minimal update w.r.t. new bug tracker.
Modified: peps/trunk/pep-0003.txt
==============================================================================
--- peps/trunk/pep-0003.txt (original)
+++ peps/trunk/pep-0003.txt Sat Dec 8 11:48:07 2007
@@ -11,7 +11,7 @@
Introduction
This PEP contains guidelines for handling bug reports to the
- Python project on SourceForge[1]. Still to be done is to collect
+ Python project at the tracker [1]. Still to be done is to collect
a list of people willing to handle bug reports and their areas of
expertise.
@@ -35,12 +35,12 @@
request", "later", and "closed"; and add a comment to the bug
saying that this is the case (mentioning the PEP explicitly).
- XXX do we prefer the feature request tracker or PEP 42?
+ XXX do we prefer the tracker or PEP 42?
3. Assign the bug a reasonable priority. We don't yet have a
- clear sense of what each priority should mean, except than 9 is
- highest and 1 is lowest. One rule, however, is that bugs with
- priority seven or higher must be fixed before the next release.
+ clear sense of what each priority should mean. One rule,
+ however, is that bugs with priority "urgent" or higher must
+ be fixed before the next release.
4. If a bug report doesn't have enough information to allow you to
reproduce or diagnose it, ask the original submitter for more
@@ -49,10 +49,10 @@
you can close the bug.
5. If you fix a bug, mark the status as "Fixed" and close it. In
- the comments, include the CVS revision numbers of the
- affected files. In the CVS checkin message, include the
- SourceForge bug number *and* a normal description of the
- change.
+ the comments, include the SVN revision numbers of the commit(s).
+ In the SVN checkin message, include the issue number *and* a
+ normal description of the change, mentioning the contributor
+ if a patch was applied.
6. If you are assigned a bug that you are unable to deal with,
assign it to someone else if you think they will be able to
@@ -61,4 +61,4 @@
References
- [1] http://sourceforge.net/projects/python
+ [1] http://bugs.python.org/
From python-checkins at python.org Sat Dec 8 11:56:39 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 8 Dec 2007 11:56:39 +0100 (CET)
Subject: [Python-checkins] r59413 - python/trunk/Lib/httplib.py
Message-ID: <20071208105639.54E9B1E402C@bag.python.org>
Author: georg.brandl
Date: Sat Dec 8 11:56:39 2007
New Revision: 59413
Modified:
python/trunk/Lib/httplib.py
Log:
Fix tpyo.
Modified: python/trunk/Lib/httplib.py
==============================================================================
--- python/trunk/Lib/httplib.py (original)
+++ python/trunk/Lib/httplib.py Sat Dec 8 11:56:39 2007
@@ -469,7 +469,7 @@
# Some HTTP/1.0 implementations have support for persistent
# connections, using rules different than HTTP/1.1.
- # For older HTTP, Keep-Alive indiciates persistent connection.
+ # For older HTTP, Keep-Alive indicates persistent connection.
if self.msg.getheader('keep-alive'):
return False
From python-checkins at python.org Sat Dec 8 12:05:06 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 8 Dec 2007 12:05:06 +0100 (CET)
Subject: [Python-checkins] r59414 - in python/trunk/Doc: ACKS.txt
whatsnew/2.6.rst
Message-ID: <20071208110506.8DB021E4021@bag.python.org>
Author: georg.brandl
Date: Sat Dec 8 12:05:05 2007
New Revision: 59414
Modified:
python/trunk/Doc/ACKS.txt
python/trunk/Doc/whatsnew/2.6.rst
Log:
Fix markup in whatsnew, use new directive in ACKS.
Modified: python/trunk/Doc/ACKS.txt
==============================================================================
--- python/trunk/Doc/ACKS.txt (original)
+++ python/trunk/Doc/ACKS.txt Sat Dec 8 12:05:05 2007
@@ -1,205 +1,207 @@
Contributors to the Python Documentation
----------------------------------------
-This file lists people who have contributed in some way to the Python
+This section lists people who have contributed in some way to the Python
documentation. It is probably not complete -- if you feel that you or
anyone else should be on this list, please let us know (send email to
docs at python.org), and we'll be glad to correct the problem.
-* Aahz
-* Michael Abbott
-* Steve Alexander
-* Jim Ahlstrom
-* Fred Allen
-* A. Amoroso
-* Pehr Anderson
-* Oliver Andrich
-* Jes?s Cea Avi?n
-* Daniel Barclay
-* Chris Barker
-* Don Bashford
-* Anthony Baxter
-* Bennett Benson
-* Jonathan Black
-* Robin Boerdijk
-* Michal Bozon
-* Aaron Brancotti
-* Georg Brandl
-* Keith Briggs
-* Lee Busby
-* Lorenzo M. Catucci
-* Carl Cerecke
-* Mauro Cicognini
-* Gilles Civario
-* Mike Clarkson
-* Steve Clift
-* Dave Cole
-* Matthew Cowles
-* Jeremy Craven
-* Andrew Dalke
-* Ben Darnell
-* L. Peter Deutsch
-* Robert Donohue
-* Fred L. Drake, Jr.
-* Josip Dzolonga
-* Jeff Epler
-* Michael Ernst
-* Blame Andy Eskilsson
-* Carey Evans
-* Martijn Faassen
-* Carl Feynman
-* Dan Finnie
-* Hern?n Mart?nez Foffani
-* Stefan Franke
-* Jim Fulton
-* Peter Funk
-* Lele Gaifax
-* Matthew Gallagher
-* Ben Gertzfield
-* Nadim Ghaznavi
-* Jonathan Giddy
-* Shelley Gooch
-* Nathaniel Gray
-* Grant Griffin
-* Thomas Guettler
-* Anders Hammarquist
-* Mark Hammond
-* Harald Hanche-Olsen
-* Manus Hand
-* Gerhard H?ring
-* Travis B. Hartwell
-* Tim Hatch
-* Janko Hauser
-* Bernhard Herzog
-* Magnus L. Hetland
-* Konrad Hinsen
-* Stefan Hoffmeister
-* Albert Hofkamp
-* Gregor Hoffleit
-* Steve Holden
-* Thomas Holenstein
-* Gerrit Holl
-* Rob Hooft
-* Brian Hooper
-* Randall Hopper
-* Michael Hudson
-* Eric Huss
-* Jeremy Hylton
-* Roger Irwin
-* Jack Jansen
-* Philip H. Jensen
-* Pedro Diaz Jimenez
-* Kent Johnson
-* Lucas de Jonge
-* Andreas Jung
-* Robert Kern
-* Jim Kerr
-* Jan Kim
-* Greg Kochanski
-* Guido Kollerie
-* Peter A. Koren
-* Daniel Kozan
-* Andrew M. Kuchling
-* Dave Kuhlman
-* Erno Kuusela
-* Thomas Lamb
-* Detlef Lannert
-* Piers Lauder
-* Glyph Lefkowitz
-* Robert Lehmann
-* Marc-Andr? Lemburg
-* Ross Light
-* Ulf A. Lindgren
-* Everett Lipman
-* Mirko Liss
-* Martin von L?wis
-* Fredrik Lundh
-* Jeff MacDonald
-* John Machin
-* Andrew MacIntyre
-* Vladimir Marangozov
-* Vincent Marchetti
-* Laura Matson
-* Daniel May
-* Rebecca McCreary
-* Doug Mennella
-* Paolo Milani
-* Skip Montanaro
-* Paul Moore
-* Ross Moore
-* Sjoerd Mullender
-* Dale Nagata
-* Ng Pheng Siong
-* Koray Oner
-* Tomas Oppelstrup
-* Denis S. Otkidach
-* Zooko O'Whielacronx
-* William Park
-* Joonas Paalasmaa
-* Harri Pasanen
-* Bo Peng
-* Tim Peters
-* Christopher Petrilli
-* Justin D. Pettit
-* Chris Phoenix
-* Fran?ois Pinard
-* Paul Prescod
-* Eric S. Raymond
-* Edward K. Ream
-* Sean Reifschneider
-* Bernhard Reiter
-* Armin Rigo
-* Wes Rishel
-* Jim Roskind
-* Guido van Rossum
-* Donald Wallace Rouse II
-* Nick Russo
-* Chris Ryland
-* Constantina S.
-* Hugh Sasse
-* Bob Savage
-* Scott Schram
-* Neil Schemenauer
-* Barry Scott
-* Joakim Sernbrant
-* Justin Sheehy
-* Charlie Shepherd
-* Michael Simcich
-* Ionel Simionescu
-* Michael Sloan
-* Gregory P. Smith
-* Roy Smith
-* Clay Spence
-* Nicholas Spies
-* Tage Stabell-Kulo
-* Frank Stajano
-* Anthony Starks
-* Greg Stein
-* Peter Stoehr
-* Mark Summerfield
-* Reuben Sumner
-* Kalle Svensson
-* Jim Tittsler
-* Ville Vainio
-* Martijn Vries
-* Charles G. Waldman
-* Greg Ward
-* Barry Warsaw
-* Corran Webster
-* Glyn Webster
-* Bob Weiner
-* Eddy Welbourne
-* Jeff Wheeler
-* Mats Wichmann
-* Gerry Wiener
-* Timothy Wild
-* Collin Winter
-* Blake Winton
-* Dan Wolfe
-* Steven Work
-* Thomas Wouters
-* Ka-Ping Yee
-* Rory Yorke
-* Moshe Zadka
-* Milan Zamazal
-* Cheng Zhang
+.. acks::
+
+ * Aahz
+ * Michael Abbott
+ * Steve Alexander
+ * Jim Ahlstrom
+ * Fred Allen
+ * A. Amoroso
+ * Pehr Anderson
+ * Oliver Andrich
+ * Jes?s Cea Avi?n
+ * Daniel Barclay
+ * Chris Barker
+ * Don Bashford
+ * Anthony Baxter
+ * Bennett Benson
+ * Jonathan Black
+ * Robin Boerdijk
+ * Michal Bozon
+ * Aaron Brancotti
+ * Georg Brandl
+ * Keith Briggs
+ * Lee Busby
+ * Lorenzo M. Catucci
+ * Carl Cerecke
+ * Mauro Cicognini
+ * Gilles Civario
+ * Mike Clarkson
+ * Steve Clift
+ * Dave Cole
+ * Matthew Cowles
+ * Jeremy Craven
+ * Andrew Dalke
+ * Ben Darnell
+ * L. Peter Deutsch
+ * Robert Donohue
+ * Fred L. Drake, Jr.
+ * Josip Dzolonga
+ * Jeff Epler
+ * Michael Ernst
+ * Blame Andy Eskilsson
+ * Carey Evans
+ * Martijn Faassen
+ * Carl Feynman
+ * Dan Finnie
+ * Hern?n Mart?nez Foffani
+ * Stefan Franke
+ * Jim Fulton
+ * Peter Funk
+ * Lele Gaifax
+ * Matthew Gallagher
+ * Ben Gertzfield
+ * Nadim Ghaznavi
+ * Jonathan Giddy
+ * Shelley Gooch
+ * Nathaniel Gray
+ * Grant Griffin
+ * Thomas Guettler
+ * Anders Hammarquist
+ * Mark Hammond
+ * Harald Hanche-Olsen
+ * Manus Hand
+ * Gerhard H?ring
+ * Travis B. Hartwell
+ * Tim Hatch
+ * Janko Hauser
+ * Bernhard Herzog
+ * Magnus L. Hetland
+ * Konrad Hinsen
+ * Stefan Hoffmeister
+ * Albert Hofkamp
+ * Gregor Hoffleit
+ * Steve Holden
+ * Thomas Holenstein
+ * Gerrit Holl
+ * Rob Hooft
+ * Brian Hooper
+ * Randall Hopper
+ * Michael Hudson
+ * Eric Huss
+ * Jeremy Hylton
+ * Roger Irwin
+ * Jack Jansen
+ * Philip H. Jensen
+ * Pedro Diaz Jimenez
+ * Kent Johnson
+ * Lucas de Jonge
+ * Andreas Jung
+ * Robert Kern
+ * Jim Kerr
+ * Jan Kim
+ * Greg Kochanski
+ * Guido Kollerie
+ * Peter A. Koren
+ * Daniel Kozan
+ * Andrew M. Kuchling
+ * Dave Kuhlman
+ * Erno Kuusela
+ * Thomas Lamb
+ * Detlef Lannert
+ * Piers Lauder
+ * Glyph Lefkowitz
+ * Robert Lehmann
+ * Marc-Andr? Lemburg
+ * Ross Light
+ * Ulf A. Lindgren
+ * Everett Lipman
+ * Mirko Liss
+ * Martin von L?wis
+ * Fredrik Lundh
+ * Jeff MacDonald
+ * John Machin
+ * Andrew MacIntyre
+ * Vladimir Marangozov
+ * Vincent Marchetti
+ * Laura Matson
+ * Daniel May
+ * Rebecca McCreary
+ * Doug Mennella
+ * Paolo Milani
+ * Skip Montanaro
+ * Paul Moore
+ * Ross Moore
+ * Sjoerd Mullender
+ * Dale Nagata
+ * Ng Pheng Siong
+ * Koray Oner
+ * Tomas Oppelstrup
+ * Denis S. Otkidach
+ * Zooko O'Whielacronx
+ * William Park
+ * Joonas Paalasmaa
+ * Harri Pasanen
+ * Bo Peng
+ * Tim Peters
+ * Christopher Petrilli
+ * Justin D. Pettit
+ * Chris Phoenix
+ * Fran?ois Pinard
+ * Paul Prescod
+ * Eric S. Raymond
+ * Edward K. Ream
+ * Sean Reifschneider
+ * Bernhard Reiter
+ * Armin Rigo
+ * Wes Rishel
+ * Jim Roskind
+ * Guido van Rossum
+ * Donald Wallace Rouse II
+ * Nick Russo
+ * Chris Ryland
+ * Constantina S.
+ * Hugh Sasse
+ * Bob Savage
+ * Scott Schram
+ * Neil Schemenauer
+ * Barry Scott
+ * Joakim Sernbrant
+ * Justin Sheehy
+ * Charlie Shepherd
+ * Michael Simcich
+ * Ionel Simionescu
+ * Michael Sloan
+ * Gregory P. Smith
+ * Roy Smith
+ * Clay Spence
+ * Nicholas Spies
+ * Tage Stabell-Kulo
+ * Frank Stajano
+ * Anthony Starks
+ * Greg Stein
+ * Peter Stoehr
+ * Mark Summerfield
+ * Reuben Sumner
+ * Kalle Svensson
+ * Jim Tittsler
+ * Ville Vainio
+ * Martijn Vries
+ * Charles G. Waldman
+ * Greg Ward
+ * Barry Warsaw
+ * Corran Webster
+ * Glyn Webster
+ * Bob Weiner
+ * Eddy Welbourne
+ * Jeff Wheeler
+ * Mats Wichmann
+ * Gerry Wiener
+ * Timothy Wild
+ * Collin Winter
+ * Blake Winton
+ * Dan Wolfe
+ * Steven Work
+ * Thomas Wouters
+ * Ka-Ping Yee
+ * Rory Yorke
+ * Moshe Zadka
+ * Milan Zamazal
+ * Cheng Zhang
Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst (original)
+++ python/trunk/Doc/whatsnew/2.6.rst Sat Dec 8 12:05:05 2007
@@ -545,9 +545,9 @@
(Contributed by Raymond Hettinger.)
* Another change to the :mod:`collections` module is that the
- :class:`deque` type now supports an optional `maxlen` parameter;
+ :class:`deque` type now supports an optional *maxlen* parameter;
if supplied, the deque's size will be restricted to no more
- than ``maxlen`` items. Adding more items to a full deque causes
+ than *maxlen* items. Adding more items to a full deque causes
old items to be discarded.
::
From python-checkins at python.org Sat Dec 8 12:05:37 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 8 Dec 2007 12:05:37 +0100 (CET)
Subject: [Python-checkins] r59415 - python/trunk/Misc/ACKS
Message-ID: <20071208110537.3F7091E4026@bag.python.org>
Author: georg.brandl
Date: Sat Dec 8 12:05:36 2007
New Revision: 59415
Modified:
python/trunk/Misc/ACKS
Log:
Fix Eren's name.
Modified: python/trunk/Misc/ACKS
==============================================================================
--- python/trunk/Misc/ACKS (original)
+++ python/trunk/Misc/ACKS Sat Dec 8 12:05:36 2007
@@ -189,7 +189,6 @@
Jeff Epler
Tom Epperly
Stoffel Erasmus
-Turkay Eren
J?rgen A. Erhard
Michael Ernst
Ben Escoto
@@ -661,6 +660,7 @@
Christopher Tur Lesniewski-Laas
Stephen Turner
Bill Tutt
+Eren T?rkay
Doobee R. Tzeck
Lionel Ulmer
Roger Upole
From python-checkins at python.org Sat Dec 8 12:23:14 2007
From: python-checkins at python.org (georg.brandl)
Date: Sat, 8 Dec 2007 12:23:14 +0100 (CET)
Subject: [Python-checkins] r59416 - python/trunk/Doc/library/datetime.rst
Message-ID: <20071208112314.10BDF1E4020@bag.python.org>
Author: georg.brandl
Date: Sat Dec 8 12:23:13 2007
New Revision: 59416
Modified:
python/trunk/Doc/library/datetime.rst
Log:
Add examples to the datetime documentation. Written for GHOP by "h4wk.cz".
Modified: python/trunk/Doc/library/datetime.rst
==============================================================================
--- python/trunk/Doc/library/datetime.rst (original)
+++ python/trunk/Doc/library/datetime.rst Sat Dec 8 12:23:13 2007
@@ -163,6 +163,7 @@
Note that normalization of negative values may be surprising at first. For
example, ::
+ >>> from datetime import timedelta
>>> d = timedelta(microseconds=-1)
>>> (d.days, d.seconds, d.microseconds)
(-1, 86399, 999999)
@@ -266,6 +267,26 @@
efficient pickling, and in Boolean contexts, a :class:`timedelta` object is
considered to be true if and only if it isn't equal to ``timedelta(0)``.
+Example usage::
+
+ >>> from datetime import timedelta
+ >>> year = timedelta(days=365)
+ >>> another_year = timedelta(weeks=40, days=84, hours=23,
+ ... minutes=50, seconds=600) # adds up to 365 days
+ >>> year == another_year
+ True
+ >>> ten_years = 10 * year
+ >>> ten_years, ten_years.days // 365
+ (datetime.timedelta(3650), 10)
+ >>> nine_years = ten_years - year
+ >>> nine_years, nine_years.days // 365
+ (datetime.timedelta(3285), 9)
+ >>> three_years = nine_years // 3;
+ >>> three_years, three_years.days // 365
+ (datetime.timedelta(1095), 3)
+ >>> abs(three_years - ten_years) == 2 * three_years + year
+ True
+
.. _datetime-date:
@@ -487,6 +508,55 @@
Format codes referring to hours, minutes or seconds will see 0 values. See
section :ref:`strftime-behavior`.
+Example of counting days to an event::
+
+ >>> import time
+ >>> from datetime import date
+ >>> today = date.today()
+ >>> today
+ datetime.date(2007, 12, 5)
+ >>> today == date.fromtimestamp(time.time())
+ True
+ >>> my_birthday = date(today.year, 6, 24)
+ >>> if my_birthday < today:
+ ... my_birthday = my_birthday.replace(year=today.year + 1)
+ >>> my_birthday
+ datetime.date(2008, 6, 24)
+ >>> time_to_birthday = abs(my_birthday - today)
+ >>> time_to_birthday.days
+ 202
+
+Example of working with :class:`date`::
+
+ >>> from datetime import date
+ >>> d = date.fromordinal(730920) # 730920th day after 1. 1. 0001
+ >>> d
+ datetime.date(2002, 3, 11)
+ >>> t = d.timetuple()
+ >>> for i in t:
+ ... print i
+ 2002 # year
+ 3 # month
+ 11 # day
+ 0
+ 0
+ 0
+ 0 # weekday (0 = Monday)
+ 70 # 70th day in the year
+ -1
+ >>> ic = d.isocalendar()
+ >>> for i in ic:
+ ... print i # doctest: +SKIP
+ 2002 # ISO year
+ 11 # ISO week number
+ 1 # ISO day number ( 1 = Monday )
+ >>> d.isoformat()
+ '2002-03-11'
+ >>> d.strftime("%d/%m/%y")
+ '11/03/02'
+ >>> d.strftime("%A %d. %B %Y")
+ 'Monday 11. March 2002'
+
.. _datetime-datetime:
@@ -922,6 +992,106 @@
Return a string representing the date and time, controlled by an explicit format
string. See section :ref:`strftime-behavior`.
+Examples of working with datetime objects::
+
+ >>> from datetime import datetime, date, time
+ >>> # Using datetime.combine()
+ >>> d = date(2005, 7, 14)
+ >>> t = time(12, 30)
+ >>> datetime.combine(d, t)
+ datetime.datetime(2005, 7, 14, 12, 30)
+ >>> # Using datetime.now() or datetime.utcnow()
+ >>> datetime.now()
+ datetime.datetime(2007, 12, 6, 16, 29, 43, 79043) # GMT +1
+ >>> datetime.utcnow()
+ datetime.datetime(2007, 12, 6, 15, 29, 43, 79060)
+ >>> # Using datetime.strptime()
+ >>> dt = datetime.strptime("21/11/06 16:30", "%d/%m/%y %H:%M")
+ >>> dt
+ datetime.datetime(2006, 11, 21, 16, 30)
+ >>> # Using datetime.timetuple() to get tuple of all attributes
+ >>> tt = dt.timetuple()
+ >>> for it in tt:
+ ... print it
+ ...
+ 2006 # year
+ 11 # month
+ 21 # day
+ 16 # hour
+ 30 # minute
+ 0 # second
+ 1 # weekday (0 = Monday)
+ 325 # number of days since 1st January
+ -1 # dst - method tzinfo.dst() returned None
+ >>> # Date in ISO format
+ >>> ic = dt.isocalendar()
+ >>> for it in ic:
+ ... print it
+ ...
+ 2006 # ISO year
+ 47 # ISO week
+ 2 # ISO weekday
+ >>> # Formatting datetime
+ >>> dt.strftime("%A, %d. %B %Y %I:%M%p")
+ 'Tuesday, 21. November 2006 04:30PM'
+
+Using datetime with tzinfo::
+
+ >>> from datetime import timedelta, datetime, tzinfo
+ >>> class GMT1(tzinfo):
+ ... def __init__(self): # DST starts last Sunday in March
+ ... d = datetime(dt.year, 4, 1) # ends last Sunday in October
+ ... self.dston = d - timedelta(days=d.weekday() + 1)
+ ... d = datetime(dt.year, 11, 1)
+ ... self.dstoff = d - timedelta(days=d.weekday() + 1)
+ ... def utcoffset(self, dt):
+ ... return timedelta(hours=1) + self.dst(dt)
+ ... def dst(self, dt):
+ ... if self.dston <= dt.replace(tzinfo=None) < self.dstoff:
+ ... return timedelta(hours=1)
+ ... else:
+ ... return timedelta(0)
+ ... def tzname(self,dt):
+ ... return "GMT +1"
+ ...
+ >>> class GMT2(tzinfo):
+ ... def __init__(self):
+ ... d = datetime(dt.year, 4, 1)
+ ... self.dston = d - timedelta(days=d.weekday() + 1)
+ ... d = datetime(dt.year, 11, 1)
+ ... self.dstoff = d - timedelta(days=d.weekday() + 1)
+ ... def utcoffset(self, dt):
+ ... return timedelta(hours=1) + self.dst(dt)
+ ... def dst(self, dt):
+ ... if self.dston <= dt.replace(tzinfo=None) < self.dstoff:
+ ... return timedelta(hours=2)
+ ... else:
+ ... return timedelta(0)
+ ... def tzname(self,dt):
+ ... return "GMT +2"
+ ...
+ >>> gmt1 = GMT1()
+ >>> # Daylight Saving Time
+ >>> dt1 = datetime(2006, 11, 21, 16, 30, tzinfo=gmt1)
+ >>> dt1.dst()
+ datetime.timedelta(0)
+ >>> dt1.utcoffset()
+ datetime.timedelta(0, 3600)
+ >>> dt2 = datetime(2006, 6, 14, 13, 0, tzinfo=gmt1)
+ >>> dt2.dst()
+ datetime.timedelta(0, 3600)
+ >>> dt2.utcoffset()
+ datetime.timedelta(0, 7200)
+ >>> # Convert datetime to another time zone
+ >>> dt3 = dt2.astimezone(GMT2())
+ >>> dt3 # doctest: +ELLIPSIS
+ datetime.datetime(2006, 6, 14, 14, 0, tzinfo=)
+ >>> dt2 # doctest: +ELLIPSIS
+ datetime.datetime(2006, 6, 14, 13, 0, tzinfo=)
+ >>> dt2.utctimetuple() == dt3.utctimetuple()
+ True
+
+
.. _datetime-time:
@@ -1067,6 +1237,30 @@
``self.tzinfo.tzname(None)``, or raises an exception if the latter doesn't
return ``None`` or a string object.
+Example::
+
+ >>> from datetime import time, tzinfo
+ >>> class GMT1(tzinfo):
+ ... def utcoffset(self, dt):
+ ... return timedelta(hours=1)
+ ... def dst(self, dt):
+ ... return timedelta(0)
+ ... def tzname(self,dt):
+ ... return "Europe/Prague"
+ ...
+ >>> t = time(12, 10, 30, tzinfo=GMT1())
+ >>> t # doctest: +ELLIPSIS
+ datetime.time(12, 10, 30, tzinfo=)
+ >>> gmt = GMT1()
+ >>> t.isoformat()
+ '12:10:30+01:00'
+ >>> t.dst()
+ datetime.timedelta(0)
+ >>> t.tzname()
+ 'Europe/Prague'
+ >>> t.strftime("%H:%M:%S %Z")
+ '12:10:30 Europe/Prague'
+
.. _datetime-tzinfo:
@@ -1280,7 +1474,7 @@
:class:`tzinfo` subclasses; there are no ambiguities when using UTC, or any
other fixed-offset :class:`tzinfo` subclass (such as a class representing only
EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
-
+
.. _strftime-behavior:
@@ -1301,48 +1495,113 @@
should not be used, as :class:`date` objects have no such values. If they're
used anyway, ``0`` is substituted for them.
-For a naive object, the ``%z`` and ``%Z`` format codes are replaced by empty
-strings.
-
-For an aware object:
-
-``%z``
- :meth:`utcoffset` is transformed into a 5-character string of the form +HHMM or
- -HHMM, where HH is a 2-digit string giving the number of UTC offset hours, and
- MM is a 2-digit string giving the number of UTC offset minutes. For example, if
- :meth:`utcoffset` returns ``timedelta(hours=-3, minutes=-30)``, ``%z`` is
- replaced with the string ``'-0330'``.
-
-``%Z``
- If :meth:`tzname` returns ``None``, ``%Z`` is replaced by an empty string.
- Otherwise ``%Z`` is replaced by the returned value, which must be a string.
-
The full set of format codes supported varies across platforms, because Python
calls the platform C library's :func:`strftime` function, and platform
-variations are common. The documentation for Python's :mod:`time` module lists
-the format codes that the C standard (1989 version) requires, and those work on
-all platforms with a standard C implementation. Note that the 1999 version of
-the C standard added additional format codes.
+variations are common.
+
+The following is a list of all the format codes that the C standard (1989
+version) requires, and these work on all platforms with a standard C
+implementation. Note that the 1999 version of the C standard added additional
+format codes.
The exact range of years for which :meth:`strftime` works also varies across
platforms. Regardless of platform, years before 1900 cannot be used.
-.. % %% This example is obsolete, since strptime is now supported by datetime.
-.. %
-.. % \subsection{Examples}
-.. %
-.. % \subsubsection{Creating Datetime Objects from Formatted Strings}
-.. %
-.. % The \class{datetime} class does not directly support parsing formatted time
-.. % strings. You can use \function{time.strptime} to do the parsing and create
-.. % a \class{datetime} object from the tuple it returns:
-.. %
-.. % \begin{verbatim}
-.. % >>> s = "2005-12-06T12:13:14"
-.. % >>> from datetime import datetime
-.. % >>> from time import strptime
-.. % >>> datetime(*strptime(s, "%Y-%m-%dT%H:%M:%S")[0:6])
-.. % datetime.datetime(2005, 12, 6, 12, 13, 14)
-.. % \end{verbatim}
-.. %
++-----------+--------------------------------+-------+
+| Directive | Meaning | Notes |
++===========+================================+=======+
+| ``%a`` | Locale's abbreviated weekday | |
+| | name. | |
++-----------+--------------------------------+-------+
+| ``%A`` | Locale's full weekday name. | |
++-----------+--------------------------------+-------+
+| ``%b`` | Locale's abbreviated month | |
+| | name. | |
++-----------+--------------------------------+-------+
+| ``%B`` | Locale's full month name. | |
++-----------+--------------------------------+-------+
+| ``%c`` | Locale's appropriate date and | |
+| | time representation. | |
++-----------+--------------------------------+-------+
+| ``%d`` | Day of the month as a decimal | |
+| | number [01,31]. | |
++-----------+--------------------------------+-------+
+| ``%H`` | Hour (24-hour clock) as a | |
+| | decimal number [00,23]. | |
++-----------+--------------------------------+-------+
+| ``%I`` | Hour (12-hour clock) as a | |
+| | decimal number [01,12]. | |
++-----------+--------------------------------+-------+
+| ``%j`` | Day of the year as a decimal | |
+| | number [001,366]. | |
++-----------+--------------------------------+-------+
+| ``%m`` | Month as a decimal number | |
+| | [01,12]. | |
++-----------+--------------------------------+-------+
+| ``%M`` | Minute as a decimal number | |
+| | [00,59]. | |
++-----------+--------------------------------+-------+
+| ``%p`` | Locale's equivalent of either | \(1) |
+| | AM or PM. | |
++-----------+--------------------------------+-------+
+| ``%S`` | Second as a decimal number | \(2) |
+| | [00,61]. | |
++-----------+--------------------------------+-------+
+| ``%U`` | Week number of the year | \(3) |
+| | (Sunday as the first day of | |
+| | the week) as a decimal number | |
+| | [00,53]. All days in a new | |
+| | year preceding the first | |
+| | Sunday are considered to be in | |
+| | week 0. | |
++-----------+--------------------------------+-------+
+| ``%w`` | Weekday as a decimal number | |
+| | [0(Sunday),6]. | |
++-----------+--------------------------------+-------+
+| ``%W`` | Week number of the year | \(3) |
+| | (Monday as the first day of | |
+| | the week) as a decimal number | |
+| | [00,53]. All days in a new | |
+| | year preceding the first | |
+| | Monday are considered to be in | |
+| | week 0. | |
++-----------+--------------------------------+-------+
+| ``%x`` | Locale's appropriate date | |
+| | representation. | |
++-----------+--------------------------------+-------+
+| ``%X`` | Locale's appropriate time | |
+| | representation. | |
++-----------+--------------------------------+-------+
+| ``%y`` | Year without century as a | |
+| | decimal number [00,99]. | |
++-----------+--------------------------------+-------+
+| ``%Y`` | Year with century as a decimal | |
+| | number. | |
++-----------+--------------------------------+-------+
+| ``%z`` | UTC offset in the form +HHMM | \(4) |
+| | or -HHMM (empty string if the | |
+| | the object is naive). | |
++-----------+--------------------------------+-------+
+| ``%Z`` | Time zone name (empty string | |
+| | if the object is naive). | |
++-----------+--------------------------------+-------+
+| ``%%`` | A literal ``'%'`` character. | |
++-----------+--------------------------------+-------+
+Notes:
+
+(1)
+ When used with the :func:`strptime` function, the ``%p`` directive only affects
+ the output hour field if the ``%I`` directive is used to parse the hour.
+
+(2)
+ The range really is ``0`` to ``61``; this accounts for leap seconds and the
+ (very rare) double leap seconds.
+
+(3)
+ When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in
+ calculations when the day of the week and the year are specified.
+
+(4)
+ For example, if :meth:`utcoffset` returns ``timedelta(hours=-3, minutes=-30)``,
+ ``%z`` is replaced with the string ``'-0330'``.
From python-checkins at python.org Sat Dec 8 15:37:43 2007
From: python-checkins at python.org (skip.montanaro)
Date: Sat, 8 Dec 2007 15:37:43 +0100 (CET)
Subject: [Python-checkins] r59417 - in python/trunk: Objects/fileobject.c
Python/bltinmodule.c
Message-ID: <20071208143743.7BAE71E401B@bag.python.org>
Author: skip.montanaro
Date: Sat Dec 8 15:37:43 2007
New Revision: 59417
Modified:
python/trunk/Objects/fileobject.c
python/trunk/Python/bltinmodule.c
Log:
Note that open() is the preferred way to open files (issue 1510).
Modified: python/trunk/Objects/fileobject.c
==============================================================================
--- python/trunk/Objects/fileobject.c (original)
+++ python/trunk/Objects/fileobject.c Sat Dec 8 15:37:43 2007
@@ -2065,7 +2065,8 @@
"opened for writing. Add a 'b' to the mode for binary files.\n"
"Add a '+' to the mode to allow simultaneous reading and writing.\n"
"If the buffering argument is given, 0 means unbuffered, 1 means line\n"
-"buffered, and larger numbers specify the buffer size.\n"
+"buffered, and larger numbers specify the buffer size. The preferred way\n"
+"to open a file is with the builtin open() function.\n"
)
PyDoc_STR(
"Add a 'U' to mode to open the file for input with universal newline\n"
Modified: python/trunk/Python/bltinmodule.c
==============================================================================
--- python/trunk/Python/bltinmodule.c (original)
+++ python/trunk/Python/bltinmodule.c Sat Dec 8 15:37:43 2007
@@ -1357,7 +1357,8 @@
PyDoc_STRVAR(open_doc,
"open(name[, mode[, buffering]]) -> file object\n\
\n\
-Open a file using the file() type, returns a file object.");
+Open a file using the file() type, returns a file object. This is the\n\
+preferred way to open a file.");
static PyObject *
From python-checkins at python.org Sat Dec 8 16:23:31 2007
From: python-checkins at python.org (skip.montanaro)
Date: Sat, 8 Dec 2007 16:23:31 +0100 (CET)
Subject: [Python-checkins] r59418 - python/trunk/Doc/glossary.rst
Message-ID: <20071208152331.6E4E51E400D@bag.python.org>
Author: skip.montanaro
Date: Sat Dec 8 16:23:31 2007
New Revision: 59418
Modified:
python/trunk/Doc/glossary.rst
Log:
+ "context manager"
Modified: python/trunk/Doc/glossary.rst
==============================================================================
--- python/trunk/Doc/glossary.rst (original)
+++ python/trunk/Doc/glossary.rst Sat Dec 8 16:23:31 2007
@@ -68,6 +68,11 @@
advanced mathematical feature. If you're not aware of a need for them,
it's almost certain you can safely ignore them.
+ context manager
+ Objects which control the environment seen in a :keyword:`with`
+ statement by defining :meth:`__enter__` and :meth:`__exit__` methods.
+ See :pep:`343`.
+
decorator
A function returning another function, usually applied as a function
transformation using the ``@wrapper`` syntax. Common examples for
From python-checkins at python.org Sat Dec 8 16:26:16 2007
From: python-checkins at python.org (skip.montanaro)
Date: Sat, 8 Dec 2007 16:26:16 +0100 (CET)
Subject: [Python-checkins] r59419 - in python/trunk: Doc/library/atexit.rst
Doc/library/bsddb.rst Doc/library/mhlib.rst
Doc/library/multifile.rst Doc/library/readline.rst
Doc/library/robotparser.rst Doc/library/telnetlib.rst
Doc/library/urllib.rst Lib/test/README
Message-ID: <20071208152616.C55281E4029@bag.python.org>
Author: skip.montanaro
Date: Sat Dec 8 16:26:16 2007
New Revision: 59419
Modified:
python/trunk/Doc/library/atexit.rst
python/trunk/Doc/library/bsddb.rst
python/trunk/Doc/library/mhlib.rst
python/trunk/Doc/library/multifile.rst
python/trunk/Doc/library/readline.rst
python/trunk/Doc/library/robotparser.rst
python/trunk/Doc/library/telnetlib.rst
python/trunk/Doc/library/urllib.rst
python/trunk/Lib/test/README
Log:
correct email address
Modified: python/trunk/Doc/library/atexit.rst
==============================================================================
--- python/trunk/Doc/library/atexit.rst (original)
+++ python/trunk/Doc/library/atexit.rst Sat Dec 8 16:26:16 2007
@@ -4,8 +4,8 @@
.. module:: atexit
:synopsis: Register and execute cleanup functions.
-.. moduleauthor:: Skip Montanaro
-.. sectionauthor:: Skip Montanaro
+.. moduleauthor:: Skip Montanaro
+.. sectionauthor:: Skip Montanaro
.. versionadded:: 2.0
Modified: python/trunk/Doc/library/bsddb.rst
==============================================================================
--- python/trunk/Doc/library/bsddb.rst (original)
+++ python/trunk/Doc/library/bsddb.rst Sat Dec 8 16:26:16 2007
@@ -4,7 +4,7 @@
.. module:: bsddb
:synopsis: Interface to Berkeley DB database library
-.. sectionauthor:: Skip Montanaro
+.. sectionauthor:: Skip Montanaro
The :mod:`bsddb` module provides an interface to the Berkeley DB library. Users
Modified: python/trunk/Doc/library/mhlib.rst
==============================================================================
--- python/trunk/Doc/library/mhlib.rst (original)
+++ python/trunk/Doc/library/mhlib.rst Sat Dec 8 16:26:16 2007
@@ -7,7 +7,7 @@
.. % LaTeX'ized from the comments in the module by Skip Montanaro
-.. % .
+.. % .
The :mod:`mhlib` module provides a Python interface to MH folders and their
contents.
Modified: python/trunk/Doc/library/multifile.rst
==============================================================================
--- python/trunk/Doc/library/multifile.rst (original)
+++ python/trunk/Doc/library/multifile.rst Sat Dec 8 16:26:16 2007
@@ -155,7 +155,7 @@
:class:`MultiFile` Example
--------------------------
-.. sectionauthor:: Skip Montanaro
+.. sectionauthor:: Skip Montanaro
::
Modified: python/trunk/Doc/library/readline.rst
==============================================================================
--- python/trunk/Doc/library/readline.rst (original)
+++ python/trunk/Doc/library/readline.rst Sat Dec 8 16:26:16 2007
@@ -5,7 +5,7 @@
.. module:: readline
:platform: Unix
:synopsis: GNU readline support for Python.
-.. sectionauthor:: Skip Montanaro
+.. sectionauthor:: Skip Montanaro
The :mod:`readline` module defines a number of functions to facilitate
Modified: python/trunk/Doc/library/robotparser.rst
==============================================================================
--- python/trunk/Doc/library/robotparser.rst (original)
+++ python/trunk/Doc/library/robotparser.rst Sat Dec 8 16:26:16 2007
@@ -4,7 +4,7 @@
.. module:: robotparser
:synopsis: Loads a robots.txt file and answers questions about fetchability of other URLs.
-.. sectionauthor:: Skip Montanaro
+.. sectionauthor:: Skip Montanaro
.. index::
Modified: python/trunk/Doc/library/telnetlib.rst
==============================================================================
--- python/trunk/Doc/library/telnetlib.rst (original)
+++ python/trunk/Doc/library/telnetlib.rst Sat Dec 8 16:26:16 2007
@@ -4,7 +4,7 @@
.. module:: telnetlib
:synopsis: Telnet client class.
-.. sectionauthor:: Skip Montanaro
+.. sectionauthor:: Skip Montanaro
.. index:: single: protocol; Telnet
Modified: python/trunk/Doc/library/urllib.rst
==============================================================================
--- python/trunk/Doc/library/urllib.rst (original)
+++ python/trunk/Doc/library/urllib.rst Sat Dec 8 16:26:16 2007
@@ -369,7 +369,7 @@
URLopener Objects
-----------------
-.. sectionauthor:: Skip Montanaro
+.. sectionauthor:: Skip Montanaro
:class:`URLopener` and :class:`FancyURLopener` objects have the following
Modified: python/trunk/Lib/test/README
==============================================================================
--- python/trunk/Lib/test/README (original)
+++ python/trunk/Lib/test/README Sat Dec 8 16:26:16 2007
@@ -3,7 +3,7 @@
+++++++++++++++++++++++++++++++
:Author: Skip Montanaro
-:Contact: skip at mojam.com
+:Contact: skip at pobox.com
Introduction
============
@@ -382,15 +382,6 @@
statement is *not* correct Python syntax.
-Python and C statement coverage results are currently available at
-
- http://www.musi-cal.com/~skip/python/Python/dist/src/
-
-As of this writing (July, 2000) these results are being generated nightly.
-You can refer to the summaries and the test coverage output files to see
-where coverage is adequate or lacking and write test cases to beef up the
-coverage.
-
Some Non-Obvious regrtest Features
==================================
* Automagic test detection: When you create a new test file
From python-checkins at python.org Sat Dec 8 16:33:25 2007
From: python-checkins at python.org (skip.montanaro)
Date: Sat, 8 Dec 2007 16:33:25 +0100 (CET)
Subject: [Python-checkins] r59420 - in python/trunk: Misc/NEWS
Objects/stringobject.c
Message-ID: <20071208153325.6BD271E4020@bag.python.org>
Author: skip.montanaro
Date: Sat Dec 8 16:33:24 2007
New Revision: 59420
Modified:
python/trunk/Misc/NEWS
python/trunk/Objects/stringobject.c
Log:
When splitting, avoid making a copy of the string if the split doesn't find
anything (issue 1538).
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sat Dec 8 16:33:24 2007
@@ -12,6 +12,9 @@
Core and builtins
-----------------
+- Issue #1538: Avoid copying string in split/rsplit if the split
+ char is not found.
+
- Issue #1553: An erroneous __length_hint__ can make list() raise a
SystemError.
Modified: python/trunk/Objects/stringobject.c
==============================================================================
--- python/trunk/Objects/stringobject.c (original)
+++ python/trunk/Objects/stringobject.c Sat Dec 8 16:33:24 2007
@@ -1403,8 +1403,9 @@
#define RSKIP_NONSPACE(s, i) { while (i>=0 && !isspace(Py_CHARMASK(s[i]))) i--; }
Py_LOCAL_INLINE(PyObject *)
-split_whitespace(const char *s, Py_ssize_t len, Py_ssize_t maxsplit)
+split_whitespace(PyStringObject *self, Py_ssize_t len, Py_ssize_t maxsplit)
{
+ const char *s = PyString_AS_STRING(self);
Py_ssize_t i, j, count=0;
PyObject *str;
PyObject *list = PyList_New(PREALLOC_SIZE(maxsplit));
@@ -1419,6 +1420,13 @@
if (i==len) break;
j = i; i++;
SKIP_NONSPACE(s, i, len);
+ if (j == 0 && i == len && PyString_CheckExact(self)) {
+ /* No whitespace in self, so just use it as list[0] */
+ Py_INCREF(self);
+ PyList_SET_ITEM(list, 0, (PyObject *)self);
+ count++;
+ break;
+ }
SPLIT_ADD(s, j, i);
}
@@ -1437,8 +1445,9 @@
}
Py_LOCAL_INLINE(PyObject *)
-split_char(const char *s, Py_ssize_t len, char ch, Py_ssize_t maxcount)
+split_char(PyStringObject *self, Py_ssize_t len, char ch, Py_ssize_t maxcount)
{
+ const char *s = PyString_AS_STRING(self);
register Py_ssize_t i, j, count=0;
PyObject *str;
PyObject *list = PyList_New(PREALLOC_SIZE(maxcount));
@@ -1457,7 +1466,13 @@
}
}
}
- if (i <= len) {
+ if (i == 0 && count == 0 && PyString_CheckExact(self)) {
+ /* ch not in self, so just use self as list[0] */
+ Py_INCREF(self);
+ PyList_SET_ITEM(list, 0, (PyObject *)self);
+ count++;
+ }
+ else if (i <= len) {
SPLIT_ADD(s, i, len);
}
FIX_PREALLOC_SIZE(list);
@@ -1492,7 +1507,7 @@
if (maxsplit < 0)
maxsplit = PY_SSIZE_T_MAX;
if (subobj == Py_None)
- return split_whitespace(s, len, maxsplit);
+ return split_whitespace(self, len, maxsplit);
if (PyString_Check(subobj)) {
sub = PyString_AS_STRING(subobj);
n = PyString_GET_SIZE(subobj);
@@ -1509,7 +1524,7 @@
return NULL;
}
else if (n == 1)
- return split_char(s, len, sub[0], maxsplit);
+ return split_char(self, len, sub[0], maxsplit);
list = PyList_New(PREALLOC_SIZE(maxsplit));
if (list == NULL)
@@ -1609,8 +1624,9 @@
}
Py_LOCAL_INLINE(PyObject *)
-rsplit_whitespace(const char *s, Py_ssize_t len, Py_ssize_t maxsplit)
+rsplit_whitespace(PyStringObject *self, Py_ssize_t len, Py_ssize_t maxsplit)
{
+ const char *s = PyString_AS_STRING(self);
Py_ssize_t i, j, count=0;
PyObject *str;
PyObject *list = PyList_New(PREALLOC_SIZE(maxsplit));
@@ -1625,6 +1641,13 @@
if (i<0) break;
j = i; i--;
RSKIP_NONSPACE(s, i);
+ if (j == len-1 && i < 0 && PyString_CheckExact(self)) {
+ /* No whitespace in self, so just use it as list[0] */
+ Py_INCREF(self);
+ PyList_SET_ITEM(list, 0, (PyObject *)self);
+ count++;
+ break;
+ }
SPLIT_ADD(s, i + 1, j + 1);
}
if (i >= 0) {
@@ -1645,8 +1668,9 @@
}
Py_LOCAL_INLINE(PyObject *)
-rsplit_char(const char *s, Py_ssize_t len, char ch, Py_ssize_t maxcount)
+rsplit_char(PyStringObject *self, Py_ssize_t len, char ch, Py_ssize_t maxcount)
{
+ const char *s = PyString_AS_STRING(self);
register Py_ssize_t i, j, count=0;
PyObject *str;
PyObject *list = PyList_New(PREALLOC_SIZE(maxcount));
@@ -1664,7 +1688,13 @@
}
}
}
- if (j >= -1) {
+ if (i < 0 && count == 0 && PyString_CheckExact(self)) {
+ /* ch not in self, so just use self as list[0] */
+ Py_INCREF(self);
+ PyList_SET_ITEM(list, 0, (PyObject *)self);
+ count++;
+ }
+ else if (j >= -1) {
SPLIT_ADD(s, 0, j + 1);
}
FIX_PREALLOC_SIZE(list);
@@ -1691,7 +1721,7 @@
{
Py_ssize_t len = PyString_GET_SIZE(self), n, i, j;
Py_ssize_t maxsplit = -1, count=0;
- const char *s = PyString_AS_STRING(self), *sub;
+ const char *s, *sub;
PyObject *list, *str, *subobj = Py_None;
if (!PyArg_ParseTuple(args, "|On:rsplit", &subobj, &maxsplit))
@@ -1699,7 +1729,7 @@
if (maxsplit < 0)
maxsplit = PY_SSIZE_T_MAX;
if (subobj == Py_None)
- return rsplit_whitespace(s, len, maxsplit);
+ return rsplit_whitespace(self, len, maxsplit);
if (PyString_Check(subobj)) {
sub = PyString_AS_STRING(subobj);
n = PyString_GET_SIZE(subobj);
@@ -1716,7 +1746,7 @@
return NULL;
}
else if (n == 1)
- return rsplit_char(s, len, sub[0], maxsplit);
+ return rsplit_char(self, len, sub[0], maxsplit);
list = PyList_New(PREALLOC_SIZE(maxsplit));
if (list == NULL)
@@ -1725,6 +1755,7 @@
j = len;
i = j - n;
+ s = PyString_AS_STRING(self);
while ( (i >= 0) && (maxsplit-- > 0) ) {
for (; i>=0; i--) {
if (Py_STRING_MATCH(s, i, sub, n)) {
From buildbot at python.org Sat Dec 8 16:37:43 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 15:37:43 +0000
Subject: [Python-checkins] buildbot failure in x86 FreeBSD trunk
Message-ID: <20071208153743.528261E402A@bag.python.org>
The Buildbot has detected a new failure of x86 FreeBSD trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20FreeBSD%20trunk/builds/252
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: bolen-freebsd
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: georg.brandl,skip.montanaro
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_threading
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 17:19:08 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 16:19:08 +0000
Subject: [Python-checkins] buildbot failure in amd64 gentoo 3.0
Message-ID: <20071208161908.C9BFA1E4027@bag.python.org>
The Buildbot has detected a new failure of amd64 gentoo 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20gentoo%203.0/builds/291
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: norwitz-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed failed slave lost
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 17:27:43 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 16:27:43 +0000
Subject: [Python-checkins] buildbot failure in sparc solaris10 gcc 3.0
Message-ID: <20071208162743.360101E401B@bag.python.org>
The Buildbot has detected a new failure of sparc solaris10 gcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/sparc%20solaris10%20gcc%203.0/builds/395
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-sun
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 17:27:50 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 16:27:50 +0000
Subject: [Python-checkins] buildbot failure in x86 mvlgcc 3.0
Message-ID: <20071208162750.906A81E401B@bag.python.org>
The Buildbot has detected a new failure of x86 mvlgcc 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/x86%20mvlgcc%203.0/builds/430
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: loewis-linux
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 17:45:25 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 16:45:25 +0000
Subject: [Python-checkins] buildbot failure in ia64 Ubuntu 3.0
Message-ID: <20071208164525.595511E402F@bag.python.org>
The Buildbot has detected a new failure of ia64 Ubuntu 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/ia64%20Ubuntu%203.0/builds/372
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-ia64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 17:50:57 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 16:50:57 +0000
Subject: [Python-checkins] buildbot failure in hppa Ubuntu trunk
Message-ID: <20071208165057.6F47E1E4021@bag.python.org>
The Buildbot has detected a new failure of hppa Ubuntu trunk.
Full details are available at:
http://www.python.org/dev/buildbot/all/hppa%20Ubuntu%20trunk/builds/366
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-ubuntu-hppa
Build Reason:
Build Source Stamp: [branch trunk] HEAD
Blamelist: skip.montanaro
BUILD FAILED: failed test
Excerpt from the test logfile:
1 test failed:
test_bsddb3
======================================================================
ERROR: test00_associateDBError (bsddb.test.test_associate.AssociateErrorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 104, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test13_associate_in_transaction (bsddb.test.test_associate.AssociateBTreeTxnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ShelveAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateHashTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateBTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_associateWithDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_associateAfterDB (bsddb.test.test_associate.ThreadedAssociateRecnoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_associate.py", line 165, in setUp
db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicBTreeWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_EnvRemoveAndRename (bsddb.test.test_basics.BasicHashWithEnvTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.BTreeTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Transactions (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test07_TxnTruncate (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test08_TxnLateUse (bsddb.test.test_basics.HashTransactionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.BTreeMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_GetsAndPuts (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_DictionaryMethods (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_SimpleCursorStuff (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithGetReturnsNone1 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03b_SimpleCursorWithoutGetReturnsNone0 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03c_SimpleCursorGetReturnsNone2 (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_PartialGetAndPut (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test05_GetSize (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test06_Truncate (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test09_MultiDB (bsddb.test.test_basics.HashMultiDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_basics.py", line 71, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_both (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 45, in test01_both
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_dbobj_dict_interface (bsddb.test.test_dbobj.dbobjTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbobj.py", line 58, in test02_dbobj_dict_interface
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbobj.py", line 39, in open
return apply(self._cobj.open, args, kwargs)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadBTreeShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_basics (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_cursors (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_append (bsddb.test.test_dbshelve.EnvThreadHashShelveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 35, in setUp
self.do_open()
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbshelve.py", line 253, in do_open
self.env.open(homeDir, self.envflags | db.DB_INIT_MPOOL | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03 (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test04_MultiCondSelect (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CondObjs (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_CreateOrExtend (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Delete (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_Modify (bsddb.test.test_dbtables.TableDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_dbtables.py", line 57, in setUp
filename='tabletest.db', dbhome=homeDir, create=1)
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/dbtables.py", line 161, in __init__
self.env.open(dbhome, myflags | flagsforenv)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_close_dbenv_before_db (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 53, in test01_close_dbenv_before_db
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_close_dbenv_delete_db_success (bsddb.test.test_env_close.DBEnvClosedEarlyCrash)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_env_close.py", line 78, in test02_close_dbenv_delete_db_success
0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_join (bsddb.test.test_join.JoinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_join.py", line 57, in setUp
self.env.open(homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK )
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_simple (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_threaded (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_set_timeout (bsddb.test.test_lock.LockingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_lock.py", line 38, in setUp
db.DB_INIT_LOCK | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_db_home (bsddb.test.test_misc.MiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_misc.py", line 45, in test02_db_home
env.open(self.homeDir, db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.BTreeConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test01_1WriterMultiReaders (bsddb.test.test_thread.HashConcurrentDataStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.BTreeSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test02_SimpleLocks (bsddb.test.test_thread.HashSimpleThreaded)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.BTreeThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test03_ThreadedTransactions (bsddb.test.test_thread.HashThreadedNoWaitTransactions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_thread.py", line 64, in setUp
self.env.open(homeDir, self.envflags | db.DB_CREATE)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_cachesize (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_flags (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_dbp (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_get_key (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_range (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_remove (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_stat (bsddb.test.test_sequence.DBSequenceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_sequence.py", line 29, in setUp
self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
======================================================================
ERROR: test_pget (bsddb.test.test_cursor_pget_bug.pget_bugTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pybot/buildarea/trunk.klose-ubuntu-hppa/build/Lib/bsddb/test/test_cursor_pget_bug.py", line 25, in setUp
self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
DBInvalidArgError: (22, 'Invalid argument -- Berkeley DB library configured to support only private environments')
make: *** [buildbottest] Error 1
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 18:02:01 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 17:02:01 +0000
Subject: [Python-checkins] buildbot failure in S-390 Debian 3.0
Message-ID: <20071208170201.683FE1E4004@bag.python.org>
The Buildbot has detected a new failure of S-390 Debian 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/S-390%20Debian%203.0/builds/351
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: klose-debian-s390
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 18:05:55 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 17:05:55 +0000
Subject: [Python-checkins] buildbot failure in g4 osx.4 3.0
Message-ID: <20071208170555.5B0F31E402F@bag.python.org>
The Buildbot has detected a new failure of g4 osx.4 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/g4%20osx.4%203.0/builds/347
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: psf-g4
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
sincerely,
-The Buildbot
From buildbot at python.org Sat Dec 8 18:14:01 2007
From: buildbot at python.org (buildbot at python.org)
Date: Sat, 08 Dec 2007 17:14:01 +0000
Subject: [Python-checkins] buildbot failure in amd64 XP 3.0
Message-ID: <20071208171401.6F4751E401D@bag.python.org>
The Buildbot has detected a new failure of amd64 XP 3.0.
Full details are available at:
http://www.python.org/dev/buildbot/all/amd64%20XP%203.0/builds/384
Buildbot URL: http://www.python.org/dev/buildbot/all/
Buildslave for this Build: heller-windows-amd64
Build Reason:
Build Source Stamp: [branch branches/py3k] HEAD
Blamelist: christian.heimes
BUILD FAILED: failed test
Excerpt from the test logfile:
4 tests failed:
test_getargs2 test_io test_mailbox test_winsound
======================================================================
ERROR: test_n (test.test_getargs2.Signed_TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_getargs2.py", line 190, in test_n
self.failUnlessEqual(99, getargs_n(Long()))
TypeError: 'Long' object cannot be interpreted as an integer
======================================================================
ERROR: test_flush (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 703, in tearDown
self._delete_recursively(self._path)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 47, in _delete_recursively
os.remove(target)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: '@test'
======================================================================
ERROR: test_popitem (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 336, in test_popitem
self.assertEqual(int(msg.get_payload()), keys.index(key))
ValueError: invalid literal for int() with base 10: 'From: foo 0 F'
======================================================================
ERROR: test_flush (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 703, in tearDown
self._delete_recursively(self._path)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 47, in _delete_recursively
os.remove(target)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: '@test'
======================================================================
ERROR: test_popitem (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 336, in test_popitem
self.assertEqual(int(msg.get_payload()), keys.index(key))
ValueError: invalid literal for int() with base 10: 'From: foo 0 \x01'
======================================================================
ERROR: test_flush (test.test_mailbox.TestBabyl)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 926, in tearDown
self._delete_recursively(self._path)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 47, in _delete_recursively
os.remove(target)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: '@test'
======================================================================
ERROR: test_popitem (test.test_mailbox.TestBabyl)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 336, in test_popitem
self.assertEqual(int(msg.get_payload()), keys.index(key))
ValueError: invalid literal for int() with base 10: 'From: foo *** EOOH *** From: foo 0 1,, From: foo *** EOOH *** From: foo 1 1,, From: foo *** EOOH *** From: foo 2 1,, From: foo *** EOOH *** From: foo 3 '
======================================================================
FAIL: test_dump_message (test.test_mailbox.TestMaildir)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 412, in test_dump_message
_sample_message.replace('\n', os.linesep))
AssertionError: 'Return-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n' != 'Return-Path: \r\nX-Original-To: gkj+person at localhost\r\nDelivered-To: gkj+person at localhost\r\nReceived: from localhost (localhost [127.0.0.1])\r\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\r\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\r\nDelivered-To: gkj at sundance.gregorykjohnson.com\r\nReceived: from localhost [127.0.0.1]\r\n by localhost with POP3 (fetchmail-6.2.5)\r\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\r\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\r\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\r\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\r\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\r\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\r\nDate: Wed, 13 Jul 2005 17:23:11 -0400\r\nFrom: "Gregory K. Johnson" \r\nTo: gkj at gregorykjohnson.com\r\nSubject: Sample message\r\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\r\nMime-Version: 1.0\r\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\r\nContent-Disposition: inline\r\nUser-Agent: Mutt/1.5.9i\r\n\r\n\r\n--NMuMz9nt05w80d4+\r\nContent-Type: text/plain; charset=us-ascii\r\nContent-Disposition: inline\r\n\r\nThis is a sample message.\r\n\r\n--\r\nGregory K. Johnson\r\n\r\n--NMuMz9nt05w80d4+\r\nContent-Type: application/octet-stream\r\nContent-Disposition: attachment; filename="text.gz"\r\nContent-Transfer-Encoding: base64\r\n\r\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\r\n3FYlAAAA\r\n\r\n--NMuMz9nt05w80d4+--\r\n'
======================================================================
FAIL: test_add (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 77, in test_add
self.assertEqual(self._box.get_string(keys[0]), self._template % 0)
AssertionError: '\nFrom: foo\n\n0\n\nF' != 'From: foo\n\n0'
======================================================================
FAIL: test_add_and_close (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 743, in test_add_and_close
self.assertEqual(contents, open(self._path, 'r').read())
AssertionError: 'From MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n0\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n1\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n2\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n' != 'From MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n0\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n1\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n2\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n0\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n1\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n2\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n1\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n2\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nFrom: foo\n\n2\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:22 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n'
======================================================================
FAIL: test_add_from_string (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 710, in test_add_from_string
self.assertEqual(self._box[key].get_from(), 'foo at bar blah')
AssertionError: 'foo at bar blah\n' != 'foo at bar blah'
======================================================================
FAIL: test_close (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 389, in test_close
self._test_flush_or_close(self._box.close)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 400, in _test_flush_or_close
self.assertEqual(len(keys), 3)
AssertionError: 6 != 3
======================================================================
FAIL: test_delitem (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 87, in test_delitem
self._test_remove_or_delitem(self._box.__delitem__)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 99, in _test_remove_or_delitem
self.assertEqual(self._box.get_string(key1), self._template % 1)
AssertionError: '\nFrom: foo\n\n1' != 'From: foo\n\n1'
======================================================================
FAIL: test_dump_message (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 412, in test_dump_message
_sample_message.replace('\n', os.linesep))
AssertionError: 'Return-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n' != 'Return-Path: \r\nX-Original-To: gkj+person at localhost\r\nDelivered-To: gkj+person at localhost\r\nReceived: from localhost (localhost [127.0.0.1])\r\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\r\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\r\nDelivered-To: gkj at sundance.gregorykjohnson.com\r\nReceived: from localhost [127.0.0.1]\r\n by localhost with POP3 (fetchmail-6.2.5)\r\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\r\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\r\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\r\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\r\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\r\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\r\nDate: Wed, 13 Jul 2005 17:23:11 -0400\r\nFrom: "Gregory K. Johnson" \r\nTo: gkj at gregorykjohnson.com\r\nSubject: Sample message\r\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\r\nMime-Version: 1.0\r\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\r\nContent-Disposition: inline\r\nUser-Agent: Mutt/1.5.9i\r\n\r\n\r\n--NMuMz9nt05w80d4+\r\nContent-Type: text/plain; charset=us-ascii\r\nContent-Disposition: inline\r\n\r\nThis is a sample message.\r\n\r\n--\r\nGregory K. Johnson\r\n\r\n--NMuMz9nt05w80d4+\r\nContent-Type: application/octet-stream\r\nContent-Disposition: attachment; filename="text.gz"\r\nContent-Transfer-Encoding: base64\r\n\r\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\r\n3FYlAAAA\r\n\r\n--NMuMz9nt05w80d4+--\r\n'
======================================================================
FAIL: test_flush (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 377, in test_flush
self._test_flush_or_close(self._box.flush)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 400, in _test_flush_or_close
self.assertEqual(len(keys), 3)
AssertionError: 6 != 3
======================================================================
FAIL: test_get (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 129, in test_get
self.assertEqual(msg['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_get_file (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 174, in test_get_file
self._template % 0)
AssertionError: '\nFrom: foo\n\n0\n\nF' != 'From: foo\n\n0'
======================================================================
FAIL: test_get_message (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 156, in test_get_message
self.assertEqual(msg0['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_get_string (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 164, in test_get_string
self.assertEqual(self._box.get_string(key0), self._template % 0)
AssertionError: '\nFrom: foo\n\n0\n\nF' != 'From: foo\n\n0'
======================================================================
FAIL: test_getitem (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 144, in test_getitem
self.assertEqual(msg['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_items (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 207, in test_items
self._check_iteration(self._box.items, do_keys=True, do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_iter (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 194, in test_iter
do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_iteritems (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 203, in test_iteritems
do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_itervalues (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 189, in test_itervalues
do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_open_close_open (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 727, in test_open_close_open
self.assertEqual(len(self._box), 3)
AssertionError: 6 != 3
======================================================================
FAIL: test_pop (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 313, in test_pop
self.assertEqual(self._box.pop(key0).get_payload(), '0')
AssertionError: 'From: foo\n\n0\n\nF' != '0'
======================================================================
FAIL: test_remove (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 83, in test_remove
self._test_remove_or_delitem(self._box.remove)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 99, in _test_remove_or_delitem
self.assertEqual(self._box.get_string(key1), self._template % 1)
AssertionError: '\nFrom: foo\n\n1' != 'From: foo\n\n1'
======================================================================
FAIL: test_set_item (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 272, in test_set_item
self._template % 'original 0')
AssertionError: '\nFrom: foo\n\noriginal 0' != 'From: foo\n\noriginal 0'
======================================================================
FAIL: test_update (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 350, in test_update
self._template % 'changed 0')
AssertionError: '\nFrom: foo\n\nchanged 0\n\nF' != 'From: foo\n\nchanged 0'
======================================================================
FAIL: test_values (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 198, in test_values
self._check_iteration(self._box.values, do_keys=False, do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_add (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 77, in test_add
self.assertEqual(self._box.get_string(keys[0]), self._template % 0)
AssertionError: '\nFrom: foo\n\n0\n\n\x01' != 'From: foo\n\n0'
======================================================================
FAIL: test_add_and_close (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 743, in test_add_and_close
self.assertEqual(contents, open(self._path, 'r').read())
AssertionError: '\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n0\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n1\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n2\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\n\x01\x01\x01\x01\n\n' != '\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n0\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n1\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n2\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\n\x01\x01\x01\x01\n\n\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n0\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n1\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n2\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\n\x01\x01\x01\x01\n\n\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n1\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n2\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\n\x01\x01\x01\x01\n\n\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nFrom: foo\n\n2\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\n\x01\x01\x01\x01\n\n\n\n\x01\x01\x01\x01\n\n\x01\x01\x01\x01\n\nFrom MAILER-DAEMON Sat Dec 08 17:17:25 2007\n\nReturn-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n\n\n\x01\x01\x01\x01\n\n\n\n\x01\x01\x01\x01\n\n'
======================================================================
FAIL: test_add_from_string (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 710, in test_add_from_string
self.assertEqual(self._box[key].get_from(), 'foo at bar blah')
AssertionError: 'foo at bar blah\n' != 'foo at bar blah'
======================================================================
FAIL: test_close (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 389, in test_close
self._test_flush_or_close(self._box.close)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 400, in _test_flush_or_close
self.assertEqual(len(keys), 3)
AssertionError: 0 != 3
======================================================================
FAIL: test_delitem (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 87, in test_delitem
self._test_remove_or_delitem(self._box.__delitem__)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 99, in _test_remove_or_delitem
self.assertEqual(self._box.get_string(key1), self._template % 1)
AssertionError: '\nFrom: foo\n\n1\n\n\x01' != 'From: foo\n\n1'
======================================================================
FAIL: test_dump_message (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 412, in test_dump_message
_sample_message.replace('\n', os.linesep))
AssertionError: 'Return-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n' != 'Return-Path: \r\nX-Original-To: gkj+person at localhost\r\nDelivered-To: gkj+person at localhost\r\nReceived: from localhost (localhost [127.0.0.1])\r\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\r\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\r\nDelivered-To: gkj at sundance.gregorykjohnson.com\r\nReceived: from localhost [127.0.0.1]\r\n by localhost with POP3 (fetchmail-6.2.5)\r\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\r\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\r\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\r\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\r\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\r\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\r\nDate: Wed, 13 Jul 2005 17:23:11 -0400\r\nFrom: "Gregory K. Johnson" \r\nTo: gkj at gregorykjohnson.com\r\nSubject: Sample message\r\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\r\nMime-Version: 1.0\r\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\r\nContent-Disposition: inline\r\nUser-Agent: Mutt/1.5.9i\r\n\r\n\r\n--NMuMz9nt05w80d4+\r\nContent-Type: text/plain; charset=us-ascii\r\nContent-Disposition: inline\r\n\r\nThis is a sample message.\r\n\r\n--\r\nGregory K. Johnson\r\n\r\n--NMuMz9nt05w80d4+\r\nContent-Type: application/octet-stream\r\nContent-Disposition: attachment; filename="text.gz"\r\nContent-Transfer-Encoding: base64\r\n\r\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\r\n3FYlAAAA\r\n\r\n--NMuMz9nt05w80d4+--\r\n'
======================================================================
FAIL: test_flush (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 377, in test_flush
self._test_flush_or_close(self._box.flush)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 400, in _test_flush_or_close
self.assertEqual(len(keys), 3)
AssertionError: 0 != 3
======================================================================
FAIL: test_get (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 129, in test_get
self.assertEqual(msg['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_get_file (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 174, in test_get_file
self._template % 0)
AssertionError: '\nFrom: foo\n\n0\n\n\x01' != 'From: foo\n\n0'
======================================================================
FAIL: test_get_message (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 156, in test_get_message
self.assertEqual(msg0['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_get_string (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 164, in test_get_string
self.assertEqual(self._box.get_string(key0), self._template % 0)
AssertionError: '\nFrom: foo\n\n0\n\n\x01' != 'From: foo\n\n0'
======================================================================
FAIL: test_getitem (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 144, in test_getitem
self.assertEqual(msg['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_items (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 207, in test_items
self._check_iteration(self._box.items, do_keys=True, do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_iter (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 194, in test_iter
do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_iteritems (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 203, in test_iteritems
do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_itervalues (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 189, in test_itervalues
do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_open_close_open (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 727, in test_open_close_open
self.assertEqual(len(self._box), 3)
AssertionError: 0 != 3
======================================================================
FAIL: test_pop (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 313, in test_pop
self.assertEqual(self._box.pop(key0).get_payload(), '0')
AssertionError: 'From: foo\n\n0\n\n\x01' != '0'
======================================================================
FAIL: test_remove (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 83, in test_remove
self._test_remove_or_delitem(self._box.remove)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 99, in _test_remove_or_delitem
self.assertEqual(self._box.get_string(key1), self._template % 1)
AssertionError: '\nFrom: foo\n\n1\n\n\x01' != 'From: foo\n\n1'
======================================================================
FAIL: test_set_item (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 272, in test_set_item
self._template % 'original 0')
AssertionError: '\nFrom: foo\n\noriginal 0\n\n\x01' != 'From: foo\n\noriginal 0'
======================================================================
FAIL: test_update (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 350, in test_update
self._template % 'changed 0')
AssertionError: '\nFrom: foo\n\nchanged 0\n\n\x01' != 'From: foo\n\nchanged 0'
======================================================================
FAIL: test_values (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 198, in test_values
self._check_iteration(self._box.values, do_keys=False, do_values=True)
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 231, in _check_iteration
self.assertEqual(value['from'], 'foo')
AssertionError: None != 'foo'
======================================================================
FAIL: test_dump_message (test.test_mailbox.TestMH)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 412, in test_dump_message
_sample_message.replace('\n', os.linesep))
AssertionError: 'Return-Path: \nX-Original-To: gkj+person at localhost\nDelivered-To: gkj+person at localhost\nReceived: from localhost (localhost [127.0.0.1])\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nDelivered-To: gkj at sundance.gregorykjohnson.com\nReceived: from localhost [127.0.0.1]\n by localhost with POP3 (fetchmail-6.2.5)\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\nDate: Wed, 13 Jul 2005 17:23:11 -0400\nFrom: "Gregory K. Johnson" \nTo: gkj at gregorykjohnson.com\nSubject: Sample message\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\nMime-Version: 1.0\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\nContent-Disposition: inline\nUser-Agent: Mutt/1.5.9i\n\n\n--NMuMz9nt05w80d4+\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\n\nThis is a sample message.\n\n--\nGregory K. Johnson\n\n--NMuMz9nt05w80d4+\nContent-Type: application/octet-stream\nContent-Disposition: attachment; filename="text.gz"\nContent-Transfer-Encoding: base64\n\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\n3FYlAAAA\n\n--NMuMz9nt05w80d4+--\n' != 'Return-Path: \r\nX-Original-To: gkj+person at localhost\r\nDelivered-To: gkj+person at localhost\r\nReceived: from localhost (localhost [127.0.0.1])\r\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\r\n for ; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\r\nDelivered-To: gkj at sundance.gregorykjohnson.com\r\nReceived: from localhost [127.0.0.1]\r\n by localhost with POP3 (fetchmail-6.2.5)\r\n for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)\r\nReceived: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])\r\n by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746\r\n for ; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\r\nReceived: by andy.gregorykjohnson.com (Postfix, from userid 1000)\r\n id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)\r\nDate: Wed, 13 Jul 2005 17:23:11 -0400\r\nFrom: "Gregory K. Johnson" \r\nTo: gkj at gregorykjohnson.com\r\nSubject: Sample message\r\nMessage-ID: <20050713212311.GC4701 at andy.gregorykjohnson.com>\r\nMime-Version: 1.0\r\nContent-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"\r\nContent-Disposition: inline\r\nUser-Agent: Mutt/1.5.9i\r\n\r\n\r\n--NMuMz9nt05w80d4+\r\nContent-Type: text/plain; charset=us-ascii\r\nContent-Disposition: inline\r\n\r\nThis is a sample message.\r\n\r\n--\r\nGregory K. Johnson\r\n\r\n--NMuMz9nt05w80d4+\r\nContent-Type: application/octet-stream\r\nContent-Disposition: attachment; filename="text.gz"\r\nContent-Transfer-Encoding: base64\r\n\r\nH4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs\r\n3FYlAAAA\r\n\r\n--NMuMz9nt05w80d4+--\r\n'
======================================================================
FAIL: test_add (test.test_mailbox.TestBabyl)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot\3.0.heller-windows-amd64\build\lib\test\test_mailbox.py", line 77, in test_add
self.assertEqual(self._box.get_string(keys[0]), self._template % 0)
AssertionError: '\nFrom: foo\n\n\n\n*** EOOH ***\n\nFrom: foo\n\n\n\n0\n\n\x1f\x0c\n\n1,,\n\nReturn-Path: \n\nX-Original-To: gkj+person at localhost\n\nDelivered-To: gkj+person at localhost\n\nReceived: from localhost (localhost [127.0.0.1])\n\n by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17\n\n for