Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) | tzickel | 2018-10-02 | 3 | -24/+57 |
| | | | Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was deleted without being closed or terminated explicitly. | ||||
* | bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661) | Yury Selivanov | 2018-10-02 | 14 | -206/+192 |
| | |||||
* | Remove recent from logging cookbook (GH-9636) | Cheryl Sabella | 2018-10-02 | 1 | -3/+2 |
| | |||||
* | closes bpo-34862: Guard definition of convert_sched_param with ↵ | William Orr | 2018-10-02 | 2 | -7/+9 |
| | | | | | | POSIX_SPAWN_SETSCHEDULER. (GH-9658) Fixes broken build on OpenBSD-current. | ||||
* | Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670) | Benjamin Peterson | 2018-10-02 | 1 | -1/+1 |
| | |||||
* | closes bpo-34868: Improve error message with '_' is combined with an invalid ↵ | Benjamin Peterson | 2018-10-02 | 2 | -8/+12 |
| | | | | type specifier. (GH-9666) | ||||
* | bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9662) | Ezio Melotti | 2018-10-02 | 1 | -1/+1 |
| | |||||
* | bpo-30167: Add test for module.__cached__ is None (GH-7617) | INADA Naoki | 2018-10-01 | 1 | -0/+11 |
| | |||||
* | bpo-34476: Document that asyncio.sleep() always suspends. (#9643) | Hrvoje Nikšić | 2018-10-01 | 1 | -0/+3 |
| | |||||
* | bpo-30156: Remove property_descr_get() optimization (GH-9541) | Victor Stinner | 2018-10-01 | 2 | -28/+9 |
| | | | | | | | | | | | | | | | | property_descr_get() uses a "cached" tuple to optimize function calls. But this tuple can be discovered in debug mode with sys.getobjects(). Remove the optimization, it's not really worth it and it causes 3 different crashes last years. Microbenchmark: ./python -m perf timeit -v \ -s "from collections import namedtuple; P = namedtuple('P', 'x y'); p = P(1, 2)" \ --duplicate 1024 "p.x" Result: Mean +- std dev: [ref] 32.8 ns +- 0.8 ns -> [patch] 40.4 ns +- 1.3 ns: 1.23x slower (+23%) | ||||
* | Fix name of argument in docs for functools.reduce(). (#9634) | Brendan Jurd | 2018-10-01 | 1 | -6/+6 |
| | |||||
* | bpo-34850: Replace is with == in idlelib.iomenu (GH-9649) | Terry Jan Reedy | 2018-09-30 | 1 | -2/+2 |
| | | | Patch by Serhiy Storchaka (in PR #9642). | ||||
* | bpo-34854: Fix compiling string annotations containing lambdas. (GH-9645) | Serhiy Storchaka | 2018-09-30 | 3 | -5/+11 |
| | | | | | | | | | | * Compiling a string annotation containing a lambda with keyword-only argument without default value caused a crash. * Remove the final "*" (it is incorrect syntax) in the representation of lambda without *args and keyword-only arguments when compile from AST. * Improve the representation of lambda without arguments. | ||||
* | bpo-34849: Don't log wating for selector.select in asyncio loop iteration ↵ | Andrew Svetlov | 2018-09-30 | 3 | -47/+4 |
| | | | | | | | | | | (GH-9641) The waiting is pretty normal for any asyncio program, logging its time just adds a noise to logs without any useful information provided. https://bugs.python.org/issue34849 | ||||
* | Speed-up math.dist() by 30% (GH-9628) | Raymond Hettinger | 2018-09-29 | 2 | -6/+12 |
| | |||||
* | bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123) | Zackery Spytz | 2018-09-29 | 2 | -9/+10 |
| | | | Switch "list" with "iterable" to match with the implementation. | ||||
* | bpo-31370: Remove references to threadless builds (#8805) | Zackery Spytz | 2018-09-29 | 4 | -19/+10 |
| | | | Support for threadless builds was removed in a6a4dc81. | ||||
* | Fix astuple in dataclasses documentation (GH-9631) | 방성범 (Bang Seongbeom) | 2018-09-29 | 1 | -1/+1 |
| | |||||
* | Fix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630) | Zackery Spytz | 2018-09-29 | 1 | -1/+1 |
| | | | | _pickle.Unpickler.__init__() should return -1 if Pdata_New() fails, not 1. | ||||
* | bpo-34797: Convert heapq to the argument clinic (GH-9560) | Pablo Galindo | 2018-09-28 | 2 | -67/+296 |
| | |||||
* | bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623) | Victor Stinner | 2018-09-28 | 3 | -17/+0 |
| | | | | | | | | | | Since ProactorEventLoop is now the default in 3.8, remove examples using it explicitly on Windows. https://bugs.python.org/issue34687 | ||||
* | bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly ↵ | Pablo Galindo | 2018-09-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | CMSG_SPACE (GH-9613) After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_multiprocessing_spawn and after examining similar failures in test_socket, some errors in the calculation of ancillary data buffers were found in multiprocessing.reduction. CMSG_LEN() can often be used as the buffer size for recvmsg() to receive a single item of ancillary data, but RFC 3542 requires portable applications to use CMSG_SPACE() and thus include space for padding, even when the item will be the last in the buffer. The failures we experience are due to the usage of CMSG_LEN() instead of CMSG_SPACE(). | ||||
* | bpo-34736: improve error message for invalid length b64decode inputs (GH-9563) | Tal Einat | 2018-09-28 | 2 | -4/+12 |
| | | | | | | | | Improvements: 1. Include the number of valid data characters in the error message. 2. Mention "number of data characters" rather than "length". https://bugs.python.org/issue34736 | ||||
* | bpo-34248: Add filename to error raised in {gnu,ndbm}.open() (GH-8590) | Zsolt Cserna | 2018-09-27 | 5 | -2/+18 |
| | | | | | | Report the filename to the exception when raising {gdbm,dbm.ndbm}.error in dbm.gnu.open() and dbm.ndbm.open() functions, so it gets printed when the exception is raised, and can also be obtained by the filename attribute of the exception object. | ||||
* | bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611) | Yury Selivanov | 2018-09-27 | 1 | -2/+1 |
| | |||||
* | bpo-34762: Update PyContext* to PyObject* in asyncio and decimal (GH-9609) | Yury Selivanov | 2018-09-27 | 2 | -12/+11 |
| | | | This fixes various compiler warnings. | ||||
* | bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445) | Serhiy Storchaka | 2018-09-27 | 20 | -678/+337 |
| | |||||
* | bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures ↵ | orlnub123 | 2018-09-27 | 2 | -4/+5 |
| | | | | | | | (GH-9599) Use a monotonic clock to compute timeouts in :meth:`Executor.map` and :func:`as_completed`, in order to prevent timeouts from deviating when the system clock is adjusted. This may not be sufficient on all systems. On POSIX for example, the actual waiting (e.g. in ``sem_timedwait``) is specified to rely on the CLOCK_REALTIME clock. | ||||
* | Fix tests in test_socket to use correctly CMSG_LEN (GH-9594) | Pablo Galindo | 2018-09-27 | 1 | -2/+3 |
| | | | | | | | | | | | | | After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_socket that are using testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed out to be the reason the test started to fail. A close examination of the manpage for cmsg_space(3) reveals that the number of file descriptors needs to be taken into account when using CMSG_LEN(). This commit fixes tests in test_socket to use correctly CMSG_LEN, taking into account the number of FDs. | ||||
* | bpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595) | Tal Einat | 2018-09-26 | 2 | -2/+2 |
| | |||||
* | Clarify that Type[SomeTypeVar] is legal (#9585) | Michael Lee | 2018-09-26 | 1 | -3/+6 |
| | | | | | | Currently, the docs state that when doing `Type[X]`, X is only allowed to be a class, a union of classes, and Any. This pull request amends that sentence to clarify X may also be a typevar (or a union involving classes, Any, and TypeVars). | ||||
* | bpo-31425: Expose AF_QIPCRTR in socket module (GH-3706) | Bjorn Andersson | 2018-09-26 | 8 | -2/+154 |
| | | | | | | The AF_QIPCRTR address family was introduced in Linux v4.7. Co-authored-by: Bjorn Andersson <bjorn.andersson@linaro.org> | ||||
* | bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624) | INADA Naoki | 2018-09-26 | 5 | -1/+60 |
| | | | | | | | When dict subclass overrides order (`__iter__()`, `keys()`, and `items()`), `dict(o)` should use it instead of dict ordering. https://bugs.python.org/issue34320 | ||||
* | bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) | Cheryl Sabella | 2018-09-25 | 4 | -5/+23 |
| | |||||
* | asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9579) | Yury Selivanov | 2018-09-25 | 2 | -11/+11 |
| | |||||
* | bpo-5950: Support reading zips with comments in zipimport (#9548) | Zackery Spytz | 2018-09-25 | 5 | -1012/+1083 |
| | | | * bpo-5950: Support reading zips with comments in zipimport | ||||
* | bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. ↵ | Yury Selivanov | 2018-09-25 | 2 | -4/+37 |
| | | | | (GH-9543) | ||||
* | bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573) | Terry Jan Reedy | 2018-09-25 | 1 | -0/+7 |
| | |||||
* | bpo-1529353: IDLE - Squeezer What's New for 3.8 (#9572) | Terry Jan Reedy | 2018-09-25 | 1 | -0/+14 |
| | |||||
* | bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (#9568) | Terry Jan Reedy | 2018-09-25 | 1 | -2/+11 |
| | |||||
* | bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (#9567) | Terry Jan Reedy | 2018-09-25 | 1 | -2/+11 |
| | |||||
* | bpo-33937: Catch ENOMEM error in test_socket (#9557) | Victor Stinner | 2018-09-25 | 1 | -2/+13 |
| | | | | | Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error. testSendmsgTimeout() and testSendmsgDontWait() randomly fail on Travis CI with: "OSError: [Errno 12] Cannot allocate memory". | ||||
* | bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538) | Victor Stinner | 2018-09-25 | 7 | -14/+30 |
| | |||||
* | bpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372) | Joe Pamer | 2018-09-25 | 4 | -4/+34 |
| | | | https://bugs.python.org/issue32557 | ||||
* | bpo-1529353: IDLE: squeeze large output in the shell (GH-7626) | Tal Einat | 2018-09-25 | 11 | -29/+974 |
| | |||||
* | Improved the more elaborate multiprocessing example in the logging cookbook ↵ | Géry Ogam | 2018-09-25 | 1 | -29/+29 |
| | | | | (GH-9326) | ||||
* | bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497) | Zackery Spytz | 2018-09-25 | 2 | -0/+6 |
| | | | | | | | | The GlobalLock() call in UpdateDropDescription() was not checked for failure. https://bugs.python.org/issue34770 | ||||
* | Fix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533) | Joni Kähärä | 2018-09-25 | 1 | -1/+1 |
| | |||||
* | bpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551) | Terry Jan Reedy | 2018-09-25 | 1 | -2/+15 |
| | |||||
* | bpo-34162: Add entry for idlelib/NEWS.txt already included for 3.6/3.7 (GH-9549) | Terry Jan Reedy | 2018-09-24 | 1 | -0/+5 |
| |