summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix trivial typo in test_dataclasses.py. (GH-5398)Eric V. Smith2018-01-291-1/+1
|
* bpo-32699: Improves doc for .pth files in presense of a ._pth file (#5399)Steve Dower2018-01-281-4/+4
|
* bpo-32373: Add socket.getblocking() method. (#4926)Yury Selivanov2018-01-284-4/+119
|
* bpo-32251: Implement asyncio.BufferedProtocol. (#4755)Yury Selivanov2018-01-288-44/+763
|
* Revert "bpo-32221: makeipaddr(): remove interface part + speedup (GH-4724)" ↵Yury Selivanov2018-01-284-94/+28
| | | | | (#5394) This reverts commit 47c0b1f7d4115e6f15e6776c1f91d28e7d96fe0c.
* bpo-32697: Definition order of kwonly params is now guaranteed preserved. ↵larryhastings2018-01-283-2/+63
| | | | | | (#5391) Definition order of kwonly params is now guaranteed preserved.
* bpo-32327: Revert loop.run_in_executor behaviour: return a Future. (#5392)Yury Selivanov2018-01-284-12/+14
| | | | I've run some tests on 3.7 asyncio and it appears that too many things assume that run_in_executor returns a Future.
* bpo-32690: Preserve order of locals() (#5379)Raymond Hettinger2018-01-282-2/+4
|
* bpo-32228: Reset raw_pos after unwinding the raw stream (#4858)Nitish Chandra2018-01-283-4/+28
| | | Ensure that ``truncate()`` preserves the file position (as reported by ``tell()``) after writes longer than the buffer size.
* Fix PyTrace_RETURN documentation (GH-5384)Xiang Zhang2018-01-281-1/+1
| | | It will be triggered when propagating an exception.
* Add example for PEP 557. (GH-5383)Eric V. Smith2018-01-281-0/+11
|
* bpo-32660: Solaris should support constants like termios' FIONREAD (#5328)jcea2018-01-282-0/+8
|
* bpo-32659: Solaris "stat" should support "st_fstype" (#5307)jcea2018-01-283-0/+28
| | | | | | * bpo-32659: Solaris "stat" should support "st_fstype" * Add 'versionadded'
* bpo-32685: Improve suggestion for print statement (GH-5375)Nitish Chandra2018-01-283-14/+39
| | | | | | | Better account for single-line compound statements and semi-colon separated statements when suggesting Py3 replacements for Py2 print statements. Initial patch by Nitish Chandra.
* bpo-32649: Add C API docs for per-opcode tracing & profiling (GH-5360)Xiang Zhang2018-01-282-9/+22
| | | | Updating the C API docs was missed when the per-opcode tracing & profiling support was initially added.
* bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation ↵Xiang Zhang2018-01-281-2/+2
| | | | | | (#5361)
* bpo-30306: Add missing NEWS entry (GH-5374)Nick Coghlan2018-01-281-0/+4
|
* bpo-32206: Update pdb usage to include new module option (GH-5111)Mario Corchero2018-01-282-3/+8
|
* bpo-30306: release arguments of contextmanager (GH-1500)Martin Teichmann2018-01-282-0/+50
| | | | | | | | | | | | | | | | The arguments to a generator function which is declared as a contextmanager are stored inside the context manager, and thus are kept alive, even when it is used as a regular context manager, and not as a function decorator (where it needs the original arguments to recreate the generator on each call). This is a possible unnecessary memory leak, so this changes contextmanager.__enter__ to release the saved arguments, as that method being called means that particular CM instance isn't going to need to recreate the underlying generator. Patch by Martin Teichmann.
* Pep 557 What's New (GH-5371)Eric V. Smith2018-01-281-0/+18
| | | | Add PEP 557 Data CLasses to What's New.
* bpo-32677: Optimize str.isascii() (GH-5356)INADA Naoki2018-01-282-4/+43
|
* bpo-32513: Make it easier to override dunders in dataclasses. (GH-5366)Eric V. Smith2018-01-283-294/+678
| | | Class authors no longer need to specify repr=False if they want to provide a custom __repr__ for dataclasses. The same thing applies for the other dunder methods that the dataclass decorator adds. If dataclass finds that a dunder methods is defined in the class, it will not overwrite it.
* bpo-32622: Normalize ENOTCONN to ConnectionError on macOS (GH-5369)Yury Selivanov2018-01-271-0/+11
| | | | On mac, sendfile throws ENOTCONN on a repeated sendfile call if the connection is closed. Normalize it to behave like other systems.
* bpo-32221: makeipaddr(): remove interface part + speedup (GH-4724)Коренберг Марк2018-01-274-28/+94
|
* bpo-32622: Fix AbstractEventLoop.sendfile signature in documentation. (GH-5368)Elvis Pranskevichus2018-01-271-1/+1
|
* Fix tests if Python compiled without SSL (#5367)Andrew Svetlov2018-01-271-0/+2
|
* Fix changed file detection on Travis (GH-3129)Ammar Askar2018-01-271-1/+15
| | | | | | | | | | | | | | | | | | | Travis when merging changes from a pull request onto the target branch does not perform a rebase, instead it does a simple merge which causes the PR commits to retain their commit dates. This means that the commit log can potentially look like: PR merge <-- HEAD normal master commit <- master more commits from normal workflow PR commit 1 another master commit PR commit 2 Performing a git diff from PR commit 2 to master will accidentally include files that should not be there. Closes python/core-workflow#14
* bpo-32622: Enforce sendfile fallback policy for FALLBACK transports (#5364)Yury Selivanov2018-01-272-1/+15
|
* bpo-32622: Implement loop.sendfile() (#5271)Andrew Svetlov2018-01-2712-8/+560
|
* bpo-32630: Use contextvars in decimal (GH-5278)Yury Selivanov2018-01-274-100/+70
|
* bpo-32436: Use PyThreadState_GET() in all hot paths (GH-5363)Yury Selivanov2018-01-271-3/+6
|
* Fix wrong assert in unicodeobject (GH-5340)INADA Naoki2018-01-271-1/+1
|
* bpo-31368: Expose preadv and pwritev in the os module (#5239)Pablo Galindo2018-01-279-79/+470
|
* bpo-32532: Improve documentation of settrace and setprofile (#5359)Xiang Zhang2018-01-271-1/+5
| | | | | Mention in the documentation of settrace and setprofile that errors in the registered handlers will cause themselves unset.
* bpo-31399: Let OpenSSL verify hostname and IP address (#3462)Christian Heimes2018-01-2715-73/+302
| | | | | | | | | | | | | | | bpo-31399: Let OpenSSL verify hostname and IP The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host() and X509_VERIFY_PARAM_set1_ip() API to verify hostname and IP addresses. * Remove match_hostname calls * Check for libssl with set1_host, libssl must provide X509_VERIFY_PARAM_set1_host() * Add documentation for OpenSSL 1.0.2 requirement * Don't support OpenSSL special mode with a leading dot, e.g. ".example.org" matches "www.example.org". It's not standard conform. * Add hostname_checks_common_name Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31853: Replaced socket.method calls with super() in SSLSocket. (#4048)Mads Jensen2018-01-272-20/+21
|
* bpo-32454: socket closefd (#5048)Christian Heimes2018-01-274-2/+54
| | | | | Add close(fd) function to the socket module Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32433: Optimized HMAC digest (#5023)Christian Heimes2018-01-277-3/+204
| | | | | | | The hmac module now has hmac.digest(), which provides an optimized HMAC digest for short messages. hmac.digest() is up to three times faster than hmac.HMAC().digest(). Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)INADA Naoki2018-01-2713-2/+110
|
* bpo-27505: Add change notes in module attribute docs (GH-5320)Cheryl Sabella2018-01-271-0/+11
| | | | | | Make it clear that setting __class__ on a module has worked since 3.5, but support for __getattr__ and __dir__ on module instances requires 3.7+ Patch by Cheryl Sabella.
* bpo-32678: inspect: Import ast lazily (GH-5344)INADA Naoki2018-01-271-1/+3
|
* bpo-32521: nis libnsl (#5190)Christian Heimes2018-01-262-19/+52
| | | | | The nismodule is now compatible with new libnsl and headers location Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32436: Make PyContextVar_Get a little bit faster (#5350)Yury Selivanov2018-01-261-1/+2
| | | | Since context.c is compiled with Py_BUILD_CORE, using a macro will result in a slightly more optimal code.
* bpo-32670: Enforce PEP 479. (#5327)Yury Selivanov2018-01-267-80/+38
|
* bpo-32591: fix abort in _PyErr_WarnUnawaitedCoroutine during shutdown (#5337)Nathaniel J. Smith2018-01-262-0/+29
| | | | | | | | | | | | | | | | | | When an unawaited coroutine is collected very late in shutdown -- like, during the final GC at the end of PyImport_Cleanup -- then it was triggering an interpreter abort, because we'd try to look up the "warnings" module and not only was it missing (we were prepared for that), but the entire module system was missing (which we were not prepared for). I've tried to fix this at the source, by making the utility function get_warnings_attr robust against this in general. Note that it already has the convention that it can return NULL without setting an error, which is how it signals that the attribute it was asked to fetch is missing, and that all callers already check for NULL returns. There's a similar check for being late in shutdown at the top of warn_explicit, which might be unnecessary after this fix, but I'm not sure so I'm going to leave it.
* String annotations [PEP 563] (#4390)Guido van Rossum2018-01-2616-30/+1477
| | | | | | | | * Document `from __future__ import annotations` * Provide plumbing and tests for `from __future__ import annotations` * Implement unparsing the AST back to string form This is required for PEP 563 and as such only implements a part of the unparsing process that covers expressions.
* bpo-18533: Avoid RecursionError from repr() of recursive dictview (#4823)bennorth2018-01-264-4/+44
| | | | | | | | | | | | | | | | | dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce "..." if so. test_recursive_repr(): Check for the string rather than a RecursionError. (Test cannot be any tighter as contents are implementation-dependent.) test_deeply_nested_repr(): Add new test, replacing the original test_recursive_repr(). It checks that a RecursionError is raised in the case of a non-recursive but deeply nested structure. (Very similar to what test_repr_deep() in test/test_dict.py does for a normal dict.) OrderedDictTests: Add new test case, to test behavior on OrderedDict instances containing their own values() or items().
* bpo-32571: Fix reading uninitialized memory (GH-5332)INADA Naoki2018-01-261-0/+5
| | | Reported by Coverity Scan.
* bpo-32662: Try making test_asyncio.test_server more reliable (#5338)Yury Selivanov2018-01-261-1/+12
|
* bpo-29237: Create enum for pstats sorting options (GH-5103)mwidjaja2018-01-265-61/+144
|