]>
granicus.if.org Git - python/log
Giampaolo Rodolà [Thu, 3 Mar 2011 18:34:06 +0000 (18:34 +0000)]
Issue 9795: adds context manager protocol to nntplib.NNTP class so that it can used with the 'with' statement.
Eli Bendersky [Thu, 3 Mar 2011 18:21:02 +0000 (18:21 +0000)]
Issue #10516: added copy() and clear() methods to bytearrays as well
R. David Murray [Thu, 3 Mar 2011 18:03:36 +0000 (18:03 +0000)]
#11306: Treat EROFS like EACCES when making a 'file is read-only' decision
Giampaolo Rodolà [Thu, 3 Mar 2011 16:10:51 +0000 (16:10 +0000)]
Issue 11351 - apply patch by Steffen Daode Nurpmeso which should fix TestSendfile.test_headers failure on OSX.
Giampaolo Rodolà [Thu, 3 Mar 2011 14:10:58 +0000 (14:10 +0000)]
fix attribute error
Victor Stinner [Thu, 3 Mar 2011 14:07:21 +0000 (14:07 +0000)]
Issue #11377: Fix quoting on Windows in test_platform
Giampaolo Rodolà [Thu, 3 Mar 2011 13:57:47 +0000 (13:57 +0000)]
Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send().
Victor Stinner [Thu, 3 Mar 2011 12:54:07 +0000 (12:54 +0000)]
Issue #11377: Deprecate platform.popen() and reimplement it with os.popen().
Victor Stinner [Thu, 3 Mar 2011 12:54:05 +0000 (12:54 +0000)]
Issue #8513: On UNIX, subprocess supports bytes command string.
Nick Coghlan [Thu, 3 Mar 2011 11:08:33 +0000 (11:08 +0000)]
Update compiler recursion crasher to more reliably blow the stack and add a tracker issue for it
Fred Drake [Thu, 3 Mar 2011 05:27:17 +0000 (05:27 +0000)]
issue 11372: use range instead of xrange
Benjamin Peterson [Wed, 2 Mar 2011 23:40:36 +0000 (23:40 +0000)]
add tests for xml.pulldom #9373
Thanks to Mark Smith for the patch.
Daniel Stutzbach [Wed, 2 Mar 2011 23:37:50 +0000 (23:37 +0000)]
#11335: Fix memory leak when a sort key function throws an exception
Victor Stinner [Wed, 2 Mar 2011 01:21:46 +0000 (01:21 +0000)]
Fix my previous commit (r88709) for str.encode(errors=...)
Victor Stinner [Wed, 2 Mar 2011 01:03:14 +0000 (01:03 +0000)]
Issue #8923: cache str.encode() result
When a string is encoded to UTF-8 in strict mode, the result is cached into the
object. Examples: str.encode(), str.encode('utf-8'), PyUnicode_AsUTF8String()
and PyUnicode_AsEncodedString(unicode, "utf-8", NULL).
Victor Stinner [Wed, 2 Mar 2011 01:03:11 +0000 (01:03 +0000)]
Remove useless argument of _PyUnicode_AsDefaultEncodedString()
Éric Araujo [Wed, 2 Mar 2011 00:31:51 +0000 (00:31 +0000)]
Remove last use of distutils.sysconfig from the stdlib (#11364).
Apart from distutils itself, the stdlib has now officially switched to
the new top-level sysconfig module. Patch greenlighted by Ned Deily.
Antoine Pitrou [Wed, 2 Mar 2011 00:15:44 +0000 (00:15 +0000)]
assertEquals is deprecated
Victor Stinner [Wed, 2 Mar 2011 00:10:34 +0000 (00:10 +0000)]
Issue #10831: Document the new formats (%li, %lli, %zi)
Victor Stinner [Wed, 2 Mar 2011 00:04:25 +0000 (00:04 +0000)]
Issue #10831: PyUnicode_FromFormat() supports %li, %lli and %zi formats
Victor Stinner [Wed, 2 Mar 2011 00:01:53 +0000 (00:01 +0000)]
Fix my previous commit (r88702): initialize size_tflag in parse_format_flags()
Victor Stinner [Tue, 1 Mar 2011 23:44:09 +0000 (23:44 +0000)]
Issue #10829: Refactor PyUnicode_FromFormat()
* Use the same function to parse the format string in the 3 steps
* Fix crashs on invalid format strings
Victor Stinner [Tue, 1 Mar 2011 23:08:36 +0000 (23:08 +0000)]
Issue #10911: Add tests on CGI with non-ASCII characters
Patch written by Pierre Quentel
Antoine Pitrou [Tue, 1 Mar 2011 23:05:42 +0000 (23:05 +0000)]
Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.
Victor Stinner [Tue, 1 Mar 2011 22:46:52 +0000 (22:46 +0000)]
Issue #11246: Fix PyUnicode_FromFormat("%V")
Decode the byte string from UTF-8 (with replace error handler) instead of
ISO-8859-1 (in strict mode). Patch written by Ray Allen.
Éric Araujo [Tue, 1 Mar 2011 18:26:56 +0000 (18:26 +0000)]
Remove outdated pointer to optparse (fixes #11360).
The doc already points to argparse.
Antoine Pitrou [Tue, 1 Mar 2011 00:41:10 +0000 (00:41 +0000)]
Endly, fix UnboundLocalError in telnetlib
Antoine Pitrou [Mon, 28 Feb 2011 22:38:07 +0000 (22:38 +0000)]
Recommend inspecting the errno attribute of socket.error objects,
and improve wording.
Antoine Pitrou [Mon, 28 Feb 2011 22:25:22 +0000 (22:25 +0000)]
Issue #10866: Add socket.sethostname(). Initial patch by Ross Lagerwall.
Antoine Pitrou [Mon, 28 Feb 2011 22:06:48 +0000 (22:06 +0000)]
Add credit for r88682.
Antoine Pitrou [Mon, 28 Feb 2011 22:04:51 +0000 (22:04 +0000)]
No need to put this at top
Antoine Pitrou [Mon, 28 Feb 2011 22:03:34 +0000 (22:03 +0000)]
Issue #11140: Lock.release() now raises a RuntimeError when attempting
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError.
Giampaolo Rodolà [Mon, 28 Feb 2011 19:27:16 +0000 (19:27 +0000)]
Issue 11348: skip os.setpriority() test if current nice level is >= 19.
Giampaolo Rodolà [Mon, 28 Feb 2011 19:19:51 +0000 (19:19 +0000)]
Fix issue 8594: adds a source_address parameter to ftplib module.
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