]> granicus.if.org Git - python/log
python
6 years agobpo-33475: Fix and improve converting annotations to strings. (GH-6774)
Serhiy Storchaka [Thu, 17 May 2018 03:17:48 +0000 (06:17 +0300)]
bpo-33475: Fix and improve converting annotations to strings. (GH-6774)

6 years agoReplace _PyGC_REFS macros with higher level macros (GH-6852)
INADA Naoki [Thu, 17 May 2018 02:07:21 +0000 (11:07 +0900)]
Replace _PyGC_REFS macros with higher level macros (GH-6852)

Only gcmodule.c uses _PyGC_REFS* macros now.
This makes easy to read GC code.

6 years agobpo-33522: Enable CI builds on Visual Studio Team Services (#6865)
Steve Dower [Wed, 16 May 2018 21:50:29 +0000 (17:50 -0400)]
bpo-33522: Enable CI builds on Visual Studio Team Services (#6865)

6 years agobpo-32216: Update dataclasses documentation (#6913)
Barry Warsaw [Wed, 16 May 2018 19:50:07 +0000 (15:50 -0400)]
bpo-32216: Update dataclasses documentation (#6913)

6 years agobpo-32604: Improve subinterpreter tests. (#6914)
Eric Snow [Wed, 16 May 2018 19:04:57 +0000 (15:04 -0400)]
bpo-32604: Improve subinterpreter tests. (#6914)

Add more tests for subinterpreters. This patch also fixes a few small defects in the channel implementation.

6 years agoRemove an unneeded call into OpenSSL (GH-6887)
Alex Gaynor [Wed, 16 May 2018 17:02:06 +0000 (13:02 -0400)]
Remove an unneeded call into OpenSSL (GH-6887)

6 years agoFix ClassVar as string fails when getting type hints (GH-6824)
Nina Zakharenko [Wed, 16 May 2018 16:27:03 +0000 (12:27 -0400)]
Fix ClassVar as string fails when getting type hints (GH-6824)

6 years agobpo-28167: Remove platform.linux_distribution (GH-6871)
Petr Viktorin [Wed, 16 May 2018 15:51:18 +0000 (11:51 -0400)]
bpo-28167: Remove platform.linux_distribution (GH-6871)

* test_ssl: Remove skip_if_broken_ubuntu_ssl

We no longer support OpenSSL 0.9.8.15.15.

* bpo-28167: Remove platform.linux_distribution

6 years agobpo-24318: Rewrite the README PGO section. (#6863)
Gregory P. Smith [Wed, 16 May 2018 15:34:47 +0000 (10:34 -0500)]
bpo-24318: Rewrite the README PGO section. (#6863)

* bpo-24318: Rewrite the README PGO section.

Merged from a phone on an airplane. :)

6 years agobpo-33536: Validate make_dataclass() field names. (GH-6906)
Eric V. Smith [Wed, 16 May 2018 15:31:29 +0000 (11:31 -0400)]
bpo-33536: Validate make_dataclass() field names. (GH-6906)

6 years agobpo-21475: Support the Sitemap extension in robotparser (GH-6883)
Christopher Beacham [Wed, 16 May 2018 14:52:07 +0000 (07:52 -0700)]
bpo-21475: Support the Sitemap extension in robotparser (GH-6883)

6 years agoMinor tweaks to dataclasses docs. (GH-6903)
Eric V. Smith [Wed, 16 May 2018 13:29:05 +0000 (09:29 -0400)]
Minor tweaks to dataclasses docs. (GH-6903)

6 years agobpo-33534: Remove unneeded test. (GH-6897)
Eric V. Smith [Wed, 16 May 2018 11:24:00 +0000 (07:24 -0400)]
bpo-33534: Remove unneeded test. (GH-6897)

This condition as already tested before this code is called.

6 years agoReflow dataclasses comments (GH-6893)
Eric V. Smith [Wed, 16 May 2018 09:14:53 +0000 (05:14 -0400)]
Reflow dataclasses comments (GH-6893)

To be more consistent with other code (and so people stop hassling me!), reflow the dataclasses comments to not use a single space indentation when continuing a paragraph of text.

6 years agobpo-32216: Add documentation for dataclasses (GH-6886)
Eric V. Smith [Wed, 16 May 2018 08:20:43 +0000 (04:20 -0400)]
bpo-32216: Add documentation for dataclasses (GH-6886)

This is an initial version that likely requires much polishing. I'm adding it lay out the structure and so we have something to start working from.

6 years agobpo-32384: Skip test when _testcapi isn't available (GH-4940)
Isaiah Peng [Wed, 16 May 2018 08:05:17 +0000 (10:05 +0200)]
bpo-32384: Skip test when _testcapi isn't available (GH-4940)

6 years agocloses bpo-33512: use standard for detecting long double (GH-6847)
Eitan Adler [Wed, 16 May 2018 05:58:09 +0000 (22:58 -0700)]
closes bpo-33512: use standard for detecting long double (GH-6847)

6 years agobpo-33453: Handle string type annotations in dataclasses. (GH-6768)
Eric V. Smith [Wed, 16 May 2018 02:44:27 +0000 (22:44 -0400)]
bpo-33453: Handle string type annotations in dataclasses. (GH-6768)

6 years agobpo-33454: Fix arguments parsing in _xxsubinterpreters.channel_close(). (GH-6747)
Serhiy Storchaka [Tue, 15 May 2018 22:08:09 +0000 (01:08 +0300)]
bpo-33454: Fix arguments parsing in _xxsubinterpreters.channel_close(). (GH-6747)

6 years agobpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (#6873)
Terry Jan Reedy [Tue, 15 May 2018 21:41:57 +0000 (17:41 -0400)]
bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (#6873)

6 years agobpo-32257: Add ssl.OP_NO_RENEGOTIATION (GH-5904)
Christian Heimes [Tue, 15 May 2018 20:25:40 +0000 (16:25 -0400)]
bpo-32257: Add ssl.OP_NO_RENEGOTIATION (GH-5904)

The ssl module now contains OP_NO_RENEGOTIATION constant, available with
OpenSSL 1.1.0h or 1.1.1.

Note, OpenSSL 1.1.0h hasn't been released yet.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814)
Stéphane Wirtel [Tue, 15 May 2018 18:58:35 +0000 (20:58 +0200)]
bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814)

6 years agobpo-33509: Fix _warnings for module_globals=None (#6833)
Victor Stinner [Tue, 15 May 2018 18:42:12 +0000 (20:42 +0200)]
bpo-33509: Fix _warnings for module_globals=None (#6833)

Don't crash on warnings.warn_explicit() if module_globals is not a dict.

6 years agobpo-33465: Use an unlikely to be built-in C extension in a test (#6797)
Barry Warsaw [Tue, 15 May 2018 18:41:13 +0000 (14:41 -0400)]
bpo-33465: Use an unlikely to be built-in C extension in a test (#6797)

6 years agobpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)
Terry Jan Reedy [Tue, 15 May 2018 18:20:38 +0000 (14:20 -0400)]
bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)

Added to the eye-verified htest, not to the unittests.
Also remove some stray leftover comments.

6 years agobpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669)
Matthias Bussonnier [Tue, 15 May 2018 15:17:00 +0000 (08:17 -0700)]
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669)

Also bump PendingDeprecationWarning to DeprecationWarning.

6 years agobpo-33517: dataclasses: Add the field type to Field repr (GH-6858)
Eric V. Smith [Tue, 15 May 2018 12:36:21 +0000 (08:36 -0400)]
bpo-33517: dataclasses: Add the field type to Field repr (GH-6858)

6 years agorun autoreconf (GH-6850)
Benjamin Peterson [Tue, 15 May 2018 04:39:22 +0000 (21:39 -0700)]
run autoreconf (GH-6850)

6 years agobpo-33483: more correctly handle finding the C compiler (GH-6780)
Eitan Adler [Tue, 15 May 2018 03:55:41 +0000 (20:55 -0700)]
bpo-33483: more correctly handle finding the C compiler (GH-6780)

Instead of passing configure args such as --without-gcc or --with-icc,
instead prefer to rely on the native way of finding the compiler:
passing CC (or CPP or CXX depending).

This allows configure to find the correct compiler instead of having to
be explicitly told. It also more correctly builds on both macOS and
FreeBSD since the system compiler is used by default (cc)

6 years agoRemove accidentally checked in files. (GH-6835)
Eric V. Smith [Tue, 15 May 2018 01:00:18 +0000 (21:00 -0400)]
Remove accidentally checked in files. (GH-6835)

6 years agobpo-16865: Support arrays >=2GB in ctypes. (GH-3006)
Segev Finer [Mon, 14 May 2018 23:54:29 +0000 (02:54 +0300)]
bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)

6 years agobpo-33497: Add NEWS and ACKS entries. (GH-6838)
Ned Deily [Mon, 14 May 2018 22:15:15 +0000 (18:15 -0400)]
bpo-33497: Add NEWS and ACKS entries. (GH-6838)

6 years agoAdd AsyncContextManager to typing module documentation. (GH-6822)
Travis DePrato [Mon, 14 May 2018 22:14:07 +0000 (18:14 -0400)]
Add AsyncContextManager to typing module documentation. (GH-6822)

6 years agobpo-33497: Add errors param to cgi.parse_multipart and make an encoding in FieldStora...
Amber Brown [Mon, 14 May 2018 22:11:55 +0000 (18:11 -0400)]
bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in FieldStorage use the given errors (GH-6804)

6 years agobpo-33502: dataclass._Dataclassparams repr: use repr of each member. (GH-6812)
Eric V. Smith [Mon, 14 May 2018 21:16:52 +0000 (17:16 -0400)]
bpo-33502: dataclass._Dataclassparams repr: use repr of each member. (GH-6812)

6 years agoFixed an unused variable warning introduced in GH-6800 (GH-6816)
Alex Gaynor [Mon, 14 May 2018 20:48:14 +0000 (16:48 -0400)]
Fixed an unused variable warning introduced in GH-6800 (GH-6816)

6 years agobpo-33443 Fix typo in Python/import.c (GH-6722)
ukwksk [Mon, 14 May 2018 19:10:52 +0000 (04:10 +0900)]
bpo-33443 Fix typo in Python/import.c (GH-6722)

6 years agobpo-32769: Write annotation entry for glossary (GH-6657)
Andrés Delfino [Mon, 14 May 2018 19:04:55 +0000 (16:04 -0300)]
bpo-32769: Write annotation entry for glossary (GH-6657)

https://bugs.python.org/issue32769

6 years agoAdd versionchanged in create_datagram_endpoint doc (#4697)
Romuald Brunet [Mon, 14 May 2018 16:22:00 +0000 (18:22 +0200)]
Add versionchanged in create_datagram_endpoint doc (#4697)

Most of the parameters were added in 3.4.4 (b9bf913ab32), but this
change was not documented

6 years agoRemove `ifdef` check for an OpenSSL version (0.9.6) we don't support (GH-6800)
Alex Gaynor [Mon, 14 May 2018 15:51:45 +0000 (11:51 -0400)]
Remove `ifdef` check for an OpenSSL version (0.9.6) we don't support (GH-6800)

6 years agobpo-33494: Change dataclasses.Fields repr to use the repr of each of its members...
Eric V. Smith [Mon, 14 May 2018 15:37:28 +0000 (11:37 -0400)]
bpo-33494: Change dataclasses.Fields repr to use the repr of each of its members (GH-6798)

6 years agobpo-22069: Update TextIO documentation (GH-6609)
Elena Oat [Mon, 14 May 2018 14:48:01 +0000 (17:48 +0300)]
bpo-22069: Update TextIO documentation (GH-6609)

Clarify that flush is implied when the call to write contains a newline character.

6 years agobpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711)
Michael Lazar [Mon, 14 May 2018 14:10:41 +0000 (10:10 -0400)]
bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711)

The urllib.robotparser's __str__ representation now includes wildcard
entries and the "Crawl-delay" and "Request-rate" fields. Also removes extra
newlines that were being appended to the end of the string.

6 years agobpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
Anders Kaseorg [Mon, 14 May 2018 14:00:37 +0000 (10:00 -0400)]
bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)

This happens in the NixOS build sandbox, for example, where the only
other user is nobody with home directory /.

6 years agobpo-33488: Satisfy markdownlint for the pull request template. (GH-6786)
Eitan Adler [Mon, 14 May 2018 00:55:35 +0000 (17:55 -0700)]
bpo-33488: Satisfy markdownlint for the pull request template. (GH-6786)

./.github/PULL_REQUEST_TEMPLATE.md:8: MD031 Fenced code blocks should be
surrounded by blank lines
./.github/PULL_REQUEST_TEMPLATE.md:10: MD031 Fenced code blocks should
be surrounded by blank lines
./.github/PULL_REQUEST_TEMPLATE.md:19: MD031 Fenced code blocks should
be surrounded by blank lines
./.github/PULL_REQUEST_TEMPLATE.md:21: MD031 Fenced code blocks should
be surrounded by blank lines

6 years agofix error message in ast.c (#6776)
Jelle Zijlstra [Sun, 13 May 2018 21:04:53 +0000 (17:04 -0400)]
fix error message in ast.c (#6776)

small_stmt -> compound_stmt

6 years agobpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)
Rolf Eike Beer [Sun, 13 May 2018 10:57:31 +0000 (12:57 +0200)]
bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)

The hash implementation casts the input pointer to uint64_t* and directly reads
from this, which may cause unaligned accesses. Use memcpy() instead so this code
will not crash with SIGBUS on sparc.

https://bugs.gentoo.org/show_bug.cgi?id=636400

6 years agobpo-33455: Pass os.environ in test_posix::test_specify_environment. (GH-6753)
Miro Hrončok [Fri, 11 May 2018 05:40:43 +0000 (07:40 +0200)]
bpo-33455: Pass os.environ in test_posix::test_specify_environment. (GH-6753)

Pass os.environ's copy to new process created at test_posix:
test_specify_environment. Otherwise important variables such as
LD_LIBRARY_PATH are not set and the child process might not work at all
in an environment where such variables are required for Python to function.

6 years agoFix a bug in Generic.__new__ (GH-6758)
Ivan Levkivskyi [Fri, 11 May 2018 03:10:10 +0000 (23:10 -0400)]
Fix a bug in Generic.__new__ (GH-6758)

6 years agobpo-26701: Tweak the documentation for special methods in int(). (GH-6741)
Serhiy Storchaka [Thu, 10 May 2018 13:38:44 +0000 (16:38 +0300)]
bpo-26701: Tweak the documentation for special methods in int(). (GH-6741)

6 years agobpo-20171: Convert the _curses and _curses_panel modules to Argument Clinic. (GH...
Serhiy Storchaka [Thu, 10 May 2018 08:27:23 +0000 (11:27 +0300)]
bpo-20171: Convert the _curses and _curses_panel modules to Argument Clinic. (GH-4251)

6 years agobpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type...
Oren Milman [Wed, 9 May 2018 21:38:56 +0000 (00:38 +0300)]
bpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type (GH-3859)

6 years agobpo-33311: Do not display parameters displayed in parentheses for module call. (GH...
sblondon [Wed, 9 May 2018 09:39:32 +0000 (11:39 +0200)]
bpo-33311: Do not display parameters displayed in parentheses for module call. (GH-6677)

6 years agobpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
Serhiy Storchaka [Wed, 9 May 2018 08:10:55 +0000 (11:10 +0300)]
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)

6 years agoFix superfluous if in documentation. (GH-6728)
Julien Palard [Wed, 9 May 2018 07:25:22 +0000 (09:25 +0200)]
Fix superfluous if in documentation. (GH-6728)

6 years agocloses bpo-33445: fail properly in test_cprofile() (GH-6727)
jdemeyer [Wed, 9 May 2018 04:16:35 +0000 (06:16 +0200)]
closes bpo-33445: fail properly in test_cprofile() (GH-6727)

6 years agobpo-28556: Minor fixes for typing module (GH-6732)
Ivan Levkivskyi [Wed, 9 May 2018 01:23:46 +0000 (02:23 +0100)]
bpo-28556: Minor fixes for typing module (GH-6732)

This also fixes https://bugs.python.org/issue33420

6 years agoFix typo in __mul__ and __rmul__ docstring (GH-6674)
Grant Jenks [Tue, 8 May 2018 22:00:19 +0000 (15:00 -0700)]
Fix typo in __mul__ and __rmul__ docstring (GH-6674)

6 years agobpo-32717: Document PEP 560 (GH-6726)
Ivan Levkivskyi [Tue, 8 May 2018 18:38:41 +0000 (19:38 +0100)]
bpo-32717: Document PEP 560 (GH-6726)

6 years agobpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)
Serhiy Storchaka [Tue, 8 May 2018 12:45:15 +0000 (15:45 +0300)]
bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)

random() takes precedence over getrandbits() if defined later
in the class tree.

6 years agobpo-33441: Make the sigset_t converter available in other modules. (GH-6720)
Serhiy Storchaka [Tue, 8 May 2018 04:48:50 +0000 (07:48 +0300)]
bpo-33441: Make the sigset_t converter available in other modules. (GH-6720)

* Expose the sigset_t converter via private API _Py_Sigset_Converter().
* Use Argument Clinic for parsing sigset_t in signalmodule.c.
* Raise ValueError instead OverflowError for integers out of
  the C long range.

Based on patch by Pablo Galindo Salgado.

6 years agoRemove mojibake in the locale aliases mapping. (GH-6716)
Serhiy Storchaka [Sun, 6 May 2018 07:52:38 +0000 (10:52 +0300)]
Remove mojibake in the locale aliases mapping. (GH-6716)

6 years agobpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (ПР-6708)
Serhiy Storchaka [Sun, 6 May 2018 05:46:15 +0000 (08:46 +0300)]
bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (ПР-6708)

6 years agobpo-33422: Fix quotation marks getting deleted when looking up byte/string literals...
Andrés Delfino [Sat, 5 May 2018 16:07:32 +0000 (13:07 -0300)]
bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701)

Also update the list of string prefixes.

6 years agobpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. ...
Vinay Sajip [Fri, 4 May 2018 21:20:54 +0000 (22:20 +0100)]
bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6702)

6 years agobpo-33332: Add signal.valid_signals() (GH-6581)
Antoine Pitrou [Fri, 4 May 2018 11:00:50 +0000 (13:00 +0200)]
bpo-33332: Add signal.valid_signals() (GH-6581)

6 years agobpo-33391: Fix refleak in set_symmetric_difference (GH-6670)
lekma [Wed, 2 May 2018 09:29:10 +0000 (11:29 +0200)]
bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)

6 years agoMitigate macOS race condition in installer build (GH-6686)
Ned Deily [Wed, 2 May 2018 05:41:15 +0000 (01:41 -0400)]
Mitigate macOS race condition in installer build (GH-6686)

6 years agobpo-33290: Have macOS installer remove "pip" alias (GH-6683)
Ned Deily [Wed, 2 May 2018 05:30:33 +0000 (01:30 -0400)]
bpo-33290: Have macOS installer remove "pip" alias (GH-6683)

Currently, "pip3 install --upgrade pip" unconditionally installs a
"pip" alias even for Python 3.  If a user has an existing Python 3.x
installed from a python.org macOS installer and then subsequently
manually updates to a new version of pip, there may now be a stray
"pip" alias in the Python 3.x framework bin directory which can cause
confusion if the user has both a Python 2.7 and 3.x installed;
if the Python 3.x fw bin directory appears early on $PATH, "pip"
might invoke the pip3 for the Python 3.x rather than the pip for
Python 2.7.  To try to mitigate this, the macOS installer script
for the ensurepip option will unconditionally remove "pip" from
the 3.x framework bin directory being updated / installed.  (The
ambiguity can be avoided by using "pythonx.y -m pip".)

6 years agobpo-33281: NEWS and ACK (GH-6681)
Ned Deily [Wed, 2 May 2018 02:41:43 +0000 (22:41 -0400)]
bpo-33281: NEWS and ACK (GH-6681)

6 years agobpo-33281: Fix ctypes.util.find_library regression on macOS (GH-6625)
Ray Donnelly [Wed, 2 May 2018 02:31:36 +0000 (03:31 +0100)]
bpo-33281:  Fix ctypes.util.find_library regression on macOS (GH-6625)

6 years agobpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). ...
Serhiy Storchaka [Tue, 1 May 2018 13:45:04 +0000 (16:45 +0300)]
bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). (#6332)

6 years agobpo-20709: os.utime(path_to_directory): wrong documentation for Windows. (GH-5469)
Stéphane Wirtel [Tue, 1 May 2018 10:02:26 +0000 (12:02 +0200)]
bpo-20709: os.utime(path_to_directory): wrong documentation for Windows. (GH-5469)

Remove the paragraph where we explain that os.utime() does not support a
directory as path under Windows. Patch by Jan-Philip Gehrcke

Co-authored-by: Jan-Philip Gehrcke <jgehrcke@gmail.com>
6 years agoAdd What's New for Korean documentation translation. (GH-6645)
Julien Palard [Tue, 1 May 2018 09:46:43 +0000 (11:46 +0200)]
Add What's New for Korean documentation translation. (GH-6645)

6 years agobpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)
Michael Selik [Tue, 1 May 2018 03:46:52 +0000 (20:46 -0700)]
bpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)

