]> granicus.if.org Git - python/log
python
6 years agobpo-31355: Travis-CI: re-enable macOS job (#5858)
Antoine Pitrou [Tue, 27 Feb 2018 20:40:37 +0000 (21:40 +0100)]
bpo-31355: Travis-CI: re-enable macOS job (#5858)

The long build queues that plagued macOS builds on Travis seem to be
a thing of the past now.

6 years agobpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814)
Paul Ganssle [Tue, 27 Feb 2018 19:41:30 +0000 (14:41 -0500)]
bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814)

* Add What's New entry for addition of datetime.timezone to the C API

Closes bpo-10381

* Add what's new entry for date and datetime optimizations

Closes bpo-32403

6 years agobpo-31453: Add setter for min/max protocol version (#5259)
Christian Heimes [Tue, 27 Feb 2018 10:54:43 +0000 (11:54 +0100)]
bpo-31453: Add setter for min/max protocol version (#5259)

OpenSSL 1.1 has introduced a new API to set the minimum and maximum
supported protocol version. The API is easier to use than the old
OP_NO_TLS1 option flags, too.

Since OpenSSL has no call to set minimum version to highest supported,
the implementation emulate maximum_version = MINIMUM_SUPPORTED and
minimum_version = MAXIMUM_SUPPORTED by figuring out the minumum and
maximum supported version at compile time.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-32951: Disable SSLSocket/SSLObject constructor (#5864)
Christian Heimes [Tue, 27 Feb 2018 09:17:30 +0000 (10:17 +0100)]
bpo-32951: Disable SSLSocket/SSLObject constructor (#5864)

Direct instantiation of SSLSocket and SSLObject objects is now prohibited.
The constructors were never documented, tested, or designed as public
constructors. The SSLSocket constructor had limitations. For example it was
not possible to enabled hostname verification except was
ssl_version=PROTOCOL_TLS_CLIENT with cert_reqs=CERT_REQUIRED.

SSLContext.wrap_socket() and SSLContext.wrap_bio are the recommended API
to construct SSLSocket and SSLObject instances. ssl.wrap_socket() is
also deprecated.

The only test case for direct instantiation was added a couple of days
ago for IDNA testing.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-28124: deprecate ssl.wrap_socket() (#5888)
Christian Heimes [Tue, 27 Feb 2018 08:21:34 +0000 (09:21 +0100)]
bpo-28124: deprecate ssl.wrap_socket() (#5888)

The ssl module function ssl.wrap_socket() has been de-emphasized
and deprecated in favor of the more secure and efficient
SSLContext.wrap_socket() method.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes (#5663)
Christian Heimes [Tue, 27 Feb 2018 07:55:39 +0000 (08:55 +0100)]
bpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes (#5663)

* 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>
6 years agobpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and...
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.

6 years agobpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)
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)

6 years agobpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)
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)

6 years agobpo-32836: Remove obsolete code from symtable pass (GH-5680)
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.

6 years agobpo-32147: Improved perfomance of binascii.unhexlify(). (GH-4586)
Sergey Fedoseev [Mon, 26 Feb 2018 20:35:41 +0000 (01:35 +0500)]
bpo-32147: Improved perfomance of binascii.unhexlify(). (GH-4586)

6 years agobpo-32394: Remove some TCP options on old version Windows. (GH-5523)
animalize [Mon, 26 Feb 2018 18:10:36 +0000 (02:10 +0800)]
bpo-32394: Remove some TCP options on old version Windows. (GH-5523)

6 years agoRevert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
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)

6 years agobpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH-5832)
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)

6 years agoFix 'deecorator' typo in test/test_dataclasses (GH-5899)
Terry Jan Reedy [Mon, 26 Feb 2018 02:38:18 +0000 (21:38 -0500)]
Fix 'deecorator' typo in test/test_dataclasses (GH-5899)

6 years agobpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_has...
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.

6 years agoUpdate PR template file, don't reference bpo 12345 (GH-5897)
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

6 years agobpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)
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)

6 years agobpo-25059: Clarify the print separator usage in tutorial (GH-5879)
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.

