https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
c3d5470 bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) Regression in b0bf51b32240369ccb736dc32ff82bb96f375402. 25 October 2018, 15:32:28 UTC
69a3f15 bpo-28015: Support LTO build with clang (GH-9908) .o generated by clang in LTO mode actually are LLVM bitcode files, which leads to a few errors during configure/build step: - add lto flags to the BASECFLAGS instead of CFLAGS, as CFLAGS are used to build autoconf test case, and some are not compatible with clang LTO (they assume binary in the .o, not bitcode) - force llvm-ar instead of ar, as ar is not aware of .o files generated by clang -flto (cherry picked from commit 5ad36f9b21a3aa3b2265b1b43d73522cc3322df2) Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu> 25 October 2018, 00:32:04 UTC
b322394 configparser doc: Properly label ConfigParser attributes (GH-9930) (cherry picked from commit 890423f79606124f6c54935d21f22375c399e23a) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> 24 October 2018, 23:56:25 UTC
917efd8 importlib doc: Fix approximated import_module() code (GH-9945) The spec gets stored on modules with the __spec__ attribute, not spec. (cherry picked from commit 78401f7156034f713170b8e87b51d23ebdc3bdfa) Co-authored-by: orlnub123 <orlnub123@gmail.com> 24 October 2018, 23:38:00 UTC
f2679af bpo-35027, distutils doc: Correct note on setup.py change in Python 3.7 (GH-10032) (cherry picked from commit e80e77a484983ffb527ef22d336ff9500589dce3) Co-authored-by: TilmanK <tilman.krummeck@googlemail.com> 24 October 2018, 22:59:15 UTC
d9dbb86 Use f-strings in asyncio-task code examples (GH-10035) Replace str.format with f-strings in the code examples of asyncio-task documentation. (cherry picked from commit 9f43fbbd9dfc78125c9533ce1dfe33ff5d15aa45) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com> 24 October 2018, 22:45:44 UTC
b4c9874 [3.7] bpo-33899: Mention tokenize behavior change in What's New (GH-10073) (GH-10074) (cherry picked from commit dfba1f67e7f1381ceb7cec8fbcfa37337620a9b0) https://bugs.python.org/issue33899 24 October 2018, 07:33:00 UTC
861f61b [3.7] bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523) (GH-10065) Fix the documentation of copy2, as it does not copy file ownership (user and group), only mode, mtime, atime and flags. The original text was confusing to developers as it suggested that this command is the same as 'cp -p', but according to cp(1), '-p' copies file ownership as well. Clarify which metadata is copied by shutil.copystat in its docstring. (cherry picked from commit 4f399be0e70d8b5516b6213568b7665765bb3114) 23 October 2018, 21:57:55 UTC
f7cefb4 bpo-34794: Fix a leak in Tkinter. (GH-10025) (GH-10069) Based on the investigation by Xiang Zhang. (cherry picked from commit df13df41a25765d8a39a77220691698498e758d4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 23 October 2018, 21:46:32 UTC
c46f042 Fix error handling bugs in _elementtree.c. (GH-10060) References could leak, NULL could be dereferenced, and the Expat parser could be double freed when some errors raised. (cherry picked from commit 9f3ed3e213b30059087d059a7d1d3b2527fa8654) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 23 October 2018, 19:45:44 UTC
7a253dc bpo-34980: P/Invoke QueryFullProcessImageName to get process names (GH-9901) (cherry picked from commit fa5329424f4206630c34f75629fa78738db647f0) Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com> 23 October 2018, 12:03:00 UTC
178bf58 bpo-35028: cgi: Fix max_num_fields off by one error (GH-9973) https://bugs.python.org/issue35028 (cherry picked from commit b79b5c09493e98374e48fa122d82dab528fc6e72) Co-authored-by: matthewbelisle-wf <matthew.belisle@workiva.com> 23 October 2018, 10:54:52 UTC
d730719 bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042) (GH-10050) (cherry picked from commit b7d62050e7d5fc208ae7673613da4f1f2bc565c4) 23 October 2018, 10:07:06 UTC
313e501 bpo-34482: test datetime classes' handling of non-UTF-8-encodable strings (GH-8878) (cherry picked from commit 3b0047d8e982b10b34ab05fd207b7d513cc1188a) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> 23 October 2018, 07:04:24 UTC
fc62c72 bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) (cherry picked from commit 83a07652e0033f0d9994ae7634b91d6581c56b00) Co-authored-by: Andrei Petre <p31andrei@gmail.com> 23 October 2018, 06:16:42 UTC
18450be bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959) * Use _PyUnicode_Copy in sanitize_isoformat_str * Use repr in fromisoformat error message This reverses commit 67b74a98b2 per Serhiy Storchaka's suggestion: I suggested to use %R in the error message because including the raw string can be confusing in the case of empty string, or string containing trailing whitespaces, invisible or unprintable characters. We agree that it is better to change both the C and pure Python versions to use repr. * Retain non-sanitized dtstr for error printing This does not create an extra string, it just holds on to a reference to the original input string for purposes of creating the error message. * PEP 7 fixes to from_isoformat * Separate handling of Unicode and other errors In the initial implementation, errors other than encoding errors would both raise an error indicating an invalid format, which would not be true for errors like MemoryError. * Drop needs_decref from _sanitize_isoformat_str Instead _sanitize_isoformat_str returns a new reference, even to the original string. (cherry picked from commit 3df85404d4bf420db3362eeae1345f2cad948a71) Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com> 22 October 2018, 22:35:15 UTC
7f34d55 bpo-34973: Fix crash in bytes constructor. (GH-9841) Constructing bytes from mutating list could cause a crash. (cherry picked from commit 914f9a078f997e58cfcfabcbb30fafdd1f277bef) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 21 October 2018, 12:55:52 UTC
002aef3 closes bpo-35025: Properly guard the `CLOCK_GETTIME` et al macros in timemodule.c. (GH-9961) Guard the `CLOCK_GETTIME` et al macros in `timemodule` based on the availability of the parent functions (cherry picked from commit 94451182ccd6729c11338926d8a3d11645e86626) Co-authored-by: Max Bélanger <aeromax@gmail.com> 21 October 2018, 00:41:38 UTC
f141dda [3.7] Remove duplicate NEWS entries due to cherry-picking (GH-10012) 20 October 2018, 17:36:39 UTC
a5f6882 Post release bump 20 October 2018, 16:56:38 UTC
08eae4f Merge tag 'v3.7.1' into 3.7 20 October 2018, 16:54:48 UTC
34a5ed5 bpo-35032: Remove inaccessible videos from faq/Windows (GH-10004) https://bugs.python.org/issue35032 (cherry picked from commit d262250d0732bdf36cb92091e37360cf8ff40f7c) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be> 20 October 2018, 15:32:28 UTC
861d34e bpo-33712: OrderedDict only creates od_fast_nodes cache if needed (GH-7349). (GH-10000) (cherry picked from commit 6f17e51345d930ccb4db306acc12b7d1f6c5e690) 20 October 2018, 08:24:05 UTC
260ec2c 3.7.1final 20 October 2018, 06:04:19 UTC
dcd56f6 bpo-34574: Prevent OrderedDict iterators from exhaustion during pickling. (GH-9051) (cherry picked from commit a5259fb05d03f4871837c14fed704541a20896c0) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> 20 October 2018, 05:54:09 UTC
32fe7b0 bpo-34576: Revert doc change until it can be properly fixed (GH-9720) This reverts commit 57038bcb24407abbbb46e6d278d0ab4b6ad25bbf. 20 October 2018, 04:49:35 UTC
ce3b5a8 bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850) * Add News entry for the change in multiprocessing.reduction.recvfds made in GH-9613. (cherry picked from commit bd036d3d15fc1310ccc32a43a3296b8c157ac221) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 20 October 2018, 04:38:56 UTC
60c663c bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837) (GH-9849) https://bugs.python.org/issue34970 (cherry picked from commit 97cf0828727ac2a269c89c5aa09570a69a22c83c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 20 October 2018, 04:37:51 UTC
03ca8b5 bpo-34909: NEWS entry. 20 October 2018, 04:35:43 UTC
1662bbf bpo-32256: Make patchcheck.py work for out-of-tree builds (GH-4760) Set SRCDIR as the current directory for git. (cherry picked from commit aa95bfb5fee366aa58c90b7e1c77fc7e183dbf3a) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> 20 October 2018, 01:21:43 UTC
557a687 bpo-32798: Add restriction on the offset parameter for mmap.flush in the docs (GH-5621) Add restriction on the offset parameter for mmap.flush. Explain that ALLOCATIONGRANULARITY is the same as PAGESIZE in Unix. (cherry picked from commit 027664a3d5ebad575aafe5fcc572e3b05f7f24e5) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 20 October 2018, 00:48:05 UTC
8f53dcd bpo-32890, os: Use errno instead of GetLastError() in execve() and truncate() (GH-5784) path_error() uses GetLastError() on Windows, but some os functions are implemented via CRT APIs which report errors via errno. This may result in raising OSError with invalid error code (such as zero). Introduce posix_path_error() function and use it where appropriate. (cherry picked from commit 834603112e6ca35944dd21105b01fca562dc3241) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> 20 October 2018, 00:46:25 UTC
3e5bcd1 bpo-21196: Clarify name mangling rules in tutorial (GH-5667) Initial patch by Chandan Kumar. (cherry picked from commit 13ae4d44381a647aadd09b70b24833052659be41) Co-authored-by: Berker Peksag <berker.peksag@gmail.com> 20 October 2018, 00:41:56 UTC
c8348fb bpo-33594: Add deprecation info in inspect.py module (GH-7036) (cherry picked from commit ded87d804e2a85b2a3ea9e7a11384b41fafdfa29) Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com> 20 October 2018, 00:05:49 UTC
0f2fc8b bpo-34536: raise error for invalid _missing_ results (GH-9147) (GH-9978) * raise exception if _missing_ returns None or invalid type 19 October 2018, 23:49:30 UTC
2a6cf44 bpo-33726, doc: Add short descriptions to PEP references in seealso (GH-7294) (cherry picked from commit 0f14fc1a7cb2ea0012d0a943e4460acdee2108d7) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 19 October 2018, 23:43:55 UTC
23efe77 bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) (GH-9971) (cherry picked from commit f192aeb95a139ede74d69e39c046c498ff288a37) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <srinivasreddy@users.noreply.github.com> 19 October 2018, 23:20:56 UTC
4ec9f64 bpo-34824: Fix a possible NULL pointer dereference in _ssl.c (GH-9606) (GH-9743) On failure, _PyBytes_Resize() will deallocate the bytes object and set "result" to NULL. https://bugs.python.org/issue34824 (cherry picked from commit 365ad2ead5bbaf7a3b18648ffa36e819559d3f75) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 19 October 2018, 23:14:42 UTC
c119d59 bpo-34791: xml package obeys ignore env flags (GH-9544) (GH-9545) The xml.sax and xml.dom.domreg modules now obey sys.flags.ignore_environment. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 223e501fb9c2b6ae21b96054e20c4c31d94a5d96) Co-authored-by: Christian Heimes <christian@python.org> 19 October 2018, 23:09:01 UTC
ef7f29f Elaborate datetime.timedelta docstring (GH-7458) (cherry picked from commit d6a61f232619f8a8e6efacc3da5a02abaf25f090) Co-authored-by: Chris Barker <Chris.Barker@noaa.gov> 19 October 2018, 23:02:13 UTC
6665802 bpo-1621: Avoid signed integer overflow in set_table_resize() (GH-9059) (GH-9198) Address a C undefined behavior signed integer overflow issue in set object table resizing. Our -fwrapv compiler flag and practical reasons why sets are unlikely to get this large should mean this was never an issue but it was incorrect code that generates code analysis warnings. Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> 19 October 2018, 22:50:34 UTC
76d31a3 queue doc: Clarify that the simple FIFO queue is SimpleQueue (GH-8372) (cherry picked from commit acef69068f61c9f4141f8509b6a1bfaadab87b5c) Co-authored-by: Julien Palard <julien@palard.fr> 19 October 2018, 22:33:36 UTC
984a800 unittest.mock doc: Fix references to recursive seal of Mocks (GH-9028) The docs in `library/unittest.mock` have been updated to remove confusing terms about submock and be explicit about the behavior expected. (cherry picked from commit 96200eb2ffcda05de14099cf23f60d5091366e3e) Co-authored-by: Mario Corchero <mariocj89@gmail.com> 19 October 2018, 22:17:31 UTC
b9182aa bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916) (#9970) The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small. (cherry picked from commit dd13c88b5371e13fc16b84e2f9b8715d917de269) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <srinivasreddy@users.noreply.github.com> 19 October 2018, 17:28:30 UTC
bd9c2ce bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957) (cherry picked from commit 1deea5e53991b46351f6bb395b22365c9455ed88) 19 October 2018, 15:20:00 UTC
a66f279 bpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660) Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by limiting the number of `MiniFieldStorage` objects created by `FieldStorage`. (cherry picked from commit 209144831b0a19715bda3bd72b14a3e6192d9cc1) Co-authored-by: matthewbelisle-wf <matthew.belisle@workiva.com> 19 October 2018, 11:11:16 UTC
d6d35d0 Fix several reference counting bugs in pyexpat.c. (GH-9955) (cherry picked from commit 68def052dcd41313eff2bd9f269e22c5a941db4d) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 19 October 2018, 07:16:25 UTC
2bc1e8c In email docs, correct spelling of foregoing (GH-9856) (#9919) (cherry picked from commit c984d20ec81609aa439ccdb3af5bc35fca0c2112) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> 19 October 2018, 00:17:25 UTC
8ba831f In email.parser in message_from_bytes, update `strict` to `policy` (GH-9854) (#9917) According to the versionchanged note, the `strict` argument was removed in 3.3 and `policy` was added, but the name of the argument in the paragraph wasn't updated. (cherry picked from commit a5ca98537b9f3f5eeae9157b1548b741df3fbf90) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> 19 October 2018, 00:16:16 UTC
6802964 Updated documentation on logging.debug(). (GH-9946) (GH-9949) (cherry picked from commit bbd90e4f6273f1c29c03ab1374fdbd1a862fc14a) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> 18 October 2018, 10:55:15 UTC
5b9b935 bpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924) C implementation of xml.etree.ElementTree.Element.__setstate__() leaked references to children when called for already initialized element. (cherry picked from commit 6f906b3d727d6b341abd5ad9c0652bbcbd5eb024) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 18 October 2018, 07:17:15 UTC
178d1c0 bpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705) On macOS, fix reading from and writing into a file with a size larger than 2 GiB. (cherry picked from commit 74a8b6ea7e0a8508b13a1c75ec9b91febd8b5557) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be> 18 October 2018, 06:58:40 UTC
35ae99d [3.7] bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939) (GH-9940) Restores the use of pyexpatns.h to isolate our embedded copy of the expat C library so that its symbols do not conflict at link or dynamic loading time with an embedding application or other extension modules with their own version of libexpat. https://github.com/python/cpython/commit/5dc3f23b5fb0b510926012cb3732dae63cddea60GH-diff-3afaf7274c90ce1b7405f75ad825f545 inadvertently removed it when upgrading expat. (cherry picked from commit 9d4712bc8f26bf1d7e626b53ab092fe030bcd68d) Co-authored-by: Gregory P. Smith <greg@krypto.org> https://bugs.python.org/issue35011 18 October 2018, 02:06:30 UTC
657e3f9 [3.7] bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925) (GH-9926) [3.7] [bpo-23420](https://bugs.python.org/issue23420): Verify the value of '-s' when execute the CLI of cProfile (GH-9925) Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert Kuska. Co-authored-by: Robert Kuska <rkuska@gmail.com> (cherry picked from commit fcd5e84a515e19409840c570730f0728e9fcfc83) https://bugs.python.org/issue23420 17 October 2018, 11:48:05 UTC
514bbfc bpo-34967: Sphinx is deprecating add_description_unit, use add_object_type (GH-9827) (cherry picked from commit e385d0661ecf8bc9ba95c4395d9a11262c2cbfec) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be> 16 October 2018, 06:46:38 UTC
350aeab bpo-34783: Fix test_nonexisting_script() (GH-9896) Fix test_cmd_line_script.test_nonexisting_script(): the test must not rely on sys.executable, since main.c uses config->program which can be different than sys.executable in many cases (for example, on macOS when using the framework). (cherry picked from commit ea75187c68b374bb839f1172f310b206044bc3e5) Co-authored-by: Victor Stinner <vstinner@redhat.com> 15 October 2018, 22:30:05 UTC
802de12 bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859) (cherry picked from commit 43a5bd7b458f0ad2d62b00b033d025689d48d591) Co-authored-by: Braden Groom <braden.groom@gmail.com> 15 October 2018, 21:59:49 UTC
fcea3dd bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) python-gdb.py now handles errors on computing the line number of a Python frame. Changes: * PyFrameObjectPtr.current_line_num() now catchs any Exception on calling addr2line(), instead of failing with a surprising "<class 'TypeError'> 'FakeRepr' object is not subscriptable" error. * All callers of current_line_num() now handle current_line_num() returning None. * PyFrameObjectPtr.current_line() now also catchs IndexError on getting a line from the Python source file. (cherry picked from commit 2e438cc2554495b28480a3ffe5cdf41b6ab823a0) Co-authored-by: Victor Stinner <vstinner@redhat.com> 15 October 2018, 21:47:56 UTC
d991ede bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850) * Add News entry for the change in multiprocessing.reduction.recvfds made in GH-9613. (cherry picked from commit bd036d3d15fc1310ccc32a43a3296b8c157ac221) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 15 October 2018, 21:20:11 UTC
b248a8c [3.7] bpo-11233: Create availability directive for documentation (GH-9692) (GH-9830) Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <georg@python.org> (cherry picked from commit 2d6097d027e0dd3debbabc702aa9c98d94ba32a3) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> 15 October 2018, 20:52:26 UTC
c804a59 fix dangling keyfunc examples in documentation of heapq and sorted (GH-1432) * fix dangling mention of key=str.lower in heapq doc * Fix dangling mention of keyfunc example for sorted() (cherry picked from commit 6bdb6f7675922e601e742758c7c240a751fd365b) Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> 15 October 2018, 19:19:08 UTC
1370832 bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852) bytes and bytearray constructors converted unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError. (cherry picked from commit e890421e334ccf0c000c6b29c4a521d86cd12f47) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 14 October 2018, 21:26:28 UTC
91b863d Update compound_stmts.rst (GH-9864) (GH-9869) (cherry picked from commit c8bb467f4006fbf5d24d2491248bcbabee5d827e) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 14 October 2018, 08:32:58 UTC
b1c8003 bpo-34941: Fix searching Element subclasses. (GH-9766) Methods find(), findtext() and findall() of xml.etree.ElementTree.Element were not able to find chldren which are instances of Element subclasses. (cherry picked from commit b11c5667f99c4f0018e3394c4d07c519d835671a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 14 October 2018, 07:55:49 UTC
77e0abe bpo-33656: Move pyshell ctypes import inside try block. (GH-9858) A Windows build with _tkinter, tkinter, and idlelib but without ctypes is unlikely but apparently possible. (cherry picked from commit d274afb5e579a5d9d990f68f9af856cf4c918779) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 14 October 2018, 00:19:22 UTC
6a1238c Post release bump 13 October 2018, 20:45:49 UTC
d04d3ea Merge tag 'v3.7.1rc2' into 3.7 13 October 2018, 20:43:23 UTC
5dbb1b7 bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837) (GH-9849) https://bugs.python.org/issue34970 (cherry picked from commit 97cf0828727ac2a269c89c5aa09570a69a22c83c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 13 October 2018, 19:26:47 UTC
d075642 Add new tests for bytes and bytearray constructors. (GH-9843) Covered all special cases: bytes, tuple, list, differend kinds of iterables and iterators. (cherry picked from commit 1a997eb291fdc5f5606c898fffbde61d899ed762) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 13 October 2018, 18:02:23 UTC
2238139 bpo-16965: 2to3 now rewrites execfile() to open with 'rb'. (GH-8569) (cherry picked from commit d4d60134b29290049e28df54f23493de4f1824b6) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 13 October 2018, 09:48:18 UTC
6c06ef7 3.7.1rc2 13 October 2018, 07:01:13 UTC
d8b6425 bpo-34370: Revert to using released Tk 8.6.8 with macOS installers For 3.7.1rc1 and 3.6.7rc1 we used a pre-release development snapshot of Tk 8.6 to pick up some post-8.6.8 fixes for macOS. But the snapshot introduced at least one regression (bpo-34927). For rc2, revert to using the standard release 8.6.8 for now. This reverts commit d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6. 13 October 2018, 05:38:43 UTC
5d8ef8b bpo-34783: Disable test_nonexisting_script for macOS framework builds (GH-9831) (GH-9832) With macOS framework builds, test case test_nonexisting_script in test_nonexisting_script fails because the test case assumes that the file name in sys.executable will appear in the error message. For macOS framework builds, sys.executable is the file name of the stub launcher and its file name bears no relationship to the file name of the actual python executable. For now, skip the test in this case. (cherry picked from commit f6c29a65e2a6da5c0014c868cf963c975b74e72b) Co-authored-by: Ned Deily <nad@python.org> 13 October 2018, 04:07:01 UTC
d4ed880 bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796) (cherry picked from commit 4505f65ae7807f2420ed14d4f060e7cd5c4039d3) Co-authored-by: Gus Goulart <augusto@goulart.me> 12 October 2018, 12:06:07 UTC
7a98e30 bpo-34900: Make TestCase.debug() work with subtests (GH-9707) (cherry picked from commit da2bf9f66d0c95b988c5d87646d168f65499b316) Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com> 12 October 2018, 11:07:01 UTC
c327a54 bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. (GH-8052) (cherry picked from commit 65d2f8c044bf597685ba72f66cbcc6b3f7a3ee9c) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 12 October 2018, 08:49:07 UTC
72927d0 Fix an incorrect check in compiler_try_except(). (GH-9810) (cherry picked from commit 53ebf4b0709f431b7262aa5daccef7eafde7383e) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 12 October 2018, 07:19:20 UTC
1c2cb51 Fix a possible decref of a borrowed reference in symtable.c. (GH-9786) (cherry picked from commit fc439d20de32b0ebccca79a96e31f83b85ec4eaf) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 11 October 2018, 05:24:14 UTC
8b040e5 [3.7] bpo-34922: Fix integer overflow in the digest() and hexdigest() methods (GH-9751) (GH-9798) for the SHAKE algorithm in the hashlib module. (cherry picked from commit 9b8c2e767643256202bb11456ba8665593b9a500) 11 October 2018, 05:06:36 UTC
57038bc bpo-34576 warn users on security for http.server (GH-9720) It was proposed to add an warning for http.server regarding security issues. The wording was provided at bpo-26005 by @orsenthil (cherry picked from commit 1d26c72e6a9c5b28b27c158f2f196217707dbb0f) Co-authored-by: Felipe Rodrigues <felipe@felipevr.com> 11 October 2018, 03:55:34 UTC
a4910c2 [3.7] bpo-34906: Doc: Fix typos (2) (GH-9735) (cherry picked from commit 683281f536981da395575b5a07d6761118259fd2) 10 October 2018, 13:39:17 UTC
8e23ba0 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 (cherry picked from commit 84eec1199583bcb034e43337bcb8e2b876ebd269) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be> 09 October 2018, 21:42:58 UTC
41e5ec3 bpo-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716) (cherry picked from commit c880ffe7d2ce2fedb1831918c8a36e3623e0fb76) Co-authored-by: twisteroid ambassador <twisteroidambassador@users.noreply.github.com> 09 October 2018, 16:03:35 UTC
0ce31d3 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) (cherry picked from commit 79d21331e605fdc941f947621846b8563485aab6) Co-authored-by: Victor Stinner <vstinner@redhat.com> 09 October 2018, 15:21:17 UTC
c4c86fa 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. (cherry picked from commit 6261ae9b01fb8429b779169f8de37ff567c144e8) Co-authored-by: animalize <animalize@users.noreply.github.com> 08 October 2018, 21:26:55 UTC
c59e75c bpo-34901: add isolated (-I) flag to sys.flags (GH-9708) https://bugs.python.org/issue34901 (cherry picked from commit 656d52dbfde3223cd2a3525d652b6cccb02fa991) Co-authored-by: Danish Prakash <grafitykoncept@gmail.com> 07 October 2018, 16:18:20 UTC
3b69993 bpo-6721: Hold logging locks across fork() (GH-4071) (#9291) bpo-6721: When os.fork() was called while another thread holds a logging lock, the child process may deadlock when it tries to log. This fixes that by acquiring all logging locks before fork and releasing them afterwards. A regression test that fails before this change is included. Within the new unittest itself: There is a small _potential_ due to mixing of fork and a thread in the child process if the parent's thread happened to hold a non-reentrant library call lock (malloc?) when the os.fork() happens. buildbots and time will tell if this actually manifests itself in this test or not. :/ A functionality test that avoids that would be a challenge. An alternate test that isn't trying to produce the deadlock itself but just checking that the release and acquire calls are made would be the next best alternative if so. (cherry picked from commit 19003841e965bbf56fd06824d6093620c1b66f9e) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google] 07 October 2018, 07:09:59 UTC
1a21893 bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) (GH-9581) (cherry picked from commit d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> 07 October 2018, 04:33:37 UTC
4322b8d Correct grammar mistake in re.rst. (GH-9745) (cherry picked from commit 7dfbd4967121ef6ecabe3fd53a430fd949f405fd) Co-authored-by: Andrés Delfino <adelfino@gmail.com> 06 October 2018, 19:56:45 UTC
453b3b0 bpo-34909: keep searching mixins until base class is found (GH-9737) (GH-9738) (cherry picked from commit cd45385ffad8910293e5659cfe7ab036e70613b7) 06 October 2018, 07:43:20 UTC
49fb49d bpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733) (cherry picked from commit ae62f015240c9162773341a9922794e6b960779d) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 06 October 2018, 07:07:12 UTC
0991b9b [3.7] bpo-34158: Documentation UTC offset update (GH-8377) (GH-9732) * 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/filesGH-diff-25e2d173c84057d069b7890450714eddR214. Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/filesGH-diff-acc40bec51c7de832de3361db3edae52R309. Table at https://docs.python.org/3.7/library/datetime.htmlGH-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/filesGH-diff-25e2d173c84057d069b7890450714eddR176 Relevant test case at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714edd * From Martin Panter: some style improvment; From @pganssle: using f for fractional part of seconds in all file. (cherry picked from commit 92878829c31ab2fc71c60555ce87a5f6cbc876f0) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> 06 October 2018, 02:44:23 UTC
2fcaaac [3.7] Make it clear that the msg argument to assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680) (GH-9681) A follow up to be4e5b89204283a62e369439025f00362d0424f6. (cherry picked from commit e006b39a40e0cd6a90c68f1107853ea2ed0ed54d) Co-authored-by: Benjamin Peterson <benjamin@python.org> 06 October 2018, 02:39:47 UTC
b38ff71 Fix markup for xml.sax in 3.7.rst (GH-9604) 06 October 2018, 02:37:14 UTC
414d58f Clarify that AsyncExitStack works with coroutine functions (GH-9405) (GH-9408) The docs were ambiguous about whether you pass in a coroutine function or a coroutine object, e.g. is it: aestack.push_async_exit(some_async_func) or aestack.push_async_exit(some_async_func()) (It's the first one.) (cherry picked from commit a3c88ef12c7b8993912750b56a1e095652fe47c0) Co-authored-by: Nathaniel J. Smith <njs@pobox.com> 06 October 2018, 02:29:17 UTC
28dd737 bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions. (GH-9037) (GH-9065) (cherry picked from commit 3876af4f7c2ef87db6d2d83efc229955968926dd) Co-authored-by: Brendan Gerrity <brerrity@gmail.com> 06 October 2018, 02:18:41 UTC
1596fea 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. (cherry picked from commit 7bb9cd0a6766fd3e7b3c1e8f2315304ae192b34c) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 05 October 2018, 21:28:56 UTC
d921220 [3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726) (cherry picked from commit addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3) 05 October 2018, 18:58:15 UTC
6bffe50 Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725) Fixes warnings in test added in bpo-34603. (cherry picked from commit 4642d5f59828e774585e9895b538b24d71b9df8e) 05 October 2018, 18:46:24 UTC
b57f800 bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719) (cherry picked from commit 4313a293dae579f3406aa94508ff3803a79b0344) Co-authored-by: Steve Dower <steve.dower@microsoft.com> 05 October 2018, 18:27:44 UTC
back to top