summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.6] bpo-32502: Discard 64-bit (and other invalid) hardware addresses ↵Bo Bayles2018-01-243-4/+37
| | | | | | | (GH-5254) (#5290) * [3.6] bpo-32502: Discard 64-bit (and other invalid) hardware addresses (GH-5254). (cherry picked from commit 6b273f7f4056f8276f61a97c789d6bb4425e653c)
* bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. ↵Miss Islington (bot)2018-01-245-2/+10
| | | | | | | | (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)
* bpo-32618: Fix test_mutatingdecodehandler not testing test.mutating ↵Miss Islington (bot)2018-01-231-3/+2
| | | | | | (GH-5269) (#5285) It should test both test.replacing and test.mutating instead of test test.replacing twice. (cherry picked from commit 370d04d1dcca50a52d59f40aff4d11434f71df6b)
* [3.6] bpo-32028: Fix suggestions for indented print statements (GH-5249)Miss Islington (bot)2018-01-203-5/+23
| | | | | | | | 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)
* Removed unnecesssary bit inversion which doesn't improve dispersion ↵Miss Islington (bot)2018-01-181-1/+1
| | | | | statistics (GH-5235) (#5236) (cherry picked from commit fa7880604191f81cbdddc191216f7b1e39a74d8d)
* [3.6] bpo-32588 Move _distutils_findvs into its own module (GH-5227) (#5228)Steve Dower2018-01-1811-22/+133
|
* Fix typo in thread_nt.h code comment (GH-5211) (GH-5226)Miss Islington (bot)2018-01-181-1/+1
| | | | | 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)
* Use assertCountEqual instead of assertEqual. (GH-5223) (#5225)Miss Islington (bot)2018-01-171-3/+3
| | | | | 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)
* pythoninfo: add time.time and datetime.datetime.now (GH-5214) (#5219)Miss Islington (bot)2018-01-171-1/+13
| | | (cherry picked from commit 7d91c0250408e202243c77c1dc9afdb321b6b32f)
* Skip test_readline.test_nonascii() on C locale (GH-5203) (#5204)Miss Islington (bot)2018-01-161-0/+8
| | | | | | 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)
* bpo-26163: Frozenset hash improvement (GH-5194) (#5198)Miss Islington (bot)2018-01-162-0/+3
| | | (cherry picked from commit b44c5169f64178d2ff2914187b315549e7ab0cb6)
* [3.6] bpo-32555: Fix locale encodings (#5193)Victor Stinner2018-01-156-105/+227
| | | | | | | | | | | | | | | | | 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.
* [3.6] bpo-31900: Fix localeconv() encoding for LC_NUMERIC (#4174) (#5192)Victor Stinner2018-01-158-17/+153
| | | | | | | | | | * 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)
* bpo-26330: Update shutil.disk_usage() documentation (GH-5184) (GH-5188)Miss Islington (bot)2018-01-151-1/+2
| | | | | Clarify that on Windows, path must be a directory. On Unix, path can be a file or a directory. (cherry picked from commit ee3b83547c6b0cac1da2cb44aaaea533a1d1bbc8)
* bpo-15221: Update os.path.is*() documentation (GH-5185) (GH-5186)Miss Islington (bot)2018-01-151-6/+9
| | | | | | `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)
* Add itertools recipe for directly finding the n-th combination (GH-5161) (#5174)Miss Islington (bot)2018-01-132-0/+56
| | | (cherry picked from commit d37258dd2e189141906bd234385096cd8e885d8d)
* Improve enum.Flag code example (GH-5167) (GH-5171)Miss Islington (bot)2018-01-131-1/+1
| | | | | The code example that demonstrate how to use enum.Flag was missing the import of enum.auto. (cherry picked from commit 0f31c74fcfdec8f9e6157de2c366f2273de81677)
* [3.6] bpo-32521: nis libtirpc (GH-5137) (#5165)Miss Islington (bot)2018-01-122-5/+14
| | | | | | | 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)
* bpo-32473: Improve ABCMeta._dump_registry() readability (GH-5091)Miss Islington (bot)2018-01-122-1/+4
| | | (cherry picked from commit ae12f5d4c98f2095c2aadd58981453e955044697)
* Lexical Analysis ref doc: Fix a typo in the string concatenation internal ↵Miss Islington (bot)2018-01-121-1/+1
| | | | | | | | 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)
* Fix version in AppVeyor config (GH-5125)Zachary Ware2018-01-071-1/+1
|
* bpo-31802: Fix importing native path module before importing os. (GH-4017) ↵Miss Islington (bot)2018-01-075-32/+42
| | | | | (#5129) (cherry picked from commit 3460198f6ba40a839f105c381f07179aba1e8c61)
* [3.6] Kill the AppVeyor file whitelist (GH-5122)Zachary Ware2018-01-071-17/+0
| | | | 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)
* advance copyright years to 2018 (GH-5094) (#5104)Miss Islington (bot)2018-01-069-13/+13
| | | (cherry picked from commit 65f2a6dcc2bc28a8566b74c8e9273f982331ec48)
* Fix outdated comment in typeobject.c (GH-5090)Miss Islington (bot)2018-01-041-1/+1
| | | | | | | The comment was added in 3abca127fe1565ec80f6b0a1ae48d65186ad887d. In d78448e912126410117723c7d240bbdfff06df16, it was changed to use PyArg_ParseTuple instead. (cherry picked from commit 78e24d4415c37e9e9951920bc31e9ee4868d86cb)
* bpo-32482: Fix suspicious code in tests for syntax and grammar. (GH-5086) ↵Miss Islington (bot)2018-01-042-8/+7
| | | | | (#5095) (cherry picked from commit 0cc99c8cd70d422e4b345837a907db30e9180ab9)
* bpo-32211: Document the existing bug in re.findall() and re.finditer(). (#4695)Serhiy Storchaka2018-01-041-4/+10
|
* bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5081)Miss Islington (bot)2018-01-021-3/+3
| | | | 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)
* bpo-32478: Add tests for 'break' and 'return' inside 'finally' clause. ↵Miss Islington (bot)2018-01-021-0/+74
| | | | | (GH-5078) (#5083) (cherry picked from commit 7cc42c356b0dc5ad9eaa9392789e84bd4aa1c7de)
* bpo-32416: Add two new tests in test_sys_settrace. (GH-5072) (#5073)Miss Islington (bot)2018-01-011-8/+30
| | | | Move other test to more proper place. (cherry picked from commit e8ed96550c6aa9a1e39c36e67e892994e25e2c41)
* Add missing backslashes in PCbuild bat files (GH-5056) (GH-5057)Zachary Ware2017-12-301-3/+3
| | | (cherry picked from commit 6c6d3a46087bacb9c767c8cf2185505348d3796d)
* remove unused import (GH-5040) (#5042)Miss Islington (bot)2017-12-291-1/+0
| | | (cherry picked from commit e325608740bee161ca7fefd09463d63099efa1b8)
* make PatternCompiler use the packaged grammar if possible (more bpo-24960) ↵Miss Islington (bot)2017-12-291-7/+7
| | | | | (GH-5034) (#5036) (cherry picked from commit e5f7dccefaa8d97ab53b3051acbb4a4d49379dc4)
* bpo-32440: Update the docs URL to https in help() (GH-5030) (GH-5031)Miss Islington (bot)2017-12-281-1/+1
| | | | | In pydoc.py, the reference to Python' documentation was in http. The link has been updated to use https. (cherry picked from commit e5681b9822c633c77ddfeb94585d58895e0ecff5)
* [3.6] bpo-32416: Refactor tests for the f_lineno setter and add new tests. ↵Serhiy Storchaka2017-12-271-246/+405
| | | | | (GH-4991). (#5016) (cherry picked from commit 53f9135667226f33e049e327db60fb033afbd77a)
* bpo-26133: Fix typos (GH-5010) (#5014)Miss Islington (bot)2017-12-262-2/+19
| | | | | | * Fix typos * Change warning text * Add test (cherry picked from commit a8f4e15f3d33084862ddd3a7d58cd00034e94f16)
* bpo-29084: Exclude C API for OrderedDict from the limited C API. (GH-4900) ↵Miss Islington (bot)2017-12-252-4/+3
| | | | | (#5007) (cherry picked from commit 1b3029ac8370ac76fa9571aef540e10aed0667ff)
* bpo-26133: Clear signals list on interpreter finalizing (GH-5002) (#5003)Miss Islington (bot)2017-12-241-4/+7
| | | (cherry picked from commit 4f146f9ed133b9ad56d4ee7a653396836af34067)
* correct wording (GH-4983) (#4984)Miss Islington (bot)2017-12-231-1/+1
| | | (cherry picked from commit d11e8e0d11c759cd0f96aebb59de914e4d62b8cd)
* bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files ↵Miss Islington (bot)2017-12-225-2/+45
| | | | | | | | | (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)
* bpo-20891: Skip test_embed.test_bpo20891() (#4967) (#4969)Victor Stinner2017-12-211-0/+3
| | | | | | | | 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)
* bpo-26133: Dont unsubscribe signals in UNIX even loop on interpreter ↵Miss Islington (bot)2017-12-212-2/+9
| | | | | shutdown (GH-4956) (#4962) (cherry picked from commit 4a02543cf97e8cbf9293741379f977b85531e4c2)
* bpo-32323: urllib.parse.urlsplit() must not lowercase() IPv6 scope value ↵Miss Islington (bot)2017-12-213-4/+17
| | | | | (GH-4867) (#4959) (cherry picked from commit fbd605151fcf2899b14575f4ddb9ce3c55e684ab)
* Fix trivial typo in pickle.rst (GH-4955) (#4958)Miss Islington (bot)2017-12-211-1/+1
| | | (cherry picked from commit a8d25a16452f7ee8dfc350cd028b3ae172d28ada)
* correct the typos (GH-4950) (#4951)Miss Islington (bot)2017-12-211-2/+2
| | | (cherry picked from commit 83cb778b4a3f856f2243b0f0d36fefb5c44b388f)
* bpo-32306: Clarify c.f.Executor.map() documentation (GH-4947) (#4948)Miss Islington (bot)2017-12-201-13/+21
| | | | The built-in map() function collects function arguments lazily, but concurrent.futures.Executor.map() does so eagerly. (cherry picked from commit a7a751dd7b08a5bb6cb399c1b2a6ca7b24aba51d)
* Improve the F-strings and format specifier documentation (GH-4931) (GH-4933)Miss Islington (bot)2017-12-191-4/+5
| | | | | Mention that the format-specifier mini language in f-strings is the same one used by str.format. (cherry picked from commit f4e21a2a72f76d75a6cc6f74faf910a5f3108482)
* bpo-32377: improve __del__ docs and fix mention about resurrection (GH-4927) ↵Miss Islington (bot)2017-12-192-40/+49
| | | | | | | | (#4929) * Fix GH-32377: improve __del__ docs and fix mention about resurrection * Mention that CPython only calls __del__ once. (cherry picked from commit 4b965930e8625f77cb0e821daf5cc40e85b45f84)
* 3.6.4+Ned Deily2017-12-191-1/+1
|
* Merge tag 'v3.6.4' into 3.6Ned Deily2017-12-193-5/+13
|\