6 years agobpo-32622: Native sendfile on windows (#5565)
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.

6 years agoDelete a broken threading.local example (#5870)
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.

6 years agobpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (#5876)
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>
6 years agobpo-32647: Link ctypes extension with libdl. (#5550)
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>
6 years agobpo-31809: test secp ECDH curves (#4036)
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.

6 years agobpo-17232: Clarify docs for -O and -OO command line options (#5839)
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.

6 years agobpo-30622: Improve NPN support detection (#5859)
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>
6 years agobpo-24334: Cleanup SSLSocket (#5252)
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.

6 years agoremove vestigal locking from obmalloc (GH-5805)
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.

6 years agobpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855)
Ned Deily [Sat, 24 Feb 2018 19:30:44 +0000 (14:30 -0500)]
bpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855)

6 years agobpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)
Serhiy Storchaka [Sat, 24 Feb 2018 16:55:51 +0000 (18:55 +0200)]
bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)

6 years agobpo-32819: Simplify and improve ssl.match_hostname (#5620)
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>
6 years agobpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)
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.

6 years ago[bpo-28414] Make all hostnames in SSL module IDN A-labels (GH-5128)
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.

6 years agoUpdate the Pull_request_template.md file (GH-5841)
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.

6 years agoExhaustively test dataclass hashing when no hash= value is provided. This is in antic...
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)

6 years agobpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)
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.

6 years agobpo-32901: Update Tcl and Tk versions to 8.6.8 (GH-5823)
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)

6 years agobpo-32087: Doc: Make "deprecated-removed" directive translatable (GH-4473)
cocoatomo [Fri, 23 Feb 2018 11:47:19 +0000 (20:47 +0900)]
bpo-32087: Doc: Make "deprecated-removed"  directive translatable (GH-4473)

6 years agoipaddress: Use str.isascii() instead of frozenset (GH-5811)
INADA Naoki [Fri, 23 Feb 2018 11:02:41 +0000 (20:02 +0900)]
ipaddress: Use str.isascii() instead of frozenset (GH-5811)

6 years agobpo-30028: make test.support.temp_cwd() fork-safe (GH-1066)
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.

6 years agobpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter to compil...
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>
6 years agobpo-32838: Fix Python versions in the table of magic numbers. (#5658)
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)

6 years agoTest that new_timezone can return the UTC singleton (gh-5318)
Paul Ganssle [Thu, 22 Feb 2018 20:15:32 +0000 (15:15 -0500)]
Test that new_timezone can return the UTC singleton (gh-5318)

6 years agobpo-32457: Improves handling of denormalized executable path when launching Python...
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)

6 years agobpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage now corre...
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)

6 years agobpo-32905: IDLE - remove unused code in pyparse module (GH-5807)
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.

6 years agocloses bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)
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)

6 years agobpo-32874: IDLE: add tests for pyparse (GH-5755)
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.

6 years agobpo-32889: update valgrind suppressions (GH-5779)
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).

6 years agobpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)
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.

6 years agobpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)
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)

6 years agobpo-32604: Swap threads only if the interpreter is different. (gh-5778)
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.

6 years agobpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is...
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.

6 years agobpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length...
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".

6 years agocloses bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)
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.

6 years agobpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)
Steve Dower [Tue, 20 Feb 2018 01:25:24 +0000 (17:25 -0800)]
bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)

6 years agobpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)
Zachary Ware [Mon, 19 Feb 2018 20:02:38 +0000 (14:02 -0600)]
bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)

6 years agobpo-32682: Improve libz version parsing in test_zilb (GH-5347)
pmp-p [Mon, 19 Feb 2018 03:45:11 +0000 (04:45 +0100)]
bpo-32682: Improve libz version parsing in test_zilb (GH-5347)

