https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
53ebf4b Fix an incorrect check in compiler_try_except(). (GH-9810) 12 October 2018, 05:54:03 UTC
fc439d2 Fix a possible decref of a borrowed reference in symtable.c. (GH-9786) 11 October 2018, 05:05:35 UTC
9b8c2e7 bpo-34922: Fix integer overflow in the digest() and hexdigest() methods (GH-9751) for the SHAKE algorithm in the hashlib module. 11 October 2018, 04:41:00 UTC
f1aa8ae Micro-optimize list index range checks (GH-9784) 11 October 2018, 03:37:28 UTC
1d26c72 bpo-34576 warn users on security for http.server (#9720) It was proposed to add an warning for http.server regarding security issues. The wording was provided at bpo-26005 by @orsenthil 11 October 2018, 02:43:40 UTC
a6b3ec5 bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607) Unconditional forcing of ``CHECKED_HASH`` invalidation was introduced in 3.7.0 in bpo-29708. The change is bad, as it unconditionally overrides *invalidation_mode*, even if it was passed as an explicit argument to ``py_compile.compile()`` or ``compileall``. An environment variable should *never* override an explicit argument to a library function. That change leads to multiple test failures if the ``SOURCE_DATE_EPOCH`` environment variable is set. This changes ``py_compile.compile()`` to only look at ``SOURCE_DATE_EPOCH`` if no explicit *invalidation_mode* was specified. I also made various relevant tests run with explicit control over the value of ``SOURCE_DATE_EPOCH``. While looking at this, I noticed that ``zipimport`` does not work with hash-based .pycs _at all_, though I left the fixes for subsequent commits. 10 October 2018, 16:43:14 UTC
7e18dee bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777) :meth:`mimetypes.MimeTypes.guess_type` now accepts :term:`path-like object` in addition to url strings. 10 October 2018, 14:46:44 UTC
3058b7d bpo-33613: Fix test_semaphore_tracker signal tests when using -Werror (GH-9778) Tests involving sending signals to the semaphore_tracker will not fail anymore due to the fact that running the test suite with -Werror propagates warnings as errors. Fix a missing assertion when the semaphore_tracker is expected to die. 10 October 2018, 07:40:14 UTC
d0bb5d7 Convert code of conduct to markdown for Github (GH-9776) 10 October 2018, 06:43:08 UTC
7c817e6 bpo-34913: Document gzip command line interface (GH-9782) 10 October 2018, 06:28:26 UTC
e8bbc52 bpo-23596: Use argparse for the command line of gzip (GH-9781) Co-authored-by: Antony Lee <anntzer.lee@gmail.com> 09 October 2018, 22:41:33 UTC
84eec11 bpo-23596: Add unit tests for the command line for the gzip module (GH-9775) Add unit tests for the command line for the gzip module 09 October 2018, 21:16:43 UTC
c880ffe bpo-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716) 09 October 2018, 15:30:21 UTC
79d2133 bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-9656) When Python is built with the intel control-flow protection flags, -mcet -fcf-protection, gdb is not able to read the stack without actually jumping inside the function. This means an extra 'next' command is required to make the $pc (program counter) enter the function and make the stack of the function exposed to gdb. Co-Authored-By: Marcel Plch <gmarcel.plch@gmail.com> (cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287) 09 October 2018, 14:54:04 UTC
7b31397 bpo-32680 add default "sock" on SMTP objects (#5345) By default the smtplib.SMTP objects did not have a sock attribute, it was only created during connect() 09 October 2018, 14:31:55 UTC
2b2758d Extract sendfile tests into a separate test file (#9757) 09 October 2018, 04:52:57 UTC
199a280 bpo-34758: add .wasm to recognized file extensions in mimetypes module (GH-9464) 09 October 2018, 04:43:58 UTC
6261ae9 bpo-32174: Let .chm document display non-ASCII characters properly (GH-9758) Let .chm document display non-ASCII characters properly Escape the `body` part of .chm source file to 7-bit ASCII, to fix visual effect on some MBCS Windows systems. 08 October 2018, 21:20:54 UTC
60d230c Extract tests for sock_*() functions into a separate file (GH-9761) 08 October 2018, 20:06:18 UTC
0854b92 bpo-31715 Add mimetype for extension .mjs (#3908) 08 October 2018, 20:04:55 UTC
5eea0ad bpo-34921: Allow escaped NoReturn in get_type_hints (GH-9750) 08 October 2018, 18:50:16 UTC
4c33997 bpo-34911: Added support for secure websocket cookies (GH-9734) 08 October 2018, 18:49:29 UTC
af5658a bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617) Implement the methods selection_from(), selection_range(), selection_present() and selection_to() for Tkinter Spinbox. 08 October 2018, 16:29:24 UTC
a8d5e2f Use double quote instead of backtick to clarify Ellipsis constant (GH-9754) 08 October 2018, 15:14:16 UTC
de2e448 bpo-34925: Optimize common case for bisect() argument parsing (#9753) 08 October 2018, 15:02:41 UTC
fc8205c Add missing closing quote and trailing period in str.isidentifier() docstring (GH-9756) This rectifies commit ffc5a14d00db984c8e72c7b67da8a493e17e2c14. 08 October 2018, 10:44:47 UTC
ffc5a14 bpo-33014: Clarify str.isidentifier docstring (GH-6088) * bpo-33014: Clarify str.isidentifier docstring * bpo-33014: Add code example in isidentifier documentation 08 October 2018, 06:53:32 UTC
656d52d bpo-34901: add isolated (-I) flag to sys.flags (GH-9708) https://bugs.python.org/issue34901 07 October 2018, 16:12:31 UTC
7dfbd49 Correct grammar mistake in re.rst. (GH-9745) 06 October 2018, 19:48:30 UTC
365ad2e bpo-34824: Fix a possible NULL pointer dereference in _ssl.c (GH-9606) On failure, _PyBytes_Resize() will deallocate the bytes object and set "result" to NULL. https://bugs.python.org/issue34824 06 October 2018, 17:41:45 UTC
683281f bpo-34906: Doc: Fix typos (2) (GH-9735) Fix typos 06 October 2018, 14:35:53 UTC
ae62f01 bpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733) 06 October 2018, 06:44:25 UTC
cd45385 bpo-34909: keep searching mixins until base class is found (GH-9737) 06 October 2018, 06:29:36 UTC
9287882 bpo-34158: Documentation UTC offset update (GH-8377) * Documentation of UTC offset update Since changes in the UTC offset that allows sub-minute offsets, the documentation needs update: - "%z" format code documentation update Karthikeyan Singaravelan commented on bugs.python.org: Added as part of 018d353c1c8c87767d2335cd884017c2ce12e045 and a fix regarding duplicate words for that part was added at bac2d5ba30339298db7d4caa9c8cd31d807cf081. Relevant format string at https://github.com/python/cpython/pull/2896/files#diff-25e2d173c84057d069b7890450714eddR214. Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/files#diff-acc40bec51c7de832de3361db3edae52R309. Table at https://docs.python.org/3.7/library/datetime.html#strftime-and-strptime-behavior could also be updated with microseconds being optional in the second column %z | UTC offset in the form ±HHMM[SS] (empty string if the object is naive). | (empty), +0000, -0400, +1030 - isoformat documentation update According to me, needs confirmation: Relevant format string at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714eddR176 Relevant test case at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714edd * From Martin Panter: some style improvment; From @pganssle: using f for fractional part of seconds in all file. 05 October 2018, 22:57:02 UTC
7bb9cd0 bpo-34899: Fix a possible assertion failure due to int_from_bytes_impl() (GH-9705) The _PyLong_FromByteArray() call in int_from_bytes_impl() was unchecked. 05 October 2018, 21:02:23 UTC
addf8af Fix a compiler warning added in bpo-34872. (GH-9722) 05 October 2018, 18:20:02 UTC
4642d5f Use assertEqual() instead of assertEquals(). (GH-9721) Fixes warnings in tests added in bpo-32117 and bpo-34603. 05 October 2018, 18:09:56 UTC
4313a29 bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719) 05 October 2018, 18:05:47 UTC
4919747 Simplify flags checks in sre_compile.py. (GH-9718) Flags SRE_FLAG_UNICODE and SRE_FLAG_ASCII are mutually exclusive. 05 October 2018, 17:53:45 UTC
6f9c55d bpo-34825: Add more entries to os to pathlib reference table (GH-9608) The added functions are as below : | os module | Pathlib | | ------------- | ------------- | | os.chmod | Path.chmod | | os.mkdir | Path.mkdir | | os.rename | Path.rename | | os.replace | Path.replace | | os.rmdir | Path.rmdir | | os.remove, os.unlink | Path.unlink | | os.path.samefile | Path.samefile | Thanks https://bugs.python.org/issue34825 05 October 2018, 15:24:11 UTC
07fbbfd bpo-34906: Doc: Fix typos (GH-9712) 05 October 2018, 14:17:18 UTC
7a7693e bpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin (GH-4348) This is needed to even the run the test suite on buildbots for affected platforms; e.g.: ``` ./python.exe ./Tools/scripts/run_tests.py -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2 /home/embray/src/python/test-worker/3.x.test-worker/build/python -u -W default -bb -E -W error::BytesWarning -m test -r -w -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2 Traceback (most recent call last): File "./Tools/scripts/run_tests.py", line 56, in <module> main(sys.argv[1:]) File "./Tools/scripts/run_tests.py", line 52, in main os.execv(sys.executable, args) PermissionError: [Errno 13] Permission denied make: *** [Makefile:1073: buildbottest] Error 1 ``` 05 October 2018, 11:38:50 UTC
fc7d1b3 Fix a typo ssl.py docstring (GH-9697) 05 October 2018, 07:00:45 UTC
6f85b82 bpo-34871: inspect: Don't pollute sys.modules (GH-9696) https://bugs.python.org/issue34871 04 October 2018, 16:47:09 UTC
c57eb9a bpo-34871: Fix two typos in test_inspect.py (GH-9698) `arg` is misspelled as `agr`. I noticed this when playing with https://bugs.python.org/issue34871 https://bugs.python.org/issue34871 04 October 2018, 13:15:00 UTC
5f5a778 bpo-34740: Get rid of tp_getattro in ossaudiodev.oss_audio_device. (GH-9421) Use tp_members and tp_getset instead. 04 October 2018, 07:42:06 UTC
b2953fa bpo-34739: Get rid of tp_getattro in xml.etree.ElementTree.XMLParser. (GH-9420) Use tp_members and tp_getset instead. 04 October 2018, 07:41:27 UTC
65ed12c closes bpo-34869: Remove LDLAST. (GH-9667) 04 October 2018, 02:23:24 UTC
0c797a6 bpo-34872: Fix self-cancellation in C implementation of asyncio.Task (GH-9679) The C implementation of asyncio.Task currently fails to perform the cancellation cleanup correctly in the following scenario. async def task1(): async def task2(): await task3 # task3 is never cancelled asyncio.current_task().cancel() await asyncio.create_task(task2()) The actuall error is a hardcoded call to `future_cancel()` instead of calling the `cancel()` method of a future-like object. Thanks to Vladimir Matveev for noticing the code discrepancy and to Yury Selivanov for coming up with a pathological scenario. 03 October 2018, 14:30:31 UTC
96c5932 bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683) formatfloat() was not checking if PyBytes_FromStringAndSize() failed, which could lead to a null pointer dereference in _PyBytes_FormatEx(). 03 October 2018, 06:01:30 UTC
e006b39 Make it clear that the msg argument to assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680) A follow up to be4e5b89204283a62e369439025f00362d0424f6. 03 October 2018, 04:38:39 UTC
97bfe8d bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was deleted without being closed or terminated explicitly. 02 October 2018, 21:01:23 UTC
9012a0f bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661) 02 October 2018, 17:53:06 UTC
11c4eaa Remove recent from logging cookbook (GH-9636) 02 October 2018, 16:35:05 UTC
81574b8 closes bpo-34862: Guard definition of convert_sched_param with POSIX_SPAWN_SETSCHEDULER. (GH-9658) Fixes broken build on OpenBSD-current. 02 October 2018, 05:19:56 UTC
be4e5b8 Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670) 02 October 2018, 05:18:44 UTC
cbda8fc closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666) 02 October 2018, 04:54:39 UTC
30534cc bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9662) 02 October 2018, 00:34:46 UTC
d4c76d9 bpo-30167: Add test for module.__cached__ is None (GH-7617) 01 October 2018, 12:10:37 UTC
cd602b8 bpo-34476: Document that asyncio.sleep() always suspends. (#9643) 01 October 2018, 10:09:38 UTC
e972c13 bpo-30156: Remove property_descr_get() optimization (GH-9541) 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%) 01 October 2018, 10:03:22 UTC
9df1002 Fix name of argument in docs for functools.reduce(). (#9634) 01 October 2018, 06:52:10 UTC
5fa247d bpo-34850: Replace is with == in idlelib.iomenu (GH-9649) Patch by Serhiy Storchaka (in PR #9642). 30 September 2018, 21:17:17 UTC
2a2940e bpo-34854: Fix compiling string annotations containing lambdas. (GH-9645) * 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. 30 September 2018, 18:07:05 UTC
d5bd036 bpo-34849: Don't log wating for selector.select in asyncio loop iteration (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 30 September 2018, 05:28:40 UTC
df81015 Speed-up math.dist() by 30% (GH-9628) 29 September 2018, 21:30:38 UTC
e45473e bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123) Switch "list" with "iterable" to match with the implementation. 29 September 2018, 16:15:55 UTC
eef0596 bpo-31370: Remove references to threadless builds (#8805) Support for threadless builds was removed in a6a4dc81. 29 September 2018, 16:07:11 UTC
508d820 Fix astuple in dataclasses documentation (GH-9631) 29 September 2018, 10:50:31 UTC
4b430e5 Fix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630) _pickle.Unpickler.__init__() should return -1 if Pdata_New() fails, not 1. 29 September 2018, 05:48:46 UTC
e2f48bf bpo-34797: Convert heapq to the argument clinic (GH-9560) 28 September 2018, 19:39:43 UTC
37aae9d bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623) Since ProactorEventLoop is now the default in 3.8, remove examples using it explicitly on Windows. https://bugs.python.org/issue34687 28 September 2018, 15:40:08 UTC
077061a bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly 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(). 28 September 2018, 09:51:05 UTC
1fba2ff bpo-34736: improve error message for invalid length b64decode inputs (GH-9563) 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 28 September 2018, 05:57:22 UTC
9df346b bpo-34248: Add filename to error raised in {gnu,ndbm}.open() (GH-8590) 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. 27 September 2018, 19:54:34 UTC
59ee5b1 bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611) 27 September 2018, 19:48:30 UTC
994269c bpo-34762: Update PyContext* to PyObject* in asyncio and decimal (GH-9609) This fixes various compiler warnings. 27 September 2018, 18:55:55 UTC
3f22811 bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445) 27 September 2018, 14:42:37 UTC
a94ee12 bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (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. 27 September 2018, 11:16:26 UTC
7291108 Fix tests in test_socket to use correctly CMSG_LEN (GH-9594) 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. 27 September 2018, 09:25:03 UTC
f55c64c bpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595) 26 September 2018, 21:20:38 UTC
130717f Clarify that Type[SomeTypeVar] is legal (#9585) 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). 26 September 2018, 15:13:28 UTC
bb81651 bpo-31425: Expose AF_QIPCRTR in socket module (GH-3706) The AF_QIPCRTR address family was introduced in Linux v4.7. Co-authored-by: Bjorn Andersson <bjorn.andersson@linaro.org> 26 September 2018, 13:47:52 UTC
2aaf98c bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624) When dict subclass overrides order (`__iter__()`, `keys()`, and `items()`), `dict(o)` should use it instead of dict ordering. https://bugs.python.org/issue34320 26 September 2018, 03:59:00 UTC
d345bb4 bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) 25 September 2018, 23:00:08 UTC
fad6af2 asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9579) 25 September 2018, 21:44:52 UTC
5a5ce06 bpo-5950: Support reading zips with comments in zipimport (#9548) * bpo-5950: Support reading zips with comments in zipimport 25 September 2018, 19:15:47 UTC
996859a bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543) 25 September 2018, 18:51:21 UTC
22ef31d bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573) 25 September 2018, 17:41:25 UTC
fdcb5ae bpo-1529353: IDLE - Squeezer What's New for 3.8 (#9572) 25 September 2018, 16:45:27 UTC
ea718d3 bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (#9568) 25 September 2018, 16:09:43 UTC
dac712d bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (#9567) 25 September 2018, 16:08:54 UTC
46f40be bpo-33937: Catch ENOMEM error in test_socket (#9557) Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error. testSendmsgTimeout() and testSendmsgDontWait() randomly fail on Travis CI with: "OSError: [Errno 12] Cannot allocate memory". 25 September 2018, 15:30:15 UTC
6ea29c5 bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538) 25 September 2018, 15:27:08 UTC
c8c0249 bpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372) https://bugs.python.org/issue32557 25 September 2018, 14:57:36 UTC
604e7b9 bpo-1529353: IDLE: squeeze large output in the shell (GH-7626) 25 September 2018, 12:10:14 UTC
5b3cbcd Improved the more elaborate multiprocessing example in the logging cookbook (GH-9326) 25 September 2018, 07:24:52 UTC
f6c8007 bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497) The GlobalLock() call in UpdateDropDescription() was not checked for failure. https://bugs.python.org/issue34770 25 September 2018, 04:25:23 UTC
b60b468 Fix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533) 25 September 2018, 03:30:25 UTC
16fba62 bpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551) 25 September 2018, 00:11:45 UTC
back to top