Commit Graph

106001 Commits

Author SHA1 Message Date
Steve Dower b9e288cc1b
bpo-41162: Clear audit hooks later during finalization (GH-21222)
Co-authored-by: Konge <zkonge@outlook.com>
2020-07-04 00:04:22 +01:00
Miss Islington (bot) c1d916595e
bpo-41180: Audit code.__new__ when unmarshalling (GH-21271)
(cherry picked from commit d160e0f8e2)

Co-authored-by: tkmikan <36260601+tkmikan@users.noreply.github.com>
2020-07-03 14:13:29 -07:00
Miss Islington (bot) 53d2b715d1
bpo-41193: Ignore OSError in readline write_history() (GH-21279)
The write_history() atexit function of the readline completer now
ignores any OSError to ignore error if the filesystem is read-only,
instead of only ignoring FileNotFoundError and PermissionError.
(cherry picked from commit 0ab917e07e)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-07-02 04:02:08 -07:00
Serhiy Storchaka e73896241e
[3.8] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21277)
(cherry picked from commit 9355868458)
2020-07-02 10:05:35 +03:00
Ned Deily cbdacb94c1
3.8.3 -> 3.8.4 in macOS installer ReadMe (GH-21274) 2020-07-02 01:58:31 -04:00
Miss Islington (bot) c3fa7534c7
bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)
(cherry picked from commit 694d31e714)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-07-01 11:22:45 -07:00
Miss Islington (bot) 42f05e6292
Doc: Minor fix to init config C API documentation (GH-21198)
Co-authored-by: Tomer Vromen <tomer.vromen@intel.com>
(cherry picked from commit 741008a57b)

Co-authored-by: tomerv <tomerv@gmail.com>
2020-07-01 02:40:55 -07:00
Łukasz Langa 3e5b2004ae
Post 3.8.4rc1 2020-06-30 18:03:38 +02:00
Łukasz Langa 26d1d1dcfd Python 3.8.4rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl76bPYACgkQsmmV4xAl
 BWjLjQ//To/nYZE1CLt2eKmCM1T1ot2FZJVunXl6en48d9T4xos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v14+4pNBOatiy5scfXu1Dkl/8id0UnAmpKsmiS0zNQn05
 ox8bx+RNJMxR0CSIFMejA2qhYKMqTbcJ8A6Y2r7tN3mNLnGSChaKGR4gdXXqTfHS
 OYsTnML68zyoo55R5Ggn0Eem1BwZT1FUD7eiV7WalfgPx4sZNqOcqUb9qN41P/Cm
 /9NYV+N4j+IUHSUPXzcSpP7iBajdUIjyfUO5E9rgIS/6MHkT5ZqDTZCWbyYCySzm
 lbdeKx3XY15ZLFiTfQnuEZw5eJ7UyQzTqphKlY6i6NGpZxiw9yZGv/P5NIqw/txz
 a4btDjUGDaxJmg/rdZ6I8TV2ZOKCHo/qpFpEULD0OaMAMBjlzPNsMAyOkcdtUAhv
 ZcJRK7OfGK7MPVQOYpws5NNmXCAnkdqFq9IgW/wV1AICoCBYrPBbsyt+ZScMjS8+
 WeB+W9F3pQ==
 =DdsK
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.4rc1' into 3.8

Python 3.8.4rc1
2020-06-30 18:03:07 +02:00
Miss Islington (bot) c81f9e2d0a
Update FAQ release schedule and estimated users (GH-21180)
Update FAQ to include:
* The new yearly release schedule from PEP 602
* Estimated users from "tens of thousands" to "millions"
(cherry picked from commit 3fa4799c3f)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2020-06-30 02:51:21 -07:00
Miss Islington (bot) 41d6e3fbb8
bpo-41123: Remove PyUnicode_AsUnicodeCopy in 3.10 (GH-21227)
(cherry picked from commit 2ea6a9928e)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-06-30 01:49:09 -07:00
Miss Islington (bot) 00fd04b9b7
bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)
(cherry picked from commit 2515a28230)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-29 17:39:02 -07:00
Łukasz Langa 6c38841c08
Python 3.8.4rc1 2020-06-30 00:30:11 +02:00
Miss Islington (bot) dc8ce8ead1
bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)
The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26e36)

Co-authored-by: Ravi Teja P <rvteja92@gmail.com>
2020-06-29 11:12:50 -07:00
Miss Islington (bot) 7731139b7a
bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998)
(cherry picked from commit 7f569c9bc0)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
2020-06-29 05:07:41 -07:00
Miss Islington (bot) 12bb0b69ec
Update ssl.rst 2020-06-29 00:34:35 -07:00
Miss Islington (bot) ea164309de
bpo-41123: Doc: PyLong_FromUnicode will be removed in 3.10 (GH-21205)
(cherry picked from commit 02134dae44)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-06-28 22:36:04 -07:00
Serhiy Storchaka cb53b8ce9c
[3.8] bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177) (GH-21200)
Fix also a resource warning when store counts and module info.
(cherry picked from commit 04cdeb7a56)
2020-06-28 17:30:08 +03:00
Miss Islington (bot) 86ef6fe2b6
bpo-41144: Fix IDLE open module error (GH-21182)
Could not open os.path.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 8ab77c6f9f)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2020-06-27 23:20:13 -07:00
Guido van Rossum e653369e76
[3.8] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21023) 2020-06-27 17:35:05 -07:00
Lysandros Nikolaou 749d3bc041
[3.8] bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173) (GH-21184)
Automerge-Triggered-By: @pablogsal
2020-06-27 11:43:41 -07:00
Miss Islington (bot) 027bba2ead
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
(cherry picked from commit 2f168c6356)

