]> granicus.if.org Git - python/log
python
5 years agobpo-35641: IDLE - format calltip properly when no docstring (GH-11415)
Emmanuel Arias [Thu, 3 Jan 2019 07:47:58 +0000 (04:47 -0300)]
bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)

5 years agobpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)
Terry Jan Reedy [Thu, 3 Jan 2019 03:04:06 +0000 (22:04 -0500)]
bpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)

5 years agobpo-35525: Correct the argument name for NNTP.starttls() (GH-11310)
Harmandeep Singh [Wed, 2 Jan 2019 21:05:19 +0000 (02:35 +0530)]
bpo-35525: Correct the argument name for NNTP.starttls() (GH-11310)

5 years agocloses bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/clean...
Mickaël Schoentgen [Wed, 2 Jan 2019 19:26:57 +0000 (20:26 +0100)]
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411)

5 years agoBump copyright years to 2019. (GH-11404)
Benjamin Peterson [Wed, 2 Jan 2019 15:46:53 +0000 (07:46 -0800)]
Bump copyright years to 2019. (GH-11404)

5 years agoRevert "bpo-35603: Escape table header of make_table output that can cause potential...
Serhiy Storchaka [Wed, 2 Jan 2019 12:49:25 +0000 (14:49 +0200)]
Revert "bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)" (GH-11356)

This reverts commit 78de01198b047347abc5e458851bb12c48429e24.

5 years agobpo-35588: Speed up mod, divmod and floordiv operations for Fraction type (#11322)
Stefan Behnel [Wed, 2 Jan 2019 12:22:06 +0000 (13:22 +0100)]
bpo-35588: Speed up mod, divmod and floordiv operations for Fraction type (#11322)

* bpo-35588: Implement mod and divmod operations for Fraction type by spelling out the numerator/denominator calculation, instead of instantiating and normalising Fractions along the way. This speeds up '%' and divmod() by 2-3x.

* bpo-35588: Also reimplement Fraction.__floordiv__() using integer operations to make it ~4x faster.

* Improve code formatting.

Co-Authored-By: scoder <stefan_ml@behnel.de>
* bpo-35588: Fix return type of divmod(): the result of the integer division should be an integer.

* bpo-35588: Further specialise __mod__() and inline the original helper function _flat_divmod() since it's no longer reused.

* bpo-35588: Add some tests with large numerators and/or denominators.

* bpo-35588: Use builtin "divmod()" function for implementing __divmod__() in order to simplify the implementation, even though performance results are mixed.

* Rremove accidentally added empty line.

* bpo-35588: Try to provide more informative output on test failures.

* bpo-35588: Improve wording in News entry.

Co-Authored-By: scoder <stefan_ml@behnel.de>
* Remove stray space.

5 years agobpo-35636: Remove redundant check in unicode_hash(). (GH-11402)
animalize [Wed, 2 Jan 2019 12:16:06 +0000 (20:16 +0800)]
bpo-35636: Remove redundant check in unicode_hash(). (GH-11402)

_Py_HashBytes() does the check for empty string.

5 years agocloses bpo-35623: Fix integer overflow when sorting large lists (GH-11380)
sth [Wed, 2 Jan 2019 02:01:54 +0000 (03:01 +0100)]
closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380)

There is already a `Py_ssize_t i` defined at function scope that is used
for similar loops. By removing the local `int i` declaration that `i` is
used, which has the appropriate type.

5 years agocloses bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11394)
Suriyaa ✌️️ [Wed, 2 Jan 2019 01:57:42 +0000 (02:57 +0100)]
closes bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11394)

5 years agobpo-35598: IDLE - Globalize some config_key objects (GH-11392)
Cheryl Sabella [Mon, 31 Dec 2018 20:06:35 +0000 (15:06 -0500)]
bpo-35598: IDLE - Globalize some config_key objects (GH-11392)

Move translate_key() and constant tuples to module level.
Inline the remnant one-line function.

5 years agobpo-20182: AC convert Python/sysmodule.c (GH-11328)
Tal Einat [Mon, 31 Dec 2018 15:12:08 +0000 (17:12 +0200)]
bpo-20182: AC convert Python/sysmodule.c (GH-11328)

