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

sort by:
Revision Author Date Message Commit Date
e9dafe7 Forward port macOS installer updates from 3.7/3.8 (GH-21132) (GH-21135) - fix installer builds when using latest versions of Python 3 - fix installer builds on newer macOS releases with SIP - Python Launcher app factory defaults now use python3 25 June 2020, 09:23:30 UTC
0ef6a3f bpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126) * Fix support of non-ASCII names in functions OpenDatabase() and init_database(). * Fix support of non-ASCII SQL in method Database.OpenView(). (cherry picked from commit 55939b1708d6fc0d36d2be11ccdc6bf207e1bd41) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 25 June 2020, 09:12:58 UTC
c1634ac bpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081) Automerge-Triggered-By: @merwok (cherry picked from commit cf18c9e9d4d44f6671a3fe6011bb53d8ee9bd92b) Co-authored-by: Arisaka97 <solitaire2312@gmail.com> 24 June 2020, 22:01:04 UTC
29aa808 bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119) (cherry picked from commit a7dc71470156680f1fd5243290c6d377824b7ef4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 24 June 2020, 17:15:59 UTC
153e20e bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985) In absence of explicit declaration, resource compiler uses system codepage. When this codepage is DBCS or UTF-8, Python's copyright string is corrupted, because it contains copyright sign encoded as \xA9. The fix is to explicitly declare codepage 1252. (cherry picked from commit 33b79b11b891adea5a916df8e3779505b37aabe7) Co-authored-by: Nikita Nemkin <nikita@nemkin.ru> 24 June 2020, 16:47:44 UTC
7329c8c bpo-41094: Fix decoding errors with audit when open files. (GH-21095) (cherry picked from commit 6c6810d98979add7a89391c3c38990d0859f7a29) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 24 June 2020, 16:45:27 UTC
6c56356 [3.9] bpo-41056: Fix a possible MemoryError leak within zoneinfo. (GH-21007) This was detected by our Coverity scan as a REVERSE_INULL issue. Automerge-Triggered-By: @gpshead (cherry picked from commit d780fa7) Co-authored-by: Gregory P. Smith <greg@krypto.org> 24 June 2020, 15:58:50 UTC
d518ed0 bpo-41005: Fixed perrmission error (GH-20936) (GH-21051) * fixed issue 41005: webbrowser fails when xdg-settings cannot be executed Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 9e27bc0c1efc7478872f98729f87886e9333548f) Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com> Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com> 24 June 2020, 12:59:19 UTC
4b80cfb Fix typo in dataclasses module (GH-21109) (#21110) Automerge-Triggered-By: @matrixise (cherry picked from commit 80526f68411a9406a9067095fbf6a0f88047cac5) Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com> Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com> 24 June 2020, 11:13:57 UTC
02d5c74 bpo-40707: Document that Popen.communicate sets the returncode attribute (GH-20283) (cherry picked from commit bf2e515fa43406d4bd9c4c53ecc9364034d8f9f6) Co-authored-by: Gareth Rees <gdr@garethrees.org> 24 June 2020, 03:19:11 UTC
48fc35a [3.9] bpo-31938: Fix default-value signatures of several functions in the select module (GH-21066) (GH-21097) (cherry picked from commit d051801052211b533c46a593b1c1bccf649a171c) Automerge-Triggered-By: @vstinner 23 June 2020, 22:19:46 UTC
47cd931 bpo-41089: Filters and other issues in Visual Studio projects (GH-21070) * Add missing header files to pythoncore. * Add missing file filters ("Resource Files" in particular) to all projects. * Add new sub-filters for private headers in pythoncore and for 3rd party source files. * Add missing _zoneinfo configurations in pcbuild.sln. * Update bdist_wininst with the new zlib location. Co-authored-by: Nikita Nemkin <nikita@nemkin.ru> 23 June 2020, 19:31:12 UTC
cebd43f bpo-41054: Simplify resource compilation on Windows (GH-21004) Remove auto-generated resource header. Pass definitions required by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource compiler. Remove unused MS_DLL_ID resource string and related dead code. (cherry picked from commit 4efc3360c9a83d5891f27ed67b4f0ab7275d2ab4) Co-authored-by: Nikita Nemkin <nikita@nemkin.ru> 23 June 2020, 19:27:30 UTC
92f8b48 bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071) Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows for index larger than ``2**31``. (cherry picked from commit 1d3dad5f96ed445b958ec53dfa0d46812f2162d9) Co-authored-by: WildCard65 <WildCard65@users.noreply.github.com> 23 June 2020, 13:41:24 UTC
cd69620 Small clean-ups for the random module (GH-21038) (GH-21065) 23 June 2020, 04:22:40 UTC
ddd3c46 Improve asyncio.loop.call_soon() documentation (GH-20883) * Add a glossary entry for the term "callback" * Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section Co-authored-by: Kyle Stanley <aeros167@gmail.com> (cherry picked from commit a16d6970496cae5ecab5aaea2b416a4b77527cc2) Co-authored-by: Roger Iyengar <ri@rogeriyengar.com> 23 June 2020, 02:22:45 UTC
c916c48 bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040) (cherry picked from commit 36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 22 June 2020, 08:46:11 UTC
5606d55 bpo-26407: Do not mask errors in csv. (GH-20536) Unexpected errors in calling the __iter__ method are no longer masked by TypeError in csv.reader(), csv.writer.writerow() and csv.writer.writerows(). (cherry picked from commit c88239f864a27f673c0f0a9e62d2488563f9d081) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 22 June 2020, 08:40:54 UTC
353c4ba bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537) Unexpected errors in calling the __iter__ method are no longer masked by TypeError in the "in" operator and functions operator.contains(), operator.indexOf() and operator.countOf(). (cherry picked from commit cafe1b6e9d3594a34aba50e872d4198296ffaadf) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 22 June 2020, 08:20:56 UTC
f19ed6b bpo-41061: Fix incorrect expressions in hashtable (GH-21028) Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 4901ea952691ad70aae21cfe04b6bd363b5a6aff) Co-authored-by: Christian Heimes <christian@python.org> 22 June 2020, 08:01:48 UTC
9fe5dec bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) (GH-21013) Reported by Coverity. (CID 1457554 RETURN_LOCAL) path0 is assigned as a pointer to this right before it goes out of scope. (cherry picked from commit 81328f30703bd7225e7e73aedb0994a7293ce190) Co-authored-by: Gregory P. Smith <greg@krypto.org> 22 June 2020, 07:47:54 UTC
8ae5e8e [3.9] bpo-40939: Deprecate PyNode_Compile (GH-21036) Automerge-Triggered-By: @pablogsal 22 June 2020, 00:07:39 UTC
5b1a311 [3.9] Do not emit deprecation warnings inside CPython for old parser APIs (GH-21025) 21 June 2020, 20:26:59 UTC
26f6126 bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010) (cherry picked from commit 19fcffa92773e008e4f5efb80047420a0cfafeec) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 21 June 2020, 19:51:54 UTC
fbf94af bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. (GH-21009) Detected by Coverity. (cherry picked from commit eb0d5c38de7f970d8cd8524f4163d831c7720f51) Co-authored-by: Gregory P. Smith <greg@krypto.org> 21 June 2020, 19:11:41 UTC
814b07b [3.9] bpo-41052: Opt out serialization/deserialization for _random.Random (GH-21002). (GH-21030) (cherry picked from commit 6989af0bc7ea1e9a1acea16794e6f723d7b44110) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> 21 June 2020, 10:33:06 UTC
71bb921 [3.9] bpo-41060: Avoid SEGFAULT when calling GET_INVALID_TARGET in the grammar (GH-21020) (GH-21024) `GET_INVALID_TARGET` might unexpectedly return `NULL`, which if not caught will cause a SEGFAULT. Therefore, this commit introduces a new inline function `RAISE_SYNTAX_ERROR_INVALID_TARGET` that always checks for `GET_INVALID_TARGET` returning NULL and can be used in the grammar, replacing the long C ternary operation used till now. (cherry picked from commit 6c4e0bd974f2895d42b63d9d004587e74b286c88) Automerge-Triggered-By: @pablogsal 21 June 2020, 02:47:22 UTC
d301d94 [3.9] bpo-40939: Deprecate the PyParser_SimpleParse* functions (GH-21012) 21 June 2020, 01:15:45 UTC
fd2c8a7 Add link to .pypirc specification (GH-20680) Related to https://github.com/pypa/twine/issues/638 and https://github.com/pypa/packaging.python.org/issues/730, I wrote a spec based on the one that was removed in https://github.com/python/cpython/pull/13087. However, a Google search for "pypirc" turned up at least one [blog post](https://truveris.github.io/articles/configuring-pypirc/) that links to https://docs.python.org/3/distutils/packageindex.htmlGH-the-pypirc-file, which now just links to this document. So, I thought a link to the spec would be handy. Automerge-Triggered-By: @jaraco (cherry picked from commit af157fad286c00ff204e86d8556648cbb53ba99e) Co-authored-by: Brian Rutledge <brian@bhrutledge.com> 20 June 2020, 20:48:17 UTC
9862181 bpo-41044: Generate valid PEG python parsers for opt+seq rules (GH-20995) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> (cherry picked from commit 55460ee6dc9a4f16bd68d6b6be3a8398c7d4a596) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> 20 June 2020, 17:59:32 UTC
c9f83c1 bpo-40958: Avoid 'possible loss of data' warning on Windows (GH-20970) (cherry picked from commit 861efc6e8fe7f030b1e193989b13287b31385939) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 20 June 2020, 17:35:03 UTC
7523886 bpo-41040: Fix test_modulefinder. (GH-20991) (cherry picked from commit a041e116db5f1e78222cbf2c22aae96457372680) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 19 June 2020, 21:26:00 UTC
1529322 bpo-38377: Fix skip_if_broken_multiprocessing_synchronize() on macOS (GH-20984) skip_if_broken_multiprocessing_synchronize() only attempts for create a semaphore on Linux to fix multiprocessing test_resource_tracker_reused() on macOS. (cherry picked from commit 3358da4054b9b0b045eb47dc74dee3d58bfbb1d5) Co-authored-by: Victor Stinner <vstinner@python.org> 19 June 2020, 16:20:15 UTC
83e54de Improve readability of `formataddr` docstring (GH-20963) For me as a non native English speaker, the sentence with its embedded clause was very hard to understand. modified: Lib/email/utils.py Automerge-Triggered-By: @csabella (cherry picked from commit 66a65ba43cb3e68a43e32469c988dd7a6cff049c) Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com> 19 June 2020, 12:18:44 UTC
a5442b2 [3.9] bpo-40334: Produce better error messages on invalid targets (GH-20106) (GH-20973) * bpo-40334: Produce better error messages on invalid targets (GH-20106) The following error messages get produced: - `cannot delete ...` for invalid `del` targets - `... is an illegal 'for' target` for invalid targets in for statements - `... is an illegal 'with' target` for invalid targets in with statements Additionally, a few `cut`s were added in various places before the invocation of the `invalid_*` rule, in order to speed things up. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> (cherry picked from commit 01ece63d42b830df106948db0aefa6c1ba24416a) 19 June 2020, 00:03:58 UTC
b1e7361 bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944) (GH-20962) On Linux, skip tests using multiprocessing if the current user cannot create a file in /dev/shm/ directory. Add the skip_if_broken_multiprocessing_synchronize() function to the test.support module. (cherry picked from commit ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881) 18 June 2020, 15:19:59 UTC
610a60c bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878) Co-authored-by: Kyle Stanley <aeros167@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d) 18 June 2020, 08:30:53 UTC
9a58f03 [3.9] bpo-40637: Do not emit warnings for disabled builtin hashes (GH… (GH-20951) …-20937) test_hashlib emits some warnings when it cannot find some hashes as it assumes they failed to compile. Since we can disable hashes through configure, we emit the warnings only in the case that we did not intentionaly disable them. Automerge-Triggered-By: @tiran (cherry picked from commit 236a0f5) Co-authored-by: stratakis <cstratak@redhat.com> 17 June 2020, 19:43:27 UTC
b39d41b bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) Fix test_copyreg when numpy is installed: test.pickletester now saves/restores warnings.filters when importing numpy, to ignore filters installed by numpy. Add the save_restore_warnings_filters() function to the test.support.warnings_helper module. (cherry picked from commit 8362893e3fe083df2ec8bb94c28b1a78383eadbf) 17 June 2020, 16:40:14 UTC
2c6d6c1 bpo-19569: Add a macro to suppress deprecation warnings (GH-9004) Co-authored-by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> (cherry picked from commit de4304dad8e035dbbb57d653e685312eead816df) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 17 June 2020, 03:18:02 UTC
7795ae8 bpo-40958: Avoid buffer overflow in the parser when indexing the current line (GH-20875) (GH-20919) (cherry picked from commit 51c5896b6205911d29ac07f167ec7f3cf1cb600d) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 16 June 2020, 17:36:59 UTC
3cf8094 bpo-40993: Don't run Travis CI coverage on PRs (GH-20916) C and Python coverage jobs of Travis CI are no longer run on pull requests, only on branches like master. (cherry picked from commit fc710ee266e9461fdba9933ec6004318db588820) Co-authored-by: Victor Stinner <vstinner@python.org> 16 June 2020, 15:47:16 UTC
097b8b6 bpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888) When a file ends with a line that contains a line continuation character the text of the emitted SyntaxError is empty, contrary to the old parser, where the error text contained the text of the last line. (cherry picked from commit 113e2b0a07c72c0d5e3489076afb14f6b3ad1049) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 16 June 2020, 00:46:44 UTC
bc996c6 bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (cherry picked from commit 5f79f46612c351bde78a41c5264c42db21008868) Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com> 15 June 2020, 20:39:49 UTC
b498c7f bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889) On Windows, GH-include "pyerrors.h" no longer defines "snprintf" and "vsnprintf" macros. PyOS_snprintf() and PyOS_vsnprintf() should be used to get portable behavior. Replace snprintf() calls with PyOS_snprintf() and replace vsnprintf() calls with PyOS_vsnprintf(). (cherry picked from commit e822e37946f27c09953bb5733acf3b07c2db690f) Co-authored-by: Victor Stinner <vstinner@python.org> 15 June 2020, 20:20:10 UTC
9a0624a bpo-40448: ensurepip: Do not use cache (GH-19812) ensurepip optionally installs or upgrades 'pip' and 'setuptools' using the version of those modules bundled with Python. The internal PIP installation routine by default temporarily uses its cache, if it exists. This is undesirable as Python builds and installations may be independent of the user running the build, whilst PIP cache location is dependent on the user's environment and outside of the build environment. At the same time, there's no value in using the cache while installing bundled modules. This change disables PIP caching when used in ensurepip. (cherry picked from commit 4a3a682b12f93a03888e8b59f439bc5fe30d6055) Co-authored-by: Krzysztof Konopko <kkonopko@users.noreply.github.com> 15 June 2020, 17:48:44 UTC
2ad799f bpo-37556 Extend help to include latest overrides (GH-14701) Modify the help in cpython/PC/launcher.c to show users that "latest" can be overridden by shebang, PY_PYTHON[n] or py.ini files. Also show that script [args] is optional by enclosing in square brackets. Automerge-Triggered-By: @zooba (cherry picked from commit b3e6783423f58597419abae343dd1d5dcc02a7e3) Co-authored-by: Steve (Gadget) Barnes <gadgetsteve@live.co.uk> 15 June 2020, 16:56:40 UTC
b87453f bpo-34226: fix cgi.parse_multipart without content_length (GH-8530) In Python 3.7 the behavior of parse_multipart changed requiring CONTENT-LENGTH header, this fix remove this header as required and fix FieldStorage read_lines_to_outerboundary, by not using limit when it's negative, since by default it's -1 if not content-length and keeps substracting what was read from the file object. Also added a test case for this problem. (cherry picked from commit d8cf3514dd4682419a66f6e834bb384ee34afc95) Co-authored-by: roger <rogerduran@gmail.com> 15 June 2020, 15:51:30 UTC
bab0833 bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886) bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv. (cherry picked from commit e2d47a0568c6da9229580829917fd6aa702133b3) Co-authored-by: Victor Stinner <vstinner@python.org> 15 June 2020, 15:19:06 UTC
30b59fd [3.9] Improve readability and style in parser files (GH-20884) (GH-20885) (cherry picked from commit fb61c42) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 15 June 2020, 14:08:00 UTC
145fa86 [3.9] Include soft keywords in keyword.py (GH-20877). (GH-20880) (cherry picked from commit 78319e373d57cd4da67660f888aa7092efbd6f24) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 15 June 2020, 03:31:05 UTC
8a34690 [3.9] bpo-40924: Remove protocol for supplying Traversable objects from loaders (GH-20820) Remove protocol that loaders can present a files method as found in importlib_resources 1.3-1.6 (added in Python 3.8b1). 14 June 2020, 12:12:20 UTC
83cd968 bpo-30064: Fix slow asyncio sock test (GH-20868) Using a log2n way to fill a much smaller buffer, and receiving in a cleaner way with EOF. The failing test was reproducible using the following command thanks to @aeros : ```bash ./python -m test test_asyncio.test_sock_lowlevel --match test_sock_client_racing -j100 -F -v ``` According to test results, we may still need to bump the timeout: https://github.com/python/cpython/blob/5aad027db9618f22f6fa2274e05dd50f928d2ed7/Lib/test/test_asyncio/test_sock_lowlevel.pyGH-L256-L257 (cherry picked from commit 8f04a84755babe516ebb5304904ea7c15b865c80) Co-authored-by: Fantix King <fantix.king@gmail.com> 14 June 2020, 08:08:08 UTC
37c9fc5 Some reformatting (suggested by Black) and minor factoring. (GH-20865) (GH-20866) 14 June 2020, 02:53:32 UTC
55c1d21 bpo-40855: Fix ignored mu and xbar parameters (GH-20835) (#GH-20862) 13 June 2020, 23:56:15 UTC
bda4cc8 [3.9] bpo-37674: Tweak imp module deprecation note in the docs (GH-20480) (GH-20859) (cherry picked from commit dea3223740127ac13f984c1d38f127ab6701af44) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Automerge-Triggered-By: @brettcannon 13 June 2020, 20:55:38 UTC
f1534d0 Minor code clean-ups (GH-20838) (GH-20858) 13 June 2020, 17:23:48 UTC
c932f5c bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827) Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 9672912e8f90374fd31b37ca0fb7cefbc6f4c555) Co-authored-by: Christian Heimes <christian@python.org> 13 June 2020, 16:18:52 UTC
94bb4b7 bpo-40834: Fix truncate when sending str object with channel (GH-20555) (cherry picked from commit 29c117202e386bad1d66ae336e2fefa1a1809ee0) Co-authored-by: An Long <aisk@users.noreply.github.com> 13 June 2020, 12:44:38 UTC
166d723 bpo-40164: Update Windows OpenSSL to 1.1.1g (GH-20834) (cherry picked from commit 80d827c3cb041ae72b9b0572981c50bdd1fe2cab) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com> 12 June 2020, 21:06:52 UTC
f919179 bpo-40964: disable remote IMAP tests (GH-20836) Remote host cyrus.andrew.cmu.edu is blocking incoming connections and is causing test suite to fail. Signed-off-by: Christian Heimes <christian@python.org> 12 June 2020, 19:06:20 UTC
ee3f7fe bpo-40955: Fix memory leak in subprocess module (GH-20825) ``` Direct leak of 8 byte(s) in 1 object(s) allocated from: GH-0 0x7f008bf19667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667) GH-1 0x7f007a0bee4a in subprocess_fork_exec /home/heimes/dev/python/cpython/Modules/_posixsubprocess.c:774 GH-2 0xe0305b in cfunction_call Objects/methodobject.c:546 ``` Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 0d3350daa8123a3e16d4a534b6e873eb12c10d7c) Co-authored-by: Christian Heimes <christian@python.org> 12 June 2020, 17:02:45 UTC
2c0a59b Update lexical_analysis.rst (GH-17508) Use Sphinx role markup for `str.format`. Automerge-Triggered-By: @csabella (cherry picked from commit e2fb8a2c42ee60c72a40d93da69e9efc4e359023) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> 12 June 2020, 13:01:20 UTC
3782497 [3.9] bpo-40939: Fix test_keyword for the old parser (GH-20814) 11 June 2020, 18:29:13 UTC
dc40105 bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807) (GH-20813) Followup of bpo-40854, there is one remaining usage of PLATLIBDIR which should be replaced by config->platlibdir. test_sys checks that sys.platlibdir attribute exists and is a string. Update Makefile: getpath.c and sysmodule.c no longer need PLATLIBDIR macro, PyConfig.platlibdir member is used instead. Co-authored-by: Sandro Mani <manisandro@gmail.com> (cherry picked from commit d72b9644a3e6eec83be48b1ebc2ec6ca776134d3) 11 June 2020, 16:27:00 UTC
2f46c65 bpo-34401: Fix test_gdb for HP GDB version string (GH-20804) The GDB provided by HPE on HP-UX contains a modified version string. Therefore the tests fail. Adapt the regex to match that string. Patch by Michael Osipov. Co-Authored-by: Michael Osipov <michael.osipov@siemens.com> (cherry picked from commit b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7) Co-authored-by: Victor Stinner <vstinner@python.org> 11 June 2020, 14:08:29 UTC
961edf7 bpo-40939: Generate keyword.py using the new parser (GH-20800) (cherry picked from commit 9727694f08cad4b019d2939224e3416312b1c0e1) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 11 June 2020, 13:02:37 UTC
f6428ba Collections module reformatting and minor code refactoring (GH-20772) (GH-20798) 11 June 2020, 07:08:27 UTC
e3ce3bb bpo-40847: Consider a line with only a LINECONT a blank line (GH-20769) A line with only a line continuation character should be considered a blank line at tokenizer level so that only a single NEWLINE token gets emitted. The old parser was working around the issue, but the new parser threw a `SyntaxError` for valid input. For example, an empty line following a line continuation character was interpreted as a `SyntaxError`. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> (cherry picked from commit 896f4cf63f9ab93e30572d879a5719d5aa2499fb) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 11 June 2020, 00:14:16 UTC
18e07ba bpo-40895: Update weakref documentation to remove old warnings (GH-20687) The doccumentation at https://docs.python.org/3.10/library/weakref.html cautions that the `WeakKeyDictionary` and `WeakValueDictionary` are susceptible to the problem of dictionary mutation during iteration. These notes present the user with a problem that has no easy solution. I dug into the implementation and found that fortunately, Antoine Pitrou already addressed this challenge (10 years ago!) by introducing an `_IterationGuard` context manager to the implementation, which delays mutation while an iteration is in progress. I asked for confirmation and @pitrou agreed that these notes could be removed: https://github.com/python/cpython/commit/c1baa601e2b558deb690edfdf334fceee3b03327GH-commitcomment-39514438 (cherry picked from commit 1642c0ef750f96664a98cadb09301d492098d2fb) Co-authored-by: Daniel Fortunov <asqui@users.noreply.github.com> 10 June 2020, 20:33:59 UTC
af69325 bpo-40927: Fix test_binhex when run twice (GH-20764) (GH-20789) test_binhex now uses import_fresh_module() to ensure that it raises DeprecationWarning each time. (cherry picked from commit 9c24e2e4c10705d95258558348417a28007dac66) 10 June 2020, 18:17:13 UTC
4a4f660 bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785) test_repl.test_close_stdin() now calls support.suppress_msvcrt_asserts() to fix the test on Windows. * Move suppress_msvcrt_asserts() from test.libregrtest.setup to test.support. Make its verbose parameter optional: verbose=False by default. * SuppressCrashReport now uses SetErrorMode() of the msvcrt module, rather than using ctypes. * Remove also an unused variable (deadline) in wait_process(). (cherry picked from commit f6e58aefde2e57e4cb11ea7743955da53a3f1e80) 10 June 2020, 17:24:56 UTC
9419158 bpo-40703: Let PyType_FromSpec() set "type.__module__" only if it is not set yet. (GH-20273) (GH-20782) (cherry picked from commit 24b8bad6d30ae4fb37ee686a073adfa5308659f9) 10 June 2020, 16:43:10 UTC
3b97d1b bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." (GH-20117) (GH-20780) * Revert "bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)" This reverts commit b33e52511a59c6da7132c226b7f7489b092a33eb. (cherry picked from commit ec88e1bca81a167e6d5c0ac635e22f84298cb1df) 10 June 2020, 16:01:25 UTC
d55ed7b Raise specialised syntax error for invalid lambda parameters (GH-20776) (cherry picked from commit c6483c989694cfa328dabd45eb191440da54bc68) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 10 June 2020, 13:24:41 UTC
73b728a [3.9] bpo-34003: Re-add versionchanged entry in csv docs (GH-20657) (GH-20770) Follow-up to GH-8014 (cherry picked from commit 7aed0524d4129766a6032326949ef7f91f6f6dfc) Co-authored-by: Éric Araujo <merwok@netwok.org> Automerge-Triggered-By: @merwok 10 June 2020, 01:26:36 UTC
6c645cb Post 3.9.0b3 09 June 2020, 21:35:14 UTC
b484871 Python 3.9.0b3 09 June 2020, 18:52:10 UTC
ce5e6f0 [3.9] bpo-40924: Revert "bpo-39791 native hooks for importlib.resources.files (GH-20576)" (#20760) This reverts commit 9cf1be46e3692d565461afd3afa326d124d743dd due to https://bugs.python.org/issue40924. 09 June 2020, 17:50:01 UTC
6cb24a0 bpo-40684: Fix make install for platlibdir=lib64 (GH-20736) "make install" now uses the PLATLIBDIR variable for the destination lib-dynload/ directory when ./configure --with-platlibdir is used. Update --with-platlibdir comment in configure. (cherry picked from commit 51ae31e5b93b986e57a7e18e25f981a6ffcdefb7) Co-authored-by: Victor Stinner <vstinner@python.org> 09 June 2020, 13:54:54 UTC
1a819ca Remove reference to 3.7 and 3.8 backports. (GH-20754) (#20755) (cherry picked from commit 323188360d61875bd68688ef41711bade298af50) Authored-by: Stefan Krah <skrah@bytereef.org> 09 June 2020, 08:35:58 UTC
459cb12 Post 3.9.0b2 09 June 2020, 00:23:35 UTC
8f1f416 Merge tag 'v3.9.0b2' into 3.9 Python 3.9.0b2 09 June 2020, 00:23:22 UTC
299d3d1 Minor improvement to the namedtuple implementation (GH-20741) (GH-20742) 08 June 2020, 20:25:48 UTC
b155381 bpo-24914: mention Python supports multiple paradigms in the FAQ (GH-20658) (GH-20737) (cherry picked from commit 3ab3475c42c8ee5580f4ea1aeda73ebc8e5d5478) Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Brett Cannon <brett@python.org> 08 June 2020, 18:53:36 UTC
0b1a1c8 Python 3.9.0b2 08 June 2020, 18:41:34 UTC
3dc4428 Add multicore support to deccheck.py. (GH-20731) (cherry picked from commit 951d680d56d8c32556437a86f6b42f221635b97f) Authored-by: Stefan Krah <skrah@bytereef.org> 08 June 2020, 17:55:13 UTC
ecdd28c Remove deleted libmpdec header from the Visual Studio build machinery. (GH-20730) (cherry picked from commit 0c59f440f4c9dca658e6b18db14b67b750e25a87) Authored-by: Stefan Krah <skrah@bytereef.org> 08 June 2020, 17:51:06 UTC
8175064 bpo-40854: Allow overriding sys.platlibdir via PYTHONPLATLIBDIR env-var (GH-20605) (GH-20725) (cherry picked from commit 8f023a2f664f902a3d0b7a6f64d63afc0d1c15ae) Co-authored-by: Sandro Mani <manisandro@gmail.com> 08 June 2020, 17:36:13 UTC
298c8c8 bpo-40861: Enable optimizations when building liblzma (GH-20724) (cherry picked from commit 3a3a30c5a4622e18be9f7e4a239dc9e0d7c8054c) Co-authored-by: Steve Dower <steve.dower@python.org> 08 June 2020, 17:09:01 UTC
dedaac0 bpo-40910: Export Py_GetArgcArgv() function (GH-20721) (GH-20723) Export explicitly the Py_GetArgcArgv() function to the C API and document the function. Previously, it was exported implicitly which no longer works since Python is built with -fvisibility=hidden. * Add PyConfig._orig_argv member. * Py_InitializeFromConfig() no longer calls _PyConfig_Write() twice. * PyConfig_Read() no longer initializes Py_GetArgcArgv(): it is now _PyConfig_Write() responsibility. * _PyConfig_Write() result type becomes PyStatus instead of void. * Write an unit test on Py_GetArgcArgv(). (cherry picked from commit e81f6e687d0f04a45f2389d0b43fafd6d8491624) 08 June 2020, 16:44:50 UTC
1220a47 bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438) Looks like the merging of bpo-33187 and bpo-20928 was racy, resulting in this change going undocumented. (cherry picked from commit 301f0d4ff9b6bd60599eea0612904f65a92e6dd9) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> 08 June 2020, 14:47:46 UTC
60edee8 Update macOS installer welcome files for 3.9.0 beta (GH-20719) 08 June 2020, 12:47:27 UTC
2b33cc3 [3.9] Remove PEG-specific syntax error check in the old parser (GH-20717) 08 June 2020, 10:27:58 UTC
8df4f39 bpo-40903: Handle multiple '=' in invalid assignment rules in the PEG parser (GH-20697) Automerge-Triggered-By: @pablogsal (cherry picked from commit 9f495908c5bd3645ed1af82d7bae6782720dab77) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 08 June 2020, 09:22:06 UTC
66605d1 allow macOS installer builds to package pre-built html docs (GH-20715) build-installer now looks in its directory of source tarballs for a suitable html tarball of the same version. If so, it will unpack and use it rather than rebuilding the html format documentation set from the source repo. This is intended as a speedup for test builds of the installer. Files names must be in the same format as produced by the docs build for download, for example, `python-3.9.0b1-docs-html.tar.bz2`. (cherry picked from commit 63fc55b2eab0331465605a49bfd28a1bcb997f92) Co-authored-by: Ned Deily <nad@python.org> 08 June 2020, 08:11:43 UTC
3deded9 Deny eval() direct access to builtins (GH-20713) (GH-20714) 08 June 2020, 07:19:27 UTC
be5ed59 bpo-22021: Update root_dir and base_dir documentation in shutil (GH-10367) Also added an example in shutil in order to make more clear how they are to be used. Initially reported by Weinan Li on bpo. (cherry picked from commit 7633371dace67aaa21eb4b86f889441571ec4167) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 08 June 2020, 05:08:14 UTC
1e72fb2 bpo-40741: Update macOS installer to use SQLite 3.32.2. (GH-20705) (cherry picked from commit 37eed5a9ee7c802e7151ee9939ed604032886639) Co-authored-by: Ned Deily <nad@python.org> 08 June 2020, 02:43:11 UTC
9cf1be4 bpo-39791 native hooks for importlib.resources.files (GH-20576) * Provide native .files support on SourceFileLoader. * Add native importlib.resources.files() support to zipimporter. Remove fallback support. * make regen-all * 📜🤖 Added by blurb_it. * Move 'files' into the ResourceReader so it can carry the relevant module name context. * Create 'importlib.readers' module and add FileReader to it. * Add zip reader and rely on it for a TraversableResources object on zipimporter. * Remove TraversableAdapter, no longer needed. * Update blurb. * Replace backslashes with forward slashes. * Incorporate changes from importlib_metadata 2.0, finalizing the interface for extension via get_resource_reader. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 843c27765652e2322011fb3e5d88f4837de38c06) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> 08 June 2020, 01:30:08 UTC
back to top