]>
granicus.if.org Git - python/log
Antoine Pitrou [Sun, 27 Feb 2011 15:44:12 +0000 (15:44 +0000)]
Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows
Benjamin Peterson [Sun, 27 Feb 2011 15:06:44 +0000 (15:06 +0000)]
make this a link #11345
Antoine Pitrou [Sat, 26 Feb 2011 23:24:06 +0000 (23:24 +0000)]
Issue #11326: Add the missing connect_ex() implementation for SSL sockets,
and make it work for non-blocking connects.
Benjamin Peterson [Sat, 26 Feb 2011 22:12:10 +0000 (22:12 +0000)]
Merged revisions 88661 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r88661 | benjamin.peterson | 2011-02-26 16:06:24 -0600 (Sat, 26 Feb 2011) | 6 lines
fix refactoring on formfeed characters #11250
This is because text.splitlines() is not the same as
list(StringIO.StringIO(text)).
........
Benjamin Peterson [Sat, 26 Feb 2011 21:35:16 +0000 (21:35 +0000)]
revert accidental formatting change
Benjamin Peterson [Sat, 26 Feb 2011 21:32:16 +0000 (21:32 +0000)]
this isn't true anymore
Antoine Pitrou [Sat, 26 Feb 2011 17:52:50 +0000 (17:52 +0000)]
Make sendfile tests more robust
Vinay Sajip [Sat, 26 Feb 2011 16:06:02 +0000 (16:06 +0000)]
Issue #11330: Updated tests for correct asctime handling.
Vinay Sajip [Sat, 26 Feb 2011 16:00:04 +0000 (16:00 +0000)]
Issue #11330: Added regression test.
Antoine Pitrou [Sat, 26 Feb 2011 15:58:05 +0000 (15:58 +0000)]
Issue #9931: Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.
Éric Araujo [Sat, 26 Feb 2011 14:57:23 +0000 (14:57 +0000)]
Replace links to the old dev doc with links to the new devguide.
Antoine Pitrou [Sat, 26 Feb 2011 14:29:24 +0000 (14:29 +0000)]
Issue #11323: fix sendfile tests under 64-bit Solaris.
Vinay Sajip [Sat, 26 Feb 2011 14:28:36 +0000 (14:28 +0000)]
Removed typo.
Vinay Sajip [Sat, 26 Feb 2011 14:24:29 +0000 (14:24 +0000)]
Issue #11331: fixed documentation in logging cookbook.
Vinay Sajip [Sat, 26 Feb 2011 14:15:48 +0000 (14:15 +0000)]
Issue #11330: asctime format bug fixed.
Antoine Pitrou [Sat, 26 Feb 2011 13:38:35 +0000 (13:38 +0000)]
Check error return from _parse_off_t(), and remove cruft from the 2->3 transition.
Antoine Pitrou [Sat, 26 Feb 2011 09:37:45 +0000 (09:37 +0000)]
Revert r88639 (the optimization changes behaviour and breaks buildbots)
Antoine Pitrou [Sat, 26 Feb 2011 08:45:20 +0000 (08:45 +0000)]
Issue #11258: Speed up ctypes.util.find_library() under Linux a lot. Patch
by Jonas H.
Vinay Sajip [Sat, 26 Feb 2011 07:18:22 +0000 (07:18 +0000)]
test_logging: Changed TimedRotatingFileHandler tests to use UTC time rather than local time.
Raymond Hettinger [Sat, 26 Feb 2011 06:53:58 +0000 (06:53 +0000)]
Add __bool__ method. Add tests. Fix-up broken test.
Vinay Sajip [Sat, 26 Feb 2011 06:37:04 +0000 (06:37 +0000)]
test_logging: diagnostic code changes.
Senthil Kumaran [Sat, 26 Feb 2011 03:44:03 +0000 (03:44 +0000)]
Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available (Patch by Ray.Allen)
Raymond Hettinger [Sat, 26 Feb 2011 02:48:44 +0000 (02:48 +0000)]
Make Py3.x style "import builtins"
Alexander Belopolsky [Sat, 26 Feb 2011 01:02:56 +0000 (01:02 +0000)]
PEP 7 conformance changes (whitespace only).
Raymond Hettinger [Sat, 26 Feb 2011 01:02:51 +0000 (01:02 +0000)]
Issue #11297: Add collections.ChainMap()
Antoine Pitrou [Sat, 26 Feb 2011 00:22:25 +0000 (00:22 +0000)]
Fix AttributeError.
Antoine Pitrou [Sat, 26 Feb 2011 00:22:09 +0000 (00:22 +0000)]
Fix compilation warning in Modules/posixmodule.c.
Antoine Pitrou [Fri, 25 Feb 2011 23:41:16 +0000 (23:41 +0000)]
Issue #10755: Add the posix.fdlistdir() function. Patch by Ross Lagerwall.
Antoine Pitrou [Fri, 25 Feb 2011 23:25:17 +0000 (23:25 +0000)]
Issue #4761: Add the *at() family of functions (openat(), etc.) to the posix
module. Patch by Ross Lagerwall.
Antoine Pitrou [Fri, 25 Feb 2011 23:07:44 +0000 (23:07 +0000)]
Issue #7322: Trying to read from a socket's file-like object after a timeout
occurred now raises an error instead of silently losing data.
Patch by Ross Lagerwall.
Vinay Sajip [Fri, 25 Feb 2011 22:45:25 +0000 (22:45 +0000)]
test_logging: Added more diagnostics for buildbot failures.
Giampaolo Rodolà [Fri, 25 Feb 2011 22:28:24 +0000 (22:28 +0000)]
Issue 11291: poplib suppresses errors on QUIT.
Giampaolo Rodolà [Fri, 25 Feb 2011 22:21:22 +0000 (22:21 +0000)]
Issue 11177: asyncore's create_socket() arguments can now be omitted.
Antoine Pitrou [Fri, 25 Feb 2011 22:07:43 +0000 (22:07 +0000)]
Issue #6064: Add a `daemon` keyword argument to the threading.Thread
and multiprocessing.Process constructors in order to override the
default behaviour of inheriting the daemonic property from the current
thread/process.
Giampaolo Rodolà [Fri, 25 Feb 2011 21:46:01 +0000 (21:46 +0000)]
(issue 11323) - attempt to fix solaris buildbot failure for os.sendfile(). Also fixed an AttributeError in get/set priority tests.
Éric Araujo [Fri, 25 Feb 2011 21:40:34 +0000 (21:40 +0000)]
Add missing read() in distutils doc.
Antoine Pitrou [Fri, 25 Feb 2011 21:24:11 +0000 (21:24 +0000)]
Issue #10956: Buffered I/O classes retry reading or writing after a signal
has arrived and the handler returned successfully.
Giampaolo Rodolà [Fri, 25 Feb 2011 21:00:10 +0000 (21:00 +0000)]
Update Misc/NEWS to include os.getpriority() and os.setpriority() addition.
Giampaolo Rodolà [Fri, 25 Feb 2011 20:57:54 +0000 (20:57 +0000)]
Issue 10784: adds os.getpriority() and os.setpriority() functions.
Antoine Pitrou [Fri, 25 Feb 2011 20:27:33 +0000 (20:27 +0000)]
Issue #11114: Fix catastrophic performance of tell() on text files (up
to 1000x faster in some cases). It is still one to two order of magnitudes
slower than binary tell().
Giampaolo Rodolà [Fri, 25 Feb 2011 20:05:48 +0000 (20:05 +0000)]
(issue 11214) - fix asyncore.strerror test failure on AIX
Giampaolo Rodolà [Fri, 25 Feb 2011 20:01:05 +0000 (20:01 +0000)]
Skip os.sendfile() test if threading module is not available.
Alexander Belopolsky [Fri, 25 Feb 2011 19:19:57 +0000 (19:19 +0000)]
Issue #11303: Added shortcuts for utf8 and latin1 encodings.
Documented the list of optimized encodings as CPython implementation
detail.
Vinay Sajip [Fri, 25 Feb 2011 17:02:43 +0000 (17:02 +0000)]
logging: enabled test which was intermittently failing on buildbots.
Vinay Sajip [Fri, 25 Feb 2011 16:05:26 +0000 (16:05 +0000)]
Documented QueueListener change.
Vinay Sajip [Fri, 25 Feb 2011 15:56:55 +0000 (15:56 +0000)]
Improved QueueListener implementation - queue sentinel addition made extensible.
Marc-André Lemburg [Fri, 25 Feb 2011 15:42:01 +0000 (15:42 +0000)]
Normalize the encoding names for Latin-1 and UTF-8 to
'latin-1' and 'utf-8'.
These are optimized in the Python Unicode implementation
to result in more direct processing, bypassing the codec
registry.
Also see issue11303.
Georg Brandl [Fri, 25 Feb 2011 15:23:18 +0000 (15:23 +0000)]
Rename internal helper function and make it static.
Georg Brandl [Fri, 25 Feb 2011 15:21:47 +0000 (15:21 +0000)]
Regenerate configure after r88580.
Giampaolo Rodolà [Fri, 25 Feb 2011 14:50:57 +0000 (14:50 +0000)]
(issue 11232) - fix asyncore documentation issue (patch by Sandro Tosi)
Giampaolo Rodolà [Fri, 25 Feb 2011 14:39:16 +0000 (14:39 +0000)]
Issue 10882: add os.sendfile(). (patch provided by Ross Lagerwall)
Antoine Pitrou [Fri, 25 Feb 2011 14:32:24 +0000 (14:32 +0000)]
Fix .hgeol
Antoine Pitrou [Fri, 25 Feb 2011 14:31:09 +0000 (14:31 +0000)]
More eol-style's
Antoine Pitrou [Fri, 25 Feb 2011 14:19:48 +0000 (14:19 +0000)]
Make svn:eol-style's more consistent
Benjamin Peterson [Fri, 25 Feb 2011 14:05:42 +0000 (14:05 +0000)]
rewrite with assertIs
Benjamin Peterson [Fri, 25 Feb 2011 14:01:05 +0000 (14:01 +0000)]
run autoconf
Georg Brandl [Fri, 25 Feb 2011 11:28:22 +0000 (11:28 +0000)]
Add 3.3 whatsnew to index.
Georg Brandl [Fri, 25 Feb 2011 11:03:15 +0000 (11:03 +0000)]
Remove unused m4 define.
Eli Bendersky [Fri, 25 Feb 2011 10:14:17 +0000 (10:14 +0000)]
Removed fcmp and FUZZ from test.support, following the discussion on python-dev:
http://mail.python.org/pipermail/python-dev/2011-January/107735.html
Eli Bendersky [Fri, 25 Feb 2011 05:47:53 +0000 (05:47 +0000)]
Issue #10516: adding list.clear() and list.copy() methods
Giampaolo Rodolà [Thu, 24 Feb 2011 20:59:48 +0000 (20:59 +0000)]
Adds Python 3.3 what's new document.
Antoine Pitrou [Thu, 24 Feb 2011 20:50:49 +0000 (20:50 +0000)]
Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer with
a buffer struct having a NULL data pointer.
Alexander Belopolsky [Thu, 24 Feb 2011 19:40:09 +0000 (19:40 +0000)]
Issue #11286: Fixed unpickling of empty 2.x strings.
Éric Araujo [Thu, 24 Feb 2011 18:03:10 +0000 (18:03 +0000)]
Allow usage of SomeABC.register as a class decorator. Patch by Edoardo Spadolini (#10868).
Benjamin Peterson [Thu, 24 Feb 2011 02:53:05 +0000 (02:53 +0000)]
rewrite
Benjamin Peterson [Thu, 24 Feb 2011 02:46:00 +0000 (02:46 +0000)]
this seems to be pointlessly nested
Benjamin Peterson [Thu, 24 Feb 2011 01:41:46 +0000 (01:41 +0000)]
Merged revisions 88535 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r88535 | brett.cannon | 2011-02-23 13:46:46 -0600 (Wed, 23 Feb 2011) | 1 line
Add lib2to3.__main__ for easy testing from the console.
........
Raymond Hettinger [Thu, 24 Feb 2011 00:08:13 +0000 (00:08 +0000)]
Issue #11304: Input/output tutorial - PI is rounded not truncated.
Brett Cannon [Wed, 23 Feb 2011 18:48:52 +0000 (18:48 +0000)]
Revert r88503 as Benjamin's request.
Victor Stinner [Wed, 23 Feb 2011 14:14:48 +0000 (14:14 +0000)]
Issue #3080: Fix test_reprlib on Windows
Fix the test for last module changes (r88520).
Victor Stinner [Wed, 23 Feb 2011 12:07:37 +0000 (12:07 +0000)]
Issue #11272: Fix input() and sys.stdin for Windows newline
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').
Lars Gustäbel [Wed, 23 Feb 2011 11:42:22 +0000 (11:42 +0000)]
Issue #11224: Improved sparse file read support (r85916) introduced a
regression in _FileInFile which is used in file-like objects returned
by TarFile.extractfile(). The inefficient design of the
_FileInFile.read() method causes various dramatic side-effects and
errors:
- The data segment of a file member is read completely into memory
every(!) time a small block is accessed. This is not only slow
but may cause unexpected MemoryErrors with very large files.
- Reading members from compressed tar archives is even slower
because of the excessive backwards seeking which is done when the
same data segment is read over and over again.
- As a backwards seek on a TarFile opened in stream mode is not
possible, using extractfile() fails with a StreamError.
Victor Stinner [Wed, 23 Feb 2011 11:29:28 +0000 (11:29 +0000)]
dynload_dl.c: replace tabs by spaces
Raymond Hettinger [Wed, 23 Feb 2011 07:56:53 +0000 (07:56 +0000)]
Add tests for the _ChainMap helper class.
Georg Brandl [Wed, 23 Feb 2011 07:31:24 +0000 (07:31 +0000)]
Indent "versionadded" properly.
Georg Brandl [Wed, 23 Feb 2011 07:30:12 +0000 (07:30 +0000)]
Add new subdirectory to LIBSUBDIRS.
Raymond Hettinger [Wed, 23 Feb 2011 00:46:28 +0000 (00:46 +0000)]
Fix imports from collections.abc
Victor Stinner [Wed, 23 Feb 2011 00:21:43 +0000 (00:21 +0000)]
Issue #3080: Add PyModule_GetNameObject()
repr(module) uses %R to format module name and filenames, instead of '%s' and
'%U', so surrogates from undecodable bytes in a filename (PEP 383) are escaped.
Victor Stinner [Wed, 23 Feb 2011 00:02:00 +0000 (00:02 +0000)]
Issue #3080: Mark _PyImport_FindBuiltin() argument as constant
And as a consequence, mark also name argument of
_PyImport_FindExtensionUnicode() constant too. But I plan to change this
argument type to PyObject* later.
Victor Stinner [Tue, 22 Feb 2011 23:38:34 +0000 (23:38 +0000)]
Issue #3080: document encoding used by import functions
Victor Stinner [Tue, 22 Feb 2011 23:16:19 +0000 (23:16 +0000)]
Issue #3080: Remove unused argument of _PyImport_GetDynLoadFunc()
The first argument, fqname, was not used.
Victor Stinner [Tue, 22 Feb 2011 23:12:28 +0000 (23:12 +0000)]
Issue #3080: Mark PyWin_FindRegisteredModule() as private
This function was not declared in Python public API (in any .h file) and not
documented. Mark it as private to prepare a change of its API.
Brett Cannon [Tue, 22 Feb 2011 21:55:51 +0000 (21:55 +0000)]
A crypt algorithm may not be available by returning None.
Brett Cannon [Tue, 22 Feb 2011 21:48:06 +0000 (21:48 +0000)]
Make Lib/crypt.py meet PEP 8 standards. This also led to a tweak in the new API
by making methods() into a module attribute as it is statically calculated.
Antoine Pitrou [Tue, 22 Feb 2011 21:42:56 +0000 (21:42 +0000)]
Issue #11277: finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
Brett Cannon [Tue, 22 Feb 2011 20:17:14 +0000 (20:17 +0000)]
Fix test.test_crypt.test_methods() to pass on OS X.
Brett Cannon [Tue, 22 Feb 2011 20:15:44 +0000 (20:15 +0000)]
Issue #8914: fix various warnings from the Clang static analyzer v254.
Giampaolo Rodolà [Tue, 22 Feb 2011 19:24:33 +0000 (19:24 +0000)]
In FTP.close() method, make sure to also close the socket object, not only the file.
Giampaolo Rodolà [Tue, 22 Feb 2011 19:24:33 +0000 (19:24 +0000)]
In FTP.close() method, make sure to also close the socket object, not only the file.
Brett Cannon [Tue, 22 Feb 2011 19:12:43 +0000 (19:12 +0000)]
Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3.
Giampaolo Rodolà [Tue, 22 Feb 2011 15:56:20 +0000 (15:56 +0000)]
smtlib.py PEP8 normalization via pep8.py script.
Sean Reifscheider [Tue, 22 Feb 2011 10:55:44 +0000 (10:55 +0000)]
Issue #10924: Adding salt and Modular Crypt Format to crypt library.
Brett Cannon [Tue, 22 Feb 2011 03:25:12 +0000 (03:25 +0000)]
Issue #11074: Make 'tokenize' so it can be reloaded.
The module stored away the 'open' object as found in the global namespace
(which fell through to the built-in namespace) since it defined its own 'open'.
Problem is that if you reloaded the module it then grabbed the 'open' defined
in the previous load, leading to code that infinite recursed. Switched to
simply call builtins.open directly.
Brett Cannon [Tue, 22 Feb 2011 03:14:12 +0000 (03:14 +0000)]
Issue #10512: close the log file in cgi when running tests.
Thanks to Nadeem Vawda for the find and an initial fix.
Brett Cannon [Tue, 22 Feb 2011 03:04:06 +0000 (03:04 +0000)]
Issue #10992: make tests pass when run under coverage.
Various tests fail when run under coverage. A primary culprit is refcount tests
which fail as the counts are thrown off by the coverage code. A new decorator
-- test.support.refcount_test -- is used to decorate tests which test refcounts
and to skip them when running under coverage. Other tests simply fail because
of changes in the system (e.g., __local__ suddenly appearing).
Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
Brett Cannon [Tue, 22 Feb 2011 02:42:41 +0000 (02:42 +0000)]
Ignore __pycache__ in Lib/collections.
Raymond Hettinger [Tue, 22 Feb 2011 01:55:36 +0000 (01:55 +0000)]
Factor-out common code for helper classes.
Raymond Hettinger [Tue, 22 Feb 2011 01:48:33 +0000 (01:48 +0000)]
Have the test filename match the module filename.
Raymond Hettinger [Tue, 22 Feb 2011 00:41:50 +0000 (00:41 +0000)]
Issue #11085: Moved collections abstract base classes into a separate module
called collections.abc, following the pattern used by importlib.abc. For
backwards compatibility, the names continue to also be imported into the
collections module.
Antoine Pitrou [Mon, 21 Feb 2011 23:41:12 +0000 (23:41 +0000)]
Issue #4681: Allow mmap() to work on file sizes and offsets larger than
4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for
32-bit Windows.