Eric V. Smith [Tue, 27 Feb 2018 01:38:33 +0000 (20:38 -0500)]
bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and vice-versa, (GH-5919)
This restriction will be relaxed at a future date.
Joffrey F [Tue, 27 Feb 2018 00:02:21 +0000 (16:02 -0800)]
bpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)
Tobotimus [Mon, 26 Feb 2018 22:48:14 +0000 (09:48 +1100)]
bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)
Nitish Chandra [Mon, 26 Feb 2018 21:31:20 +0000 (03:01 +0530)]
bpo-32836: Remove obsolete code from symtable pass (GH-5680)
When comprehensions switched to using a nested scope, the old
code for generating a temporary name to hold the accumulation
target became redundant, but was never actually removed.
Patch by Nitish Chandra.
Sergey Fedoseev [Mon, 26 Feb 2018 20:35:41 +0000 (01:35 +0500)]
bpo-32147: Improved perfomance of binascii.unhexlify(). (GH-4586)
animalize [Mon, 26 Feb 2018 18:10:36 +0000 (02:10 +0800)]
bpo-32394: Remove some TCP options on old version Windows. (GH-5523)
Serhiy Storchaka [Mon, 26 Feb 2018 14:50:11 +0000 (16:50 +0200)]
Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
Serhiy Storchaka [Mon, 26 Feb 2018 14:02:22 +0000 (16:02 +0200)]
bpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH-5832)
Terry Jan Reedy [Mon, 26 Feb 2018 02:38:18 +0000 (21:38 -0500)]
Fix 'deecorator' typo in test/test_dataclasses (GH-5899)
Eric V. Smith [Mon, 26 Feb 2018 02:30:17 +0000 (21:30 -0500)]
bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (#5891)
unsafe_hash=False is now the default. It is the same behavior as the old hash=None parameter. unsafe_hash=True will try to add __hash__. If it already exists, TypeError is raised.
Mariatta [Sun, 25 Feb 2018 20:49:02 +0000 (12:49 -0800)]
Update PR template file, don't reference bpo 12345 (GH-5897)
Fixes https://github.com/python/core-workflow/issues/223
Mario Corchero [Sun, 25 Feb 2018 19:11:12 +0000 (19:11 +0000)]
bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)
Cheryl Sabella [Sun, 25 Feb 2018 19:06:01 +0000 (14:06 -0500)]
bpo-25059: Clarify the print separator usage in tutorial (GH-5879)
By default `print` adds spaces between its arguments.
Andrew Svetlov [Sun, 25 Feb 2018 16:32:14 +0000 (19:32 +0300)]
bpo-32622: Native sendfile on windows (#5565)
* Support sendfile on Windows Proactor event loop naively.
Aaron Gallagher [Sun, 25 Feb 2018 15:03:40 +0000 (07:03 -0800)]
Delete a broken threading.local example (#5870)
This code never did anything correct or useful. The class attribute will never be affected, and the condition will never be true.
Christian Heimes [Sun, 25 Feb 2018 11:31:33 +0000 (12:31 +0100)]
bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (#5876)
Signed-off-by: Christian Heimes <christian@python.org>
Christian Heimes [Sun, 25 Feb 2018 09:22:14 +0000 (10:22 +0100)]
bpo-32647: Link ctypes extension with libdl. (#5550)
The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.
Signed-off-by: Christian Heimes <christian@python.org>
Christian Heimes [Sun, 25 Feb 2018 08:49:31 +0000 (09:49 +0100)]
bpo-31809: test secp ECDH curves (#4036)
Add tests to verify connection with secp384r1 ECDH curves.
Cheryl Sabella [Sun, 25 Feb 2018 03:04:40 +0000 (22:04 -0500)]
bpo-17232: Clarify docs for -O and -OO command line options (#5839)
The 'optimization' is for space in the executable file, not for run time.
Christian Heimes [Sat, 24 Feb 2018 21:12:40 +0000 (22:12 +0100)]
bpo-30622: Improve NPN support detection (#5859)
The ssl module now detects missing NPN support in LibreSSL.
Co-Authored-By: Bernard Spil <brnrd@FreeBSD.org>
Signed-off-by: Christian Heimes <christian@python.org>
Christian Heimes [Sat, 24 Feb 2018 20:10:57 +0000 (21:10 +0100)]
bpo-24334: Cleanup SSLSocket (#5252)
* The SSLSocket is no longer implemented on top of SSLObject to
avoid an extra level of indirection.
* Owner and session are now handled in the internal constructor.
* _ssl._SSLSocket now uses the same method names as SSLSocket and
SSLObject.
* Channel binding type check is now handled in C code. Channel binding
is always available.
The patch also changes the signature of SSLObject.__init__(). In my
opinion it's fine. A SSLObject is not a user-constructable object.
SSLContext.wrap_bio() is the only valid factory.
Benjamin Peterson [Sat, 24 Feb 2018 19:59:10 +0000 (11:59 -0800)]
remove vestigal locking from obmalloc (GH-5805)
obmalloc has (empty) macros for locking in the allocator. These aren't needed in CPython; we rely on the GIL.
Ned Deily [Sat, 24 Feb 2018 19:30:44 +0000 (14:30 -0500)]
bpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855)
Serhiy Storchaka [Sat, 24 Feb 2018 16:55:51 +0000 (18:55 +0200)]
bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)
Christian Heimes [Sat, 24 Feb 2018 13:35:56 +0000 (14:35 +0100)]
bpo-32819: Simplify and improve ssl.match_hostname (#5620)
ssl.match_hostname() has been simplified and no longer depends on re and
ipaddress module for wildcard and IP addresses. Error reporting for invalid
wildcards has been improved.
Signed-off-by: Christian Heimes <christian@python.org>
Cheryl Sabella [Sat, 24 Feb 2018 02:35:27 +0000 (21:35 -0500)]
bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)
Adjust tests and user modules to match.
Christian Heimes [Sat, 24 Feb 2018 01:35:08 +0000 (02:35 +0100)]
[bpo-28414] Make all hostnames in SSL module IDN A-labels (GH-5128)
Previously, the ssl module stored international domain names (IDNs)
as U-labels. This is problematic for a number of reasons -- for
example, it made it impossible for users to use a different version
of IDNA than the one built into Python.
After this change, we always convert to A-labels as soon as possible,
and use them for all internal processing. In particular, server_hostname
attribute is now an A-label, and on the server side there's a new
sni_callback that receives the SNI servername as an A-label rather than
a U-label.
Mariatta [Fri, 23 Feb 2018 23:48:21 +0000 (15:48 -0800)]
Update the Pull_request_template.md file (GH-5841)
Changed the template to be inside a comment tag.
Eric V. Smith [Fri, 23 Feb 2018 18:01:31 +0000 (13:01 -0500)]
Exhaustively test dataclass hashing when no hash= value is provided. This is in anticipation of changing how non-default hashing is handled. (#5834)
Mariatta [Fri, 23 Feb 2018 17:51:11 +0000 (09:51 -0800)]
bpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)
`whilst` and `while` are both english words, `whilst` is not as commonly used.
This can be confusing to readers whose primary language is not english.
Steve Dower [Fri, 23 Feb 2018 16:22:10 +0000 (08:22 -0800)]
bpo-32901: Update Tcl and Tk versions to 8.6.8 (GH-5823)
cocoatomo [Fri, 23 Feb 2018 11:47:19 +0000 (20:47 +0900)]
bpo-32087: Doc: Make "deprecated-removed" directive translatable (GH-4473)
INADA Naoki [Fri, 23 Feb 2018 11:02:41 +0000 (20:02 +0900)]
ipaddress: Use str.isascii() instead of frozenset (GH-5811)
Anselm Kruis [Fri, 23 Feb 2018 01:37:38 +0000 (02:37 +0100)]
bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066)
Make test.support.temp_cwd() fork-safe. The context manager test.support.temp_cwd() no longer removes the temporary directory when executing in a process other than the parent it entered from.
If a forked child exits the context manager it won't do the cleanup.
Serhiy Storchaka [Thu, 22 Feb 2018 21:33:30 +0000 (23:33 +0200)]
bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter to compiler. (GH-5006)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Serhiy Storchaka [Thu, 22 Feb 2018 20:26:23 +0000 (22:26 +0200)]
bpo-32838: Fix Python versions in the table of magic numbers. (#5658)
Paul Ganssle [Thu, 22 Feb 2018 20:15:32 +0000 (15:15 -0500)]
Test that new_timezone can return the UTC singleton (gh-5318)
Steve Dower [Thu, 22 Feb 2018 18:39:26 +0000 (10:39 -0800)]
bpo-32457: Improves handling of denormalized executable path when launching Python (GH-5756)
Steve Dower [Thu, 22 Feb 2018 18:39:10 +0000 (10:39 -0800)]
bpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage now correctly convert from bytes. (GH-5761)
Terry Jan Reedy [Thu, 22 Feb 2018 06:19:02 +0000 (01:19 -0500)]
bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)
dump is similar to print but less flexible. lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing, so the class settings are not needed. get_last_open_bracket_pos is never called.
Eddie Elizondo [Thu, 22 Feb 2018 04:55:18 +0000 (20:55 -0800)]
closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)
Cheryl Sabella [Thu, 22 Feb 2018 03:48:36 +0000 (22:48 -0500)]
bpo-32874: IDLE: add tests for pyparse (GH-5755)
There are no code changes other than comments and docstrings.
Paul Price [Wed, 21 Feb 2018 06:00:01 +0000 (01:00 -0500)]
bpo-32889: update valgrind suppressions (GH-5779)
Py_ADDRESS_IN_RANGE was renamed address_in_range in 3.6
(commit
3924f93794fd740c547b44884f73303196475cd5).
Benjamin Peterson [Wed, 21 Feb 2018 05:55:01 +0000 (21:55 -0800)]
bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)
It's bad form to pin to an old version of TLS. ssl.SSLContext has the right
protocol default, so let's not pass anyway.
Harshul jain [Wed, 21 Feb 2018 04:30:01 +0000 (10:00 +0530)]
bpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)
Eric Snow [Tue, 20 Feb 2018 23:30:17 +0000 (16:30 -0700)]
bpo-32604: Swap threads only if the interpreter is different. (gh-5778)
The CPython runtime assumes that there is a one-to-one relationship (for a given interpreter) between PyThreadState and OS threads. Sending and receiving on a channel in the same interpreter was causing crashes because of this (specifically due to a check in PyThreadState_Swap()). The solution is to not switch threads if the interpreter is the same.
Zackery Spytz [Tue, 20 Feb 2018 21:06:11 +0000 (14:06 -0700)]
bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is not found (#5240)
Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
Zackery Spytz [Tue, 20 Feb 2018 17:24:29 +0000 (10:24 -0700)]
bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)
Dropped the part that says: "For objects that do not provide sequence protocol".
Alexey Izbyshev [Tue, 20 Feb 2018 07:25:46 +0000 (10:25 +0300)]
closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)
os.dup2() tests for dup3() system call availability at runtime,
but doesn't remember the result across calls, repeating
the test on each call with inheritable=False.
Since the caller of os.dup2() is expected to hold the GIL,
fix this by making the variable holding the test result static.
Steve Dower [Tue, 20 Feb 2018 01:25:24 +0000 (17:25 -0800)]
bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)
Zachary Ware [Mon, 19 Feb 2018 20:02:38 +0000 (14:02 -0600)]
bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)
pmp-p [Mon, 19 Feb 2018 03:45:11 +0000 (04:45 +0100)]
bpo-32682: Improve libz version parsing in test_zilb (GH-5347)
chason [Sun, 18 Feb 2018 23:36:32 +0000 (08:36 +0900)]
bpo-31972: Improve docstrings for pathlib classes (#5310)
Éric Araujo [Sun, 18 Feb 2018 23:14:54 +0000 (18:14 -0500)]
Improve error message for "setup.py upload" without dist files (#21060)
Terry Jan Reedy [Sun, 18 Feb 2018 21:46:49 +0000 (16:46 -0500)]
bpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)
Alexey Izbyshev [Sun, 18 Feb 2018 17:57:24 +0000 (20:57 +0300)]
bpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (#5739)
This function expects the destination buffer size to be given
in wide characters, not bytes.
TROUVERIE Joachim [Sun, 18 Feb 2018 16:52:36 +0000 (17:52 +0100)]
Correct venv doc (fix #32540) (#5736)
Zachary Ware [Sun, 18 Feb 2018 16:19:37 +0000 (10:19 -0600)]
Clean up Travis config (GH-5727)
Ivan Levkivskyi [Sun, 18 Feb 2018 12:41:58 +0000 (12:41 +0000)]
bpo-31333: Re-implement ABCMeta in C (#5273)
This adds C versions of methods used by ABCMeta that
improve performance of various ABC operations.
Steve Dower [Sun, 18 Feb 2018 03:58:57 +0000 (19:58 -0800)]
Add missing backslashes to get_externals.bat (GH-5731)
Steve Dower [Sun, 18 Feb 2018 02:59:03 +0000 (18:59 -0800)]
Improves the ability to build in CI (GH-5728)
Zachary Ware [Sat, 17 Feb 2018 23:58:57 +0000 (17:58 -0600)]
bpo-30638: Add clinic to `make regen-all` (GH-5671)
Also, use PYTHON_FOR_REGEN for clinic and blake2s_impl.c rather than PYTHON_FOR_BUILD, and update .travis.yml to make use of the change.
Andrew Svetlov [Sat, 17 Feb 2018 17:44:35 +0000 (19:44 +0200)]
Fix a typo in asyncio docs (#5721)
Kyle Altendorf [Sat, 17 Feb 2018 06:32:37 +0000 (22:32 -0800)]
bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)
Gerrit Holl [Sat, 17 Feb 2018 03:48:57 +0000 (03:48 +0000)]
DOC: fix documentation for copyright and credits (GH-5706)
Adapt documentation for `copyright` and `credits` to reality. Previously, the documentation implied that all each of `copyright`,
`credits`, and `license`, would print a message to call the object in order to see the full text. In reality, only `license` exhibits this
behaviour, and `copyright` and `credit` print their full text either when printed, displayed, or called.
Zackery Spytz [Sat, 17 Feb 2018 03:39:51 +0000 (20:39 -0700)]
bpo-32860: Fix a missing asterisk in the documentation for glob.iglob() (GH-5712)
Eric Snow [Sat, 17 Feb 2018 01:53:40 +0000 (18:53 -0700)]
bpo-32604: Clean up created subinterpreters before runtime finalization. (gh-5709)
Yury Selivanov [Fri, 16 Feb 2018 16:47:54 +0000 (11:47 -0500)]
bpo-32436: Add docs for contextvars (#5685)
xpvpc [Fri, 16 Feb 2018 16:46:39 +0000 (17:46 +0100)]
Correct the code example in Python 3.7's What's New (GH-5696)
There was an extra dash in the example for re.sub().
Barry Warsaw [Fri, 16 Feb 2018 15:45:39 +0000 (10:45 -0500)]
Update and sync importlib.resources documentation (#5694)
ngie-eign [Wed, 14 Feb 2018 19:54:28 +0000 (11:54 -0800)]
Update comment in posixmodule.c (GH-5681)
A closing parentheses was missing.
Signed-off-by: Ngie Cooper <yaneurabeya@gmail.com>
Bar Harel [Wed, 14 Feb 2018 09:18:11 +0000 (11:18 +0200)]
bpo-32841: Fix cancellation in awaiting asyncio.Condition (#5665)
Eitan Adler [Wed, 14 Feb 2018 02:44:01 +0000 (18:44 -0800)]
Fix installation instructions for *nix (GH-5605)
Remove pkg_add -r python from FreeBSD installation section.
Moved to OpenBSD.
Benjamin Peterson [Wed, 14 Feb 2018 02:11:34 +0000 (18:11 -0800)]
remove mercurial dot files (GH-5558)
Zackery Spytz [Wed, 14 Feb 2018 00:08:54 +0000 (17:08 -0700)]
bpo-27846: Delete incorrect note in base64 docs (GH-5666)
This note incorrectly stated that "Base64 has an expansion factor of 6
to 4" (it is actually 4 to 3). It was decided to remove the note.
INADA Naoki [Tue, 13 Feb 2018 14:41:19 +0000 (23:41 +0900)]
bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
Xiang Zhang [Tue, 13 Feb 2018 10:33:32 +0000 (18:33 +0800)]
bpo-29803: remove a redandunt op and fix a comment in unicodeobject.c (#660)
Oren Milman [Tue, 13 Feb 2018 10:28:33 +0000 (12:28 +0200)]
bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)
Nick Coghlan [Tue, 13 Feb 2018 08:10:58 +0000 (18:10 +1000)]
bpo-30579: Docs for dynamic traceback creation (GH-5653)
Segev Finer [Tue, 13 Feb 2018 06:29:54 +0000 (08:29 +0200)]
bpo-32370: Use the correct encoding for ipconfig output in the uuid module. (GH-5608)
Serhiy Storchaka [Tue, 13 Feb 2018 06:27:33 +0000 (08:27 +0200)]
bpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH-5636)
Terry Jan Reedy [Mon, 12 Feb 2018 22:42:41 +0000 (17:42 -0500)]
bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)
Using the system and place-dependent default encoding for open()
is a bad idea for IDLE's system and location-independent files.
Terry Jan Reedy [Mon, 12 Feb 2018 19:58:26 +0000 (14:58 -0500)]
bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)
GUI test test_file_buttons() only looks at initial ascii-only lines,
but failed on systems where open() defaults to 'ascii' because
readline() internally reads and decodes far enough ahead to encounter
a non-ascii character in CREDITS.txt.
Коренберг Марк [Mon, 12 Feb 2018 19:47:42 +0000 (00:47 +0500)]
bpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (#5449)
SSE4 [Mon, 12 Feb 2018 17:10:35 +0000 (00:10 +0700)]
bpo-29248: Fix os.readlink() on Windows (GH-5577)
The PrintNameOffset field of the reparse data buffer
was treated as a number of characters instead of bytes.
Zachary Ware [Sun, 11 Feb 2018 21:35:09 +0000 (15:35 -0600)]
Fix AppVeyor doc short-circuit (GH-5632)
Pablo Galindo [Sun, 11 Feb 2018 20:58:23 +0000 (20:58 +0000)]
bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622)
Describe *text* as an alias for *universal_newlines* in more places that people are likely to be referred to.
Zachary Ware [Sun, 11 Feb 2018 17:19:51 +0000 (11:19 -0600)]
Add short-circuit for doc changes to AppVeyor (GH-5519)
Zachary Ware [Sun, 11 Feb 2018 16:43:48 +0000 (10:43 -0600)]
bpo-32604: Make _xxsubinterpreters build on Windows (GH-5516)
This is not the ideal solution; this means that a test module is now
always included in the main python3x.dll. However, we're already
including xxsubtype, so why not?
Raymond Hettinger [Sun, 11 Feb 2018 16:00:11 +0000 (08:00 -0800)]
Code beautification using f-strings (#5618)
Cheryl Sabella [Sun, 11 Feb 2018 13:10:42 +0000 (08:10 -0500)]
bpo-11015: Update test.support documentation (GH-5610)
Raymond Hettinger [Sun, 11 Feb 2018 08:30:31 +0000 (00:30 -0800)]
bpo-32792: Preserve mapping order in ChainMap() (GH-5586)
sblondon [Sat, 10 Feb 2018 22:39:43 +0000 (23:39 +0100)]
bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609)
The new link is given in a red box on the old page.
INADA Naoki [Sat, 10 Feb 2018 11:35:17 +0000 (20:35 +0900)]
travis: Use -O3 option (GH-5599)
We don't use debugger on Travis.
Zhou Fangyi [Sat, 10 Feb 2018 06:59:29 +0000 (06:59 +0000)]
bpo-30688: Import unicodedata only when needed. (GH-5606)
Importing unicodedata in sre_parse leads to failure in compilation.
unicodedata is unused during compilation, and is not compiled when this
file is imported. The error occurs when generating posix variables,
pprint is required. The dependency chain goes on like this:
sysconfig -> pprint -> re -> sre_compile -> sre_parse (this file)
This commits fixes compilation issues introduced by
2272cec13b53c405d86c45d404f035f201c0baef.
(Issue 30688, GH-5588)
Serhiy Storchaka [Fri, 9 Feb 2018 22:08:17 +0000 (00:08 +0200)]
bpo-30688: Support \N{name} escapes in re patterns. (GH-5588)
Co-authored-by: Jonathan Eunice <jonathan.eunice@gmail.com>
Serhiy Storchaka [Fri, 9 Feb 2018 18:00:49 +0000 (20:00 +0200)]
bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601)
Co-authored-by: Jake Davis <jcdavis@awedge.net>
Serhiy Storchaka [Fri, 9 Feb 2018 15:31:26 +0000 (17:31 +0200)]
Fix some warnings produced by different compilers. (#5593)
Serhiy Storchaka [Fri, 9 Feb 2018 11:31:19 +0000 (13:31 +0200)]
Make formatting of some return codes conforming to the general style. (#5587)
Serhiy Storchaka [Fri, 9 Feb 2018 11:30:19 +0000 (13:30 +0200)]
bpo-32775: Fix regular expression warnings in fnmatch. (#5583)
fnmatch.translate() no longer produces patterns which contain set
operations.
Sets starting with '[' or containing '--', '&&', '~~' or '||' will
be interpreted differently in regular expressions in future versions.
Currently they emit warnings. fnmatch.translate() now avoids producing
patterns containing such sets by accident.