Previously emitted cover files only when --missing option was used.

6 years agobpo-30465: Fix C downcast warning on Windows in ast.c (#6593)
Victor Stinner [Mon, 30 Apr 2018 21:51:02 +0000 (23:51 +0200)]
bpo-30465: Fix C downcast warning on Windows in ast.c (#6593)

ast.c: fstring_fix_node_location() downcasts a pointer difference to
a C int. Replace int with Py_ssize_t to fix the compiler warning.

6 years agoAdd mypy cache to gitignore (GH-6614)
Ekin Dursun [Mon, 30 Apr 2018 19:10:45 +0000 (22:10 +0300)]
Add mypy cache to gitignore (GH-6614)

6 years agobpo-33254: do not return an empty list when asking for the contents of a namespace...
Brett Cannon [Mon, 30 Apr 2018 18:31:45 +0000 (11:31 -0700)]
bpo-33254: do not return an empty list when asking for the contents of a namespace package (GH-6467)

6 years agoEnable the verbose build for extension modules with GNU make (#6659)
Matthias Klose [Mon, 30 Apr 2018 18:07:55 +0000 (20:07 +0200)]
Enable the verbose build for extension modules with GNU make (#6659)

6 years agobpo-33393: Update config.guess and config.sub files (#6658)
Matthias Klose [Mon, 30 Apr 2018 18:07:35 +0000 (20:07 +0200)]
bpo-33393: Update config.guess and config.sub files (#6658)

6 years agobpo-33377: add triplets for mips-r6 and riscv (#6655)
Matthias Klose [Mon, 30 Apr 2018 17:22:16 +0000 (19:22 +0200)]
bpo-33377: add triplets for mips-r6 and riscv (#6655)

* issue33377: add triplets for mips-r6 and riscv

* issue33377: add triplets for mips-r6 and riscv (NEWS entry)

6 years agobpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654)
Andrés Delfino [Mon, 30 Apr 2018 16:30:53 +0000 (13:30 -0300)]
bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654)

6 years agobpo-33012: Fix invalid function casts for long_long. (GH-6652)
Serhiy Storchaka [Mon, 30 Apr 2018 12:35:08 +0000 (15:35 +0300)]
bpo-33012: Fix invalid function casts for long_long. (GH-6652)

long_long() was used with three function types:
PyCFunction, getter and unaryfunction.

6 years agobpo-27645, sqlite: Fix integer overflow on sleep (#6594)
Victor Stinner [Mon, 30 Apr 2018 10:22:17 +0000 (12:22 +0200)]
bpo-27645, sqlite: Fix integer overflow on sleep (#6594)

Use the _PyTime_t type and round away from zero (ROUND_UP,
_PyTime_ROUND_TIMEOUT) the sleep duration, when converting a Python
object to seconds and then to milliseconds. Raise an OverflowError in
case of overflow.

Previously the (int)double conversion rounded towards zero
(ROUND_DOWN).

6 years agobpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)
Terry Jan Reedy [Mon, 30 Apr 2018 07:08:01 +0000 (03:08 -0400)]
bpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)

In text and entry boxes, this affects selection by double-click,
movement left/right by control-left/right, and deletion left/right
by control-BACKSPACE/DEL.

6 years agobpo-33330: Write exceptions occurred in PyImport_Cleanup() to stderr. (GH-6606)
Serhiy Storchaka [Sun, 29 Apr 2018 19:16:30 +0000 (22:16 +0300)]
bpo-33330: Write exceptions occurred in PyImport_Cleanup() to stderr. (GH-6606)

They where silenced before.

6 years agobpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030)
Siddhesh Poyarekar [Sun, 29 Apr 2018 18:59:33 +0000 (00:29 +0530)]
bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030)

METH_NOARGS functions need only a single argument but they are cast
into a PyCFunction, which takes two arguments.  This triggers an
invalid function cast warning in gcc8 due to the argument mismatch.
Fix this by adding a dummy unused argument.

6 years agobpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
Bo Bayles [Sun, 29 Apr 2018 18:03:05 +0000 (13:03 -0500)]
bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)

6 years agobpo-33256: Replace angle brackets around python object repr to display it in html...
sblondon [Sun, 29 Apr 2018 17:48:33 +0000 (19:48 +0200)]
bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)

6 years agobpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)
Serhiy Storchaka [Sun, 29 Apr 2018 12:45:03 +0000 (15:45 +0300)]
bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)

