]>
granicus.if.org Git - python/log
Walter Dörwald [Sat, 20 Jan 2007 17:28:31 +0000 (17:28 +0000)]
Port test_resource.py to unittest.
Martin v. Löwis [Sat, 20 Jan 2007 14:05:39 +0000 (14:05 +0000)]
Merge 53501 and 53502 from 25 branch:
Add /GS- for AMD64 and Itanium builds where missing.
Raymond Hettinger [Fri, 19 Jan 2007 18:07:18 +0000 (18:07 +0000)]
SF#
1635892 : Fix docs for betavariate's input parameters .
Martin v. Löwis [Fri, 19 Jan 2007 18:01:38 +0000 (18:01 +0000)]
Add UUIDs for 2.5.1 and 2.5.2
Martin v. Löwis [Fri, 19 Jan 2007 06:42:22 +0000 (06:42 +0000)]
Prefix AST symbols with _Py_. Fixes #
1637022 .
Will backport.
Neal Norwitz [Fri, 19 Jan 2007 05:53:33 +0000 (05:53 +0000)]
SF #
1635217 , Fix unbalanced paren
Neal Norwitz [Thu, 18 Jan 2007 06:20:55 +0000 (06:20 +0000)]
This test doesn't pass on Windows. The cause seems to be that chmod
doesn't support the same funcationality as on Unix. I'm not sure if
this fix is the best (or if it will even work)--it's a test to see
if the buildbots start passing again.
It might be better to not even run this test if it's windows (or non-posix).
Fred Drake [Thu, 18 Jan 2007 05:42:30 +0000 (05:42 +0000)]
add missing version entry
Neal Norwitz [Thu, 18 Jan 2007 05:40:58 +0000 (05:40 +0000)]
Try reverting part of r53145 that seems to cause the Windows buildbots to fail in test_uu.UUFileTest.test_encode
Georg Brandl [Wed, 17 Jan 2007 21:19:58 +0000 (21:19 +0000)]
Bug #
1629125 : fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs.
Georg Brandl [Wed, 17 Jan 2007 21:09:04 +0000 (21:09 +0000)]
Bug #
1637967 : missing //= operator in list.
Andrew M. Kuchling [Wed, 17 Jan 2007 19:55:06 +0000 (19:55 +0000)]
[Part of bug #
1599254 ] Add suggestion to Mailbox docs to use Maildir, and warn user to lock/unlock mailboxes when modifying them
Thomas Heller [Wed, 17 Jan 2007 09:40:34 +0000 (09:40 +0000)]
Replace C++ comments with C comments.
Neal Norwitz [Wed, 17 Jan 2007 08:37:26 +0000 (08:37 +0000)]
Remove Calvin since he only has access to the website currently.
Neal Norwitz [Wed, 17 Jan 2007 06:23:51 +0000 (06:23 +0000)]
Give Calvin Spealman access for python-dev summaries.
Sjoerd Mullender [Tue, 16 Jan 2007 16:42:38 +0000 (16:42 +0000)]
Fixed ntpath.expandvars to not replace references to non-existing
variables with nothing. Also added tests.
This fixes bug #494589.
Marc-André Lemburg [Tue, 16 Jan 2007 13:03:06 +0000 (13:03 +0000)]
Add news items for the recent pybench and platform changes.
Vinay Sajip [Tue, 16 Jan 2007 09:50:07 +0000 (09:50 +0000)]
Updated rotating file handlers to use _open().
Brett Cannon [Mon, 15 Jan 2007 19:12:08 +0000 (19:12 +0000)]
Add a note for strptime that just because strftime supports some extra
directive that is not documented that strptime will as well.
Guido van Rossum [Mon, 15 Jan 2007 00:02:35 +0000 (00:02 +0000)]
Doc patch matching r53434 (htonl etc. now always take/return positive ints).
Vinay Sajip [Sun, 14 Jan 2007 21:50:50 +0000 (21:50 +0000)]
Added documentation for WatchedFileHandler (based on SF patch #
1598415 )
Vinay Sajip [Sun, 14 Jan 2007 21:49:59 +0000 (21:49 +0000)]
Added WatchedFileHandler (based on SF patch #
1598415 )
Guido van Rossum [Sun, 14 Jan 2007 17:03:32 +0000 (17:03 +0000)]
Patch #
1635058 by Mark Roberts: ensure that htonl and friends never accept or
return negative numbers, per the underlying C implementation.
Ka-Ping Yee [Sun, 14 Jan 2007 04:25:15 +0000 (04:25 +0000)]
Handle old-style instances more gracefully (display documentation on
the relevant class instead of documentation on <type 'instance'>).
Guido van Rossum [Sun, 14 Jan 2007 03:46:33 +0000 (03:46 +0000)]
Remove a dependency of this test on $COLUMNS.
Gerhard Häring [Sun, 14 Jan 2007 01:43:50 +0000 (01:43 +0000)]
Merged changes from standalone version 2.3.3. This should probably all be
merged into the 2.5 maintenance branch:
- self->statement was not checked while fetching data, which could
lead to crashes if you used the pysqlite API in unusual ways.
Closing the cursor and continuing to fetch data was enough.
- Converters are stored in a converters dictionary. The converter name
is uppercased first. The old upper-casing algorithm was wrong and
was replaced by a simple call to the Python string's upper() method
instead.
-Applied patch by Glyph Lefkowitz that fixes the problem with
subsequent SQLITE_SCHEMA errors.
- Improvement to the row type: rows can now be iterated over and have a keys()
method. This improves compatibility with both tuple and dict a lot.
- A bugfix for the subsecond resolution in timestamps.
- Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are
checked for. Now they work as documented.
- gcc on Linux sucks. It exports all symbols by default in shared
libraries, so if symbols are not unique it can lead to problems with
symbol lookup. pysqlite used to crash under Apache when mod_cache
was enabled because both modules had the symbol cache_init. I fixed
this by applying the prefix pysqlite_ almost everywhere. Sigh.
Marc-André Lemburg [Sat, 13 Jan 2007 23:15:33 +0000 (23:15 +0000)]
Jython doesn't have sys.setcheckinterval() - ignore it in that case.
Marc-André Lemburg [Sat, 13 Jan 2007 23:13:54 +0000 (23:13 +0000)]
Use defaults if sys.executable isn't set (e.g. on Jython).
This change allows running PyBench under Jython.
Marc-André Lemburg [Sat, 13 Jan 2007 22:59:36 +0000 (22:59 +0000)]
Add Python implementation to the machine details.
Pretty-print the Python version used for running PyBench.
Let the user know when calibration has finished.
[
1563844 ] pybench support for IronPython:
Simplify Unicode version detection.
Make garbage collection and check interval settings optional if
the Python implementation doesn't support thess (e.g. IronPython).
Peter Astrand [Sat, 13 Jan 2007 22:35:35 +0000 (22:35 +0000)]
Fix for bug #
1634343 : allow specifying empty arguments on Windows
Marc-André Lemburg [Sat, 13 Jan 2007 22:32:21 +0000 (22:32 +0000)]
Add parameter sys_version to _sys_version().
Change the cache for _sys_version() to take the parameter into account.
Add support for parsing the IronPython 1.0.1 sys.version value - even
though it still returns '1.0.0'; the version string no longer includes
the patch level.
Neal Norwitz [Sat, 13 Jan 2007 21:22:37 +0000 (21:22 +0000)]
Fix grammar in docstrings
Marc-André Lemburg [Sat, 13 Jan 2007 21:00:08 +0000 (21:00 +0000)]
Bump version number and change copyright year.
Add new API linux_distribution() which supports reading the full distribution
name and also knows how to parse LSB-style release files.
Redirect the old dist() API to the new API (using the short distribution name
taken from the release file filename).
Add branch and revision to _sys_version().
Add work-around for Cygwin to libc_ver().
Add support for IronPython (thanks for Anthony Baxter) and make
Jython support more robust.
Georg Brandl [Sat, 13 Jan 2007 12:31:51 +0000 (12:31 +0000)]
Fix typo.
Brett Cannon [Sat, 13 Jan 2007 00:29:49 +0000 (00:29 +0000)]
Deprecate the sets module.
Thomas Heller [Fri, 12 Jan 2007 20:21:53 +0000 (20:21 +0000)]
patch #
1610795 : BSD version of ctypes.util.find_library, by Martin
Kammerhofer.
Thomas Heller [Fri, 12 Jan 2007 20:17:34 +0000 (20:17 +0000)]
patch #
1610795 : BSD version of ctypes.util.find_library, by Martin
Kammerhofer.
release25-maint backport candidate, but the release manager has to
decide.
Thomas Heller [Fri, 12 Jan 2007 20:08:19 +0000 (20:08 +0000)]
Avoid warnings in the test suite because ctypes.wintypes cannot be
imported on non-windows systems.
Anthony Baxter [Fri, 12 Jan 2007 09:35:56 +0000 (09:35 +0000)]
add parsetok.h as a dependency - previously, changing this file doesn't
cause the right files to be rebuilt.
Brett Cannon [Fri, 12 Jan 2007 07:27:52 +0000 (07:27 +0000)]
Fix error where the end of a funcdesc environment was accidentally moved too
far down.
Thomas Heller [Thu, 11 Jan 2007 21:23:12 +0000 (21:23 +0000)]
Correct the comments: the code is right.
Thomas Heller [Thu, 11 Jan 2007 21:18:56 +0000 (21:18 +0000)]
Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitions
of HANDLE, WPARAM, LPARAM data types. Make parameterless foreign
function calls work.
Raymond Hettinger [Thu, 11 Jan 2007 18:22:55 +0000 (18:22 +0000)]
SF #
1486663 -- Allow keyword args in subclasses of set() and frozenset().
Matthias Klose [Thu, 11 Jan 2007 11:44:04 +0000 (11:44 +0000)]
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
Matthias Klose [Thu, 11 Jan 2007 10:26:31 +0000 (10:26 +0000)]
- Make the documentation match the code and the docstring
Guido van Rossum [Wed, 10 Jan 2007 23:12:56 +0000 (23:12 +0000)]
Fix the signature of log_error(). (A subclass that did the right thing
was getting complaints from pychecker.)
Thomas Heller [Wed, 10 Jan 2007 20:51:19 +0000 (20:51 +0000)]
Must change the version number in the _ctypes extension as well.
Thomas Heller [Wed, 10 Jan 2007 20:12:13 +0000 (20:12 +0000)]
Change the ctypes version number to "1.1.0".
Gustavo Niemeyer [Wed, 10 Jan 2007 16:15:48 +0000 (16:15 +0000)]
Minor change in int() docstring for proper spacing.
Gustavo Niemeyer [Wed, 10 Jan 2007 16:13:40 +0000 (16:13 +0000)]
Mention in the int() docstring that a base zero has meaning, as
stated in http://docs.python.org/lib/built-in-funcs.html as well.
Thomas Heller [Tue, 9 Jan 2007 19:19:33 +0000 (19:19 +0000)]
Verify the sizes of the basic ctypes data types against the struct
module.
Will backport to release25-maint.
Vinay Sajip [Tue, 9 Jan 2007 14:54:56 +0000 (14:54 +0000)]
Added a docstring
Vinay Sajip [Tue, 9 Jan 2007 14:51:36 +0000 (14:51 +0000)]
Added entry about addition of _open() method to logging.FileHandler.
Vinay Sajip [Tue, 9 Jan 2007 14:50:28 +0000 (14:50 +0000)]
Bug #
1627575 : Added _open() method to FileHandler which can be used to reopen files. The FileHandler instance now saves the encoding (which can be None) in an attribute called "encoding".
Vinay Sajip [Mon, 8 Jan 2007 18:52:36 +0000 (18:52 +0000)]
Added entries about removal of some bare except clauses from logging.
Vinay Sajip [Mon, 8 Jan 2007 18:51:46 +0000 (18:51 +0000)]
Bare except clause removed from LogRecord.__init__. Now, only ValueError, TypeError and AttributeError are trapped.
(SF #411881)
Vinay Sajip [Mon, 8 Jan 2007 18:50:32 +0000 (18:50 +0000)]
Bare except clause removed from SMTPHandler.emit(). Now, only ImportError is trapped.
Bare except clause removed from SocketHandler.createSocket(). Now, only socket.error is trapped.
(SF #411881)
Raymond Hettinger [Mon, 8 Jan 2007 18:09:20 +0000 (18:09 +0000)]
Fix zero-length corner case for iterating over a mutating deque.
Peter Astrand [Sun, 7 Jan 2007 14:34:16 +0000 (14:34 +0000)]
Avoid O(N**2) bottleneck in _communicate_(). Fixes #
1598181 .
Peter Astrand [Sun, 7 Jan 2007 08:53:46 +0000 (08:53 +0000)]
Re-implemented fix for #
1531862 once again, in a way that works with Python 2.2. Fixes bug #
1603424 .
Neal Norwitz [Sat, 6 Jan 2007 21:24:35 +0000 (21:24 +0000)]
Add Josiah to SF for maintaining asyncore/asynchat
Anthony Baxter [Sat, 6 Jan 2007 04:45:54 +0000 (04:45 +0000)]
update to (c) years to include 2007
Raymond Hettinger [Sat, 6 Jan 2007 01:14:41 +0000 (01:14 +0000)]
SF#
1409443 : Expand comment to cover the interaction between f->f_lasti and the PREDICT macros.
Brett Cannon [Fri, 5 Jan 2007 21:45:09 +0000 (21:45 +0000)]
Silence a warning from gcc 4.0.1 by specifying a function's parameter list is
'void' instead of just a set of empty parentheses.
Andrew M. Kuchling [Fri, 5 Jan 2007 15:51:24 +0000 (15:51 +0000)]
[Patch #
1520904 ] Fix bsddb tests to write to the temp directory instead of the Lib/bsddb/test directory
Andrew M. Kuchling [Fri, 5 Jan 2007 14:22:17 +0000 (14:22 +0000)]
[Bug #
1622533 ] Make docstrings raw strings because they contain control characters (\0, \1)
Neal Norwitz [Fri, 5 Jan 2007 08:06:43 +0000 (08:06 +0000)]
Add Collin Winter for access to update PEP 3107
Gregory P. Smith [Fri, 5 Jan 2007 07:21:35 +0000 (07:21 +0000)]
typo fix
Neal Norwitz [Fri, 5 Jan 2007 05:25:22 +0000 (05:25 +0000)]
Prevent crash on shutdown which can occur if we are finalizing
and the module dict has been cleared already and some object
raises a warning (like in a __del__).
Will backport.
Gregory P. Smith [Fri, 5 Jan 2007 02:06:17 +0000 (02:06 +0000)]
bump module version to match supported berkeleydb version
Gregory P. Smith [Fri, 5 Jan 2007 01:59:42 +0000 (01:59 +0000)]
Support linking of the bsddb module against BerkeleyDB 4.5.x
(will backport to 2.5)
Martin v. Löwis [Thu, 4 Jan 2007 21:06:12 +0000 (21:06 +0000)]
Bug #
1566280 : Explicitly invoke threading._shutdown from Py_Main,
to avoid relying on atexit.
Will backport to 2.5.
Raymond Hettinger [Thu, 4 Jan 2007 17:53:34 +0000 (17:53 +0000)]
Fix stability of heapq's nlargest() and nsmallest().
Neal Norwitz [Thu, 4 Jan 2007 06:25:31 +0000 (06:25 +0000)]
SF #
1627373 , fix typo in CarbonEvt.
Brett Cannon [Thu, 4 Jan 2007 00:23:49 +0000 (00:23 +0000)]
Add EnvironmentVarGuard to test.test_support. Provides a context manager to
temporarily set or unset environment variables.
Raymond Hettinger [Sat, 30 Dec 2006 04:01:17 +0000 (04:01 +0000)]
For sets with cyclical reprs, emit an ellipsis instead of infinitely recursing.
Neal Norwitz [Fri, 29 Dec 2006 03:01:53 +0000 (03:01 +0000)]
SF bug #
1623890 , fix argument name in docstring
Neal Norwitz [Thu, 28 Dec 2006 04:39:20 +0000 (04:39 +0000)]
Remove a stray (old) macro name left around (I guess)
Lars Gustäbel [Wed, 27 Dec 2006 10:30:46 +0000 (10:30 +0000)]
Patch #
1504073 : Fix tarfile.open() for mode "r" with a fileobj argument.
Will backport to 2.5.
Andrew M. Kuchling [Wed, 27 Dec 2006 03:31:24 +0000 (03:31 +0000)]
[Rest of patch #
1182394 ] Add ._current() method so that we can use the written-in-C .hexdigest() method
Andrew M. Kuchling [Wed, 27 Dec 2006 03:25:31 +0000 (03:25 +0000)]
[Part of patch #
1182394 ] Move the HMAC blocksize to be a class-level
constant; this allows changing it in a subclass. To accommodate this,
copy() now uses __class__. Also add some text to a comment.
Lars Gustäbel [Sat, 23 Dec 2006 17:57:23 +0000 (17:57 +0000)]
Patch #
1262036 : Prevent TarFiles from being added to themselves under
certain conditions.
Will backport to 2.5.
Lars Gustäbel [Sat, 23 Dec 2006 16:40:13 +0000 (16:40 +0000)]
Patch #
1230446 : tarfile.py: fix ExFileObject so that read() and tell()
work correctly together with readline().
Will backport to 2.5.
Andrew M. Kuchling [Fri, 22 Dec 2006 21:48:19 +0000 (21:48 +0000)]
Frak; this test also fails
Andrew M. Kuchling [Fri, 22 Dec 2006 19:21:27 +0000 (19:21 +0000)]
Darn; this test works when you run test_pty.py directly, but fails when regrtest runs it (the os.read() raises os.error). I can't figure out the cause, so am commenting out the test.
Andrew M. Kuchling [Fri, 22 Dec 2006 19:06:16 +0000 (19:06 +0000)]
[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work.
Andrew M. Kuchling [Fri, 22 Dec 2006 18:41:42 +0000 (18:41 +0000)]
[Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;
the master should close the slave fd.
Added a test to test_pty.py that reads from the master_fd after doing
a pty.fork(); without the fix it hangs forever instead of raising an
exception. (<crossing fingers for the buildbots>)
2.5 backport candidate.
Andrew M. Kuchling [Fri, 22 Dec 2006 16:43:26 +0000 (16:43 +0000)]
[Bug #776202] Apply Walter Doerwald's patch to use text mode for encoded files
Andrew M. Kuchling [Fri, 22 Dec 2006 15:16:58 +0000 (15:16 +0000)]
[Bug #802128 continued] Modify mode depending on the process umask.
Is there really no other way to read the umask than to set it?
Hope this works on Windows...
Andrew M. Kuchling [Fri, 22 Dec 2006 15:04:45 +0000 (15:04 +0000)]
[Bug #802128] Make the mode argument of dumbdbm actually work the way it's
described, and add a test for it.
2.5 bugfix candidate, maybe; arguably this patch changes the API of
dumbdbm and shouldn't be added in a point-release.
Andrew M. Kuchling [Fri, 22 Dec 2006 13:25:02 +0000 (13:25 +0000)]
[Bug #737202; fix from Titus Brown] Make CGIHTTPServer work for scripts in sub-directories
Andrew M. Kuchling [Fri, 22 Dec 2006 00:50:56 +0000 (00:50 +0000)]
Typo fix
Thomas Heller [Thu, 21 Dec 2006 18:30:56 +0000 (18:30 +0000)]
Fix wrong markup of an argument in a method signature.
Will backport.
Walter Dörwald [Thu, 21 Dec 2006 18:06:30 +0000 (18:06 +0000)]
Fix typo.
Andrew M. Kuchling [Thu, 21 Dec 2006 13:40:29 +0000 (13:40 +0000)]
Mention the os.SEEK_* constants
Neal Norwitz [Thu, 21 Dec 2006 04:38:00 +0000 (04:38 +0000)]
Lars asked for permission on on python-dev for work on tarfile.py
Andrew M. Kuchling [Wed, 20 Dec 2006 20:20:42 +0000 (20:20 +0000)]
[Bug #
1619680 ] in_dll() arguments are documented in the wrong order
Andrew M. Kuchling [Wed, 20 Dec 2006 20:11:12 +0000 (20:11 +0000)]
Some other built-in functions are described with 'sequence' arguments
that should really be 'iterable'; this commit changes them.
Did I miss any? Did I introduce any errors?
Andrew M. Kuchling [Wed, 20 Dec 2006 19:58:11 +0000 (19:58 +0000)]
Two grammar fixes
Andrew M. Kuchling [Wed, 20 Dec 2006 19:57:10 +0000 (19:57 +0000)]
[Bug #
1619674 ] Make sum() use the term iterable, not sequence