Martin Panter
93088d1b03
Issue #26385 : Merge NamedTemporaryFile fix from 3.5
2016-02-29 11:25:09 +00:00
Martin Panter
7869a22779
Issue #26385 : Cleanup NamedTemporaryFile if open() fails, by SilentGhost
2016-02-28 05:22:20 +00:00
Martin Panter
8cacc63002
Issue #22836 : Merge exception reporting from 3.5
2016-02-28 03:29:51 +00:00
Martin Panter
3263f6874a
Issue #22836 : Keep exception reports sensible despite errors
2016-02-28 03:16:11 +00:00
Martin Panter
de9b27d908
Issue #26390 : Merge pbkdf2_hmac() doc from 3.5
2016-02-26 00:41:38 +00:00
Martin Panter
6e132254a9
Issue #26402 : Merge XML-RPC client fix from 3.5
2016-02-25 12:13:50 +00:00
Martin Panter
eae3336e42
Issue #26402 : Fix XML-RPC client retrying after server disconnection
...
This is a regression introduced in 3.5 by revision eba80326ba53. Fix by Jelte
Fennema, test case by me.
2016-02-25 11:53:40 +00:00
Serhiy Storchaka
f799ca82a0
Issue #25801 : Fixed resource warnings in test_zipfile64.
...
Patch by SilentGhost.
2016-02-25 13:16:02 +02:00
Serhiy Storchaka
f828218d65
Issue #25801 : Fixed resource warnings in test_zipfile64.
...
Patch by SilentGhost.
2016-02-25 12:55:19 +02:00
Jason R. Coombs
b118870490
Issue #26302 : merge from 3.5
2016-02-24 08:50:59 -05:00
Serhiy Storchaka
6c783ac15d
Issue #25913 : Leading <~ is optional now in base64.a85decode() with adobe=True.
...
Patch by Swati Jaiswal.
2016-02-24 12:08:11 +02:00
Serhiy Storchaka
205e75bb62
Issue #25913 : Leading <~ is optional now in base64.a85decode() with adobe=True.
...
Patch by Swati Jaiswal.
2016-02-24 12:05:50 +02:00
Martin Panter
510addf63f
Issue #5824 : Merge socketserver tests from 3.5
2016-02-24 06:14:15 +00:00
Martin Panter
1827eff030
Issue #5824 : Fix DatagramRequestHandler tests by binding the client socket
2016-02-24 05:12:59 +00:00
Martin Panter
150ea1a1df
Issue #22088 : Merge base64 docs from 3.5
2016-02-24 01:08:43 +00:00
Martin Panter
ee3074e1f4
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.
2016-02-23 22:30:50 +00:00
Martin Panter
bc85e35fe6
Issue #26390 : Fix and test pbkdf2_hmac() parameter names
...
Based on patch by Daan Bakker.
2016-02-22 09:21:49 +00:00
Martin Panter
d9108d1253
Issue #23430 : Stop socketserver from catching SystemExit etc from handlers
...
Also make handle_error() consistently output to stderr, and fix the
documentation.
2016-02-21 08:49:56 +00:00
Brett Cannon
e5f4d3c246
Merge for issue #26186
2016-02-20 18:37:04 -08:00
Brett Cannon
558823a0cf
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.
2016-02-20 18:35:41 -08:00
Brett Cannon
0911c0d271
Merge for issue #26367
2016-02-20 12:59:36 -08:00
Brett Cannon
4f38cb41fe
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.
2016-02-20 12:52:06 -08:00
Martin Panter
4ddbc0784a
Issue #26309 : Merge socketserver fix from 3.5
2016-02-19 02:38:34 +00:00
Martin Panter
4bf427495f
Issue #26309 : Rewrite test in main thread and avoid race condition
2016-02-19 02:16:42 +00:00
Berker Peksag
31a252b7f3
Issue #16915 : Clarify that mode parameter of socket.makefile() does not accept
...
the same values as open().
2016-02-18 17:34:32 +02:00
Berker Peksag
3fe64d0c5c
Issue #16915 : Clarify that mode parameter of socket.makefile() does not accept
...
the same values as open().
2016-02-18 17:34:00 +02:00
Martin Panter
a2b64e630e
Issue #26309 : Merge socketserver fix from 3.5
2016-02-18 11:01:32 +00:00
Martin Panter
c12fef9aa3
Issue #26309 : Shut down socketserver request if verify_request() is false
...
Patch by Aviv Palivoda.
2016-02-18 10:43:55 +00:00
Yury Selivanov
3e48b38dff
Merge 3.5 (issue #25887 )
2016-02-13 18:00:31 -05:00
Yury Selivanov
77c96813ab
Issue #25887 : Raise a RuntimeError when a coroutine is awaited more than once.
2016-02-13 17:59:05 -05:00
Yury Selivanov
e0b23095ee
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.
2016-02-11 10:26:27 -05:00
Serhiy Storchaka
ffe96ae10b
Issue #25994 : Added the close() method and the support of the context manager
...
protocol for the os.scandir() iterator.
2016-02-11 13:21:30 +02:00
Serhiy Storchaka
2feb642585
Issue #26325 : Added test.support.check_no_resource_warning() to check that
...
no ResourceWarning is emitted.
2016-02-11 13:12:19 +02:00
Serhiy Storchaka
94a619d48b
Issue #26325 : Added test.support.check_no_resource_warning() to check that
...
no ResourceWarning is emitted.
2016-02-11 13:11:44 +02:00
Serhiy Storchaka
885bdc4946
Issue #25985 : sys.version_info is now used instead of sys.version
...
to format short Python version.
2016-02-11 13:10:36 +02:00
Serhiy Storchaka
a9725f86a9
Issue #26312 : SystemError is now raised in all programming bugs with using
...
PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some
programming bugs.
2016-02-11 12:41:40 +02:00
Charles-François Natali
78f55ffc63
Issue #23992 : multiprocessing: make MapResult not fail-fast upon exception.
2016-02-10 22:58:18 +00:00
Martin Panter
3008b1c4bb
Issue #26304 : Merge doc wording from 3.5
2016-02-10 05:44:56 +00:00
Martin Panter
c04fb56e36
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.
2016-02-10 05:44:01 +00:00
Martin Panter
7e3a91a5fc
Issue #26136 : Upgrade the generator_stop warning to DeprecationWarning
...
Patch by Anish Shah.
2016-02-10 04:40:48 +00:00
Martin Panter
1fe0d13d12
Issue #26243 : zlib.compress() keyword argument support by Aviv Palivoda
2016-02-10 10:06:36 +00:00
Victor Stinner
15a3095d64
compiler: don't emit SyntaxWarning on const stmt
...
Issue #26204 : the compiler doesn't emit SyntaxWarning warnings anymore when
constant statements are ignored.
2016-02-08 22:45:06 +01:00
Serhiy Storchaka
896632ea6b
Issue #25983 : Added tests for multi-argument type().
2016-02-08 20:28:22 +02:00
Serhiy Storchaka
763f9f0d89
Issue #25983 : Added tests for multi-argument type().
2016-02-08 20:28:03 +02:00
Victor Stinner
a2724095cd
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"
2016-02-08 18:17:58 +01:00
Victor Stinner
51d8c526d5
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 .
2016-02-08 17:57:02 +01:00
Victor Stinner
f089196beb
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 .
2016-02-08 17:15:21 +01:00
Serhiy Storchaka
d2962f145a
Issue #25949 : __dict__ for an OrderedDict instance is now created only when
...
needed.
2016-02-08 16:39:05 +02:00
Serhiy Storchaka
79ad897052
Issue #25911 : Restored support of bytes paths in os.walk() on Windows.
2016-02-08 16:24:15 +02:00
Martin Panter
192697e33b
Issue #26045 : Merge http.client error addition from 3.5
2016-02-09 11:57:11 +00:00