6 years agobpo-31972: Improve docstrings for pathlib classes (#5310)
chason [Sun, 18 Feb 2018 23:36:32 +0000 (08:36 +0900)]
bpo-31972: Improve docstrings for pathlib classes (#5310)

6 years agoImprove error message for "setup.py upload" without dist files (#21060)
Éric Araujo [Sun, 18 Feb 2018 23:14:54 +0000 (18:14 -0500)]
Improve error message for "setup.py upload" without dist files (#21060)

6 years agobpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)
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)

6 years agobpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (#5739)
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.

6 years agoCorrect venv doc (fix #32540) (#5736)
TROUVERIE Joachim [Sun, 18 Feb 2018 16:52:36 +0000 (17:52 +0100)]
Correct venv doc (fix #32540) (#5736)

6 years agoClean up Travis config (GH-5727)
Zachary Ware [Sun, 18 Feb 2018 16:19:37 +0000 (10:19 -0600)]
Clean up Travis config (GH-5727)

6 years agobpo-31333: Re-implement ABCMeta in C (#5273)
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.

6 years agoAdd missing backslashes to get_externals.bat (GH-5731)
Steve Dower [Sun, 18 Feb 2018 03:58:57 +0000 (19:58 -0800)]
Add missing backslashes to get_externals.bat (GH-5731)

6 years agoImproves the ability to build in CI (GH-5728)
Steve Dower [Sun, 18 Feb 2018 02:59:03 +0000 (18:59 -0800)]
Improves the ability to build in CI (GH-5728)

6 years agobpo-30638: Add clinic to `make regen-all` (GH-5671)
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.

6 years agoFix a typo in asyncio docs (#5721)
Andrew Svetlov [Sat, 17 Feb 2018 17:44:35 +0000 (19:44 +0200)]
Fix a typo in asyncio docs (#5721)

6 years agobpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)
Kyle Altendorf [Sat, 17 Feb 2018 06:32:37 +0000 (22:32 -0800)]
bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)

6 years agoDOC: fix documentation for copyright and credits (GH-5706)
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.

6 years agobpo-32860: Fix a missing asterisk in the documentation for glob.iglob() (GH-5712)
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)

6 years agobpo-32604: Clean up created subinterpreters before runtime finalization. (gh-5709)
Eric Snow [Sat, 17 Feb 2018 01:53:40 +0000 (18:53 -0700)]
bpo-32604: Clean up created subinterpreters before runtime finalization. (gh-5709)

6 years agobpo-32436: Add docs for contextvars (#5685)
Yury Selivanov [Fri, 16 Feb 2018 16:47:54 +0000 (11:47 -0500)]
bpo-32436: Add docs for contextvars (#5685)

6 years agoCorrect the code example in Python 3.7's What's New (GH-5696)
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().

6 years agoUpdate and sync importlib.resources documentation (#5694)
Barry Warsaw [Fri, 16 Feb 2018 15:45:39 +0000 (10:45 -0500)]
Update and sync importlib.resources documentation (#5694)

7 years agoUpdate comment in posixmodule.c (GH-5681)
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>
7 years agobpo-32841: Fix cancellation in awaiting asyncio.Condition (#5665)
Bar Harel [Wed, 14 Feb 2018 09:18:11 +0000 (11:18 +0200)]
bpo-32841: Fix cancellation in awaiting asyncio.Condition (#5665)

7 years agoFix installation instructions for *nix (GH-5605)
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.

7 years agoremove mercurial dot files (GH-5558)
Benjamin Peterson [Wed, 14 Feb 2018 02:11:34 +0000 (18:11 -0800)]
remove mercurial dot files (GH-5558)

7 years agobpo-27846: Delete incorrect note in base64 docs (GH-5666)
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.

7 years agobpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
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)

7 years agobpo-29803: remove a redandunt op and fix a comment in unicodeobject.c (#660)
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)

7 years agobpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)
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)

7 years agobpo-30579: Docs for dynamic traceback creation (GH-5653)
Nick Coghlan [Tue, 13 Feb 2018 08:10:58 +0000 (18:10 +1000)]
bpo-30579: Docs for dynamic traceback creation (GH-5653)

7 years agobpo-32370: Use the correct encoding for ipconfig output in the uuid module. (GH-5608)
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)

7 years agobpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH...
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)

7 years agobpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)
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.

7 years agobpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)
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.

7 years agobpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (#5449)
Коренберг Марк [Mon, 12 Feb 2018 19:47:42 +0000 (00:47 +0500)]
bpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (#5449)

7 years agobpo-29248: Fix os.readlink() on Windows (GH-5577)
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.

7 years agoFix AppVeyor doc short-circuit (GH-5632)
Zachary Ware [Sun, 11 Feb 2018 21:35:09 +0000 (15:35 -0600)]
Fix AppVeyor doc short-circuit (GH-5632)

7 years agobpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622)
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.

7 years agoAdd short-circuit for doc changes to AppVeyor (GH-5519)
Zachary Ware [Sun, 11 Feb 2018 17:19:51 +0000 (11:19 -0600)]
Add short-circuit for doc changes to AppVeyor (GH-5519)

7 years agobpo-32604: Make _xxsubinterpreters build on Windows (GH-5516)
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?

7 years agoCode beautification using f-strings (#5618)
Raymond Hettinger [Sun, 11 Feb 2018 16:00:11 +0000 (08:00 -0800)]
Code beautification using f-strings (#5618)

7 years agobpo-11015: Update test.support documentation (GH-5610)
Cheryl Sabella [Sun, 11 Feb 2018 13:10:42 +0000 (08:10 -0500)]
bpo-11015: Update test.support documentation (GH-5610)

7 years agobpo-32792: Preserve mapping order in ChainMap() (GH-5586)
Raymond Hettinger [Sun, 11 Feb 2018 08:30:31 +0000 (00:30 -0800)]
bpo-32792: Preserve mapping order in ChainMap() (GH-5586)

7 years agobpo-32800: Update link to w3c doc for xml default namespaces (GH-5609)
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.

7 years agotravis: Use -O3 option (GH-5599)
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.