6 years agobpo-33383: Fix crash in get() of the dbm.ndbm database object. (#6630)
Serhiy Storchaka [Sun, 29 Apr 2018 09:38:06 +0000 (12:38 +0300)]
bpo-33383: Fix crash in get() of the dbm.ndbm database object. (#6630)

6 years agobpo-33378: Add Korean to the language switcher. (GH-6627)
Dong-hee Na [Sat, 28 Apr 2018 20:08:22 +0000 (05:08 +0900)]
bpo-33378: Add Korean to the language switcher. (GH-6627)

6 years agoChange "non-local state" to "content-local state". (GH-6617)
Tom Christie [Fri, 27 Apr 2018 22:35:13 +0000 (23:35 +0100)]
Change "non-local state" to "content-local state". (GH-6617)

The wording here seems wrong, as per https://bugs.python.org/msg315792

6 years agobpo-33363: raise SyntaxError for async for/with outside async functions (#6616)
Zsolt Dollenstein [Fri, 27 Apr 2018 15:58:56 +0000 (08:58 -0700)]
bpo-33363: raise SyntaxError for async for/with outside async functions (#6616)

6 years agobpo-33041: Fix downcast warning on Windows (#6595)
Victor Stinner [Fri, 27 Apr 2018 12:30:01 +0000 (14:30 +0200)]
bpo-33041: Fix downcast warning on Windows (#6595)

Cast pointer difference from ssize_t to int: a frame is very unlikely
larger than 2 GB.

6 years agobpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)
Pablo Galindo [Fri, 27 Apr 2018 12:23:13 +0000 (13:23 +0100)]
bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)

Fix test_embed.test_pre_initialization_sys_options() when building with --enable-shared

6 years agoClarify the inspect.getmembers predicate parameter (#6615)
Brian Curtin [Thu, 26 Apr 2018 23:48:26 +0000 (19:48 -0400)]
Clarify the inspect.getmembers predicate parameter (#6615)

Previously, the predicate parameter was mentioned, but what it was to be
called with was not documented and required either trial-and-error or
looking into the source to find that it is called with the `value`, or
second item, of the full members list. This change addresses what the
predicate will receive, as well as does some light formatting to make
this clear.

6 years agobpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)
Cheryl Sabella [Wed, 25 Apr 2018 23:51:54 +0000 (16:51 -0700)]
bpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)

6 years agobpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566)
Serhiy Storchaka [Wed, 25 Apr 2018 19:04:06 +0000 (22:04 +0300)]
bpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566)

Added tests to ensure that all defined opcodes are supported.

6 years agobpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)
Serhiy Storchaka [Wed, 25 Apr 2018 17:58:40 +0000 (20:58 +0300)]
bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)