Co-authored-by: Ned Deily <nad@python.org>
2020-06-27 01:52:50 -07:00
Miss Islington (bot) c4a53e48a9
BPO-41100: Support macOS 11 when building (GH-21113)
(cherry picked from commit 8ea6353f60)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-06-25 08:15:06 -07:00
Christian Heimes 8075fe199b
[3.8] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20948)
Signed-off-by: Christian Heimes <christian@python.org>

Automerge-Triggered-By: @tiran.
(cherry picked from commit bb6ec14479)

Co-authored-by: Christian Heimes <christian@python.org>
2020-06-25 05:18:43 -07:00
Miss Islington (bot) f547d06ea7
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
(cherry picked from commit 0f8ec1fff0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-25 05:04:56 -07:00
Ned Deily 7318f0ab23
bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141) (GH-21147) 2020-06-25 07:44:14 -04:00
Miss Islington (bot) 84f9c23a12
bpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)
(cherry picked from commit 94eee69e9b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-25 04:37:38 -07:00
Miss Islington (bot) 4564ebb1e6
bpo-39580: add check for CLI installation on macOS (GH-20271)
Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.
(cherry picked from commit 5f190d2cc6)

Co-authored-by: Rick Heil <rickheil@partnersandsimons.com>
2020-06-25 03:56:14 -07:00
Ned Deily 8127daba89
Forward port macOS installer updates from 3.7 (GH-21132) (GH-21137)
- 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
- 3.x installer now updates the Current symlink in framework
2020-06-25 06:15:37 -04:00
Miss Islington (bot) 3f4de44cf7
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 55939b1708)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-25 02:12:41 -07:00
Miss Islington (bot) ec05a7feed
bpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)
Automerge-Triggered-By: @merwok
(cherry picked from commit cf18c9e9d4)

Co-authored-by: Arisaka97 <solitaire2312@gmail.com>
2020-06-24 15:03:11 -07:00
Miss Islington (bot) 1dda40c1d2
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
(cherry picked from commit a7dc714701)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-24 10:03:51 -07:00
Miss Islington (bot) 1813d318fd
bpo-41094: Fix decoding errors with audit when open files. (GH-21095)
(cherry picked from commit 6c6810d989)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-24 09:45:38 -07:00
Miss Islington (bot) fb4a624105
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 33b79b11b8)

Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
2020-06-24 09:42:55 -07:00
Miss Islington (bot) adf8708c44
bpo-41005: Fixed perrmission error (GH-20936) (GH-21052)
* 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 9e27bc0c1e)

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
2020-06-24 14:58:27 +02:00
Miss Islington (bot) 0029099dec
Fix typo in dataclasses module (GH-21109) (#21111)
Automerge-Triggered-By: @matrixise
(cherry picked from commit 80526f6841)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
2020-06-24 07:14:10 -04:00
Miss Islington (bot) 4f5dde463b
bpo-40707: Document that Popen.communicate sets the returncode attribute (GH-20283)
(cherry picked from commit bf2e515fa4)

Co-authored-by: Gareth Rees <gdr@garethrees.org>
2020-06-23 20:19:35 -07:00
Anthony Sottile 60cbdc81d1
[3.8] bpo-31938: Fix default-value signatures of several functions in the select module (GH-21066) (GH-21098)
(cherry picked from commit d051801052)

Automerge-Triggered-By: @vstinner
2020-06-23 15:17:02 -07:00
Ammar Askar 6eab52ffad
bpo-39699: Remove accidentally committed test change (GH-21089) 2020-06-23 19:28:25 +01:00
Miss Islington (bot) c6e24e7420
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 1d3dad5f96)

Co-authored-by: WildCard65 <WildCard65@users.noreply.github.com>
2020-06-23 06:40:47 -07:00
Miss Islington (bot) 56d25add07
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 a16d697049)

Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
2020-06-22 19:23:49 -07:00
Miss Islington (bot) d7f37d1ed4
bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)
(cherry picked from commit 36ff513f82)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-22 01:40:05 -07:00
Miss Islington (bot) b99824a8e1
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 cafe1b6e9d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-22 01:21:04 -07:00
Miss Islington (bot) d5ee9b9940
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 81328f3070)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2020-06-22 00:43:41 -07:00
Miss Islington (bot) 14195597b3
bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)
(cherry picked from commit 19fcffa927)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-21 12:36:23 -07:00
Miss Islington (bot) 10bf6e4823
bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. (GH-21009)
Detected by Coverity.
(cherry picked from commit eb0d5c38de)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2020-06-21 12:11:29 -07:00
Miss Islington (bot) a4c09560ea
Add link to .pypirc specification (GH-20680) (#21019)
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 af157fad28)

Co-authored-by: Brian Rutledge <brian@bhrutledge.com>

Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
2020-06-20 17:12:27 -04:00
Miss Islington (bot) 80651ab9e3
bpo-41040: Fix test_modulefinder. (GH-20991)
(cherry picked from commit a041e116db)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-06-19 14:25:25 -07:00
Miss Islington (bot) ec9bc2da42
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 3358da4054)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-06-19 09:19:38 -07:00
Miss Islington (bot) 4dd10ed694
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 66a65ba43c)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
2020-06-19 05:15:57 -07:00