]>
granicus.if.org Git - python/log
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.
Serhiy Storchaka [Mon, 8 Feb 2016 15:57:22 +0000 (17:57 +0200)]
Issue #26117: The os.scandir() iterator now closes file descriptor not only
when the iteration is finished, but when it was failed with error.
Serhiy Storchaka [Mon, 8 Feb 2016 15:56:36 +0000 (17:56 +0200)]
Issue #26117: The os.scandir() iterator now closes file descriptor not only
when the iteration is finished, but when it was failed with error.
Serhiy Storchaka [Mon, 8 Feb 2016 14:39:05 +0000 (16:39 +0200)]
Issue #25949: __dict__ for an OrderedDict instance is now created only when
needed.
Serhiy Storchaka [Mon, 8 Feb 2016 14:24:15 +0000 (16:24 +0200)]
Issue #25911: Restored support of bytes paths in os.walk() on Windows.
Martin Panter [Tue, 9 Feb 2016 11:57:11 +0000 (11:57 +0000)]
Issue #26045: Merge http.client error addition from 3.5
Martin Panter [Tue, 9 Feb 2016 10:20:52 +0000 (10:20 +0000)]
Issue #26045: Add UTF-8 suggestion to error in http.client
Based on patch by Guido van Rossum.
Serhiy Storchaka [Mon, 8 Feb 2016 14:23:28 +0000 (16:23 +0200)]
Issue #25911: Restored support of bytes paths in os.walk() on Windows.
Serhiy Storchaka [Mon, 8 Feb 2016 07:26:57 +0000 (09:26 +0200)]
Issue #26198: Make datetime error tests more lenient.
Serhiy Storchaka [Mon, 8 Feb 2016 07:25:53 +0000 (09:25 +0200)]
Issue #26198: Make datetime error tests more lenient.
Serhiy Storchaka [Sun, 7 Feb 2016 23:22:47 +0000 (01:22 +0200)]
Issue #26198: ValueError is now raised instead of TypeError on buffer
overflow in parsing "es#" and "et#" format units. SystemError is now raised
instead of TypeError on programmical error in parsing format string.
Serhiy Storchaka [Sun, 7 Feb 2016 23:20:21 +0000 (01:20 +0200)]
Issue #26198: Fixed error messages for some argument parsing errors.
Serhiy Storchaka [Sun, 7 Feb 2016 23:06:11 +0000 (01:06 +0200)]
Issue #26198: Fixed error messages for some argument parsing errors.
Fixed the documented about buffer overflow error for "es#" and "et#" format
units.
Martin Panter [Mon, 8 Feb 2016 01:34:09 +0000 (01:34 +0000)]
Issue #25179: Preparatory cleanup of existing docs on string formatting
* Various sections were pointing to the section on the string.Formatter
class, when the section on the common format string syntax is probably more
appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
and this is tested; see Issue #19729 for instance
Serhiy Storchaka [Sun, 7 Feb 2016 22:02:25 +0000 (00:02 +0200)]
Issue #26039: Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir().
Patch by Thomas Kluyver.
Martin Panter [Mon, 8 Feb 2016 01:49:35 +0000 (01:49 +0000)]
Merge string formatting doc fixes from 3.5
Yury Selivanov [Sat, 6 Feb 2016 17:21:33 +0000 (12:21 -0500)]
Issue #26288: Fix comment
Senthil Kumaran [Sat, 6 Feb 2016 03:37:47 +0000 (19:37 -0800)]
merge from 3.5
Senthil Kumaran [Sat, 6 Feb 2016 03:37:23 +0000 (19:37 -0800)]
Fix userinfo example presented in urllib2 howto.
Yury Selivanov [Sat, 6 Feb 2016 00:40:01 +0000 (19:40 -0500)]
Issue #26288: Optimize PyLong_AsDouble.
Eric V. Smith [Fri, 5 Feb 2016 23:26:20 +0000 (18:26 -0500)]
Switch to more idiomatic C code.
Eric V. Smith [Fri, 5 Feb 2016 23:23:08 +0000 (18:23 -0500)]
Fix issue 26287: While handling FORMAT_VALUE opcode, the top of stack was being corrupted if an error occurred in PyObject_Format().
Martin Panter [Sat, 6 Feb 2016 01:08:40 +0000 (01:08 +0000)]
Issue #12923: Merge FancyURLopener fix from 3.5
Yury Selivanov [Thu, 4 Feb 2016 19:08:23 +0000 (14:08 -0500)]
Merge 3.5
Yury Selivanov [Thu, 4 Feb 2016 19:00:26 +0000 (14:00 -0500)]
Issue #25660: Fix a unittest and rlcompleter when readline isn't available
Raymond Hettinger [Thu, 4 Feb 2016 10:46:16 +0000 (02:46 -0800)]
Add early-out for the common case where kwds is NULL (gives 1.1% speedup).
Yury Selivanov [Thu, 4 Feb 2016 06:24:56 +0000 (01:24 -0500)]
Merge 3.5 (issue #25660)
Yury Selivanov [Thu, 4 Feb 2016 06:23:05 +0000 (01:23 -0500)]
Issue #25660: Fix TAB key behaviour in REPL.
Martin Panter [Thu, 4 Feb 2016 06:01:35 +0000 (06:01 +0000)]
Issue #12923: Reset FancyURLopener's redirect counter even on exception
Based on patches by Brian Brazil and Daniel Rocco.
Zachary Ware [Thu, 4 Feb 2016 04:07:08 +0000 (22:07 -0600)]
Merge with 3.5
Zachary Ware [Thu, 4 Feb 2016 04:05:46 +0000 (22:05 -0600)]
Python for .NET has moved to Github.
Reported by Denis Akhiyarov on docs@
Zachary Ware [Tue, 2 Feb 2016 23:04:56 +0000 (17:04 -0600)]
Merge with 3.5
Zachary Ware [Tue, 2 Feb 2016 23:04:41 +0000 (17:04 -0600)]
Fix typo.
Reported by Jon Tetlak on docs@
Serhiy Storchaka [Tue, 2 Feb 2016 16:45:47 +0000 (18:45 +0200)]
Issue #25945: Fixed bugs in functools.partial.
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
Martin Panter [Wed, 3 Feb 2016 07:52:06 +0000 (07:52 +0000)]
Issue #26244: Merge zlib documentation from 3.5
Martin Panter [Wed, 3 Feb 2016 07:06:33 +0000 (07:06 +0000)]
Issue #26244: Clarify default zlib compression level in documentation
Based on patch by Aviv Palivoda.
Martin Panter [Wed, 3 Feb 2016 05:19:44 +0000 (05:19 +0000)]
Issue #24421: Compile _math.c separately to avoid race condition
Serhiy Storchaka [Tue, 2 Feb 2016 16:45:17 +0000 (18:45 +0200)]
Issue #25945: Fixed bugs in functools.partial.
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
Raymond Hettinger [Tue, 2 Feb 2016 05:21:19 +0000 (21:21 -0800)]
merge