]>
granicus.if.org Git - python/log
Barry Warsaw [Thu, 3 Apr 2008 04:14:19 +0000 (04:14 +0000)]
Post tag version tweak
Barry Warsaw [Thu, 3 Apr 2008 04:11:10 +0000 (04:11 +0000)]
Create the tag for 2.6a2
Barry Warsaw [Thu, 3 Apr 2008 04:10:02 +0000 (04:10 +0000)]
Updating for 2.6a2
Benjamin Peterson [Wed, 2 Apr 2008 21:20:35 +0000 (21:20 +0000)]
Suggested proposed changes to Python be considered on some mailing lists first
Amaury Forgeot d'Arc [Wed, 2 Apr 2008 21:18:46 +0000 (21:18 +0000)]
Remove debug prints; the buildbot now passes the tests
Vinay Sajip [Wed, 2 Apr 2008 21:17:25 +0000 (21:17 +0000)]
Added updates with respect to recent changes to TimedRotatingFileHandler.
Vinay Sajip [Wed, 2 Apr 2008 21:10:23 +0000 (21:10 +0000)]
Added updates with respect to recent changes to TimedRotatingFileHandler.
Vinay Sajip [Wed, 2 Apr 2008 21:09:27 +0000 (21:09 +0000)]
Fix: #2315, #2316, #2317: TimedRotatingFileHandler - changed logic to better handle daylight savings time, deletion of old log files, and fixed a bug in calculating rollover when no logging occurs for a longer interval than the rollover period.
Trent Nelson [Wed, 2 Apr 2008 15:01:00 +0000 (15:01 +0000)]
Update information pertaining to building external components, as well as notes on x64 builds. This file now accurately describes the build process as is; however, there's still a lot of room for improvement, especially with regards to how we build Tcl/Tk, Tix, and OpenSSL. Watch this space for further improvements.
Neal Norwitz [Wed, 2 Apr 2008 05:54:27 +0000 (05:54 +0000)]
Apply same patch from 3k branch to try and prevent this test from hanging
on various platforms, most recently the Alpha Tru64.
Jeffrey Yasskin [Wed, 2 Apr 2008 04:07:44 +0000 (04:07 +0000)]
Try to make test_signal less flaky. I still see some flakiness in
test_itimer_prof.
Amaury Forgeot d'Arc [Wed, 2 Apr 2008 00:55:04 +0000 (00:55 +0000)]
A DocTestSuite cannot run multiple times: it clears its globals dictionary after the first run.
Rebuild the DocTestSuite on each iteration.
Amaury Forgeot d'Arc [Wed, 2 Apr 2008 00:25:14 +0000 (00:25 +0000)]
Correct the apparent refleak in test_io:
When cls is an ABCMeta, every call to isinstance(x, cls)
records type(x) in the cls._abc_cache of cls_abc_negative_cache.
So we clear these caches at the end of the test.
inspect.isabstract() is not the correct test for all ABCs, because there is no @abstractmethod in io.py (why?)
isinstance(cls, ABCMeta) would be more exact, but it fails with an infinite recursion.
So I used a hack to determine whether a class is an ABCMeta.
The true correction would be to turn cls._abc_cache &co into a WeakSet, as py3k does.
But classic classes are not weak referenceable...
Of course, this change should not be merged into the py3k branch.
Guido van Rossum [Tue, 1 Apr 2008 23:57:36 +0000 (23:57 +0000)]
Remove the advertising clause from the BSD license in timing.h.
I have the email trail to prove that George Neville-Neil approved this.
Amaury Forgeot d'Arc [Tue, 1 Apr 2008 22:52:48 +0000 (22:52 +0000)]
Newly enabled test appears to leak:
it registers the same codec on each iteration.
Do it only once at load time.
Amaury Forgeot d'Arc [Tue, 1 Apr 2008 22:37:33 +0000 (22:37 +0000)]
Fix and enable a skipped test:
with python 2.6, enumerating bytes yields 1-char strings, not numbers.
Don't merge this into the py3k branch.
Brett Cannon [Tue, 1 Apr 2008 12:46:02 +0000 (12:46 +0000)]
Add ``if __name__ == '__main__'`` to some test files where it didn't take a lot
of effort to do so.
Brett Cannon [Tue, 1 Apr 2008 12:37:43 +0000 (12:37 +0000)]
Generalize test.test_support.test_stdout() with a base context manager so that
it is easy to capture stderr if desired.
Neal Norwitz [Tue, 1 Apr 2008 05:40:43 +0000 (05:40 +0000)]
Be sure to close the file. 2 places were deleting the file, so it was probably
fine, but the last change may be required for the test to pass on Windows.
Should we always close the mmap too?
Benjamin Peterson [Mon, 31 Mar 2008 21:57:13 +0000 (21:57 +0000)]
PyErr_Warn is decrepated. Use PyErr_WarnEx
Martin v. Löwis [Mon, 31 Mar 2008 05:20:55 +0000 (05:20 +0000)]
Merged revisions 61990-62079 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r62017 | david.wolever | 2008-03-28 21:54:37 +0100 (Fr, 28 Mär 2008) | 1 line
Fixed an out-of-date comment.
........
Neal Norwitz [Mon, 31 Mar 2008 04:28:40 +0000 (04:28 +0000)]
Use file.write instead of print to make it easier to merge with 3k.
Jeffrey Yasskin [Mon, 31 Mar 2008 00:35:53 +0000 (00:35 +0000)]
Block the sys.exc_clear -3 warning from threading.py.
Georg Brandl [Sun, 30 Mar 2008 20:20:39 +0000 (20:20 +0000)]
Make AST nodes pickleable.
Georg Brandl [Sun, 30 Mar 2008 19:43:27 +0000 (19:43 +0000)]
Fix error message -- "expects either 0 or 0 arguments"
Georg Brandl [Sun, 30 Mar 2008 19:41:39 +0000 (19:41 +0000)]
The other download formats will be available for 2.6 too.
Benjamin Peterson [Sun, 30 Mar 2008 19:35:10 +0000 (19:35 +0000)]
Updated README regarding doc formats
Georg Brandl [Sun, 30 Mar 2008 19:00:49 +0000 (19:00 +0000)]
Make _fields attr for no fields consistent with _attributes attr.
Georg Brandl [Sun, 30 Mar 2008 07:09:22 +0000 (07:09 +0000)]
Convert test_ast to unittest and add a test for r62049.
Georg Brandl [Sun, 30 Mar 2008 07:01:47 +0000 (07:01 +0000)]
#2505: allow easier creation of AST nodes.
Georg Brandl [Sun, 30 Mar 2008 06:53:55 +0000 (06:53 +0000)]
Adapt test_ast to the new ExceptHandler type.
Georg Brandl [Sun, 30 Mar 2008 06:40:17 +0000 (06:40 +0000)]
Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
Gerhard Häring [Sat, 29 Mar 2008 19:11:52 +0000 (19:11 +0000)]
Documented the lastrowid attribute.
Benjamin Peterson [Sat, 29 Mar 2008 15:24:25 +0000 (15:24 +0000)]
#2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
Amaury Forgeot d'Arc [Sat, 29 Mar 2008 14:53:05 +0000 (14:53 +0000)]
Still investigating on the hanging test_socket.
the test itself doesn't do anything on windows, focus on setUp and tearDown.
Amaury Forgeot d'Arc [Sat, 29 Mar 2008 13:47:05 +0000 (13:47 +0000)]
The buildbot "x86 W2k8 trunk" seems to hang in test_socket.
http://www.python.org/dev/buildbot/trunk/x86%20W2k8%20trunk/builds/255/step-test/0
Temporarily increase verbosity of this test.
Georg Brandl [Sat, 29 Mar 2008 13:24:23 +0000 (13:24 +0000)]
Properly check for consistency with the third argument of
compile() when compiling an AST node.
Amaury Forgeot d'Arc [Sat, 29 Mar 2008 13:14:52 +0000 (13:14 +0000)]
Now that Lib/test/output is gone, tests should not print anything,
except in verbose mode.
Support code is much simpler.
Amaury Forgeot d'Arc [Sat, 29 Mar 2008 12:42:54 +0000 (12:42 +0000)]
lib2to3 should install a logging handler only when run as a main program,
not when used as a library.
This may please the buildbots, which fail when test_lib2to3 is run before test_logging.
Georg Brandl [Sat, 29 Mar 2008 11:46:18 +0000 (11:46 +0000)]
Fix capitalization.
Raymond Hettinger [Sat, 29 Mar 2008 10:42:07 +0000 (10:42 +0000)]
Be explicit about what efficient means.
Georg Brandl [Sat, 29 Mar 2008 01:50:06 +0000 (01:50 +0000)]
Backport #1442: report exception when startup file cannot be run.
Amaury Forgeot d'Arc [Sat, 29 Mar 2008 01:42:31 +0000 (01:42 +0000)]
Correctly call the base class tearDown();
otherwise running test_logging twice produce the errors we see on all buildbots
Amaury Forgeot d'Arc [Sat, 29 Mar 2008 01:41:08 +0000 (01:41 +0000)]
Revert my experiment. I found one reason of failures in test_logging.
Gerhard Häring [Sat, 29 Mar 2008 01:27:37 +0000 (01:27 +0000)]
Brought documentation for sqlite3 module up-to-date. Fixed Issue1625205 which
complained about commit, rollback and close not being documented.
Amaury Forgeot d'Arc [Sat, 29 Mar 2008 00:49:07 +0000 (00:49 +0000)]
At least let the module compile
Amaury Forgeot d'Arc [Sat, 29 Mar 2008 00:44:58 +0000 (00:44 +0000)]
Try to understand why most buildbots suddenly turned to red.
Undo the only change that might have unexpected effects.
To be followed.
Benjamin Peterson [Fri, 28 Mar 2008 23:11:01 +0000 (23:11 +0000)]
NIL => NULL
Amaury Forgeot d'Arc [Fri, 28 Mar 2008 22:43:38 +0000 (22:43 +0000)]
One #ifdef too much, and I broke all windows buildbots:
in pyconfig.h, NTDDI_WIN2KSP4 is not *yet* defined, but will be at some point on some modules.
Let this line even for older SDKs, they don't use it anyway.
Amaury Forgeot d'Arc [Fri, 28 Mar 2008 21:55:29 +0000 (21:55 +0000)]
Repair compilation for Visual Studio 2005.
I applied the same changes manually to VS7.1 and VC6 files; completely untested.
(Christian, don't try too hard merging this change into py3k.
It will be easier to do the same work again on the branch)
Benjamin Peterson [Fri, 28 Mar 2008 20:56:00 +0000 (20:56 +0000)]
#2498 modernized try, except, finally statements in bdb
Amaury Forgeot d'Arc [Fri, 28 Mar 2008 20:30:50 +0000 (20:30 +0000)]
Fix a reference leak found by Georg, when compiling a class nested in another class.
Now "regrtest.py -R:: test_compile" is satisfied.
Will backport.
Georg Brandl [Fri, 28 Mar 2008 20:22:56 +0000 (20:22 +0000)]
Silence compiler warning at the source.
Amaury Forgeot d'Arc [Fri, 28 Mar 2008 20:17:51 +0000 (20:17 +0000)]
Silence a compilation warning
Gregory P. Smith [Fri, 28 Mar 2008 20:11:49 +0000 (20:11 +0000)]
These svn adds were forgotten in r62000
Gerhard Häring [Fri, 28 Mar 2008 20:08:36 +0000 (20:08 +0000)]
Update sqlite3 module to match current version of pysqlite.
Georg Brandl [Fri, 28 Mar 2008 12:58:26 +0000 (12:58 +0000)]
#2502: add example how to do enum types with named tuples.
Georg Brandl [Fri, 28 Mar 2008 12:24:51 +0000 (12:24 +0000)]
Don't use the confusing term "set membership".
Georg Brandl [Fri, 28 Mar 2008 12:22:12 +0000 (12:22 +0000)]
Phase out has_key usage in the tutorial; correct docs for PyMapping_HasKey*.
Georg Brandl [Fri, 28 Mar 2008 12:11:56 +0000 (12:11 +0000)]
Patch #1810 by Thomas Lee, reviewed by myself:
allow compiling Python AST objects into code objects
in compile().
Gregory P. Smith [Fri, 28 Mar 2008 08:32:09 +0000 (08:32 +0000)]
Accept patch issue2426 by Paul Kippes (kippesp).
Adds sqlite3.Connection.iterdump to allow dumping of databases.
Georg Brandl [Fri, 28 Mar 2008 08:06:56 +0000 (08:06 +0000)]
#2406: add examples to gzip docs.
Gregory P. Smith [Fri, 28 Mar 2008 08:00:44 +0000 (08:00 +0000)]
This patch moves some tests from test_urllib2_net to test_urllib2_localnet.
The moved tests use a local server rather than going out to external servers.
Accepts patch from issue2429.
Contributed by Jerry Seutter & Michael Foord (fuzzyman) at PyCon 2008.
Neal Norwitz [Fri, 28 Mar 2008 07:36:31 +0000 (07:36 +0000)]
Name the main method correctly so the test is run
Neal Norwitz [Fri, 28 Mar 2008 06:34:03 +0000 (06:34 +0000)]
Bug 1503: Get the test to pass on OSX. This should make the test more
reliable, but I'm not convinced it is the right solution. We need
to determine if this causes the test to hang on any platforms or do
other bad things.
Even if it gets the test to pass reliably, it might be that we want
to fix this in socket. The socket returned from accept() is different
on different platforms (inheriting attributes or not) and we might
want to ensure that the attributes (at least blocking) is the same
across all platforms.
Neal Norwitz [Fri, 28 Mar 2008 05:34:59 +0000 (05:34 +0000)]
Fix compiler warning about finite() missing on Solaris.
Martin v. Löwis [Fri, 28 Mar 2008 05:27:44 +0000 (05:27 +0000)]
Merged revisions 61825-61989 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r61899 | collin.winter | 2008-03-25 17:53:41 +0100 (Di, 25 Mär 2008) | 1 line
Add a missing explicit fixer to test_all_fixers.
........
r61983 | collin.winter | 2008-03-28 03:19:46 +0100 (Fr, 28 Mär 2008) | 2 lines
Fix http://bugs.python.org/issue2453: support empty excepts in fix_except.
........
Martin v. Löwis [Fri, 28 Mar 2008 05:26:10 +0000 (05:26 +0000)]
Run 2to3 tests.
Martin v. Löwis [Fri, 28 Mar 2008 05:25:36 +0000 (05:25 +0000)]
Disable test that depends on #2412 being fixed.
Neal Norwitz [Fri, 28 Mar 2008 04:58:51 +0000 (04:58 +0000)]
Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings.
Rather than sprinkle casts throughout the code, change Py_CHARMASK to
always cast it's result to an unsigned char. This should ensure we
do the right thing when accessing an array with the result.
Jeffrey Yasskin [Fri, 28 Mar 2008 04:53:10 +0000 (04:53 +0000)]
Print more information the next time test_socket throws the wrong exception.
Neal Norwitz [Fri, 28 Mar 2008 04:41:34 +0000 (04:41 +0000)]
Allow use of other ports so the test can pass if 9091 is in use
Jeffrey Yasskin [Fri, 28 Mar 2008 04:11:18 +0000 (04:11 +0000)]
Kill a race in test_threading in which the exception info in a thread finishing
up after it was joined had a traceback pointing to that thread's (deleted)
target attribute, while the test was trying to check that the target was
destroyed. Big thanks to Antoine Pitrou for diagnosing the race and pointing
out sys.exc_clear() to kill the exception early. This fixes issue 2496.
Amaury Forgeot d'Arc [Fri, 28 Mar 2008 00:21:34 +0000 (00:21 +0000)]
test_future3.py is a regular test file, and should be part of the test suite
Amaury Forgeot d'Arc [Thu, 27 Mar 2008 23:23:54 +0000 (23:23 +0000)]
Issue2495: tokenize.untokenize did not insert space between two consecutive string literals:
"" "" => """", which is invalid code.
Will backport
Georg Brandl [Thu, 27 Mar 2008 13:34:59 +0000 (13:34 +0000)]
The bug for which there was a test in outstanding_bugs.py was agreed not to be a bug.
Georg Brandl [Thu, 27 Mar 2008 13:27:31 +0000 (13:27 +0000)]
#2248: return result of QUIT from quit().
Christian Heimes [Thu, 27 Mar 2008 11:46:37 +0000 (11:46 +0000)]
Fixed tokenize tests
The tokenize module doesn't understand __future__.unicode_literals yet
Christian Heimes [Thu, 27 Mar 2008 10:35:52 +0000 (10:35 +0000)]
Build bots are working again - removing the hack
Eric Smith [Thu, 27 Mar 2008 09:42:35 +0000 (09:42 +0000)]
Added test cases for single quoted strings, both forms of triple quotes,
and some string concatenations.
Removed unneeded __future__ print_function import.
Christian Heimes [Thu, 27 Mar 2008 09:02:33 +0000 (09:02 +0000)]
Quick 'n dirty hack: Increase the magic by 2 to force a rebuild of pyc/pyo files on the build bots
Neal Norwitz [Thu, 27 Mar 2008 06:52:01 +0000 (06:52 +0000)]
Pluralss only need one s, not 2 (intss -> ints)
Neal Norwitz [Thu, 27 Mar 2008 05:03:11 +0000 (05:03 +0000)]
Fix compiler warnings
Neal Norwitz [Thu, 27 Mar 2008 05:02:57 +0000 (05:02 +0000)]
Fix test_compiler after adding unicode_literals
Neal Norwitz [Thu, 27 Mar 2008 04:40:50 +0000 (04:40 +0000)]
Fix warnings about using char as an array subscript. This is not portable
since char is signed on some platforms and unsigned on others.
Neal Norwitz [Thu, 27 Mar 2008 04:40:07 +0000 (04:40 +0000)]
Fix memory leaks
Neal Norwitz [Thu, 27 Mar 2008 03:49:54 +0000 (03:49 +0000)]
Fix bytes so it works on 64-bit platforms.
(Also remove some #if 0 code that is already handled in _getbytevalue.)
Christian Heimes [Thu, 27 Mar 2008 01:38:47 +0000 (01:38 +0000)]
Revert commit accident
Christian Heimes [Thu, 27 Mar 2008 01:36:21 +0000 (01:36 +0000)]
Hopefully added _fileio module to the Windows build system
Benjamin Peterson [Thu, 27 Mar 2008 00:25:33 +0000 (00:25 +0000)]
add commas for introductory clauses
Christian Heimes [Wed, 26 Mar 2008 23:13:59 +0000 (23:13 +0000)]
Use the new unicode literals for the io module
use basestring instead of str in Python 2.x
Amaury Forgeot d'Arc [Wed, 26 Mar 2008 23:07:43 +0000 (23:07 +0000)]
C89 compliance: Microsoft compilers want variable declarations at the top
Christian Heimes [Wed, 26 Mar 2008 22:55:31 +0000 (22:55 +0000)]
I forgot to svn add the future test
Christian Heimes [Wed, 26 Mar 2008 22:51:58 +0000 (22:51 +0000)]
Initialize PyCompilerFlags cf_flags with 0
Christian Heimes [Wed, 26 Mar 2008 22:20:26 +0000 (22:20 +0000)]
Surround p_flags access with #ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
Christian Heimes [Wed, 26 Mar 2008 22:01:37 +0000 (22:01 +0000)]
Patch #2477: Added from __future__ import unicode_literals
The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
Mark Dickinson [Wed, 26 Mar 2008 21:41:36 +0000 (21:41 +0000)]
Typo: "objects reference count" -> "object's reference count"
Georg Brandl [Wed, 26 Mar 2008 12:57:47 +0000 (12:57 +0000)]
Fix and simplify error handling, silencing a compiler warning.
Christian Heimes [Wed, 26 Mar 2008 12:53:58 +0000 (12:53 +0000)]
Updated Misc/NEWS
Christian Heimes [Wed, 26 Mar 2008 12:50:43 +0000 (12:50 +0000)]
Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/python/branches/trunk-bytearray