Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
f20eca7 Remove to-be-deprecated urllib.request.urlretrieve function reference (GH-6454) (cherry picked from commit c89b22175807d64c47b598163b804b5dc005d1bb) Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com> 16 April 2018, 14:16:20 UTC
986eaa8 bpo-33185: Improve wording and markup (GH-6477) Adds some working and markup fixes that I missed in the initial commit for this issue. (Follow-up to GH-6419) (cherry picked from commit 1a5c4bdb6ecc6a8b19ff33bde323ab188ed60977) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com> 15 April 2018, 13:55:10 UTC
d7ffa58 bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419) The pydoc CLI assumed -m pydoc would add the empty string to sys.path, and hence got confused when it switched to adding the full initial working directory instead. This refactors the pydoc CLI path manipulation to be more testable, and ensures it won't accidentally remove the standard library directory containing pydoc itself from sys.path. (cherry picked from commit 82a948105920100ca2ec5c2340bc3890adcfe778) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com> 15 April 2018, 12:17:13 UTC
df958ff bpo-33184: Update Windows installer to OpenSSL 1.1.0h (GH-6463) (cherry picked from commit b1dc07509f78b354e83f5f4a902f1ff80c7bb05d) Co-authored-by: Steve Dower <steve.dower@microsoft.com> 14 April 2018, 00:52:02 UTC
3715176 [3.7] bpo-33217: deprecate non-Enum lookups in Enums (GH-6392) deprecate non-Enum lookups in Enums Lookups such as `1 in Color` and `2 in SomeFlag()` will raise TypeError in 3.8+. 12 April 2018, 01:56:25 UTC
cbbf746 Fix error messages in argparse examples (GH-6435) The examples in argparse documentation use `error: too few arguments` error message which was removed in this commit f97c59a in 2011. (cherry picked from commit 04e82934659487ecae76bf4a2db7f92c8dbe0d25) Co-authored-by: suic86 <marko.gabriel.cz@gmail.com> 11 April 2018, 18:58:09 UTC
4dc3c8f bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447) (cherry picked from commit d08972fdb92cad6b813d22205752c97ea18df060) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 11 April 2018, 17:07:23 UTC
b262659 bpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit (GH-6144) (GH-6445) Executors in concurrent.futures accepted tasks after executor was shutdown by interpreter exit. Tasks were left in PENDING state forever. This fix changes submit to instead raise a RuntimeError. (cherry picked from commit c4b695f85e141f57d22d8edf7bc2c756da136918) Co-authored-by: Mark Nemec <mrknmc@me.com> 10 April 2018, 18:35:02 UTC
9bb8ceb bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439) (cherry picked from commit f178028f37c9dafb72608b719eb03e5a70af4ff5) Co-authored-by: Devon R <Gorialis@users.noreply.github.com> 10 April 2018, 06:00:57 UTC
71a3837 [3.7] bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417) (GH-6437) (cherry picked from commit 0f914b5b5f6ba186afd7112fc851c97247076f70) Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com> 09 April 2018, 21:17:20 UTC
b0f387d [3.7] bpo-33031: Remove dead code in C implementation of OrderedDict. (GH-6120) (GH-6433) This code doesn't have effect on the final result, but causes GCC 8 warnings and can have an undefined behavior. (cherry picked from commit 827d49f3cf0296f1e267eae6834a977cf312cc1e) 09 April 2018, 18:46:41 UTC
9b25bd6 bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259) Based on patch by Oleg Krasnikov. (cherry picked from commit c93938b5beea4c3f592119ebee6d4029558db8de) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 09 April 2018, 17:57:52 UTC
558e7e4 Fix misleading docsting of shelve.open(). (GH-6427) The protocol parameter can be any protocol supported by the pickle module. (cherry picked from commit 2ef65f346a5e829a886c075f519e3a49a2ebbde7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 09 April 2018, 14:57:31 UTC
b571958 Improve highlighting of some code blocks. (GH-6401) (cherry picked from commit 46936d5a71d1683dbd8ddb6d7f39aab50ecfec50) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 09 April 2018, 14:56:44 UTC
d964f51 Update docstring of tempfile._RandomNameSequence (GH-6414) When bpo-12015 got resolved by increasing the length of the random string generated by _RandomNameSequence from six to eight characters, the docstring of the class was not adjusted accordingly. (cherry picked from commit 9c463ec88ba21764f6fff8e01d6045a932a89438) Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> 09 April 2018, 01:01:54 UTC
8a72266 Add a prepend() recipe to teach a chain() idiom (GH-6415) (GH-6421) (cherry picked from commit 9265dd72e5ec1cfa5fcdb5be8ebffe1d9994bd4b) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 08 April 2018, 21:37:30 UTC
31f1b52 bpo-33201: Modernize "Extension types" doc (GH-6337) (GH-6411) * bpo-33201: Modernize "Extension types" doc * Split tutorial and other topics * Some small fixes * Address some review comments * Rename noddy* to custom* and shoddy to sublist * Fix markup (cherry picked from commit 1d80a561734b9932961c546b0897405a3bfbf3e6) Co-authored-by: Antoine Pitrou <pitrou@free.fr> 07 April 2018, 16:27:05 UTC
12d1dcd bpo-33184: Update macOS installer build to use OpenSSL 1.1.0h. (GH-6407) (GH-6409) (cherry picked from commit b405752dab95fa5dc65a19d94e798844d0378c61) Co-authored-by: Ned Deily <nad@python.org> 07 April 2018, 07:02:40 UTC
98e8ac8 [3.7] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179) (GH-6404) (cherry picked from commit ef5ce884a41c8553a7eff66ebace908c1dcc1f89) Co-authored-by: Jay Crotts <crotts.jay@gmail.com> 07 April 2018, 02:00:06 UTC
a09bb87 [3.7] bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating caches (GH-6402) (GH-6403) An entry of None in sys.path_importer_cache represents a negative/missing finder for a path, so clearing it out makes sense. (cherry picked from commit 9e2be60634914f23db2ae5624e4acc9335bf5fea) 07 April 2018, 00:02:18 UTC
3c193cf [3.7] bpo-29673: fix gdb scripts pystack and pystackv (GH-6126) (GH-6399) (cherry picked from commit 3a9ccee0e5dbf7d67f5ab79f6095755969db117c) Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com> 06 April 2018, 22:14:29 UTC
252f10c fixed capitalization of class name (GH-6396) (GH-6397) (cherry picked from commit 1d87c7b80bf74a3030034a022a7a54ea4e3cdaff) Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> 06 April 2018, 12:46:05 UTC
64421d9 bpo-33231: Fix potential leak in normalizestring() (GH-6386) (cherry picked from commit 0c1c4563a65ac451021d927058e4f25013934eb2) Co-authored-by: INADA Naoki <methane@users.noreply.github.com> 06 April 2018, 07:12:38 UTC
28c1790 bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381) (GH-6390) 05 April 2018, 18:45:33 UTC
baf304e bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) (GH-6387) (cherry picked from commit 091e95e9004b794280ab35becec2c3e30dd5e96e) Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> 05 April 2018, 16:02:12 UTC
83f564f Clean up and enhance frozen dataclass tests. (GH-6380) * Add a test for frozen with unhashable field value. * Improve a comment. (cherry picked from commit 74940913d26d9f94b8572eca794369841fa6d9b6) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 05 April 2018, 11:12:31 UTC
04eac02 bpo-32873: Remove a name hack for generic aliases in typing module (GH-6376) This removes a hack and replaces it with a proper mapping {'list': 'List', 'dict': 'Dict', ...}. (cherry picked from commit 2a363d2930e29ec6d8a774973ed5a4965f881f5f) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com> 05 April 2018, 00:46:40 UTC
bd85c97 Call super in Generic.__init_subclass__ (GH-6356) (cherry picked from commit ee566fe526f3d069aa313578ee81ca6cbc25ff52) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com> 04 April 2018, 16:51:34 UTC
785f36c bpo-29922: Add more tests for error messages in 'async with'. (GH-6370) Different paths are executed for normal exit and for leaving the 'async with' block with 'break', 'continue' or 'return'. (cherry picked from commit 2eeac269dd1e04a2a179384576986c3e47895ee0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 04 April 2018, 16:28:46 UTC
fcd4e03 bpo-29922: Improve error messages in 'async with' (GH-6352) when __aenter__() or __aexit__() return non-awaitable object. (cherry picked from commit a68f2f0578bbf812fa2264d0e0bb388340d6e230) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 04 April 2018, 14:09:00 UTC
b8fc2d6 bpo-33195: Doc: Deprecate Py_UNICODE in c-api/arg (GH-6329) Py_UNICODE is deprecated since Python 3.3. But the deprecation is missed in the c-api/arg document. (cherry picked from commit 42ec190761a2e8503aaa06f0bfaaabe98749179b) Co-authored-by: INADA Naoki <methane@users.noreply.github.com> 04 April 2018, 05:13:38 UTC
9216dff bpo-32337: Update documentats about dict order (GH-4973) (cherry picked from commit dfbbbf16f9aab82330c634913441b5ac73267d9c) Co-authored-by: hui shang <shangdahao@gmail.com> 04 April 2018, 05:01:46 UTC
74735e2 bpo-33209: End framing at the end of C implementation of pickle.Pickler.dump(). (GH-6366) (cherry picked from commit c869529ea9fbed574d34cf7ac139ca3f81b62ef0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 03 April 2018, 21:35:11 UTC
0c53357 bpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001) (cherry picked from commit 629338f1404ea9cd75e4fb0389a2fbe1b589de43) Co-authored-by: INADA Naoki <methane@users.noreply.github.com> 03 April 2018, 04:31:27 UTC
f6d1d65 closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335) (cherry picked from commit badb894bbbb8aaa8b669c4a6f675a0bc7d98e188) Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com> 03 April 2018, 03:33:38 UTC
de75512 bpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341) (cherry picked from commit d1c82c5cc7be0c21dddf86fd19c1702f6218459b) Co-authored-by: INADA Naoki <methane@users.noreply.github.com> 03 April 2018, 03:00:26 UTC
fa91aff bpo-33204: IDLE - revise and extend colorizer test. (GH-6347) Followup to primary PR for the issue, GH-6344. (cherry picked from commit 55966f3a0d5f1bf823bd22ce1abbde267b06552f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 02 April 2018, 16:03:52 UTC
6130675 bpo-33204: IDLE: consistently color invalid string prefixes (GH-6344) A 'u' string prefix cannot be paired with either 'r' or 'f'. Consistently color as much of the prefix, starting at the right, as is valid. (cherry picked from commit da58533ac67b01ce8f6466e6f03ff6b8b3bb04d5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 02 April 2018, 06:09:18 UTC
ab84572 bpo-20104: Add os.posix_spawn documentation. (GH-6334) (cherry picked from commit 79760ed256987cead08d668b95675afba6b3760f) Co-authored-by: Gregory P. Smith <greg@krypto.org> 01 April 2018, 19:13:37 UTC
d063ad8 Allow dynamic creation of generic dataclasses (GH-6319) (GH-6320) (cherry picked from commit 5a7092de1226a95a50f0f384eea8ddb288959249) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com> 01 April 2018, 11:33:13 UTC
9e96e7b bpo-33132: Fix more reference counting issues in the compiler. (GH-6323) (cherry picked from commit aa8e51f5ebb2a71c76059f050de01fc3c985376a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 31 March 2018, 23:41:28 UTC
7dcfd6c Fix socket type in DatagramHandler documentation: TCP -> UDP (GH-6272) (cherry picked from commit 233de021d915364bd3daee921d1d96d50d46d7fe) Co-authored-by: Mike DePalatis <mike@depalatis.net> 30 March 2018, 07:48:45 UTC
2961717 bpo-33182: Fix pointer types in _testembed (GH-6310) (GH-6311) (cherry picked from commit 69f5c73311a61b05485b19626935bf240ad31c5b) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com> 30 March 2018, 06:24:03 UTC
faa6f5c bpo-33175: dataclasses should look up __set_name__ on class, not instance (GH-6305) (cherry picked from commit 521995205a2cb6b504fe0e39af22a81f785350a3) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 29 March 2018, 15:32:36 UTC
e557b5c bump to 3.7.0b3+ 29 March 2018, 12:57:23 UTC
4e7efa9 3.7.0b3 29 March 2018, 11:57:55 UTC
7a6f59e bpo-32726: macOS 10.6+ installer now builds Tcl/TK 8.6 (GH-6308) Build and link with private copy of Tcl/Tk 8.6 for the macOS 10.6+ installer. The 10.9+ installer variant already does this. This means that the Python 3.7 provided by the python.org macOS installers no longer need or use any external versions of Tcl/Tk, either system-provided or user- installed, such as ActiveTcl. 29 March 2018, 11:41:11 UTC
a470b74 Fix typos '.::' should typically just be '::'. (GH-6165) (GH-6300) (cherry picked from commit 78553138be3b38d361bded8e641a2a4fd65a9d16) Co-authored-by: Julien Palard <julien@palard.fr> 29 March 2018, 08:34:44 UTC
a48614b FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207) (GH-6302) (cherry picked from commit 79c3bab35cce55e6d175aff96a845bc6d932b203) Co-authored-by: Julien Palard <julien@palard.fr> 29 March 2018, 08:33:47 UTC
fd93666 [3.7] Fix duplicating words words. (GH-6296) (GH-6297) Most of them have been added in 3.7. (cherry picked from commit bac2d5ba30339298db7d4caa9c8cd31d807cf081) 28 March 2018, 20:05:24 UTC
6124d8e bpo-33126: Document PyBuffer_ToContiguous() (GH-6292) (GH-6294) (cherry picked from commit aa50bf08e64f49d57917ab0b1aadf4308a3168a6) Co-authored-by: Antoine Pitrou <pitrou@free.fr> 28 March 2018, 15:50:24 UTC
6cb556f s/the the/the/ (GH-6287) (cherry picked from commit 40a536be5337d3723285d597e2906394b26816a5) Co-authored-by: INADA Naoki <methane@users.noreply.github.com> 28 March 2018, 13:23:32 UTC
b9172b9 [3.7] bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6283) (cherry picked from commit c0518cde7a8404f310cd3495e77e612820ecad4f) Co-authored-by: Ned Deily <nad@python.org> 28 March 2018, 08:49:24 UTC
39c0ef5 bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6280) Forcing the macOS IDLE.app gui process to launch in 32-mode was a necessary hack for old versions of Tk (Aqua Carbon as in Tk 8.4 and early versions of 8.5); it is not needed for current versions of Tk. Since 32-bit launching will no longer be supported on future releases of macOS, allow IDLE.app to launch in 64-bit mode. (cherry picked from commit df532ab752680f6e359672c2cd40bec8ac848628) Co-authored-by: Ned Deily <nad@python.org> 28 March 2018, 08:16:23 UTC
d2d5bd8 bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (#6277) (cherry picked from commit e52ac045972a4f75d7f52e4ee0d6de128259134d) Co-authored-by: Ned Deily <nad@python.org> 28 March 2018, 06:39:19 UTC
211c0db Fix senfile typo (GH-6265) (#6274) * Also in docs (cherry picked from commit 65a34709f60711f7c46031d4c6c420f567bc790a) Co-authored-by: Sam Dunster <me@sdunster.com> 28 March 2018, 01:34:15 UTC
6a2539c bpo-32517: re-enable test_read_pty_output on macOS (GH-6112) 27 March 2018, 21:17:28 UTC
fd1b8f8 bpo-33151: Handle submodule resources (GH-6268) (GH-6270) (cherry picked from commit 30e507dff465a31901d87df791a2bac40dc88530) Co-authored-by: Barry Warsaw <barry@python.org> 27 March 2018, 17:25:28 UTC
f328caf bpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195) (#GH-6266) (cherry picked from commit da1734c58d2f97387ccc9676074717d38b044128) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> 27 March 2018, 02:23:34 UTC
d0e04c8 bpo-32873: Treat type variables and special typing forms as immutable by copy and pickle (GH-6216) This also fixes python/typingGH-512 This also fixes python/typingGH-511 As was discussed in both issues, some typing forms deserve to be treated as immutable by copy and pickle modules, so that: * copy(X) is X * deepcopy(X) is X * loads(dumps(X)) is X GH- pickled by reference This PR adds such behaviour to: * Type variables * Special forms like Union, Any, ClassVar * Unsubscripted generic aliases to containers like List, Mapping, Iterable This not only resolves inconsistencies mentioned in the issues, but also improves backwards compatibility with previous versions of Python (including 3.6). Note that this requires some dances with __module__ for type variables (similar to NamedTuple) because the class TypeVar itself is define in typing, while type variables should get module where they were defined. https://bugs.python.org/issue32873 (cherry picked from commit 834940375ae88bc95794226dd8eff1f25fba1cf9) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com> 26 March 2018, 22:29:06 UTC
0545563 bpo-32844: Fix a subprocess misredirection of a low fd (GH5689) bpo-32844: subprocess: Fix a potential misredirection of a low fd to stderr. When redirecting, subprocess attempts to achieve the following state: each fd to be redirected to is less than or equal to the fd it is redirected from, which is necessary because redirection occurs in the ascending order of destination descriptors. It fails to do so in a couple of corner cases, for example, if 1 is redirected to 2 and 0 is closed in the parent. (cherry picked from commit 0e7144b064a19493a146af94175a087b3888c37b) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com> 26 March 2018, 20:14:09 UTC
c6147ac bpo-33141: Have dataclasses.Field pass through __set_name__ to any default argument. (GH-6260) This is part of PEP 487 and the descriptor protocol. (cherry picked from commit de7a2f04d6b9427d568fcb43b6f512f9b4c4bd84) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 26 March 2018, 17:55:13 UTC
00765bb Fix error message in sqlite connection thread check. (GH-6028) (cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6) Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com> 26 March 2018, 16:01:22 UTC
d01a805 Corrected link targets in collections.rst (GH-1052) (cherry picked from commit e105294708ffc78a31566b48468746eb4609abe7) Co-authored-by: Michael Seifert <michaelseifert04@yahoo.de> 26 March 2018, 12:52:35 UTC
7aef297 Fix description about SimpleXMLRPCServer constructor parameter bind_and_activate. (GH-776) Passing True as the `bind_and_activate` *do* immediately opening and binding to their socket. (cherry picked from commit e6223579c87b93f3e60d28796f521587d88091d4) Co-authored-by: cocoatomo <cocoatomo77@gmail.com> 26 March 2018, 12:09:23 UTC
daf06e0 Gitignore gmon.out (GH-5796) gmon.out is generated when profiling turned on Full Configuration: ./configure --prefix=$PWD/install --enable-profiling --enable-big-digits=30 --with-pydebug --with-assertions --with-valgrind (cherry picked from commit 95ad3822a2b6287772bd752b6ab493c6d4198d4b) Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com> 26 March 2018, 11:26:34 UTC
a6c3299 Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251) (cherry picked from commit 0301c9bdd1ebd788d1334cf3fe06c48f35bab0dc) Co-authored-by: Stefano Taschini <taschini@users.noreply.github.com> 26 March 2018, 10:58:10 UTC
a7b1b84 bpo-33096: Fix ttk.Treeview.insert. (GH-6228) Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note iid=0 and iid=False would be same. (cherry picked from commit 3ab44c0783eebdff687014f7d14d5dec59b6bd39) Co-authored-by: Garvit Khatri <garvitdelhi@gmail.com> 26 March 2018, 08:19:52 UTC
5fc6fc8 Minor fixes to dataclass tests. (GH-6243) Also, re-enable a test for ClassVars with default_factory. (cherry picked from commit 2b75fc2bc97702224de0fae8ab026ec0cd0706ab) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 26 March 2018, 01:00:43 UTC
bc3e009 Clarify fd inheritance when close_fds=False. (GH-6240) Clarify the subprocess documentation. (cherry picked from commit dfb6e54dd8dbd735f55109ad8ee9dfcb6178ede9) Co-authored-by: Gregory P. Smith <greg@krypto.org> 25 March 2018, 17:40:38 UTC
ee37845 bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) (#6236) Historically, -m added the empty string as sys.path zero, meaning it resolved imports against the current working directory, the same way -c and the interactive prompt do. This changes the sys.path initialisation to add the *starting* working directory as sys.path[0] instead, such that changes to the working directory while the program is running will have no effect on imports when using the -m switch. (cherry picked from commit d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b) 25 March 2018, 13:43:50 UTC
5666a55 Trivial improvements to dataclasses tests. (GH-6234) (cherry picked from commit 51c9ab42ab84643081d75c83a586afa45d910383) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 25 March 2018, 13:27:50 UTC
2dd885e [3.7] bpo-33136: Harden ssl module against CVE-2018-8970 (GH-6229) (GH-6230) Harden ssl module against LibreSSL CVE-2018-8970. X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new test ensures that NULL bytes are not allowed. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit d02ac25ab0879f1a6de6937573bf00a16b7bd22e) Co-authored-by: Christian Heimes <christian@python.org> 25 March 2018, 11:28:20 UTC
c6d94c3 bpo-33042: Fix pre-initialization sys module configuration (GH-6157) - new test case for pre-initialization of sys.warnoptions and sys._xoptions - restored ability to call these APIs prior to Py_Initialize - updated the docs for the affected APIs to make it clear they can be called before Py_Initialize - also enhanced the existing embedding test cases to check for expected settings in the sys module (cherry picked from commit bc77eff8b96be4f035e665ab35c1d06e22f46491) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com> 25 March 2018, 11:27:57 UTC
291d5f3 bpo-32943: Fix confusing error message for rot13 codec (GH-5869) (cherry picked from commit e4ce9fa89cb542dced553710b05de85202bc4715) Co-authored-by: Xiang Zhang <angwerzx@126.com> 25 March 2018, 04:30:39 UTC
5729b9c Fix invalid escape sequence: use raw string. (GH-6225) (cherry picked from commit c42e7aa67ce72a6c4c6cdfe3b0929ca07556d444) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 25 March 2018, 03:23:00 UTC
9989efb bpo-33134: dataclasses: use function dispatch table for hash, instead of a string lookup which then is tested with if tests. (GH-6222) * Change _hash_action to be a function table lookup, instead of a list of strings which is then tested with if statements. (cherry picked from commit 01d618c5606a239b03ad1269541eddb6e724775d) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 25 March 2018, 02:31:29 UTC
02c19a6 Trivial dataclass cleanups: (GH-6218) - When adding a single element to a list, use .append() instead of += and creating a new list. - For consistency, import the copy module, instead of just deepcopy. This leaves only a module at the class level, instead of a function. - Improve some comments. - Improve some whitespace. - Use tuples instead of lists. - Simplify a test. (cherry picked from commit f96ddade0094d162cb6c2fd7255c5e8a90b5c37d) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 24 March 2018, 21:42:28 UTC
471364b bpo-33132: Fix reference counting issues in the compiler. (GH-6209) (cherry picked from commit a95d98607efe0c43475b354543e49bf8e240bc6f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 24 March 2018, 21:27:06 UTC
42bd62b [3.7] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6213) LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7. Documentation updates and fixes for failing tests will be provided in another patch set. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 4ca0739c9d97ac7cd45499e0d31be68dc659d0e1) Co-authored-by: Christian Heimes <christian@python.org> 24 March 2018, 17:37:54 UTC
1a0bb62 [3.7] bpo-24334: Remove inaccurate match_hostname call (GH-6211) (#6212) Commit 141c5e8c re-added match_hostname() call. The resurrection of the function call was never intended and was solely a merge mistake. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit e42ae915095ebca789cc36f3a336a3331fe35945) Co-authored-by: Christian Heimes <christian@python.org> 24 March 2018, 14:59:16 UTC
ac56027 bpo-33061: Add missing 'NoReturn' to __all__ in typing.py (GH-6127) (#6162) 23 March 2018, 21:44:54 UTC
45738ed bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061) (cherry picked from commit 5cbb84106efefd200933aa31e22abf39267d2557) Co-authored-by: Himanshu Lakhara <himanshulakhara1947@gmail.com> 23 March 2018, 21:41:26 UTC
f8d2c3c bpo-31639: Use threads in http.server module. (GH-5018) (cherry picked from commit 8bcfa02e4b1b65634e526e197588bc600674c80b) Co-authored-by: Julien Palard <julien@palard.fr> 23 March 2018, 20:31:20 UTC
67d3f8b Fix a reference to the MRE book in re docs (GH-1113) Reported by Maksym Nikulyak on docs.p.o. (cherry picked from commit a0a42d22d8dff0ec6ea9daa4d9c9e9399f9b4e6c) Co-authored-by: Berker Peksag <berker.peksag@gmail.com> 23 March 2018, 15:55:26 UTC
b9744e9 bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154) 23 March 2018, 12:35:33 UTC
c71edab bpo-32999: ast: Convert useless check to assert (GH-6197) (cherry picked from commit c65bf3fe4a2bde424b79e350f36b7aaa3f6476f6) Co-authored-by: INADA Naoki <methane@users.noreply.github.com> 23 March 2018, 09:43:11 UTC
3b4c6b1 bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but doesn't have a type annotation. (GH-6192) If a dataclass has a member variable that's of type Field, but it doesn't have a type annotation, raise TypeError. (cherry picked from commit 56970b8ce9d23269d20a76f13c80e670c856ba7f) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 22 March 2018, 20:58:59 UTC
5d8bb5d bpo-32999: Revert GH-6002 (fc7df0e6) (GH-6189) (GH-6190) bpo-33018 (GH-5944) fixed bpo-32999 too. So fc7df0e6 is not required anymore. Revert it except test case. (cherry picked from commit f757b72b2524ce3451d2269f0b8a9f0593a7b27f) Co-authored-by: INADA Naoki <methane@users.noreply.github.com> 22 March 2018, 14:00:11 UTC
346964b bpo-33018: Improve issubclass() error checking and message. (GH-5944) This improves error message for situations when a non-class is checked w.r.t. an abstract base class. (cherry picked from commit 40472dd42de4f7265d456458cd13ad6894d736db) Co-authored-by: jab <jab@users.noreply.github.com> 22 March 2018, 11:49:26 UTC
8f46176 Upgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184) (cherry picked from commit d93b5161af12291f3f98a260c90cc2975ea9e9cd) Co-authored-by: Donald Stufft <donald@stufft.io> 22 March 2018, 03:38:24 UTC
4ddc99d bpo-33116: Add 'Field' to dataclasses.__all__. (GH-6182) (GH-6183) - Add missing 'Field' to __all__. - Improve tests to catch this. (cherry picked from commit 8e4560a9da6a02aa157dd7df8bd0be0d258c0a73) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 21 March 2018, 21:44:23 UTC
f5625d5 FIX failure on OSX sem_getvalue (GH-6180) (GH-6181) (cherry picked from commit dec1c7786f642049c2508e909442189dc043b5da) Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com> 21 March 2018, 19:00:55 UTC
bb5b529 bpo-33078 - Fix queue size on pickling error (GH-6119) (GH-6178) (cherry picked from commit e2f33add635df4fde81be9960bab367e010c19bf) Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com> 21 March 2018, 16:21:15 UTC
22136c9 bpo-32896: Fix error when subclassing a dataclass with a field that uses a default_factory (GH-6170) (GH-6171) Fix the way that new annotations in a class are detected. (cherry picked from commit 8f6eccdc64cab735c47620fea948e64b19f83684) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 21 March 2018, 09:17:30 UTC
56f530e Fix typos in mmap() error messages (GH-6173) (cherry picked from commit 9308dea3e1fd565d50a76a667e4e8ef0568b7053) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 21 March 2018, 06:24:41 UTC
3326c92 bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016) The result of host() was not empty when the network is constructed by a tuple containing an integer mask and only 1 bit left for addresses. (cherry picked from commit 10b134a07c898c2fbc5fd3582503680a54ed80a2) Co-authored-by: Xiang Zhang <angwerzx@126.com> 21 March 2018, 01:22:23 UTC
a323eee bpo-18802: Add more details to ipaddress documentation (GH-6083) Original patch by Jon Foster and Berker Peksag. (cherry picked from commit 5609b78392d59c7362ef8aa5c4a4529325f01f27) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> 21 March 2018, 00:30:43 UTC
a70b8f5 bpo-28247: Document Windows executable creation in zipapp (GH-6158) (cherry picked from commit 4be79f29463f632cd8b48486feadc2ed308fb520) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> 20 March 2018, 22:44:21 UTC
56cce1c [3.7] bpo-33021: Release the GIL during fstat() calls (GH-6019) (GH-6159) fstat may block for long time if the file descriptor is on a non-responsive NFS server, hanging all threads. Most fstat() calls are handled by _Py_fstat(), releasing the GIL internally, but but _Py_fstat_noraise() does not release the GIL, and most calls release the GIL explicitly around it. This patch fixes last 2 calls to _Py_fstat_no_raise(), avoiding hangs when calling: - mmap.mmap() - os.urandom() - random.seed() (cherry picked from commit 4484f9dca9149da135bbae035f10a50d20d1cbbb) Co-authored-by: Nir Soffer <nirsof@gmail.com> 20 March 2018, 19:16:30 UTC
back to top