| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
(GH-5254) (#5290)
* [3.6] bpo-32502: Discard 64-bit (and other invalid) hardware addresses (GH-5254).
(cherry picked from commit 6b273f7f4056f8276f61a97c789d6bb4425e653c)
|
|
|
|
|
|
|
|
| |
(GH-5284) (#5296)
glibc is deprecating libcrypt in favor of libxcrypt, however python assumes
that crypt.h will always be included. This change makes the header inclusion
explicit when libxcrypt is present on the system.
(cherry picked from commit e768c86ef442ef89004089a8a34ce5909ffb90f2)
|
|
|
|
|
|
| |
(GH-5269) (#5285)
It should test both test.replacing and test.mutating instead of test test.replacing twice.
(cherry picked from commit 370d04d1dcca50a52d59f40aff4d11434f71df6b)
|
|
|
|
|
|
|
|
| |
The suggested replacement for print statements previously failed to account
for leading whitespace and hence could end up including unwanted text in
the proposed call to the print builtin.
Patch by Sanyam Khurana.
(cherry picked from commit d57f26c753dce61f72b52b96db3a3253d9f2fc3e)
|
|
|
|
|
| |
statistics (GH-5235) (#5236)
(cherry picked from commit fa7880604191f81cbdddc191216f7b1e39a74d8d)
|
| |
|
|
|
|
|
| |
The comment for PyThread_allocate_lock says "It has too be implemented ...".
There was an extra "o" in ".. to be implemented.."
(cherry picked from commit 6027802ca7fae118bce6afead51d01a174600d40)
|
|
|
|
|
| |
This test doesn't care about order, the underlying filesystem APIs do not
guarantee directory listings on subsequent calls will be in the same order.
(cherry picked from commit 3941499d6c2a4d09f2ea476f84b9c4ddc4bdefa0)
|
|
|
| |
(cherry picked from commit 7d91c0250408e202243c77c1dc9afdb321b6b32f)
|
|
|
|
|
|
| |
bpo-29240: On FreeBSD, if the LC_CTYPE locale is "C" or "POSIX",
writing and reading non-ASCII bytes into/from a TTY works,
but readline or ncurses ignores non-ASCII bytes on read.
(cherry picked from commit c495e799ed376af91ae2ddf6c4bcc592490fe294)
|
|
|
| |
(cherry picked from commit b44c5169f64178d2ff2914187b315549e7ab0cb6)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On FreeBSD and Solaris, os.strerror() now always decode the byte
string from the current locale encoding, rather than using
ASCII/surrogateescape in some cases.
Changes:
* Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() which has an
additional current_locale parameter.
* PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and
* PyUnicode_EncodeLocale() now always use the current locale
* encoding, instead of using Py_DecodeLocale()/Py_EncodeLocale().
* Document encoding in Py_DecodeLocale() and Py_EncodeLocale()
documentations.
* Add USE_FORCE_ASCII define to not define
decode_ascii_surrogateescape() on Android.
|
|
|
|
|
|
|
|
|
|
| |
* Add _Py_GetLocaleconvNumeric() function: decode decimal_point and
thousands_sep fields of localeconv() from the LC_NUMERIC encoding,
rather than decoding from the LC_CTYPE encoding.
* Modify locale.localeconv() and "n" formatter of str.format() (for
int, float and complex to use _Py_GetLocaleconvNumeric()
internally.
(cherry picked from commit cb064fc2321ce8673fe365e9ef60445a27657f54)
|
|
|
|
|
| |
Clarify that on Windows, path must be a directory.
On Unix, path can be a file or a directory.
(cherry picked from commit ee3b83547c6b0cac1da2cb44aaaea533a1d1bbc8)
|
|
|
|
|
|
| |
`os.path.is*()` can return False if the file can't be accessed.
The behaviour is documented in details in `os.path.exists()`.
Link to `os.path.exists()` from `os.path.is*()`.
(cherry picked from commit b3dd18d4035803b50c65a434955966d1b3b1f363)
|
|
|
| |
(cherry picked from commit d37258dd2e189141906bd234385096cd8e885d8d)
|
|
|
|
|
| |
The code example that demonstrate how to use enum.Flag was missing
the import of enum.auto.
(cherry picked from commit 0f31c74fcfdec8f9e6157de2c366f2273de81677)
|
|
|
|
|
|
|
| |
glibc has removed Sun RPC. Use replacement libtirpc headers and library in
nis module
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit f3031b8a7ad71d3b6ed05da7f3041d9efbe773cf)
|
|
|
| |
(cherry picked from commit ae12f5d4c98f2095c2aadd58981453e955044697)
|
|
|
|
|
|
|
|
| |
link (GH-5157) (GH-5160)
In lexical analysis reference documentation, the internal link to
the string literal concatenation section was written as`.. _string-catenation:`.
Changed that to `.. _string-concatenation:`.
(cherry picked from commit 3764bb075a73074f55568fc7c37adde6054eb59a)
|
| |
|
|
|
|
|
| |
(#5129)
(cherry picked from commit 3460198f6ba40a839f105c381f07179aba1e8c61)
|
|
|
|
| |
It's more trouble than it's worth, since AppVeyor only checks the HEAD commit of a PR rather than the full diff against the base branch to decide which files changed.
(cherry picked from commit 7f7de371f947dc38e67505601927e9bc58fa268a)
|
|
|
| |
(cherry picked from commit 65f2a6dcc2bc28a8566b74c8e9273f982331ec48)
|
|
|
|
|
|
|
| |
The comment was added in 3abca127fe1565ec80f6b0a1ae48d65186ad887d.
In d78448e912126410117723c7d240bbdfff06df16, it was changed to
use PyArg_ParseTuple instead.
(cherry picked from commit 78e24d4415c37e9e9951920bc31e9ee4868d86cb)
|
|
|
|
|
| |
(#5095)
(cherry picked from commit 0cc99c8cd70d422e4b345837a907db30e9180ab9)
|
| |
|
|
|
|
| |
Updates documentation for generator expressions in classes tutorial: Clarify usage of ambiguous term "brackets" by replacing with "square brackets". Updated subsequent lines to respect line breaks. (GH-5079)
(cherry picked from commit f190eb59e60e2ae7a7cbd396458389a7a076e0d3)
|
|
|
|
|
| |
(GH-5078) (#5083)
(cherry picked from commit 7cc42c356b0dc5ad9eaa9392789e84bd4aa1c7de)
|
|
|
|
| |
Move other test to more proper place.
(cherry picked from commit e8ed96550c6aa9a1e39c36e67e892994e25e2c41)
|
|
|
| |
(cherry picked from commit 6c6d3a46087bacb9c767c8cf2185505348d3796d)
|
|
|
| |
(cherry picked from commit e325608740bee161ca7fefd09463d63099efa1b8)
|
|
|
|
|
| |
(GH-5034) (#5036)
(cherry picked from commit e5f7dccefaa8d97ab53b3051acbb4a4d49379dc4)
|
|
|
|
|
| |
In pydoc.py, the reference to Python' documentation was in http.
The link has been updated to use https.
(cherry picked from commit e5681b9822c633c77ddfeb94585d58895e0ecff5)
|
|
|
|
|
| |
(GH-4991). (#5016)
(cherry picked from commit 53f9135667226f33e049e327db60fb033afbd77a)
|
|
|
|
|
|
| |
* Fix typos
* Change warning text
* Add test
(cherry picked from commit a8f4e15f3d33084862ddd3a7d58cd00034e94f16)
|
|
|
|
|
| |
(#5007)
(cherry picked from commit 1b3029ac8370ac76fa9571aef540e10aed0667ff)
|
|
|
| |
(cherry picked from commit 4f146f9ed133b9ad56d4ee7a653396836af34067)
|
|
|
| |
(cherry picked from commit d11e8e0d11c759cd0f96aebb59de914e4d62b8cd)
|
|
|
|
|
|
|
|
|
| |
(GH-4977) (#4979)
This is more complicated than it should be because we need to preserve the
useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar
has. We only look for the pickled grammar file with pkgutil.get_data and only if
the source file does not exist.
(cherry picked from commit 8a5877165e993afb2633cd48da5222326d3f6e0e)
|
|
|
|
|
|
|
|
| |
Skip the test failing randomly because of known race condition.
Skip the test to fix macOS buildbots until a decision is made on the
proper fix for the race condition.
(cherry picked from commit 550ee051d605b909dd75ef686d8e1244a0994394)
|
|
|
|
|
| |
shutdown (GH-4956) (#4962)
(cherry picked from commit 4a02543cf97e8cbf9293741379f977b85531e4c2)
|
|
|
|
|
| |
(GH-4867) (#4959)
(cherry picked from commit fbd605151fcf2899b14575f4ddb9ce3c55e684ab)
|
|
|
| |
(cherry picked from commit a8d25a16452f7ee8dfc350cd028b3ae172d28ada)
|
|
|
| |
(cherry picked from commit 83cb778b4a3f856f2243b0f0d36fefb5c44b388f)
|
|
|
|
| |
The built-in map() function collects function arguments lazily, but concurrent.futures.Executor.map() does so eagerly.
(cherry picked from commit a7a751dd7b08a5bb6cb399c1b2a6ca7b24aba51d)
|
|
|
|
|
| |
Mention that the format-specifier mini language in f-strings
is the same one used by str.format.
(cherry picked from commit f4e21a2a72f76d75a6cc6f74faf910a5f3108482)
|
|
|
|
|
|
|
|
| |
(#4929)
* Fix GH-32377: improve __del__ docs and fix mention about resurrection
* Mention that CPython only calls __del__ once.
(cherry picked from commit 4b965930e8625f77cb0e821daf5cc40e85b45f84)
|
| |
|
|\ |
|