]>
granicus.if.org Git - python/log
Antoine Pitrou [Thu, 15 May 2014 20:47:33 +0000 (22:47 +0200)]
Better organization of the what's new
Antoine Pitrou [Thu, 15 May 2014 20:39:41 +0000 (22:39 +0200)]
Issue #21364: remove recommendation of broken pattern.
Antoine Pitrou [Thu, 15 May 2014 20:38:56 +0000 (22:38 +0200)]
Issue #21364: remove recommendation of broken pattern.
Antoine Pitrou [Thu, 15 May 2014 18:40:53 +0000 (20:40 +0200)]
Issue #20826: Optimize ipaddress.collapse_addresses().
Antoine Pitrou [Thu, 15 May 2014 18:21:48 +0000 (20:21 +0200)]
Issue #21487: Optimize ipaddress.summarize_address_range() and ipaddress.{IPv4Network,IPv6Network}.subnets().
Antoine Pitrou [Thu, 15 May 2014 18:18:41 +0000 (20:18 +0200)]
Issue #21486: Optimize parsing of netmasks in ipaddress.IPv4Network and ipaddress.IPv6Network.
Serhiy Storchaka [Thu, 15 May 2014 11:37:42 +0000 (14:37 +0300)]
Issue #13916: Disallowed the surrogatepass error handler for non UTF-*
encodings.
Victor Stinner [Wed, 14 May 2014 21:37:14 +0000 (23:37 +0200)]
Merge 3.4
Victor Stinner [Wed, 14 May 2014 21:29:38 +0000 (23:29 +0200)]
Issue #21488: Oops, the patch for codecs.encode/decode doc was written by
Berker Peksag (already present in Misc/ACKS). The issue was reported by Brad
Aylsworth.
Serhiy Storchaka [Wed, 14 May 2014 18:51:37 +0000 (21:51 +0300)]
Issue #20998: Fixed re.fullmatch() of repeated single character pattern
with ignore case. Original patch by Matthew Barnett.
Serhiy Storchaka [Wed, 14 May 2014 18:48:17 +0000 (21:48 +0300)]
Issue #20998: Fixed re.fullmatch() of repeated single character pattern
with ignore case. Original patch by Matthew Barnett.
Serhiy Storchaka [Wed, 14 May 2014 18:11:08 +0000 (21:11 +0300)]
Issue #21075: fileinput.FileInput now reads bytes from standard stream if
binary mode is specified. Patch by Sam Kimbrel.
Serhiy Storchaka [Wed, 14 May 2014 18:08:33 +0000 (21:08 +0300)]
Issue #21075: fileinput.FileInput now reads bytes from standard stream if
binary mode is specified. Patch by Sam Kimbrel.
Victor Stinner [Wed, 14 May 2014 15:24:35 +0000 (17:24 +0200)]
Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY()
Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between
pyconfig.h and pymacros.h.
Victor Stinner [Wed, 14 May 2014 15:16:58 +0000 (17:16 +0200)]
(Merge 3.4) Issue #21497: faulthandler functions now raise a better error if
sys.stderr is None: RuntimeError("sys.stderr is None") instead of
AttributeError("'NoneType' object has no attribute 'fileno'").
Victor Stinner [Wed, 14 May 2014 15:15:50 +0000 (17:15 +0200)]
Issue #21497: faulthandler functions now raise a better error if sys.stderr is
None: RuntimeError("sys.stderr is None") instead of AttributeError("'NoneType'
object has no attribute 'fileno'").
Victor Stinner [Wed, 14 May 2014 15:13:14 +0000 (17:13 +0200)]
Issue #21488: Add support of keyword arguments for codecs.encode and codecs.decode
Victor Stinner [Wed, 14 May 2014 15:13:02 +0000 (17:13 +0200)]
Merge 3.4 (I commited a patch to the wrong branch and then used hg backout)
Victor Stinner [Wed, 14 May 2014 15:12:27 +0000 (17:12 +0200)]
Backed out changeset
6ceedbd88b5f
Victor Stinner [Wed, 14 May 2014 15:10:45 +0000 (17:10 +0200)]
Issue #21488: Add support of keyword arguments for codecs.encode and codecs.decode
Victor Stinner [Wed, 14 May 2014 15:09:39 +0000 (17:09 +0200)]
Merge 3.4: ignore change specific to 3.4 for #21488, I had a different patch for Python 3.5
Victor Stinner [Wed, 14 May 2014 15:08:45 +0000 (17:08 +0200)]
Issue #21488: Fix doc of codecs.decode() and codecs.encode(), no keyword support.
Patch written by Brad Aylsworth.
R David Murray [Wed, 14 May 2014 14:10:14 +0000 (10:10 -0400)]
Merge: #21347: use string not list in shell=True example.
R David Murray [Wed, 14 May 2014 14:09:52 +0000 (10:09 -0400)]
#21347: use string not list in shell=True example.
Patch by Akira.
Raymond Hettinger [Wed, 14 May 2014 05:21:04 +0000 (22:21 -0700)]
merge
Raymond Hettinger [Wed, 14 May 2014 05:13:40 +0000 (22:13 -0700)]
Issue #21470: Do a better job seeding the random number generator
to fully cover its state space.
Eric Snow [Tue, 13 May 2014 18:18:07 +0000 (12:18 -0600)]
Merge from 3.4 (for #21499).
Eric Snow [Tue, 13 May 2014 18:15:42 +0000 (12:15 -0600)]
Issue #21499: Ignore __builtins__ in several test_importlib.test_api tests.
Guido van Rossum [Tue, 13 May 2014 16:21:33 +0000 (09:21 -0700)]
Merge 3.4->default: Fix test-order-dependend asyncio test failure caused by rev
2af5a52b9b87 (in this branch).
Guido van Rossum [Tue, 13 May 2014 16:19:39 +0000 (09:19 -0700)]
Fix test-order-dependend asyncio test failure caused by rev
909ea8cc86bbab92dbb6231668f403b7360f30fa .
doko@ubuntu.com [Tue, 13 May 2014 09:30:17 +0000 (11:30 +0200)]
Merge from 3.4:
- Issue #17756: Fix test_code test when run from the installed location.
doko@ubuntu.com [Tue, 13 May 2014 09:28:12 +0000 (11:28 +0200)]
- Issue #17756: Fix test_code test when run from the installed location.
Antoine Pitrou [Tue, 13 May 2014 08:50:15 +0000 (10:50 +0200)]
Issue #19775: Add a samefile() method to pathlib Path objects.
Initial patch by Vajrasky Kok.
Raymond Hettinger [Tue, 13 May 2014 05:22:46 +0000 (22:22 -0700)]
Issue 21469: Minor code modernization (convert and/or expression to an if/else expression).
Suggested by: Tal Einat
Raymond Hettinger [Tue, 13 May 2014 05:05:09 +0000 (22:05 -0700)]
merge
Raymond Hettinger [Tue, 13 May 2014 05:01:46 +0000 (22:01 -0700)]
Issue 21469: Add missing news item
Raymond Hettinger [Tue, 13 May 2014 04:57:19 +0000 (21:57 -0700)]
merge
Raymond Hettinger [Tue, 13 May 2014 04:56:33 +0000 (21:56 -0700)]
Issue 21469: Mitigate risk of false positives with robotparser.
* Repair the broken link to norobots-rfc.txt.
* HTTP response codes >= 500 treated as a failed read rather than as a not
found. Not found means that we can assume the entire site is allowed. A 5xx
server error tells us nothing.
* A successful read() or parse() updates the mtime (which is defined to be "the
time the robots.txt file was last fetched").
* The can_fetch() method returns False unless we've had a read() with a 2xx or
4xx response. This avoids false positives in the case where a user calls
can_fetch() before calling read().
* I don't see any easy way to test this patch without hitting internet
resources that might change or without use of mock objects that wouldn't
provide must reassurance.
Jason R. Coombs [Tue, 13 May 2014 02:41:49 +0000 (22:41 -0400)]
Merge doc change from 3.3
Jason R. Coombs [Tue, 13 May 2014 02:41:15 +0000 (22:41 -0400)]
Merge doc change from 3.3
Jason R. Coombs [Tue, 13 May 2014 02:40:49 +0000 (22:40 -0400)]
Update docs to reflect resurrection of Setuptools over Distribute
Eric Snow [Tue, 13 May 2014 00:25:00 +0000 (18:25 -0600)]
Merge from 3.4 (for #21226).
Victor Stinner [Tue, 13 May 2014 00:06:33 +0000 (02:06 +0200)]
(Merge 3.4) Issue #21398: Fix an unicode error in the pydoc pager when the
documentation contains characters not encodable to the stdout encoding.
Victor Stinner [Tue, 13 May 2014 00:05:35 +0000 (02:05 +0200)]
Issue #21398: Fix an unicode error in the pydoc pager when the documentation
contains characters not encodable to the stdout encoding.
Eric Snow [Mon, 12 May 2014 23:54:55 +0000 (17:54 -0600)]
Issue #21226: Set all attrs in PyImport_ExecCodeModuleObject.
Victor Stinner [Mon, 12 May 2014 23:32:54 +0000 (01:32 +0200)]
(Merge 3.4) Issue #21418: Fix a crash in the builtin function super() when
called without argument and without current frame (ex: embedded Python).
Victor Stinner [Mon, 12 May 2014 23:32:36 +0000 (01:32 +0200)]
Issue #21418: Fix a crash in the builtin function super() when called without
argument and without current frame (ex: embedded Python).
Victor Stinner [Mon, 12 May 2014 21:25:25 +0000 (23:25 +0200)]
(Merge 3.4) Issue #21485: remove unnecesary .flush() calls in the asyncio
subprocess code example
Victor Stinner [Mon, 12 May 2014 21:25:09 +0000 (23:25 +0200)]
Issue #21485: remove unnecesary .flush() calls in the asyncio subprocess code
example
Victor Stinner [Mon, 12 May 2014 20:43:07 +0000 (22:43 +0200)]
(Merge 3.4) Issue #21422: Add a test to check that bool << int and bool >> int
return an int
Victor Stinner [Mon, 12 May 2014 20:35:40 +0000 (22:35 +0200)]
Issue #21422: Add a test to check that bool << int and bool >> int return an int
Antoine Pitrou [Mon, 12 May 2014 18:36:46 +0000 (20:36 +0200)]
Issue #16531: ipaddress.IPv4Network and ipaddress.IPv6Network now accept an (address, netmask) tuple argument, so as to easily construct network objects from existing addresses.
Guido van Rossum [Mon, 12 May 2014 17:05:04 +0000 (10:05 -0700)]
Merge 3.4->default: asyncio: Fix upstream issue 168: StreamReader.read(-1) from pipe may hang if data exceeds buffer limit.
Guido van Rossum [Mon, 12 May 2014 17:04:37 +0000 (10:04 -0700)]
asyncio: Fix upstream issue 168: StreamReader.read(-1) from pipe may hang if data exceeds buffer limit.
Ned Deily [Mon, 12 May 2014 04:47:21 +0000 (21:47 -0700)]
Issue 21383: merge from 3.4
Ned Deily [Mon, 12 May 2014 04:45:13 +0000 (21:45 -0700)]
Issue #21383: Allow "make touch" to work when building outside of the
source directory.
Terry Jan Reedy [Mon, 12 May 2014 03:47:31 +0000 (23:47 -0400)]
Issue #18104: News for 3.4, in proper place.
Terry Jan Reedy [Mon, 12 May 2014 03:46:22 +0000 (23:46 -0400)]
#18104: null merge of 3.4 News entry
Terry Jan Reedy [Mon, 12 May 2014 03:42:43 +0000 (23:42 -0400)]
Issue #18104: News for 3.4 (which will not merge forward).
Terry Jan Reedy [Mon, 12 May 2014 03:35:35 +0000 (23:35 -0400)]
Merge with 3.4
Terry Jan Reedy [Mon, 12 May 2014 03:35:09 +0000 (23:35 -0400)]
whitespace
Terry Jan Reedy [Mon, 12 May 2014 03:32:58 +0000 (23:32 -0400)]
Merge with 3.4
Terry Jan Reedy [Mon, 12 May 2014 03:32:32 +0000 (23:32 -0400)]
Issue #18104: Add idlelib/idle_test/htest.py with a few sample tests to begin
consolidating and improving human-validated tests of Idle. Change other files
as needed to work with htest. Running the module as __main__ runs all tests.
Benjamin Peterson [Sun, 11 May 2014 23:17:34 +0000 (16:17 -0700)]
merge 3.4
Benjamin Peterson [Sun, 11 May 2014 23:17:02 +0000 (16:17 -0700)]
use logical rather than bit and
Raymond Hettinger [Sun, 11 May 2014 21:21:23 +0000 (14:21 -0700)]
Issue 21424: Apply the nlargest() optimizations to nsmallest() as well.
Gregory P. Smith [Sun, 11 May 2014 20:29:36 +0000 (13:29 -0700)]
merge from 3.4 - clean up the subprocess docs warning-soup and
s/Unix/POSIX/.
Gregory P. Smith [Sun, 11 May 2014 20:28:35 +0000 (13:28 -0700)]
Change all references to Unix to POSIX in the subprocess docs. It's
more accurate and sounds less like a strange tale of yore.
Gregory P. Smith [Sun, 11 May 2014 20:26:21 +0000 (13:26 -0700)]
Remove the warning-soup from the subprocess documentation by adding
a Security Considerations section as preferred by both the devguide
and documentation users who do not wish to go insane.
Benjamin Peterson [Sun, 11 May 2014 18:19:17 +0000 (11:19 -0700)]
merge 3.4
Benjamin Peterson [Sun, 11 May 2014 18:18:51 +0000 (11:18 -0700)]
remove confusing delete indexing (closes #21466)
Antoine Pitrou [Sun, 11 May 2014 17:39:13 +0000 (19:39 +0200)]
Null merge
Antoine Pitrou [Sun, 11 May 2014 17:13:43 +0000 (19:13 +0200)]
Try to fix issue #21425 workaround for shared library builds
Antoine Pitrou [Sun, 11 May 2014 17:13:43 +0000 (19:13 +0200)]
Try to fix issue #21425 workaround for shared library builds
Antoine Pitrou [Sun, 11 May 2014 17:05:50 +0000 (19:05 +0200)]
Fix printing out error message when test fails and run with -bb
Antoine Pitrou [Sun, 11 May 2014 17:05:23 +0000 (19:05 +0200)]
Fix printing out error message when test fails and run with -bb
Antoine Pitrou [Sun, 11 May 2014 15:30:41 +0000 (17:30 +0200)]
Null merge
Antoine Pitrou [Sun, 11 May 2014 15:29:57 +0000 (17:29 +0200)]
Remove debugging output
Antoine Pitrou [Sun, 11 May 2014 14:59:16 +0000 (16:59 +0200)]
Try workaround for test issues in #21425
Antoine Pitrou [Sun, 11 May 2014 14:59:16 +0000 (16:59 +0200)]
Try workaround for test issues in #21425
Antoine Pitrou [Sun, 11 May 2014 14:36:22 +0000 (16:36 +0200)]
Fix debugging output to work with -W
Antoine Pitrou [Sun, 11 May 2014 14:24:45 +0000 (16:24 +0200)]
Fix debugging output to work with -bb
Antoine Pitrou [Sun, 11 May 2014 14:09:15 +0000 (16:09 +0200)]
Add debugging output for #21425
Antoine Pitrou [Sun, 11 May 2014 11:43:31 +0000 (13:43 +0200)]
Issue #21425: Fix flushing of standard streams in the interactive interpreter.
Antoine Pitrou [Sun, 11 May 2014 11:42:17 +0000 (13:42 +0200)]
Issue #21425: Fix flushing of standard streams in the interactive interpreter.
Raymond Hettinger [Sun, 11 May 2014 09:26:23 +0000 (02:26 -0700)]
By popular demand, add back a security warning.
Raymond Hettinger [Sun, 11 May 2014 08:55:46 +0000 (01:55 -0700)]
Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons.
Consolidates the logic for nlargest() into a single function so that
decoration tuples (elem,order) or (key, order, elem) only need to
be formed when a new element is added to the heap. Formerly, a tuple
was created for every element regardless of whether it was added to
the heap.
The change reduces the number of tuples created, the number of ordering
integers created, and total number of tuple comparisons.
Guido van Rossum [Sat, 10 May 2014 22:48:03 +0000 (15:48 -0700)]
Merge 3.4 -> default: asyncio: Upstream issue #167: remove dead code, by Marc Schlaich.
Guido van Rossum [Sat, 10 May 2014 22:47:15 +0000 (15:47 -0700)]
asyncio: Upstream issue #167: remove dead code, by Marc Schlaich.
Raymond Hettinger [Sat, 10 May 2014 21:05:28 +0000 (14:05 -0700)]
Remove the redundant and poorly worded warning message.
The paragraph above already says, clearly and correctly, that
"However, being completely deterministic, it is not suitable for
all purposes, and is completely unsuitable for cryptographic purposes."
Also we should make any promises about SystemRandom or os.urandom()
being cryptographically secure (they may be, but be can't validate
that promise). Further, those are actual random number generators
not psuedo-random number generators.
Jason R. Coombs [Sat, 10 May 2014 17:24:58 +0000 (13:24 -0400)]
Reindent long line
Jason R. Coombs [Sat, 10 May 2014 17:24:18 +0000 (13:24 -0400)]
Replace overly-aggressive comparison for type equality with an isinstance check.
Jason R. Coombs [Sat, 10 May 2014 17:22:43 +0000 (13:22 -0400)]
Drop support for Python 2.4 in upload command.
Jason R. Coombs [Sat, 10 May 2014 17:21:02 +0000 (13:21 -0400)]
Replace import * with explicit import
Jason R. Coombs [Sat, 10 May 2014 17:20:28 +0000 (13:20 -0400)]
Clean up style in distutils upload command
Eli Bendersky [Sat, 10 May 2014 02:03:25 +0000 (19:03 -0700)]
Issue #19655: Add tests for the new asdl parser.
This unit test runs only for source builds of Python, similarly to test_tools.
Eli Bendersky [Sat, 10 May 2014 00:58:22 +0000 (17:58 -0700)]
Issue #19655: Replace the ASDL parser carried with CPython
The new parser does not rely on Spark (which is now removed from our repo),
uses modern 3.x idioms and is significantly smaller and simpler.
It generates exactly the same AST files (.h and .c), so in practice no builds
should be affected.
Brett Cannon [Fri, 9 May 2014 18:32:57 +0000 (14:32 -0400)]
Issue #19721: Consolidate test_importlib utility code into a single
module.
Brett Cannon [Fri, 9 May 2014 17:38:11 +0000 (13:38 -0400)]
Issue #20776: Flesh out tests for importlib.machinery.PathFinder.
Tim Golden [Fri, 9 May 2014 17:19:31 +0000 (18:19 +0100)]
Issue21452 Add missing backslash to build path for make_buildinfo