]> granicus.if.org Git - python/log
python
17 years agoSmall code cleanup.
Raymond Hettinger [Wed, 5 Mar 2008 21:04:32 +0000 (21:04 +0000)]
Small code cleanup.

17 years agoC implementation of itertools.permutations().
Raymond Hettinger [Wed, 5 Mar 2008 20:59:58 +0000 (20:59 +0000)]
C implementation of itertools.permutations().

17 years ago#2239: PYTHONPATH delimiter is os.pathsep.
Georg Brandl [Wed, 5 Mar 2008 19:31:44 +0000 (19:31 +0000)]
#2239: PYTHONPATH delimiter is os.pathsep.

17 years agoElaborate on the role of the altinstall target when installing multiple
Skip Montanaro [Wed, 5 Mar 2008 16:41:09 +0000 (16:41 +0000)]
Elaborate on the role of the altinstall target when installing multiple
versions.

17 years agoIssue 1872: Changed the struct module typecode from 't' to '?', for
Thomas Heller [Wed, 5 Mar 2008 15:34:29 +0000 (15:34 +0000)]
Issue 1872: Changed the struct module typecode from 't' to '?', for
compatibility with PEP3118.

17 years agoNews entry for yesterdays commit.
Thomas Heller [Wed, 5 Mar 2008 14:53:39 +0000 (14:53 +0000)]
News entry for yesterdays commit.

17 years agoFix some rst.
Georg Brandl [Wed, 5 Mar 2008 07:10:35 +0000 (07:10 +0000)]
Fix some rst.

