summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes (#5663)Christian Heimes2018-02-279-74/+131
| | | | | | | | | | | | | | | | | | * bpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes Misc fixes and workarounds for compatibility with OpenSSL 1.1.1-pre1 and TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by default. Some test cases only apply to TLS 1.2. Other tests currently fail because the threaded or async test servers stop after failure. I'm going to address these issues when OpenSSL 1.1.1 reaches beta. OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS 1.3. The feature is enabled by default for maximum compatibility with broken middle boxes. Users should be able to disable the hack and CPython's test suite needs it to verify default options. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen ↵Eric V. Smith2018-02-273-29/+77
| | | | | classes and vice-versa, (GH-5919) This restriction will be relaxed at a future date.
* bpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)Joffrey F2018-02-273-1/+11
|
* bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints ↵Tobotimus2018-02-263-4/+102
| | | | (GH-4745)
* bpo-32836: Remove obsolete code from symtable pass (GH-5680)Nitish Chandra2018-02-263-26/+1
| | | | | | | 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.
* bpo-32147: Improved perfomance of binascii.unhexlify(). (GH-4586)Sergey Fedoseev2018-02-264-33/+13
|
* bpo-32394: Remove some TCP options on old version Windows. (GH-5523)animalize2018-02-264-0/+101
|
* Revert unneccessary changes made in bpo-30296 and apply other improvements. ↵Serhiy Storchaka2018-02-264-5/+6
| | | | (GH-2624)
* bpo-32922: dbm.open() now encodes filename with the filesystem encoding. ↵Serhiy Storchaka2018-02-268-19/+134
| | | | (GH-5832)
* Fix 'deecorator' typo in test/test_dataclasses (GH-5899)Terry Jan Reedy2018-02-261-1/+1
|
* bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean ↵Eric V. Smith2018-02-263-195/+235
| | | | | 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.
* Update PR template file, don't reference bpo 12345 (GH-5897)Mariatta2018-02-251-1/+0
| | | Fixes https://github.com/python/core-workflow/issues/223
* bpo-31454: Include information about "import X as Y" in Modules tutorial ↵Mario Corchero2018-02-251-0/+19
| | | | | | (GH-4041)
* bpo-25059: Clarify the print separator usage in tutorial (GH-5879)Cheryl Sabella2018-02-251-1/+1
| | | By default `print` adds spaces between its arguments.
* bpo-32622: Native sendfile on windows (#5565)Andrew Svetlov2018-02-257-93/+431
| | | * Support sendfile on Windows Proactor event loop naively.
* Delete a broken threading.local example (#5870)Aaron Gallagher2018-02-251-5/+1
| | | This code never did anything correct or useful. The class attribute will never be affected, and the condition will never be true.
* bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (#5876)Christian Heimes2018-02-252-25/+30
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32647: Link ctypes extension with libdl. (#5550)Christian Heimes2018-02-252-0/+6
| | | | | | 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>
* bpo-31809: test secp ECDH curves (#4036)Christian Heimes2018-02-252-0/+53
| | | Add tests to verify connection with secp384r1 ECDH curves.
* bpo-17232: Clarify docs for -O and -OO command line options (#5839)Cheryl Sabella2018-02-254-6/+23
| | | The 'optimization' is for space in the executable file, not for run time.
* bpo-30622: Improve NPN support detection (#5859)Christian Heimes2018-02-244-11/+42
| | | | | | 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>
* bpo-24334: Cleanup SSLSocket (#5252)Christian Heimes2018-02-245-117/+183
| | | | | | | | | | | | | * 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.
* remove vestigal locking from obmalloc (GH-5805)Benjamin Peterson2018-02-241-39/+0
| | | obmalloc has (empty) macros for locking in the allocator. These aren't needed in CPython; we rely on the GIL.
* bpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855)Ned Deily2018-02-241-1/+1
|
* bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)Serhiy Storchaka2018-02-243-0/+8
|
* bpo-32819: Simplify and improve ssl.match_hostname (#5620)Christian Heimes2018-02-243-57/+117
| | | | | | | 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>
* bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)Cheryl Sabella2018-02-245-102/+103
| | | Adjust tests and user modules to match.
* [bpo-28414] Make all hostnames in SSL module IDN A-labels (GH-5128)Christian Heimes2018-02-247-111/+163
| | | | | | | | | | | | 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.
* Update the Pull_request_template.md file (GH-5841)Mariatta2018-02-231-2/+19
| | | Changed the template to be inside a comment tag.
* Exhaustively test dataclass hashing when no hash= value is provided. This is ↵Eric V. Smith2018-02-231-0/+73
| | | | in anticipation of changing how non-default hashing is handled. (#5834)
* bpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)Mariatta2018-02-231-1/+1
| | | | `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.
* bpo-32901: Update Tcl and Tk versions to 8.6.8 (GH-5823)Steve Dower2018-02-233-4/+5
|
* bpo-32087: Doc: Make "deprecated-removed" directive translatable (GH-4473)cocoatomo2018-02-232-5/+8
|
* ipaddress: Use str.isascii() instead of frozenset (GH-5811)INADA Naoki2018-02-231-3/+2
|
* bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066)Anselm Kruis2018-02-233-1/+35
| | | | 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.
* bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter ↵Serhiy Storchaka2018-02-2219-4383/+4497
| | | | | | | | | to compiler. (GH-5006) Co-authored-by: Mark Shannon <mark@hotpy.org> Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-32838: Fix Python versions in the table of magic numbers. (#5658)Serhiy Storchaka2018-02-222-149/+152
|
* Test that new_timezone can return the UTC singleton (gh-5318)Paul Ganssle2018-02-222-0/+46
|
* bpo-32457: Improves handling of denormalized executable path when launching ↵Steve Dower2018-02-223-54/+54
| | | | Python (GH-5756)
* bpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage ↵Steve Dower2018-02-224-58/+110
| | | | now correctly convert from bytes. (GH-5761)
* bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)Terry Jan Reedy2018-02-223-50/+8
| | | 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.
* closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)Eddie Elizondo2018-02-225-3/+6
|
* bpo-32874: IDLE: add tests for pyparse (GH-5755)Cheryl Sabella2018-02-223-66/+619
| | | | There are no code changes other than comments and docstrings.
* bpo-32889: update valgrind suppressions (GH-5779)Paul Price2018-02-212-5/+7
| | | | | Py_ADDRESS_IN_RANGE was renamed address_in_range in 3.6 (commit 3924f93794fd740c547b44884f73303196475cd5).
* bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)Benjamin Peterson2018-02-211-2/+2
| | | | 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.
* bpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)Harshul jain2018-02-211-22/+17
|
* bpo-32604: Swap threads only if the interpreter is different. (gh-5778)Eric Snow2018-02-203-14/+77
| | | 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.
* bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND ↵Zackery Spytz2018-02-204-0/+12
| | | | | | | chunk is not found (#5240) Initialize self._ssnd_chunk so that aifc.Error is raised as intended, not AttributeError.
* bpo-32500: Correct the documentation for PySequence_Size() and ↵Zackery Spytz2018-02-201-3/+2
| | | | | PySequence_Length() (GH-5767) Dropped the part that says: "For objects that do not provide sequence protocol".
* closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)Alexey Izbyshev2018-02-202-1/+3
| | | | | | | | 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.