]>
granicus.if.org Git - python/log
Serhiy Storchaka [Wed, 24 Feb 2016 11:04:33 +0000 (13:04 +0200)]
Null merge
Serhiy Storchaka [Wed, 24 Feb 2016 11:03:54 +0000 (13:03 +0200)]
Fixed a bug in os.walk() with bytes path on Windows caused by merging fixes
for issues #25995 and #25911.
Serhiy Storchaka [Wed, 24 Feb 2016 10:08:11 +0000 (12:08 +0200)]
Issue #25913: Leading <~ is optional now in base64.a85decode() with adobe=True.
Patch by Swati Jaiswal.
Serhiy Storchaka [Wed, 24 Feb 2016 10:05:50 +0000 (12:05 +0200)]
Issue #25913: Leading <~ is optional now in base64.a85decode() with adobe=True.
Patch by Swati Jaiswal.
Martin Panter [Wed, 24 Feb 2016 06:14:15 +0000 (06:14 +0000)]
Issue #5824: Merge socketserver tests from 3.5
Martin Panter [Wed, 24 Feb 2016 05:12:59 +0000 (05:12 +0000)]
Issue #5824: Fix DatagramRequestHandler tests by binding the client socket
Martin Panter [Wed, 24 Feb 2016 01:08:43 +0000 (01:08 +0000)]
Issue #22088: Merge base64 docs from 3.5
Martin Panter [Tue, 23 Feb 2016 22:30:50 +0000 (22:30 +0000)]
Issue #22088: Clarify base-64 alphabets and which characters are discarded
* There are only two base-64 alphabets defined by the RFCs, not three
* Due to the internal translation, plus (+) and slash (/) are never discarded
* standard_ and urlsafe_b64decode() discard characters as well
Also update the doc strings to clarify data types, based on revision
92760d2edc9e , correct the exception raised by b16decode(), and correct the
parameter name for the base-85 functions.
Ned Deily [Tue, 23 Feb 2016 11:10:06 +0000 (22:10 +1100)]
Issue #26406: merge from 3.5
Ned Deily [Tue, 23 Feb 2016 11:05:29 +0000 (22:05 +1100)]
Issue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
Georg Brandl [Mon, 22 Feb 2016 13:53:03 +0000 (14:53 +0100)]
merge with 3.5
Georg Brandl [Mon, 22 Feb 2016 13:52:55 +0000 (14:52 +0100)]
Update example; str(float) changed so there is difference now.
Zachary Ware [Mon, 22 Feb 2016 10:16:33 +0000 (04:16 -0600)]
Issue #26268: Merge with 3.5
Martin Panter [Mon, 22 Feb 2016 10:10:55 +0000 (10:10 +0000)]
Issue #26261: Merge NamedTemporaryFile docs from 3.5
Martin Panter [Mon, 22 Feb 2016 10:10:00 +0000 (10:10 +0000)]
Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name
Zachary Ware [Mon, 22 Feb 2016 10:08:51 +0000 (04:08 -0600)]
Issue #26268: Update Windows builds to use OpenSSL 1.0.2f
Zachary Ware [Mon, 22 Feb 2016 10:02:30 +0000 (04:02 -0600)]
Issue #26268: Update the prepare_ssl.py script
It can now handle OpenSSL versions 1.0.2e and greater, which don't
include include files in include/.
Note that sources prepared by this script no longer support the old
project files for 2.7; you now have to have Perl available to use
the old build_ssl.py script with sources from svn.python.org.
Martin Panter [Mon, 22 Feb 2016 09:05:19 +0000 (09:05 +0000)]
Merge XML-RPC client documentation from 3.5
Martin Panter [Mon, 22 Feb 2016 09:04:22 +0000 (09:04 +0000)]
Fix errors in XML-RPC client example code
* http.client.HTTP (does not exist in Python 3) → HTTPConnection
* Server (deprecated) → ServerProxy
* Transport.send_request() grew a new “debug” parameter in Python 3 (revision
a528f7f8f97a )
Berker Peksag [Sun, 21 Feb 2016 20:00:29 +0000 (22:00 +0200)]
Issue #26401: Fix compile() documentation
After
25032ec29315 , compile() will raise a ValueError
if source contains null bytes.
Patch by SilentGhost.
Berker Peksag [Sun, 21 Feb 2016 20:00:12 +0000 (22:00 +0200)]
Issue #26401: Fix compile() documentation
After
25032ec29315 , compile() will raise a ValueError
if source contains null bytes.
Patch by SilentGhost.
Brett Cannon [Sun, 21 Feb 2016 17:21:35 +0000 (09:21 -0800)]
Fix some typos in the NEWS file
Brett Cannon [Sun, 21 Feb 2016 17:20:51 +0000 (09:20 -0800)]
Fix some typos in the NEWS file
Martin Panter [Sun, 21 Feb 2016 08:49:56 +0000 (08:49 +0000)]
Issue #23430: Stop socketserver from catching SystemExit etc from handlers
Also make handle_error() consistently output to stderr, and fix the
documentation.
Brett Cannon [Sun, 21 Feb 2016 02:47:09 +0000 (18:47 -0800)]
Fix a name in an example
Brett Cannon [Sun, 21 Feb 2016 02:45:56 +0000 (18:45 -0800)]
Issue #26397: Update an importlib example to use util.module_from_spec() instead of create_module()
Brett Cannon [Sun, 21 Feb 2016 02:40:18 +0000 (18:40 -0800)]
Merge w/ 3.5
Brett Cannon [Sun, 21 Feb 2016 02:40:02 +0000 (18:40 -0800)]
List what classes from importlib.machinery don't work with importlib.util.LazyLoader
Brett Cannon [Sun, 21 Feb 2016 02:37:04 +0000 (18:37 -0800)]
Merge for issue #26186
Brett Cannon [Sun, 21 Feb 2016 02:35:41 +0000 (18:35 -0800)]
Issue #26186: Remove an invalid type check in
importlib.util.LazyLoader.
The class was checking its argument as to whether its implementation
of create_module() came directly from importlib.abc.Loader. The
problem is that the classes coming from imoprtlib.machinery do not
directly inherit from the ABC as they come from _frozen_importlib.
Because the documentation has always said that create_module() was
ignored, the check has simply been removed.
Brett Cannon [Sat, 20 Feb 2016 20:59:36 +0000 (12:59 -0800)]
Merge for issue #26367
Brett Cannon [Sat, 20 Feb 2016 20:52:06 +0000 (12:52 -0800)]
Issue #26367: Have importlib.__init__() raise RuntimeError when
'level' is specified but no __package__.
This brings the function inline with builtins.__import__(). Thanks to
Manuel Jacob for the patch.
Vinay Sajip [Sat, 20 Feb 2016 19:03:29 +0000 (19:03 +0000)]
Merged cookbook update from 3.5.
Vinay Sajip [Sat, 20 Feb 2016 19:02:46 +0000 (19:02 +0000)]
Added simple threading example to logging cookbook.
Martin Panter [Fri, 19 Feb 2016 23:46:59 +0000 (23:46 +0000)]
Issue #22468: Merge gettarinfo() doc from 3.5
Martin Panter [Fri, 19 Feb 2016 23:34:56 +0000 (23:34 +0000)]
Issues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage
* The Windows-specific binary notice was probably a Python 2 thing
* Make it more obvious gettarinfo() is based on stat(), and that non-ordinary
files may need special care
* The file name must be text; suggest dummy arcname as a workaround
* Indicate TarInfo may be used directly, not just via gettarinfo()
Georg Brandl [Fri, 19 Feb 2016 07:57:50 +0000 (08:57 +0100)]
merge with 3.5
Georg Brandl [Fri, 19 Feb 2016 07:57:38 +0000 (08:57 +0100)]
Closes #20169: fix inner links random doc.
Martin Panter [Fri, 19 Feb 2016 03:35:00 +0000 (03:35 +0000)]
Issue #15608: Merge socketserver doc from 3.5
Martin Panter [Fri, 19 Feb 2016 03:27:46 +0000 (03:27 +0000)]
Issue #15608: Improve socketserver module documentation
* Add headings for each concrete and mix-in class and list methods and
attributes under them
* Fix class and method cross references
* Changed RequestHandler to BaseRequestHandler and added class heading
* Pull out Stream/DatagramRequestHandler definitions
* Reordered the request handler setup(), handle(), finish() methods
* Document constructor parameters for the server classes
* Remove version 2.6 not relevant for Python 3 documentation
Martin Panter [Fri, 19 Feb 2016 02:38:34 +0000 (02:38 +0000)]
Issue #26309: Merge socketserver fix from 3.5
Martin Panter [Fri, 19 Feb 2016 02:16:42 +0000 (02:16 +0000)]
Issue #26309: Rewrite test in main thread and avoid race condition
Berker Peksag [Thu, 18 Feb 2016 15:34:32 +0000 (17:34 +0200)]
Issue #16915: Clarify that mode parameter of socket.makefile() does not accept
the same values as open().
Berker Peksag [Thu, 18 Feb 2016 15:34:00 +0000 (17:34 +0200)]
Issue #16915: Clarify that mode parameter of socket.makefile() does not accept
the same values as open().
Martin Panter [Thu, 18 Feb 2016 11:01:32 +0000 (11:01 +0000)]
Issue #26309: Merge socketserver fix from 3.5
Martin Panter [Thu, 18 Feb 2016 10:43:55 +0000 (10:43 +0000)]
Issue #26309: Shut down socketserver request if verify_request() is false
Patch by Aviv Palivoda.
Benjamin Peterson [Thu, 18 Feb 2016 07:43:08 +0000 (23:43 -0800)]
merge 3.5 (#26378)
Benjamin Peterson [Thu, 18 Feb 2016 07:42:46 +0000 (23:42 -0800)]
fix typo (closes #26378)
Benjamin Peterson [Thu, 18 Feb 2016 06:18:35 +0000 (22:18 -0800)]
merge 3.5 (closes #25939)
Benjamin Peterson [Thu, 18 Feb 2016 06:18:20 +0000 (22:18 -0800)]
merge 3.4 (closes #25939)
Benjamin Peterson [Thu, 18 Feb 2016 06:13:19 +0000 (22:13 -0800)]
open the cert store readonly
Patch from Chi Hsuan Yen.
Ned Deily [Tue, 16 Feb 2016 02:27:45 +0000 (13:27 +1100)]
Issue #26368: fix typo in asynchio stream doc, reported by Ryan Stuart.
Ned Deily [Tue, 16 Feb 2016 02:27:04 +0000 (13:27 +1100)]
Issue #26368: fix typo in asynchio stream doc, reported by Ryan Stuart.
Georg Brandl [Mon, 15 Feb 2016 16:50:33 +0000 (17:50 +0100)]
Minor clarification in tutorial.
Ned Deily [Mon, 15 Feb 2016 05:57:04 +0000 (16:57 +1100)]
Issue #25924: merge with 3.5
Ned Deily [Mon, 15 Feb 2016 05:54:08 +0000 (16:54 +1100)]
Issue #25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis.
Ned Deily [Mon, 15 Feb 2016 05:47:03 +0000 (16:47 +1100)]
Issue #26268: merge from 3.5
Ned Deily [Mon, 15 Feb 2016 05:44:38 +0000 (16:44 +1100)]
Issue #26268: Update OS X 10.5+ installer build to use OpenSSL 1.0.2f.
Raymond Hettinger [Sun, 14 Feb 2016 09:41:35 +0000 (01:41 -0800)]
The return type of a rich comparison is an int
Martin Panter [Sun, 14 Feb 2016 03:25:48 +0000 (03:25 +0000)]
Issue #26316: Merge Arg Clinic fix from 3.5
Martin Panter [Sun, 14 Feb 2016 03:23:13 +0000 (03:23 +0000)]
Issue #26316: Fix variable name typo in Argument Clinic
Yury Selivanov [Sat, 13 Feb 2016 23:00:31 +0000 (18:00 -0500)]
Merge 3.5 (issue #25887)
Yury Selivanov [Sat, 13 Feb 2016 22:59:05 +0000 (17:59 -0500)]
Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once.
Vinay Sajip [Sat, 13 Feb 2016 16:27:25 +0000 (16:27 +0000)]
Fixes #26348: Merged fix from 3.5.
Vinay Sajip [Sat, 13 Feb 2016 16:26:35 +0000 (16:26 +0000)]
Fixes #26348: Corrected typos in activate.fish script.
Martin Panter [Sat, 13 Feb 2016 00:41:37 +0000 (00:41 +0000)]
Issue #25179: Documentation for formatted string literals aka f-strings
Some of the inspiration and wording is taken from the text of PEP 498 by Eric
V. Smith, and the existing str.format() documentation.
Yury Selivanov [Thu, 11 Feb 2016 15:26:27 +0000 (10:26 -0500)]
Issues #26289 and #26315: Optimize floor/modulo div for single-digit longs
Microbenchmarks show 2-2.5x improvement. Built-in 'divmod' function
is now also ~10% faster.
-m timeit -s "x=22331" "x//2;x//-3;x//4;x//5;x//-6;x//7;x//8;x//-99;x//100;"
with patch: 0.321 without patch: 0.633
-m timeit -s "x=22331" "x%2;x%3;x%-4;x%5;x%6;x%-7;x%8;x%99;x%-100;"
with patch: 0.224 without patch: 0.66
Big thanks to Serhiy Storchaka, Mark Dickinson and Victor Stinner for
thorow code reviews and algorithms improvements.
Serhiy Storchaka [Thu, 11 Feb 2016 11:31:56 +0000 (13:31 +0200)]
Null merge
Serhiy Storchaka [Thu, 11 Feb 2016 11:31:00 +0000 (13:31 +0200)]
Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.
Different solution from 3.5.
Serhiy Storchaka [Thu, 11 Feb 2016 11:29:28 +0000 (13:29 +0200)]
Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.
Serhiy Storchaka [Thu, 11 Feb 2016 11:21:30 +0000 (13:21 +0200)]
Issue #25994: Added the close() method and the support of the context manager
protocol for the os.scandir() iterator.
Serhiy Storchaka [Thu, 11 Feb 2016 11:12:19 +0000 (13:12 +0200)]
Issue #26325: Added test.support.check_no_resource_warning() to check that
no ResourceWarning is emitted.
Serhiy Storchaka [Thu, 11 Feb 2016 11:11:44 +0000 (13:11 +0200)]
Issue #26325: Added test.support.check_no_resource_warning() to check that
no ResourceWarning is emitted.
Serhiy Storchaka [Thu, 11 Feb 2016 11:10:36 +0000 (13:10 +0200)]
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
Serhiy Storchaka [Thu, 11 Feb 2016 10:41:40 +0000 (12:41 +0200)]
Issue #26312: SystemError is now raised in all programming bugs with using
PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some
programming bugs.
Charles-François Natali [Wed, 10 Feb 2016 22:58:18 +0000 (22:58 +0000)]
Issue #23992: multiprocessing: make MapResult not fail-fast upon exception.
Guido van Rossum [Wed, 10 Feb 2016 17:49:36 +0000 (09:49 -0800)]
Null merge of typing.rst change
Guido van Rossum [Wed, 10 Feb 2016 17:48:58 +0000 (09:48 -0800)]
Hopefully clarify the difference between Optional[t] and an optional argument.
Guido van Rossum [Wed, 10 Feb 2016 17:46:56 +0000 (09:46 -0800)]
Hopefully clarify the difference between Optional[t] and an optional argument.
Serhiy Storchaka [Wed, 10 Feb 2016 08:31:43 +0000 (10:31 +0200)]
Issue #25698: Prevent possible replacing imported module with the empty one
if the stack is too deep.
Serhiy Storchaka [Wed, 10 Feb 2016 08:31:20 +0000 (10:31 +0200)]
Issue #25698: Prevent possible replacing imported module with the empty one
if the stack is too deep.
Martin Panter [Wed, 10 Feb 2016 05:45:55 +0000 (05:45 +0000)]
Issue #26304: Additional “allows to” fix specific to 3.6
Martin Panter [Wed, 10 Feb 2016 05:44:56 +0000 (05:44 +0000)]
Issue #26304: Merge doc wording from 3.5
Martin Panter [Wed, 10 Feb 2016 05:44:01 +0000 (05:44 +0000)]
Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
Martin Panter [Wed, 10 Feb 2016 04:40:48 +0000 (04:40 +0000)]
Issue #26136: Upgrade the generator_stop warning to DeprecationWarning
Patch by Anish Shah.
Martin Panter [Wed, 10 Feb 2016 10:45:54 +0000 (10:45 +0000)]
Issue 26243: Forgot to update zlib doc strings in Argument Clinic
Martin Panter [Wed, 10 Feb 2016 10:06:36 +0000 (10:06 +0000)]
Issue #26243: zlib.compress() keyword argument support by Aviv Palivoda
Martin Panter [Wed, 10 Feb 2016 01:17:51 +0000 (01:17 +0000)]
Issues #26310, #26311: Fix typos in the documentation and code comments
Raymond Hettinger [Tue, 9 Feb 2016 04:34:49 +0000 (20:34 -0800)]
Issue #26200: The SETREF macro adds unnecessary work in some cases.
Martin Panter [Wed, 10 Feb 2016 01:18:36 +0000 (01:18 +0000)]
Issues #26310, 26311: Merge typo fixes from 3.5
Victor Stinner [Mon, 8 Feb 2016 21:45:06 +0000 (22:45 +0100)]
compiler: don't emit SyntaxWarning on const stmt
Issue #26204: the compiler doesn't emit SyntaxWarning warnings anymore when
constant statements are ignored.
Serhiy Storchaka [Mon, 8 Feb 2016 18:28:22 +0000 (20:28 +0200)]
Issue #25983: Added tests for multi-argument type().
Serhiy Storchaka [Mon, 8 Feb 2016 18:28:03 +0000 (20:28 +0200)]
Issue #25983: Added tests for multi-argument type().
Gregory P. Smith [Mon, 8 Feb 2016 17:59:00 +0000 (09:59 -0800)]
Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.
Gregory P. Smith [Mon, 8 Feb 2016 17:58:40 +0000 (09:58 -0800)]
Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.
Steve Dower [Mon, 8 Feb 2016 17:27:44 +0000 (09:27 -0800)]
Updates build to use SHA256 hash when signing files
Steve Dower [Mon, 8 Feb 2016 17:24:46 +0000 (09:24 -0800)]
Updates build to use SHA256 hash when signing files.
Victor Stinner [Mon, 8 Feb 2016 17:17:58 +0000 (18:17 +0100)]
compiler now ignores constant statements
The compile ignores constant statements and emit a SyntaxWarning warning.
Don't emit the warning for string statement because triple quoted string is a
common syntax for multiline comments.
Don't emit the warning on ellipis neither: 'def f(): ...' is a legit syntax for
abstract functions.
Changes:
* test_ast: ignore SyntaxWarning when compiling test statements. Modify
test_load_const() to use assignment expressions rather than constant
expression.
* test_code: add more kinds of constant statements, ignore SyntaxWarning when
testing that the compiler removes constant statements.
* test_grammar: ignore SyntaxWarning on the statement "1"
Victor Stinner [Mon, 8 Feb 2016 16:57:02 +0000 (17:57 +0100)]
Replace noop constant statement with expression
* Constant statements will be ignored and the compiler will emit a
SyntaxWarning.
* Replace constant statement (ex: "1") with an expression statement
(ex: "x=1").
* test_traceback: use context manager on the file.
Issue #26204.
Victor Stinner [Mon, 8 Feb 2016 16:15:21 +0000 (17:15 +0100)]
Simplify main() of test_ast
* Use ast.parse() to get the AST for a statement
* Use str%args syntax for format a line
Issue #26204.