5 years agobpo-32492: Tweak _collections._tuplegetter. (GH-11367)
Serhiy Storchaka [Mon, 31 Dec 2018 12:15:16 +0000 (14:15 +0200)]
bpo-32492: Tweak _collections._tuplegetter. (GH-11367)

* Replace the docstrings cache with sys.intern().
* Improve tests.
* Unify names of tp_descr_get and tp_descr_set functions.

5 years agobpo-35609: Remove examples for deprecated decorators in the abc module. (GH-11355)
Serhiy Storchaka [Mon, 31 Dec 2018 07:56:21 +0000 (09:56 +0200)]
bpo-35609: Remove examples for deprecated decorators in the abc module. (GH-11355)

5 years agoFix typo in test module usage message (GH-11374)
sth [Mon, 31 Dec 2018 05:41:39 +0000 (06:41 +0100)]
Fix typo in test module usage message (GH-11374)

A minor typo in the output of `python -m test -h`.
A space was missing in between two words.
howmuch -> how much

5 years agobpo-35614: Fix pydoc help() on metaclasses (#11357)
Sanyam Khurana [Mon, 31 Dec 2018 05:14:47 +0000 (10:44 +0530)]
bpo-35614: Fix pydoc help() on metaclasses (#11357)

5 years agobpo-35214: Annotate posix calls for clang MSan. (#11389)
Gregory P. Smith [Mon, 31 Dec 2018 05:13:02 +0000 (21:13 -0800)]
bpo-35214: Annotate posix calls for clang MSan. (#11389)

It doesn't know the details of a few less common libc functions.

5 years agobpo-35214: Skip test_io tests that'd cause a huge malloc under msan (#11385)
Gregory P. Smith [Mon, 31 Dec 2018 04:17:57 +0000 (20:17 -0800)]
bpo-35214: Skip test_io tests that'd cause a huge malloc under msan (#11385)

* skip test_constructor under msan.

* fix the others as well.

* reuse existing related news entry.

* typo fix

5 years agoFix typos in test_faulthandler skipIfs for ubsan. (GH-11386)
Gregory P. Smith [Mon, 31 Dec 2018 04:15:41 +0000 (20:15 -0800)]
Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)

5 years agobpo-35550: Fix incorrect Solaris define guards (GH-11275)
Jakub Kulík [Mon, 31 Dec 2018 02:16:40 +0000 (03:16 +0100)]
bpo-35550: Fix incorrect Solaris define guards (GH-11275)

Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used.

Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#Solaris

https://bugs.python.org/issue35550

5 years agoCleanup test_faulthandler sanitizer skip logic. (GH-11381)
Gregory P. Smith [Mon, 31 Dec 2018 02:09:26 +0000 (18:09 -0800)]
Cleanup test_faulthandler sanitizer skip logic. (GH-11381)

Also skip the same tests when using the undefined behavior sanitizer
as they much with the output.

Updates a regex in another test to use multi-line mode so that the ubsan
buildbot should pass again rather than also adding a skip to that one.

5 years agoDead code removal from _hashopenssl. (GH-11379)
Gregory P. Smith [Mon, 31 Dec 2018 01:54:53 +0000 (17:54 -0800)]
Dead code removal from _hashopenssl. (GH-11379)

HASH_OBJ_CONSTRUCTOR has always been defined as 0 since I created
hashlib in Python 2.5.  Delete all code associated with it.

5 years agobpo-35214: MSan workarounds for socket, time, and test_faulthandler. (GH-11375)
Gregory P. Smith [Mon, 31 Dec 2018 01:05:36 +0000 (17:05 -0800)]
bpo-35214: MSan workarounds for socket, time, and test_faulthandler. (GH-11375)

Add Clang Memory Sanitizer build instrumentation to work around
false positives from the socket and time modules as well as skipping
a couple test_faulthandler tests.

5 years agobpo-28503: Use crypt_r() when available instead of crypt() (GH-11373)
Gregory P. Smith [Sun, 30 Dec 2018 23:42:32 +0000 (15:42 -0800)]
bpo-28503: Use crypt_r() when available instead of crypt() (GH-11373)

Use crypt_r() when available instead of crypt() in the crypt module.

As a nice side effect: This also avoids a memory sanitizer flake as clang msan doesn't know about crypt's internal libc allocated buffer.

5 years agoFix typo in documentation of AbstractEventLoopPolicy.set_child_watcher() (GH-11369)
sth [Sun, 30 Dec 2018 22:01:28 +0000 (23:01 +0100)]
Fix typo in documentation of AbstractEventLoopPolicy.set_child_watcher() (GH-11369)

`set_child_watcher()` *sets* the watcher.

5 years agobpo-35598: IDLE: Switch config_key dialog to ttk widgets (GH-11365)
Cheryl Sabella [Sun, 30 Dec 2018 19:48:51 +0000 (14:48 -0500)]
bpo-35598: IDLE: Switch config_key dialog to ttk widgets (GH-11365)

5 years agobpo-32492: 1.6x speed up in namedtuple attribute access using C fast-path (#10495)
Pablo Galindo [Sun, 30 Dec 2018 09:24:03 +0000 (09:24 +0000)]
bpo-32492: 1.6x speed up in namedtuple attribute access using C fast-path (#10495)

* bpo-32492: 2.5x speed up in namedtuple attribute access using C fast path

* Add News entry

* fixup! bpo-32492: 2.5x speed up in namedtuple attribute access using C fast path

* Check for tuple in the __get__ of the new descriptor and don't cache the descriptor itself

* Don't inherit from property. Implement GC methods to handle __doc__

* Add a test for the docstring substitution in descriptors

* Update NEWS entry to reflect time against 3.7 branch

* Simplify implementation with argument clinic, better error messages, only __new__

* Use positional-only parameters for the __new__

* Use PyTuple_GET_SIZE and PyTuple_GET_ITEM to tighter the implementation of tuplegetterdescr_get

* Implement __set__ to make tuplegetter a data descriptor

* Use Py_INCREF now that we inline PyTuple_GetItem

* Apply the valid_index() function, saving one test

* Move Py_None test out of the critical path.

5 years agobpo-35598: IDLE: Increase test coverage for config_key.py (#11360)
Cheryl Sabella [Sun, 30 Dec 2018 04:25:09 +0000 (23:25 -0500)]
bpo-35598: IDLE: Increase test coverage for config_key.py (#11360)

5 years agobpo-33234: Simplify list_preallocate_exact() (GH-11220)
Sergey Fedoseev [Sat, 29 Dec 2018 22:31:36 +0000 (03:31 +0500)]
bpo-33234: Simplify list_preallocate_exact() (GH-11220)

5 years agobpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendf...
Pablo Galindo [Sat, 29 Dec 2018 19:18:38 +0000 (19:18 +0000)]
bpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendfileTests (GH-11338)

There is a race condition in SelectorEventLoopUnixSockSendfileTests that causes the prepare() method return a non connected server protocol, making the cleanup() method skips the correct handling of the transport. This commit makes prepare() always return a connected server protocol that can always be cleaned up correctly.

5 years agobpo-35603: Escape table header of make_table output that can cause potential XSS...
Xtreak [Sat, 29 Dec 2018 08:53:14 +0000 (14:23 +0530)]
bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)

5 years agoMake sure file object is close if socket.create_connection fails (GH-11334)
Pablo Galindo [Sat, 29 Dec 2018 01:42:16 +0000 (01:42 +0000)]
Make sure file object is close if socket.create_connection fails (GH-11334)

The problem affects _testWithTimeoutTriggeredSend in test_socket.py.

5 years agobpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio (GH...
Pablo Galindo [Sat, 29 Dec 2018 01:40:21 +0000 (01:40 +0000)]
bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio (GH-11337)

There is a race condition regarding signal delivery in test_signal_handling_args for
test_asyncio.test_events.KqueueEventLoopTests. The signal can be received at any moment outside the time window provided in the test. The fix is to wait for the signal to be received instead with a bigger timeout.

5 years agobpo-34055: Revert deletion of line in IDLE's PyShell (#11346)
Terry Jan Reedy [Sat, 29 Dec 2018 01:06:16 +0000 (20:06 -0500)]
bpo-34055: Revert deletion of line in IDLE's PyShell (#11346)

The attribute is still used in other modules.

5 years ago bpo-28097: IDLE - Add Previous/Next History to Shell menu (#11325)
Cheryl Sabella [Fri, 28 Dec 2018 20:11:30 +0000 (15:11 -0500)]
 bpo-28097: IDLE - Add Previous/Next History to Shell menu (#11325)

5 years agoIDLE: Create function to update menu item state. (GH-11343)
Cheryl Sabella [Fri, 28 Dec 2018 18:15:30 +0000 (13:15 -0500)]
IDLE: Create function to update menu item state. (GH-11343)

This will be needed for other menu items.  Change outwin to call the function instead of updating the menu item directly.

5 years agobpo-20849: add dirs_exist_ok arg to shutil.copytree (patch by Josh Bronson)
jab [Fri, 28 Dec 2018 18:03:40 +0000 (13:03 -0500)]
bpo-20849: add dirs_exist_ok arg to shutil.copytree (patch by Josh Bronson)

5 years agobpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)
Michael Felt [Fri, 28 Dec 2018 14:03:17 +0000 (15:03 +0100)]
bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)

Command line options for the xlc compiler behave differently from gcc and clang,
so skip this test case for now when xlc is the compiler.

Patch by aixtools (Michael Felt)

5 years agobpo-34373: fix test_mktime and test_pthread_getcpuclickid tests on AIX (GH-8726)
Michael Felt [Fri, 28 Dec 2018 13:57:37 +0000 (14:57 +0100)]
bpo-34373: fix test_mktime and test_pthread_getcpuclickid tests on AIX (GH-8726)

* Fix test_mktime on AIX by adding code to get mktime to behave the
  same way as it does on other *nix systems
* Fix test_pthread_getcpuclickid in AIX by adjusting the test case
  expectations when running on AIX in 32-bit mode

Patch by Michael Felt.

5 years agobpo-35591: IDLE Find Selection now works when selection not found (GH-11339)
Terry Jan Reedy [Fri, 28 Dec 2018 07:41:35 +0000 (02:41 -0500)]
bpo-35591: IDLE Find Selection now works when selection not found (GH-11339)

5 years agobpo-35598: IDLE: Update config_key.py with PEP8 names (GH-11330)
Cheryl Sabella [Fri, 28 Dec 2018 03:47:54 +0000 (22:47 -0500)]
bpo-35598: IDLE: Update config_key.py with PEP8 names (GH-11330)

A few other changes make the code easier to follow.

5 years agomacOS installer build: mitigate hdiutil resource busy bug (GH-11333)
Ned Deily [Thu, 27 Dec 2018 21:38:41 +0000 (16:38 -0500)]
macOS installer build: mitigate hdiutil resource busy bug (GH-11333)

5 years agoRevert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101...
Ned Deily [Thu, 27 Dec 2018 21:13:30 +0000 (16:13 -0500)]
Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)" (GH-11332)

This reverts commit 7cf3d8e25174c8871883e42f3240fd7f01efd3a8.

Due to regressions found with using Tk 8.6.9.1, build the python.org macOS installers with Tcl/Tk 8.6.8 as used in previous releases.

https://bugs.python.org/issue35402

5 years agobpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple times....
Steve Dower [Thu, 27 Dec 2018 20:44:25 +0000 (12:44 -0800)]
bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple times. (GH-11329)

https://bugs.python.org/issue35596

5 years agobpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
Tal Einat [Thu, 27 Dec 2018 13:43:43 +0000 (15:43 +0200)]
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)

5 years agoSpeed-up building enums by value, e.g. http.HTTPStatus(200) (#11318)
Andrew Svetlov [Wed, 26 Dec 2018 18:45:33 +0000 (20:45 +0200)]
Speed-up building enums by value, e.g. http.HTTPStatus(200) (#11318)

bpo-35585: Speed up enum by-value lookup

5 years agobpo-35579: Fix typo in in asyncio-task documentation (GH-11321)
Vaibhav Gupta [Wed, 26 Dec 2018 14:47:17 +0000 (20:17 +0530)]
bpo-35579: Fix typo in in asyncio-task documentation (GH-11321)

https://bugs.python.org/issue35579

https://bugs.python.org/issue35579

5 years agobpo-34897: avoid distutils test error when CXX is not set (GH-9706)
Michael Felt [Wed, 26 Dec 2018 05:45:19 +0000 (06:45 +0100)]
bpo-34897: avoid distutils test error when CXX is not set (GH-9706)

Depending on system config, a missing candidate compiler name may be
reported as the empty string rather than as None, so adjust the test
helper accordingly.

5 years agobpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not a directory...
Michael Felt [Wed, 26 Dec 2018 05:43:42 +0000 (06:43 +0100)]
bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not a directory (GH-9687)

AIX allows a trailing slash on local file system paths, which isn't what we want
in http.server. Accordingly, check explicitly for this case in the server code,
rather than relying on the OS raising an exception.

Patch by Michael Felt.

5 years agobpo-27643 - skip test_ctypes test case with XLC compiler. (GH-5164)
Michael Felt [Wed, 26 Dec 2018 03:54:22 +0000 (04:54 +0100)]
bpo-27643 - skip test_ctypes test case with XLC compiler. (GH-5164)

This test case needs "signed short" bitfields, but the
IBM XLC compiler (on AIX) does not support this.

Skip the code and test when AIX and XLC are used.

Use __xlc__ as identifier to detect the XLC compiler.

5 years agobpo-11192: Skip unsupported cases in test_socket on AIX (GH-8954)
Michael Felt [Wed, 26 Dec 2018 03:34:37 +0000 (04:34 +0100)]
bpo-11192: Skip unsupported cases in test_socket on AIX (GH-8954)

* use platform.system() as runtime test, rather than sys.platform() build-time test
* IPv6 zone id support on AIX is limited to inet_pton6_zone(), so skip related
  getaddrinfo() and getnameinfo() tests as not supported

5 years agoRedo PR 785 -- Add cross reference links (GH-11319)
Raymond Hettinger [Wed, 26 Dec 2018 01:53:36 +0000 (17:53 -0800)]
Redo PR 785 -- Add cross reference links (GH-11319)

5 years agoRevert "bpo-35565: Add detail to assertion failure message in wsgiref" (GH-11317)
Raymond Hettinger [Tue, 25 Dec 2018 23:59:07 +0000 (15:59 -0800)]
Revert "bpo-35565: Add detail to assertion failure message in wsgiref" (GH-11317)

* Revert part of "bpo-35565:  Remove incorrect test and one that wasn't needed for the fix.

5 years agobpo-35565: Add detail to assertion failure message in wsgiref (GH-11293)
Cheryl Sabella [Tue, 25 Dec 2018 23:19:11 +0000 (18:19 -0500)]
bpo-35565: Add detail to assertion failure message in wsgiref (GH-11293)

5 years agobpo-23867: Argument Clinic: inline parsing code for a single positional parameter...
Serhiy Storchaka [Tue, 25 Dec 2018 11:23:47 +0000 (13:23 +0200)]
bpo-23867: Argument Clinic: inline parsing code for a single positional parameter. (GH-9689)

5 years agobpo-20180: Simplify char_converter in Argument Clinic. (GH-9828)
Serhiy Storchaka [Tue, 25 Dec 2018 09:10:05 +0000 (11:10 +0200)]
bpo-20180: Simplify char_converter in Argument Clinic. (GH-9828)

Fix also handling non-ascii default values.

5 years agobpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306)
Serhiy Storchaka [Tue, 25 Dec 2018 08:17:28 +0000 (10:17 +0200)]
bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306)

5 years agoMinor grammar improvement in types.rst (GH-11308)
Mariatta [Mon, 24 Dec 2018 23:56:05 +0000 (15:56 -0800)]
Minor grammar improvement in types.rst (GH-11308)

defines utility function -> defines utility functions

Reported in https://mail.python.org/pipermail/docs/2018-December/038693.html

5 years agobpo-35208: Fix IDLE Squeezer line counting (GH-10449)
Tal Einat [Mon, 24 Dec 2018 12:05:51 +0000 (14:05 +0200)]
bpo-35208: Fix IDLE Squeezer line counting (GH-10449)

5 years agoClarify the behavior of the staticmethod builtin (GH-4362)
Jess Shapiro [Mon, 24 Dec 2018 07:47:38 +0000 (23:47 -0800)]
Clarify the behavior of the staticmethod builtin (GH-4362)

5 years agoFix minor grammatical mistakes in reversed(dict) doc (GH-10997)
Andre Delfino [Mon, 24 Dec 2018 07:05:23 +0000 (04:05 -0300)]
Fix minor grammatical mistakes in reversed(dict) doc (GH-10997)

5 years agoTweak wording about Fraction and Decimal (GH-10904)
Andre Delfino [Mon, 24 Dec 2018 07:03:40 +0000 (04:03 -0300)]
Tweak wording about Fraction and Decimal (GH-10904)

5 years agobpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)
leodema [Mon, 24 Dec 2018 06:54:25 +0000 (07:54 +0100)]
bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)

5 years agobpo-35566: Add links to annotation glossary term (GH-11291)
Cheryl Sabella [Mon, 24 Dec 2018 05:09:09 +0000 (00:09 -0500)]
bpo-35566: Add links to annotation glossary term (GH-11291)

5 years agobpo-34764: improve docs example of iter() with sentinel value (GH-11222)
Chris Rands [Mon, 24 Dec 2018 05:07:17 +0000 (06:07 +0100)]
bpo-34764: improve docs example of iter() with sentinel value (GH-11222)

5 years agobpo-35555: IDLE: Gray out Code Context menu item on non-editors (#11282)
Cheryl Sabella [Sun, 23 Dec 2018 21:26:53 +0000 (16:26 -0500)]
bpo-35555: IDLE: Gray out Code Context menu item on non-editors (#11282)

The Code Context menu item only works on Editor windows so disable it for others.

5 years agobpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)
Ned Deily [Sun, 23 Dec 2018 20:32:48 +0000 (15:32 -0500)]
bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)

`BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both.  For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257

5 years agoAdd 2 missing commas (GH-10698)
Boštjan Mejak [Sun, 23 Dec 2018 16:45:51 +0000 (17:45 +0100)]
Add 2 missing commas (GH-10698)

5 years agobpo-35567: Convert dict of constants to a set (GH-11296)
Cheryl Sabella [Sun, 23 Dec 2018 16:25:43 +0000 (11:25 -0500)]
bpo-35567: Convert dict of constants to a set (GH-11296)

5 years agoDocument that dict.fromkeys accepts any iterable for keys (GH-10998)
Andre Delfino [Sun, 23 Dec 2018 04:14:46 +0000 (01:14 -0300)]
Document that dict.fromkeys accepts any iterable for keys (GH-10998)

5 years agoUse generator instead of list in code examples (GH-11203)
Recursing [Sun, 23 Dec 2018 03:48:14 +0000 (04:48 +0100)]
Use generator instead of list in code examples (GH-11203)

There is no need to create a list for `sum`
Also, becomes consistent with the first example in Doc/library/os.rst

5 years agobpo-35564: add master_doc='contents' to conf.py (GH-11290)
Jean-François B [Sat, 22 Dec 2018 22:31:08 +0000 (23:31 +0100)]
bpo-35564: add master_doc='contents' to conf.py (GH-11290)

5 years agobpo-30455: Generate all token related code and docs from Grammar/Tokens. (GH-10370)
Serhiy Storchaka [Sat, 22 Dec 2018 09:18:40 +0000 (11:18 +0200)]
bpo-30455: Generate all token related code and docs from Grammar/Tokens. (GH-10370)

"Include/token.h", "Lib/token.py" (containing now some data moved from
"Lib/tokenize.py") and new files "Parser/token.c" (containing the code
moved from "Parser/tokenizer.c") and "Doc/library/token-list.inc" (included
in "Doc/library/token.rst") are now generated from "Grammar/Tokens" by
"Tools/scripts/generate_token.py". The script overwrites files only if
needed and can be used on the read-only sources tree.

"Lib/symbol.py" is now generated by "Tools/scripts/generate_symbol_py.py"
instead of been executable itself.

Added new make targets "regen-token" and "regen-symbol" which are now
dependencies of "regen-all".

The documentation contains now strings for operators and punctuation tokens.

5 years ago bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214)
Cheryl Sabella [Sat, 22 Dec 2018 06:25:45 +0000 (01:25 -0500)]
 bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214)

The Code Context menu label now toggles between Show/Hide Code Context.
 The Zoom Height menu now toggles between Zoom/Restore Height.
 Zoom Height has moved from the Window menu to the Options menu.

https://bugs.python.org/issue22703

5 years agobpo-11566: Extension build errors on Windows for _hypot (GH-11283)
Matt McCormick [Sat, 22 Dec 2018 01:37:59 +0000 (20:37 -0500)]
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)

This addresses C extension build errors related to an undefined _hypot
symbol when building with the Microsoft Visual C++ Compiler for Python
2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++
extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not
been declared'

[1] https://www.microsoft.com/en-us/download/details.aspx?id=44266
[2] https://mingwpy.github.io/

5 years agoFix typo in socketserver docstring (GH-11252)
Christopher Hunt [Fri, 21 Dec 2018 22:22:09 +0000 (17:22 -0500)]
Fix typo in socketserver docstring (GH-11252)

Fix typo in the docstring of `service_actions`.
serve_forver -> serve_forever

5 years agoEnable signing Windows builds with SHA1 environment variable (GH-11279)
Steve Dower [Fri, 21 Dec 2018 21:48:18 +0000 (13:48 -0800)]
Enable signing Windows builds with SHA1 environment variable (GH-11279)

5 years agobpo-33830: Fix an example in http.client docs for 404. (GH-7780)
Xtreak [Fri, 21 Dec 2018 15:34:41 +0000 (21:04 +0530)]
bpo-33830: Fix an example in http.client docs for 404. (GH-7780)

5 years agobpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)
Xtreak [Fri, 21 Dec 2018 14:45:13 +0000 (20:15 +0530)]
bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)

5 years agobpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
Arthur Neufeld [Thu, 20 Dec 2018 21:11:03 +0000 (15:11 -0600)]
bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)

5 years agobpo-35424: emit ResourceWarning at multiprocessing.Pool destruction (GH-10974)
Victor Stinner [Thu, 20 Dec 2018 19:33:51 +0000 (20:33 +0100)]
bpo-35424: emit ResourceWarning at multiprocessing.Pool destruction (GH-10974)

multiprocessing.Pool destructor now emits ResourceWarning
if the pool is still running.

5 years agobpo-22831: Use "with" to avoid possible fd leaks in distutils. (GH-10921)
Serhiy Storchaka [Thu, 20 Dec 2018 17:00:14 +0000 (19:00 +0200)]
bpo-22831: Use "with" to avoid possible fd leaks in distutils. (GH-10921)

5 years agoFix mock_open docstring to use readline (#11176)
Xtreak [Thu, 20 Dec 2018 16:00:21 +0000 (21:30 +0530)]
Fix mock_open docstring to use readline (#11176)

5 years agobpo-35521: Add more cross-refs to IDLE docs (#11257)
Terry Jan Reedy [Thu, 20 Dec 2018 11:06:29 +0000 (06:06 -0500)]
bpo-35521: Add more cross-refs to IDLE docs (#11257)

Format menu and preferences.

5 years agobpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)
Zackery Spytz [Thu, 20 Dec 2018 08:29:38 +0000 (01:29 -0700)]
bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)

"dll" would leak if an error occurred in _validate_paramflags() or
GenericPyCData_new().

5 years agobpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123)
Serhiy Storchaka [Thu, 20 Dec 2018 07:34:51 +0000 (09:34 +0200)]
bpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123)

5 years agobpo-18085: Update refcounts.dat. (GH-11247)
Serhiy Storchaka [Thu, 20 Dec 2018 07:33:58 +0000 (09:33 +0200)]
bpo-18085: Update refcounts.dat. (GH-11247)

Fixed some errors in refcounts.dat, remove functions removed in
Python 3, and add more entries for documented functions. This will
add several automatically generated notes about return values.

5 years agobpo-34162: Update idlelib/NEWS.txt to 2018-12-20. (#11255)
Terry Jan Reedy [Thu, 20 Dec 2018 06:07:10 +0000 (01:07 -0500)]
bpo-34162: Update idlelib/NEWS.txt to 2018-12-20. (#11255)

5 years agobpo-35521: IDLE: Add code context section to docs (#11205)
Cheryl Sabella [Thu, 20 Dec 2018 05:38:54 +0000 (00:38 -0500)]
bpo-35521: IDLE: Add code context section to docs (#11205)

Also add some internal cross-references.

5 years agobpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224)
Steve Dower [Thu, 20 Dec 2018 02:20:06 +0000 (18:20 -0800)]
bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224)

5 years agobpo-32077: Update refcounts.dat for Unicode object functions. (GH-11243)
Mat M [Wed, 19 Dec 2018 19:13:15 +0000 (14:13 -0500)]
bpo-32077: Update refcounts.dat for Unicode object functions. (GH-11243)

Makes the documentation more comprehensive in terms of indicating
whether or not a function returns a new reference.

Also fixes some errors and adds missing functions.

5 years agobpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900)
stratakis [Wed, 19 Dec 2018 17:19:01 +0000 (18:19 +0100)]
bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900)

When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.

5 years agobpo-35526: make __future__.barry_as_FLUFL mandatory for Python 4.0 (#11218)
Chris Rands [Wed, 19 Dec 2018 16:19:39 +0000 (17:19 +0100)]
bpo-35526: make __future__.barry_as_FLUFL mandatory for Python 4.0 (#11218)

* extending the joke!

* 📜🤖 Added by blurb_it.

5 years agoFix documented signatures for C API functions. (GH-11236)
Serhiy Storchaka [Wed, 19 Dec 2018 13:31:40 +0000 (15:31 +0200)]
Fix documented signatures for C API functions. (GH-11236)

5 years agoFix Python version since which external enities are not resolved by default. (GH...
Serhiy Storchaka [Wed, 19 Dec 2018 13:29:04 +0000 (15:29 +0200)]
Fix Python version since which external enities are not resolved by default. (GH-11237)

5 years agobpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162)
Manjusaka [Wed, 19 Dec 2018 11:59:52 +0000 (19:59 +0800)]
bpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162)

5 years agobpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
Serhiy Storchaka [Wed, 19 Dec 2018 06:09:46 +0000 (08:09 +0200)]
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)

5 years agoRemoved dangling `since Python` at the end of library/xml.rst. (GH-11201)
Jules Lasne (jlasne) [Wed, 19 Dec 2018 06:05:14 +0000 (07:05 +0100)]
Removed dangling `since Python` at the end of library/xml.rst. (GH-11201)

5 years agobpo-35424: Fix test_multiprocessing_main_handling (GH-11223)
Victor Stinner [Tue, 18 Dec 2018 22:54:33 +0000 (23:54 +0100)]
bpo-35424: Fix test_multiprocessing_main_handling (GH-11223)

Fix test_multiprocessing_main_handling: use multiprocessing.Pool with
a context manager and then explicitly join the pool.

5 years agobpo-31731: Fix test_io.check_interrupted_write() (GH-11225)
Victor Stinner [Tue, 18 Dec 2018 22:52:39 +0000 (23:52 +0100)]
bpo-31731: Fix test_io.check_interrupted_write() (GH-11225)

Fix a race condition in check_interrupted_write() of test_io:
create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.