17 years agoFix test_socketserver on Windows after r61099 added several signal.alarm()
Jeffrey Yasskin [Wed, 5 Mar 2008 06:19:56 +0000 (06:19 +0000)]
Fix test_socketserver on Windows after r61099 added several signal.alarm()
calls (which don't exist on non-Unix platforms).

Thanks to Trent Nelson for the report and patch.

17 years agotest_smtplib sometimes reports leaks too, suppress it
Neal Norwitz [Wed, 5 Mar 2008 05:51:20 +0000 (05:51 +0000)]
test_smtplib sometimes reports leaks too, suppress it

17 years agoUse -u urlfetch to run more tests
Neal Norwitz [Wed, 5 Mar 2008 05:50:20 +0000 (05:50 +0000)]
Use -u urlfetch to run more tests

17 years agoTabs -> spaces
Neal Norwitz [Wed, 5 Mar 2008 05:49:03 +0000 (05:49 +0000)]
Tabs -> spaces

17 years agoMake the timeout longer to give slow machines a chance to pass the test
Neal Norwitz [Wed, 5 Mar 2008 05:38:06 +0000 (05:38 +0000)]
Make the timeout longer to give slow machines a chance to pass the test
before timing out.  This doesn't change the duration of the test under
normal circumstances.  This is targetted at fixing the spurious failures
on the FreeBSD buildbot primarily.

17 years agoCatch OSError when trying to remove a file in case removal fails. This
Neal Norwitz [Wed, 5 Mar 2008 05:20:44 +0000 (05:20 +0000)]
Catch OSError when trying to remove a file in case removal fails. This
should prevent a failure in tearDown masking any real test failure.

17 years agoGet this test to pass even when there is no sound card in the system.
Neal Norwitz [Wed, 5 Mar 2008 05:14:18 +0000 (05:14 +0000)]
Get this test to pass even when there is no sound card in the system.
Patch from Trent Nelson.  (I can't test this.)

17 years agoRemove the files/dirs after closing the DB so the tests work on Windows.
Neal Norwitz [Wed, 5 Mar 2008 05:10:48 +0000 (05:10 +0000)]
Remove the files/dirs after closing the DB so the tests work on Windows.
Patch from Trent Nelson.  Also simplified removing a file by using test_support.

17 years agoIssue#2238: some syntax errors from *args or **kwargs expressions
Amaury Forgeot d'Arc [Wed, 5 Mar 2008 01:50:33 +0000 (01:50 +0000)]
Issue#2238: some syntax errors from *args or **kwargs expressions
would give bogus error messages, because of untested exceptions::

    >>> f(**g(1=2))
    XXX undetected error
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: 'int' object is not iterable

instead of the expected SyntaxError: keyword can't be an expression

Will backport.

17 years agoAdd more items; add fragmentary notes
Andrew M. Kuchling [Wed, 5 Mar 2008 00:44:41 +0000 (00:44 +0000)]
Add more items; add fragmentary notes

17 years agoFix refleak in chain().
Raymond Hettinger [Tue, 4 Mar 2008 22:29:44 +0000 (22:29 +0000)]
Fix refleak in chain().

17 years agofix typo
Fred Drake [Tue, 4 Mar 2008 21:14:04 +0000 (21:14 +0000)]
fix typo

17 years agoTry to fix the build for PY_LINUX.
Thomas Heller [Tue, 4 Mar 2008 20:21:42 +0000 (20:21 +0000)]
Try to fix the build for PY_LINUX.

17 years agoMerged changes from libffi3-branch.
Thomas Heller [Tue, 4 Mar 2008 20:09:11 +0000 (20:09 +0000)]
Merged changes from libffi3-branch.

The bundled libffi copy is now in sync with the recently released
libffi3.0.4 version, apart from some small changes to
Modules/_ctypes/libffi/configure.ac.

I gave up on using libffi3 files on os x.
Instead, static configuration with files from pyobjc is used.

17 years agoClose the file before trying to remove the directory so it works on Windows.
Neal Norwitz [Tue, 4 Mar 2008 16:22:46 +0000 (16:22 +0000)]
Close the file before trying to remove the directory so it works on Windows.
As reported by Trent Nelson on python-dev.

17 years ago#2230: document that PyArg_* leaves addresses alone on error.
Georg Brandl [Tue, 4 Mar 2008 07:33:30 +0000 (07:33 +0000)]
#2230: document that PyArg_* leaves addresses alone on error.

17 years agoFix some patch attributions.
Georg Brandl [Tue, 4 Mar 2008 07:25:54 +0000 (07:25 +0000)]
Fix some patch attributions.

17 years agoBeef-up docs and tests for itertools. Fix-up end-case for product().
Raymond Hettinger [Tue, 4 Mar 2008 04:17:08 +0000 (04:17 +0000)]
Beef-up docs and tests for itertools.  Fix-up end-case for product().

17 years agoThesis night results: add various items
Andrew M. Kuchling [Tue, 4 Mar 2008 01:50:32 +0000 (01:50 +0000)]
Thesis night results: add various items

17 years agoAdd versionadded tags
Andrew M. Kuchling [Tue, 4 Mar 2008 01:49:37 +0000 (01:49 +0000)]
Add versionadded tags

17 years agoTypo fix
Andrew M. Kuchling [Tue, 4 Mar 2008 01:48:26 +0000 (01:48 +0000)]
Typo fix

17 years agoFix sentence fragment
Andrew M. Kuchling [Tue, 4 Mar 2008 01:47:38 +0000 (01:47 +0000)]
Fix sentence fragment

17 years agoGrammar fix; markup fix
Andrew M. Kuchling [Tue, 4 Mar 2008 01:30:10 +0000 (01:30 +0000)]
Grammar fix; markup fix

17 years agoTypo fix
Andrew M. Kuchling [Tue, 4 Mar 2008 00:40:32 +0000 (00:40 +0000)]
Typo fix

17 years agoIssue 2226: Callable checked for the wrong abstract method.
Raymond Hettinger [Mon, 3 Mar 2008 22:19:58 +0000 (22:19 +0000)]
Issue 2226: Callable checked for the wrong abstract method.

17 years agoRemove dependency on itertools -- a simple genexp suffices.
Raymond Hettinger [Mon, 3 Mar 2008 22:04:55 +0000 (22:04 +0000)]
Remove dependency on itertools -- a simple genexp suffices.

17 years agoExpand a bit on genexp scopes.
Georg Brandl [Mon, 3 Mar 2008 21:31:50 +0000 (21:31 +0000)]
Expand a bit on genexp scopes.

17 years agoActually import itertools.
Georg Brandl [Mon, 3 Mar 2008 21:22:47 +0000 (21:22 +0000)]
Actually import itertools.

17 years ago15 -> 16, the 2nd
Georg Brandl [Mon, 3 Mar 2008 20:39:00 +0000 (20:39 +0000)]
15 -> 16, the 2nd

17 years agoThere are now sixteen isfoo functions.
Georg Brandl [Mon, 3 Mar 2008 20:37:55 +0000 (20:37 +0000)]
There are now sixteen isfoo functions.

17 years ago15 -> 16
Christian Heimes [Mon, 3 Mar 2008 20:30:29 +0000 (20:30 +0000)]
15 -> 16

17 years agoSince abc._Abstract was replaces by a new type flags the regression test suite fails...
Christian Heimes [Mon, 3 Mar 2008 18:28:04 +0000 (18:28 +0000)]
Since abc._Abstract was replaces by a new type flags the regression test suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too?

17 years agoInitialized merge tracking via "svnmerge" with revisions "1-60195" from
Christian Heimes [Mon, 3 Mar 2008 12:40:17 +0000 (12:40 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-60195" from
svn+ssh://pythondev@svn.python.org/python/branches/trunk-math

17 years agoOnly DECREF if ret != NULL
Neal Norwitz [Mon, 3 Mar 2008 04:37:45 +0000 (04:37 +0000)]
Only DECREF if ret != NULL

17 years agoAdd test_main() functions to various tests where it was simple to do. Done so
Brett Cannon [Mon, 3 Mar 2008 04:19:29 +0000 (04:19 +0000)]
Add test_main() functions to various tests where it was simple to do. Done so
that regrtest can execute the test_main() directly instead of relying on import
side-effects.

17 years agoAdd a note in the main test class' docstring that the order of execution of the
Brett Cannon [Mon, 3 Mar 2008 03:26:43 +0000 (03:26 +0000)]
Add a note in the main test class' docstring that the order of execution of the
tests is important.

17 years agoAdd a note in the main test class' docstring that the order of execution of the
Brett Cannon [Mon, 3 Mar 2008 03:24:48 +0000 (03:24 +0000)]
Add a note in the main test class' docstring that the order of execution of the
tests is important.

17 years agoMove test_largefile over to using 'with' statements for open files.
Brett Cannon [Mon, 3 Mar 2008 02:41:40 +0000 (02:41 +0000)]
Move test_largefile over to using 'with' statements for open files.

Also rename the driver function to test_main() instead of main_test().

17 years agocompile.c always emits END_FINALLY after WITH_CLEANUP, so predict that in
Jeffrey Yasskin [Mon, 3 Mar 2008 01:27:03 +0000 (01:27 +0000)]
compile.c always emits END_FINALLY after WITH_CLEANUP, so predict that in
ceval.c. This is worth about a .03-.04us speedup on a simple with block.

17 years agoRefactor test_logging to use unittest. This should finally solve the flakiness
Brett Cannon [Mon, 3 Mar 2008 00:38:58 +0000 (00:38 +0000)]
Refactor test_logging to use unittest. This should finally solve the flakiness
issues.

Thanks to Antoine Pitrou for the patch.

17 years agoModify import of test_support so that the code can also be used with a
Gregory P. Smith [Sun, 2 Mar 2008 20:00:53 +0000 (20:00 +0000)]
Modify import of test_support so that the code can also be used with a
stand alone distribution of bsddb that includes its own small copy of
test_support for the needed functionality on older pythons.

17 years agoFix factual error.
Georg Brandl [Sun, 2 Mar 2008 14:15:04 +0000 (14:15 +0000)]
Fix factual error.

17 years agoMake clear that the constants are strings.
Georg Brandl [Sun, 2 Mar 2008 13:41:39 +0000 (13:41 +0000)]
Make clear that the constants are strings.

17 years agoAdded note about update of sqlite3 module.
Gerhard Häring [Sun, 2 Mar 2008 13:12:27 +0000 (13:12 +0000)]
Added note about update of sqlite3 module.

17 years agoMade sqlite3 module's regression tests work with SQLite versions that don't
Gerhard Häring [Sun, 2 Mar 2008 13:08:03 +0000 (13:08 +0000)]
Made sqlite3 module's regression tests work with SQLite versions that don't
support "create table if not exists", yet.

17 years agoHandle 0-tuples which can be singletons.
Raymond Hettinger [Sun, 2 Mar 2008 12:02:19 +0000 (12:02 +0000)]
Handle 0-tuples which can be singletons.

17 years agoSimplify code for itertools.product().
Raymond Hettinger [Sun, 2 Mar 2008 11:57:16 +0000 (11:57 +0000)]
Simplify code for itertools.product().

17 years agoTighten example code.
Raymond Hettinger [Sun, 2 Mar 2008 11:17:51 +0000 (11:17 +0000)]
Tighten example code.

17 years agoFinish-up docs for combinations() and permutations() in itertools.
Raymond Hettinger [Sun, 2 Mar 2008 10:59:31 +0000 (10:59 +0000)]
Finish-up docs for combinations() and permutations() in itertools.

17 years agoNew default basename for HTML help files.
Georg Brandl [Sun, 2 Mar 2008 06:45:40 +0000 (06:45 +0000)]
New default basename for HTML help files.

17 years agoMake patchlevel print out the release if called as a script.
Georg Brandl [Sun, 2 Mar 2008 06:44:08 +0000 (06:44 +0000)]
Make patchlevel print out the release if called as a script.

17 years agoUpdate year.
Georg Brandl [Sun, 2 Mar 2008 06:32:32 +0000 (06:32 +0000)]
Update year.

17 years agoIt's 2.6 now.
Georg Brandl [Sun, 2 Mar 2008 06:28:16 +0000 (06:28 +0000)]
It's 2.6 now.

17 years agoSet things up for 2.6a2.
Barry Warsaw [Sat, 1 Mar 2008 17:11:41 +0000 (17:11 +0000)]
Set things up for 2.6a2.

17 years agoTagging 2.6a1... again!
Barry Warsaw [Sat, 1 Mar 2008 03:16:15 +0000 (03:16 +0000)]
Tagging 2.6a1... again!

17 years agoMore copyright year and version number bumps v2.6a1
Barry Warsaw [Sat, 1 Mar 2008 03:15:20 +0000 (03:15 +0000)]
More copyright year and version number bumps

17 years agoGive IDLE a release date
Barry Warsaw [Sat, 1 Mar 2008 03:00:52 +0000 (03:00 +0000)]
Give IDLE a release date

17 years agoUntagging.
Barry Warsaw [Sat, 1 Mar 2008 03:00:01 +0000 (03:00 +0000)]
Untagging.

17 years agoTagging 2.6a1
Barry Warsaw [Sat, 1 Mar 2008 02:57:23 +0000 (02:57 +0000)]
Tagging 2.6a1

17 years agoAdd date to NEWS
Barry Warsaw [Sat, 1 Mar 2008 02:53:36 +0000 (02:53 +0000)]
Add date to NEWS

17 years agofix typo
Fred Drake [Sat, 1 Mar 2008 02:45:07 +0000 (02:45 +0000)]
fix typo

17 years agobump idle version number
Barry Warsaw [Sat, 1 Mar 2008 02:26:42 +0000 (02:26 +0000)]
bump idle version number

17 years agoBump to version 2.6a1
Barry Warsaw [Sat, 1 Mar 2008 02:23:38 +0000 (02:23 +0000)]
Bump to version 2.6a1

17 years agoUpdated to pysqlite 2.4.1. Documentation additions will come later.
Gerhard Häring [Fri, 29 Feb 2008 22:08:41 +0000 (22:08 +0000)]
Updated to pysqlite 2.4.1. Documentation additions will come later.

17 years agoPackage Tcl from tcltk64 on AMD64.
Martin v. Löwis [Fri, 29 Feb 2008 20:54:44 +0000 (20:54 +0000)]
Package Tcl from tcltk64 on AMD64.

17 years agoMake _hashlib depend on pythoncore.
Martin v. Löwis [Fri, 29 Feb 2008 20:26:53 +0000 (20:26 +0000)]
Make _hashlib depend on pythoncore.

17 years agoPort build_ssl.py to 2.4; support HOST_PYTHON variable
Martin v. Löwis [Fri, 29 Feb 2008 18:54:45 +0000 (18:54 +0000)]
Port build_ssl.py to 2.4; support HOST_PYTHON variable

17 years ago#2208: allow for non-standard HHC location.
Georg Brandl [Fri, 29 Feb 2008 18:21:29 +0000 (18:21 +0000)]
#2208: allow for non-standard HHC location.

17 years agoBuild db-4.4.20 with VS9; remove VS2003 build if necessary.
Martin v. Löwis [Fri, 29 Feb 2008 18:17:23 +0000 (18:17 +0000)]
Build db-4.4.20 with VS9; remove VS2003 build if necessary.

17 years agoUntil we got downloadable docs, stop confusing viewers by talking about a nonexisting...
Georg Brandl [Fri, 29 Feb 2008 18:15:36 +0000 (18:15 +0000)]
Until we got downloadable docs, stop confusing viewers by talking about a nonexisting table.

17 years agoMake _hashlib a separate project.
Martin v. Löwis [Fri, 29 Feb 2008 16:59:21 +0000 (16:59 +0000)]
Make _hashlib a separate project.

17 years agoFix docstring typo.
Mark Dickinson [Fri, 29 Feb 2008 03:29:17 +0000 (03:29 +0000)]
Fix docstring typo.

17 years agoHandle the repeat keyword argument for itertools.product().
Raymond Hettinger [Fri, 29 Feb 2008 02:21:48 +0000 (02:21 +0000)]
Handle the repeat keyword argument for itertools.product().

17 years agoAdd __format__ method to Decimal, to support PEP 3101
Mark Dickinson [Fri, 29 Feb 2008 02:16:37 +0000 (02:16 +0000)]
Add __format__ method to Decimal, to support PEP 3101

17 years agoAdd alternate constructor for itertools.chain().
Raymond Hettinger [Thu, 28 Feb 2008 22:46:41 +0000 (22:46 +0000)]
Add alternate constructor for itertools.chain().

17 years agoHave itertools.chain() consume its inputs lazily instead of building a tuple of itera...
Raymond Hettinger [Thu, 28 Feb 2008 22:30:42 +0000 (22:30 +0000)]
Have itertools.chain() consume its inputs lazily instead of building a tuple of iterators at the outset.

17 years agoLocate VS installation dir from environment, so that it works with the express edition.
Martin v. Löwis [Thu, 28 Feb 2008 22:20:50 +0000 (22:20 +0000)]
Locate VS installation dir from environment, so that it works with the express edition.

17 years agoWindows fix for signal test - skip it earlier
Christian Heimes [Thu, 28 Feb 2008 21:00:45 +0000 (21:00 +0000)]
Windows fix for signal test - skip it earlier

17 years agoBundle msvcr90.dll as a "private assembly".
Martin v. Löwis [Thu, 28 Feb 2008 19:57:34 +0000 (19:57 +0000)]
Bundle msvcr90.dll as a "private assembly".

17 years agoAdd 2.6aN uuids.
Martin v. Löwis [Thu, 28 Feb 2008 19:44:22 +0000 (19:44 +0000)]
Add 2.6aN uuids.

17 years agoDocument impending updates to itertools.
Raymond Hettinger [Thu, 28 Feb 2008 19:41:24 +0000 (19:41 +0000)]
Document impending updates to itertools.

17 years agoPrevent SocketServer.ForkingMixIn from waiting on child processes that it
Jeffrey Yasskin [Thu, 28 Feb 2008 18:03:15 +0000 (18:03 +0000)]
Prevent SocketServer.ForkingMixIn from waiting on child processes that it
didn't create, in most cases. When there are max_children handlers running, it
will still wait for any child process, not just handler processes.

17 years ago#2169: make generated HTML more valid
Andrew M. Kuchling [Thu, 28 Feb 2008 14:03:03 +0000 (14:03 +0000)]
#2169: make generated HTML more valid

17 years agoThe empty tuple is usually a singleton with a much higher refcnt than 1
Christian Heimes [Thu, 28 Feb 2008 11:18:49 +0000 (11:18 +0000)]
The empty tuple is usually a singleton with a much higher refcnt than 1

17 years agoAdd repeat keyword argument to itertools.product().
Raymond Hettinger [Thu, 28 Feb 2008 09:23:48 +0000 (09:23 +0000)]
Add repeat keyword argument to itertools.product().

17 years agoThread.start() used sleep(0.000001) to make sure it didn't return before the
Jeffrey Yasskin [Thu, 28 Feb 2008 06:09:19 +0000 (06:09 +0000)]
Thread.start() used sleep(0.000001) to make sure it didn't return before the
new thread had started. At least on my MacBook Pro, that wound up sleeping for
a full 10ms (probably 1 jiffy). By using an Event instead, we can be absolutely
certain that the thread has started, and return more quickly (217us).

Before:
$  ./python.exe -m timeit -s 'from threading import Thread'  't = Thread(); t.start(); t.join()'
100 loops, best of 3: 10.3 msec per loop
$  ./python.exe -m timeit -s 'from threading import Thread; t = Thread()'  't.isAlive()'
1000000 loops, best of 3: 0.47 usec per loop

After:
$  ./python.exe -m timeit -s 'from threading import Thread'  't = Thread(); t.start(); t.join()'
1000 loops, best of 3: 217 usec per loop
$  ./python.exe -m timeit -s 'from threading import Thread; t = Thread()'  't.isAlive()'
1000000 loops, best of 3: 0.86 usec per loop

To be fair, the 10ms isn't CPU time, and other threads including the spawned
one get to run during it. There are also some slightly more complicated ways to
get back the .4us in isAlive() if we want.

17 years agoSpeed test_socketserver up from 28.739s to 0.226s, simplify the logic, and make
Jeffrey Yasskin [Thu, 28 Feb 2008 05:53:18 +0000 (05:53 +0000)]
Speed test_socketserver up from 28.739s to 0.226s, simplify the logic, and make
sure all tests run even if some fail.

17 years agoMove abc._Abstract into object by adding a new flag Py_TPFLAGS_IS_ABSTRACT,
Jeffrey Yasskin [Thu, 28 Feb 2008 04:45:36 +0000 (04:45 +0000)]
Move abc._Abstract into object by adding a new flag Py_TPFLAGS_IS_ABSTRACT,
which forbids constructing types that have it set. The effect is to speed

  ./python.exe -m timeit -s 'import abc' -s 'class Foo(object): __metaclass__ = abc.ABCMeta' 'Foo()'

up from 2.5us to 0.201us. This fixes issue 1762.

17 years agoSimply the sample code for combinations().
Raymond Hettinger [Wed, 27 Feb 2008 01:44:34 +0000 (01:44 +0000)]
Simply the sample code for combinations().

17 years agoLarger test range
Raymond Hettinger [Wed, 27 Feb 2008 01:08:30 +0000 (01:08 +0000)]
Larger test range

17 years agoOne too many decrefs.
Raymond Hettinger [Wed, 27 Feb 2008 01:08:04 +0000 (01:08 +0000)]
One too many decrefs.

17 years agoAdd itertools.combinations().
Raymond Hettinger [Tue, 26 Feb 2008 23:40:50 +0000 (23:40 +0000)]
Add itertools.combinations().

17 years ago#2194: fix some typos.
Georg Brandl [Tue, 26 Feb 2008 19:13:45 +0000 (19:13 +0000)]
#2194: fix some typos.