summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-29248: Fix os.readlink() on Windows (GH-5577)Miss Islington (bot)2018-02-121-0/+3
| | | | | | | | The PrintNameOffset field of the reparse data buffer was treated as a number of characters instead of bytes. (cherry picked from commit 3c34aad4e7a95913ec7db8e5e948a8fc69047bf7) Co-authored-by: SSE4 <tomskside@gmail.com>
* bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609) GH-5612)Miss Islington (bot)2018-02-111-0/+1
| | | | | | The new link is given in a red box on the old page. (cherry picked from commit 8d1f2f40389c476d9240ec87a33da0373597c6af) Co-authored-by: sblondon <sblondon@users.noreply.github.com>
* [3.6] bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) (GH-5603)Serhiy Storchaka2018-02-092-0/+3
| | | | | Co-authored-by: Jake Davis <jcdavis@awedge.net>. (cherry picked from commit 2411292ba8155327125d8a1da8a4c9fa003d5909)
* bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560) ↵Miss Islington (bot)2018-02-061-0/+3
| | | | | | | | | | | | (GH-5563) Fix a rare but potential pre-exec child process deadlock in subprocess on POSIX systems when marking file descriptors inheritable on exec in the child process. This bug appears to have been introduced in 3.4 with the inheritable file descriptors support. This also changes Python/fileutils.c `set_inheritable` to use the "slow" two `fcntl` syscall path instead of the "fast" single `ioctl` syscall path when asked to be async signal safe (by way of being asked not to raise exceptions). `ioctl` is not a POSIX async-signal-safe approved function. ref: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html (cherry picked from commit c1e46e94de38a92f98736af9a42d89c3975a9919) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
* [3.6] bpo-8722: Document __getattr__ behavior with AttributeError in ↵Miss Islington (bot)2018-02-051-0/+2
| | | | | | | | | | property (GH-5542) When `__getattr__` is implemented, attribute lookup will always fall back to that, even if the initial failure comes from `__getattribute__` or a descriptor's `__get__` method (including property methods). (cherry picked from commit d1f318105b8781b01f3507d5cb0fd841b977d5f2) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32765: Update configdialog General tab create page docstring (GH-5529) ↵Miss Islington (bot)2018-02-051-0/+1
| | | | | | | | (GH-5538) Add new entries to the widget list. (cherry picked from commit 845d86485e35a26478aedb3dc127d632fdc65759) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504)Barry Warsaw2018-02-032-0/+3
| | | | | | | | | | * Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages. * Make sure ``__spec__.origin` matches ``__file__`` for namespace packages. https://bugs.python.org/issue32303 https://bugs.python.org/issue32305. (cherry picked from commit bbbcf8693b876daae4469765aa62f8924f39a7d2) Co-authored-by: Barry Warsaw <barry@python.org>
* [3.6] bpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466) ↵Bar Harel2018-02-022-0/+3
| | | | | | | (#5502) (cherry picked from commit d41e9e0952393e64f2f9756d778553d704191086)
* [3.6] bpo-32614: Modify re examples to use a raw string to prevent wa… ↵Terry Jan Reedy2018-02-021-0/+3
| | | | | | | | | …rning (GH-5265) (GH-5500) Modify RE examples in documentation to use raw strings to prevent DeprecationWarning. Add text to REGEX HOWTO to highlight the deprecation. Approved by Serhiy Storchaka. (cherry picked from commit 66771422d0541289d0b1287bc3c28e8b5609f6b4)
* bpo-32137: The repr of deeply nested dict now raises a RecursionError ↵Miss Islington (bot)2018-02-011-0/+2
| | | | | | | | (GH-4570) (GH-4689) instead of crashing due to a stack overflow. This perhaps will fix similar problems in other extension types. (cherry picked from commit 1fb72d2ad243c965d4432b4e93884064001a2607)
* bpo-32727: smtplib's SMTP.send_message behaves differently with from_addr ↵Miss Islington (bot)2018-01-311-0/+1
| | | | | | | | and to_addrs (GH-5451) (#5455) Do not pass the name field in the 'from' address in the SMTP envelope. (cherry picked from commit 8d83e4ba7823827bcbc119db887004d5c3a63dc6) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* [3.6] bpo-32583: Fix possible crashing in builtin Unicode decoders (GH-5325) ↵Xiang Zhang2018-01-311-0/+2
| | | | | | | (#5459) When using customized decode error handlers, it is possible for builtin decoders to write out-of-bounds and then crash.. (cherry picked from commit 2c7fd46e11333ef5e5cce34212f7d087694f3658)
* closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441) ↵Miss Islington (bot)2018-01-301-0/+1
| | | | | | | (GH-5442) (cherry picked from commit 95441809ef77a8df5e14601ade6c054ef7114c02) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.6] Revert "bpo-32690: Preserve order of locals() (GH-5379) (#5390)"Nick Coghlan2018-01-301-2/+0
| | | | | This reverts commit 9105879bfd7133ecbac67f3e9c0bacf6e477de5a in order to keep the behaviour of locals() consistent between 3.6.4 and 3.6.5+.
* bpo-27931: Fix email address header parsing error (GH-5329) (GH-5431)Miss Islington (bot)2018-01-291-0/+1
| | | | | | Correctly handle addresses whose username is an empty quoted string. (cherry picked from commit aa218d1649690d1c1ba86a9972f7fae646bf1a8f) Co-authored-by: jayyyin <jayyin11043@hotmail.com>
* bpo-32650: Add native coroutine support to bdb when stepping over line ↵Miss Islington (bot)2018-01-291-0/+2
| | | | | (GH-5400) (#5402) (cherry picked from commit 46877024423e98d1b872bf308dacacd583327207)
* bpo-32690: Preserve order of locals() (GH-5379) (#5390)Miss Islington (bot)2018-01-281-0/+2
| | | (cherry picked from commit a4d00012565d716db6e6abe1b8f33eaaa4de416e)
* [3.6] bpo-32228: Reset raw_pos after unwinding the raw stream (GH-4858) (#5389)Antoine Pitrou2018-01-281-0/+1
| | | | | Ensure that ``truncate()`` preserves the file position (as reported by ``tell()``) after writes longer than the buffer size.. (cherry picked from commit 059f58ce938d9c3f0286412a4efb1b9131339421)
* bpo-32685: Improve suggestion for print statement (GH-5380)Miss Islington (bot)2018-01-281-0/+3
| | | | | | | | Better account for single-line compound statements and semi-colon separated statements when suggesting Py3 replacements for Py2 print statements. Initial patch by Nitish Chandra. (cherry picked from commit 43c0f1ac5ed8bc9c3bd048d2ce4de4c98a83de99)
* [3.6] bpo-32521: nis libnsl (GH-5190) (#5352)Christian Heimes2018-01-271-0/+1
| | | | | | | | * bpo-32521: nis libnsl (#5190) The nismodule is now compatible with new libnsl and headers location Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 29a7df78277447cf6b898dfa0b1b42f8da7abc0c)
* [3.6] bpo-32304: Fix distutils upload for tar files ending with b'\r' ↵Bo Bayles2018-01-271-0/+2
| | | | | (GH-5264) (GH-5330) Patch by Bo Bayles.
* bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile ↵Xiang Zhang2018-01-241-0/+2
| | | | | (GH-4056) (#5298) (cherry picked from commit 131fd7f96c619bc7eaea956e45c6337175f4b27f)
* [3.6] bpo-32502: Discard 64-bit (and other invalid) hardware addresses ↵Bo Bayles2018-01-241-0/+2
| | | | | | | (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-241-0/+2
| | | | | | | | (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)
* [3.6] bpo-32028: Fix suggestions for indented print statements (GH-5249)Miss Islington (bot)2018-01-201-0/+3
| | | | | | | | 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)
* [3.6] bpo-32588 Move _distutils_findvs into its own module (GH-5227) (#5228)Steve Dower2018-01-181-0/+1
|
* bpo-26163: Frozenset hash improvement (GH-5194) (#5198)Miss Islington (bot)2018-01-161-0/+2
| | | (cherry picked from commit b44c5169f64178d2ff2914187b315549e7ab0cb6)
* [3.6] bpo-32555: Fix locale encodings (#5193)Victor Stinner2018-01-151-0/+3
| | | | | | | | | | | | | | | | | 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-151-0/+9
| | | | | | | | | | * 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)
* [3.6] bpo-32521: nis libtirpc (GH-5137) (#5165)Miss Islington (bot)2018-01-121-0/+2
| | | | | | | 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-121-0/+1
| | | (cherry picked from commit ae12f5d4c98f2095c2aadd58981453e955044697)
* bpo-31802: Fix importing native path module before importing os. (GH-4017) ↵Miss Islington (bot)2018-01-071-0/+2
| | | | | (#5129) (cherry picked from commit 3460198f6ba40a839f105c381f07179aba1e8c61)
* bpo-29084: Exclude C API for OrderedDict from the limited C API. (GH-4900) ↵Miss Islington (bot)2017-12-251-0/+2
| | | | | (#5007) (cherry picked from commit 1b3029ac8370ac76fa9571aef540e10aed0667ff)
* bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files ↵Miss Islington (bot)2017-12-221-0/+3
| | | | | | | | | (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-26133: Dont unsubscribe signals in UNIX even loop on interpreter ↵Miss Islington (bot)2017-12-211-0/+1
| | | | | 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-211-0/+2
| | | | | (GH-4867) (#4959) (cherry picked from commit fbd605151fcf2899b14575f4ddb9ce3c55e684ab)
* Merge tag 'v3.6.4' into 3.6Ned Deily2017-12-191-0/+8
|\
| * Update NEWS for 3.6.4 finalNed Deily2017-12-191-0/+8
| |
* | bpo-27456: Ensure TCP_NODELAY is set on linux (#4231) (#4898)Yury Selivanov2017-12-161-0/+1
| | | | | | (cherry picked from commit e796b2fe26f220107ac50667de6cc86c82b465e3)
* | [3.6] bpo-30416: Protect the optimizer during constant folding. (#4865)Serhiy Storchaka2017-12-151-0/+3
| | | | | | | | | | | | | | It no longer spends much time doing complex calculations and no longer consumes much memory for creating large constants that will be dropped later. This fixes also bpo-21074.
* | [3.6] bpo-27169: The __debug__ constant is now optimized out at compile ↵Serhiy Storchaka2017-12-151-0/+2
| | | | | | | | | | | | time. (GH-4880) (#4882) This fixes also bpo-22091.. (cherry picked from commit 3325a6780c81f1ea51190370b5454879c4862a37)
* | bpo-32329: Fix sys.flags.hash_randomization (#4875)Victor Stinner2017-12-151-0/+2
| | | | | | | | sys.flags.hash_randomization is now properly set to 0 when hash randomization is turned off by PYTHONHASHSEED=0.
* | bpo-32277: Fix exception raised from chmod(..., follow_symlinks=False) ↵Miss Islington (bot)2017-12-141-0/+3
| | | | | | | | | | (GH-4797) (#4869) (cherry picked from commit 233ef249cc5c18d796fb581747179c5e062b4083)
* | bpo-32302: Fix distutils bdist_wininst for CRT v142 (GH-4851) (#4861)Miss Islington (bot)2017-12-141-0/+2
| | | | | | | | CRT v142 is binary compatible with CRT v140. (cherry picked from commit 9e7c136ad8bc8e8eec50c2a8ae5ff02752f695a2)
* | bpo-32255: Always quote a single empty field when write into a CSV file. ↵Miss Islington (bot)2017-12-122-0/+4
| | | | | | | | | | | | (GH-4769) (#4810) This allows to distinguish an empty row from a row consisting of a single empty field. (cherry picked from commit 2001900b0c02a397d8cf1d776a7cc7fcb2a463e3)
* | bpo-32252: Fix faulthandler_suppress_crash_report() (GH-4794) (#4795)Miss Islington (bot)2017-12-111-0/+2
| | | | | | | | | | Fix faulthandler_suppress_crash_report() used to prevent core dump files when testing crashes. getrlimit() returns zero on success. (cherry picked from commit 48d4dd974f0c8d47c54990eedd322b96b19c60ec)
* | bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link ↵Miss Islington (bot)2017-12-071-0/+1
|/ | | | | list' (GH-4696) (#4747) (cherry picked from commit 961dbe0548e26394b7716d41423c61b1e2e58ef7)
* Update NEWS and pydoc topics.Ned Deily2017-12-05111-265/+1142
|
* Tidy NEWS entry.Ned Deily2017-12-051-10/+2
|
* [3.6] bpo-31380: Skip test_httpservers test_undecodable_file on macOS. ↵Miss Islington (bot)2017-12-051-0/+1
| | | | | | (GH-4720) (#4721) The undecodable file name cannot be created on macOS APFS file systems. (cherry picked from commit b3edde8dd44c878e9f039a2165d00ff075157d4b)