]> granicus.if.org Git - python/log
python
6 years agobpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622)
Thomas Kluyver [Fri, 8 Jun 2018 19:28:37 +0000 (21:28 +0200)]
bpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622)

More consistent with how other parts of Python find the filename (e.g. tracebacks and pdb).

6 years agobpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigPars...
Andrés Delfino [Fri, 8 Jun 2018 19:19:21 +0000 (16:19 -0300)]
bpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser (GH-7494)

6 years agobpo-33197: Add versionadded tag to the documentation of ParameterKind (GH-7536)
Dong-hee Na [Fri, 8 Jun 2018 16:07:52 +0000 (01:07 +0900)]
bpo-33197: Add versionadded tag to the documentation of ParameterKind (GH-7536)

6 years agobpo-33807: Add Python 3.7 buildbot link to '.github/CONTRIBUTING.rst' (GH-7532)
Suriyaa ✌️️ [Fri, 8 Jun 2018 15:40:55 +0000 (17:40 +0200)]
bpo-33807: Add Python 3.7 buildbot link to '.github/CONTRIBUTING.rst' (GH-7532)

6 years agobpo-33736: Improve the documentation of asyncio stream APIs (GH-7326)
Elvis Pranskevichus [Fri, 8 Jun 2018 15:36:00 +0000 (11:36 -0400)]
bpo-33736: Improve the documentation of asyncio stream APIs (GH-7326)

6 years agobpo-33798: Update csv document about dict order (GH-7490)
Andrés Delfino [Fri, 8 Jun 2018 12:51:12 +0000 (09:51 -0300)]
bpo-33798: Update csv document about dict order (GH-7490)

6 years agobpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524)
Łukasz Langa [Fri, 8 Jun 2018 11:02:48 +0000 (04:02 -0700)]
bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524)

This solves a regression in logging config due to changes in BPO-23835.

6 years agobpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
wim glenn [Fri, 8 Jun 2018 10:12:49 +0000 (05:12 -0500)]
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)

- bugfix and test for fragile metavar handling in argparse (see
  bpo-24089, bpo-14046, bpo-25058, bpo-11874)
- also fixes some incorrect tests that did not make 1-element tuples correctly

6 years agobpo-33694: Fix typo in helper function name (GH-7522)
Victor Stinner [Fri, 8 Jun 2018 08:32:06 +0000 (10:32 +0200)]
bpo-33694: Fix typo in helper function name (GH-7522)

_feed_data_to_bufferred_proto() renamed to
_feed_data_to_buffered_proto() ("bufferred" => "buffered").

Typo spotted by Nathaniel J. Smith.

6 years agobpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)
Victor Stinner [Fri, 8 Jun 2018 07:53:51 +0000 (09:53 +0200)]
bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)

If tests are re-run, use "xxx then yyy" result format (ex: "FAILURE
then SUCCESS") to show that some failing tests have been re-run.

Add also test_regrtest.test_rerun_fail() test.

6 years agobpo-33799: Remove non-ordered dicts comments from FAQ
Andrés Delfino [Fri, 8 Jun 2018 06:38:07 +0000 (03:38 -0300)]
bpo-33799: Remove non-ordered dicts comments from FAQ

6 years agoUpdate idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)
Terry Jan Reedy [Fri, 8 Jun 2018 06:28:45 +0000 (02:28 -0400)]
Update idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)

6 years agobpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)
Cheryl Sabella [Fri, 8 Jun 2018 05:21:15 +0000 (01:21 -0400)]
bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)

6 years agobpo-33197: Add description property for _ParameterKind. (GH-7206)
Dong-hee Na [Fri, 8 Jun 2018 03:46:31 +0000 (12:46 +0900)]
bpo-33197: Add description property for _ParameterKind. (GH-7206)

6 years agobpo-33791: Update README for macOS users (GH-7471)
atg7000 [Fri, 8 Jun 2018 02:33:20 +0000 (19:33 -0700)]
bpo-33791: Update README for macOS users (GH-7471)

6 years agobpo-33792: Add selector and proactor windows policies (GH-7487)
Yury Selivanov [Fri, 8 Jun 2018 00:44:57 +0000 (20:44 -0400)]
bpo-33792: Add selector and proactor windows policies (GH-7487)

6 years agobpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467)
Yury Selivanov [Fri, 8 Jun 2018 00:31:26 +0000 (20:31 -0400)]
bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467)

6 years agobpo-33803: Fix a crash in hamt.c (#7504)
Yury Selivanov [Fri, 8 Jun 2018 00:29:55 +0000 (20:29 -0400)]
bpo-33803: Fix a crash in hamt.c (#7504)

6 years agobpo-33615: Skip test__xxsubinterpreters (GH-7503)
Victor Stinner [Fri, 8 Jun 2018 00:28:28 +0000 (02:28 +0200)]
bpo-33615: Skip test__xxsubinterpreters (GH-7503)

The test does crash on multiple CIs causing many troubles. For
example, the test prevents to get results of the two Refleak 3.x
buildbots.

6 years agobpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)
Terry Jan Reedy [Thu, 7 Jun 2018 23:11:41 +0000 (19:11 -0400)]
bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)

6 years agobpo-33694: Fix race condition in asyncio proactor (GH-7498)
Victor Stinner [Thu, 7 Jun 2018 22:25:52 +0000 (00:25 +0200)]
bpo-33694: Fix race condition in asyncio proactor (GH-7498)

The cancellation of an overlapped WSARecv() has a race condition
which causes data loss because of the current implementation of
proactor in asyncio.

No longer cancel overlapped WSARecv() in _ProactorReadPipeTransport
to work around the race condition.

Remove the optimized recv_into() implementation to get simple
implementation of pause_reading() using the single _pending_data
attribute.

Move _feed_data_to_bufferred_proto() to protocols.py.

Remove set_protocol() method which became useless.

6 years agobpo-33609: small wording fixes to dict ordering docs
Neil Schemenauer [Thu, 7 Jun 2018 21:46:04 +0000 (14:46 -0700)]
bpo-33609: small wording fixes to dict ordering docs

A few wording improvements to dict ordering documentation.

6 years agobpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488)
Eric V. Smith [Thu, 7 Jun 2018 18:43:59 +0000 (14:43 -0400)]
bpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488)

6 years agoupdate 3.7 whatsnew entry about Unicode version (GH-7480)
Benjamin Peterson [Thu, 7 Jun 2018 14:21:28 +0000 (07:21 -0700)]
update 3.7 whatsnew entry about Unicode version (GH-7480)

Followup to 4705ea38c900f068fd262aca02943896d1123544 and bpo-33778.

6 years agobpo-17909: Document that json.load can accept a binary IO (GH-7366)
Anthony Sottile [Thu, 7 Jun 2018 09:58:12 +0000 (02:58 -0700)]
bpo-17909: Document that json.load can accept a binary IO (GH-7366)

6 years agobpo-29235: Update document for Profiler's context manager (GH-7331)
Scott Sanderson [Thu, 7 Jun 2018 09:46:42 +0000 (05:46 -0400)]
bpo-29235: Update document for Profiler's context manager (GH-7331)

6 years agobpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)
Zackery Spytz [Thu, 7 Jun 2018 06:02:24 +0000 (00:02 -0600)]
bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)

6 years agobpo-33274: Compliance with DOM L1: return removed attribute (#7465)
arikrupnik [Thu, 7 Jun 2018 04:42:38 +0000 (23:42 -0500)]
bpo-33274: Compliance with DOM L1: return removed attribute (#7465)

* bpo-33274: Compliance with DOM L1: return removed attribute

* Update 2018-06-06-22-01-33.bpo-33274.teYqv8.rst

6 years agoupdate to Unicode 11.0.0 (closes bpo-33778) (GH-7439)
Benjamin Peterson [Thu, 7 Jun 2018 03:14:28 +0000 (20:14 -0700)]
update to Unicode 11.0.0 (closes bpo-33778) (GH-7439)

Also, standardize indentation of generated tables.

6 years agobpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)
Victor Stinner [Wed, 6 Jun 2018 23:30:38 +0000 (01:30 +0200)]
bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)

Fix "<CoroWrapper ...> was never yielded from" warning in
PyTask_PyFuture_Tests.test_error_in_call_soon() of
test_asyncio.test_tasks.

Close manually the coroutine on error.

6 years agobpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461)
Victor Stinner [Wed, 6 Jun 2018 23:13:48 +0000 (01:13 +0200)]
bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461)

Hide PendingDeprecationWarning in test__register_task_3().

6 years agobpo-33789: test_asyncio: Fix ResourceWarning (GH-7460)
Victor Stinner [Wed, 6 Jun 2018 23:12:38 +0000 (01:12 +0200)]
bpo-33789: test_asyncio: Fix ResourceWarning (GH-7460)

* Close sockets and streams to fix ResourceWarning warnings
* Catch also OSError to hide a traceback on an expected handshake
  error

6 years agobpo-28240: timeit: Update repeat() doc (GH-7419)
Victor Stinner [Wed, 6 Jun 2018 15:55:18 +0000 (17:55 +0200)]
bpo-28240: timeit: Update repeat() doc (GH-7419)

Document that the default value of repeat changed from 3 to 5 in
Python 3.7.

6 years agobpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)
Victor Stinner [Wed, 6 Jun 2018 15:23:50 +0000 (17:23 +0200)]
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)

Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.

Add test_support.test_fd_count().

Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.

6 years agobpo-33781: audioop: enhance rounding double as int (GH-7447)
Victor Stinner [Wed, 6 Jun 2018 13:50:50 +0000 (15:50 +0200)]
bpo-33781: audioop: enhance rounding double as int (GH-7447)

Move the floor() call into fbound() to call floor() on a double
rather than an int. The change should enhance the rounding.

Document also (int)double rounding mode.

6 years agotest.support.SaveSignals: fix typo (GH-7448)
Victor Stinner [Wed, 6 Jun 2018 13:34:46 +0000 (15:34 +0200)]
test.support.SaveSignals: fix typo (GH-7448)

an => and

6 years agobpo-31044, test_posix: Reenable makedev() tests on FreeBSD (#7449)
Victor Stinner [Wed, 6 Jun 2018 13:28:50 +0000 (15:28 +0200)]
bpo-31044, test_posix: Reenable makedev() tests on FreeBSD (#7449)

The bug has been fixed 10 months ago:

* https://svnweb.freebsd.org/base?view=revision&revision=321920
* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221048

6 years agoremove hg support from patchcheck (GH-7440)
Benjamin Peterson [Wed, 6 Jun 2018 05:40:12 +0000 (22:40 -0700)]
remove hg support from patchcheck (GH-7440)

6 years agobpo-33504: Migrate configparser from OrderedDict to dict. (#6819)
John Reese [Tue, 5 Jun 2018 23:31:33 +0000 (16:31 -0700)]
bpo-33504: Migrate configparser from OrderedDict to dict. (#6819)

With 3.7+, dictionary are ordered by design.  Configparser still uses
collections.OrderedDict, which is unnecessary.  This updates the module
to use the standard dict implementation by default, and changes the
docs and tests to match.

6 years agoImprove the subprocess restore_signals=True test. (GH-7414)
Gregory P. Smith [Tue, 5 Jun 2018 19:00:57 +0000 (12:00 -0700)]
Improve the subprocess restore_signals=True test. (GH-7414)

It wasn't testing functionality.  Now it is (on Linux anyways).

6 years agobpo-12486: Document tokenize.generate_tokens() as public API (#6957)
Thomas Kluyver [Tue, 5 Jun 2018 17:26:39 +0000 (19:26 +0200)]
bpo-12486: Document tokenize.generate_tokens() as public API (#6957)

* Document tokenize.generate_tokens()

* Add news file

* Add test for generate_tokens

* Document behaviour around ENCODING token

* Add generate_tokens to __all__

6 years agobpo-33751: Fix test_file. (GH-7378)
Serhiy Storchaka [Tue, 5 Jun 2018 16:55:41 +0000 (19:55 +0300)]
bpo-33751: Fix test_file. (GH-7378)

testModeStrings and testTruncateOnWindows were depended on
a file leaked in other tests.

Also improve cleaning up after tests.

6 years agobpo-33755: Fix importlib.resources isolation tests (#7412)
Barry Warsaw [Tue, 5 Jun 2018 16:40:45 +0000 (09:40 -0700)]
bpo-33755: Fix importlib.resources isolation tests (#7412)

6 years agobpo-33165: Added stacklevel parameter to logging APIs. (GH-7424)
Vinay Sajip [Tue, 5 Jun 2018 16:24:18 +0000 (17:24 +0100)]
bpo-33165: Added stacklevel parameter to logging APIs. (GH-7424)

6 years agobpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)
Mayank Singhal [Tue, 5 Jun 2018 14:14:37 +0000 (19:44 +0530)]
bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)

6 years agobpo-33752: Fix a file leak in test_dbm. (GH-7376)
Serhiy Storchaka [Tue, 5 Jun 2018 13:03:00 +0000 (16:03 +0300)]
bpo-33752: Fix a file leak in test_dbm. (GH-7376)

With addCleanup() f.close() was executed after tearDown().

6 years agobpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403)
Yury Selivanov [Tue, 5 Jun 2018 12:59:58 +0000 (08:59 -0400)]
bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403)

In addition to that, mark SSLTransport as "closed" in its "abort()" method to prevent bogus warnings.

6 years agobpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
Zackery Spytz [Tue, 5 Jun 2018 12:59:41 +0000 (06:59 -0600)]
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)

Raise TypeError instead of SystemError for unsupported operations.

6 years agobpo-32392: Document env keyword argument of subprocess.run() (GH-7289)
Tobias Kunze [Tue, 5 Jun 2018 11:41:42 +0000 (13:41 +0200)]
bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)

6 years agobpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)
INADA Naoki [Tue, 5 Jun 2018 11:40:53 +0000 (20:40 +0900)]
bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)

6 years agobpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)
Serhiy Storchaka [Tue, 5 Jun 2018 09:08:36 +0000 (12:08 +0300)]
bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)

6 years agobpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)
INADA Naoki [Mon, 4 Jun 2018 22:09:22 +0000 (07:09 +0900)]
bpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)

6 years agobpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)
Steve Dower [Mon, 4 Jun 2018 20:25:00 +0000 (13:25 -0700)]
bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)

6 years agobpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)
Cheryl Sabella [Mon, 4 Jun 2018 15:58:44 +0000 (11:58 -0400)]
bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)

6 years agobpo-33664: Scroll IDLE editor text by lines (GH-7351)
Cheryl Sabella [Mon, 4 Jun 2018 15:48:21 +0000 (11:48 -0400)]
bpo-33664: Scroll IDLE editor text by lines (GH-7351)

Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.

6 years agobpo-33734: asyncio/ssl: a bunch of bugfixes (#7321)
Yury Selivanov [Mon, 4 Jun 2018 15:32:35 +0000 (11:32 -0400)]
bpo-33734: asyncio/ssl: a bunch of bugfixes (#7321)

* Fix AttributeError (not all SSL exceptions have 'errno' attribute)

* Increase default handshake timeout from 10 to 60 seconds
* Make sure start_tls can be cancelled correctly
* Make sure any error in SSLProtocol gets propagated (instead of just being logged)

6 years agobpo-31849: Fix warning in pyhash.c (GH-6799)
A. Jesse Jiryu Davis [Mon, 4 Jun 2018 10:57:08 +0000 (06:57 -0400)]
bpo-31849: Fix warning in pyhash.c (GH-6799)

6 years agobpo-27902: Add compatibility note to Profile docs (GH-7295)
Tobias Kunze [Mon, 4 Jun 2018 10:07:16 +0000 (12:07 +0200)]
bpo-27902: Add compatibility note to Profile docs (GH-7295)

6 years agobpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
Farhaan Bukhsh [Mon, 4 Jun 2018 07:29:00 +0000 (12:59 +0530)]
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)

The bytes parameter uses big endian.

6 years agoRegenerate configure after changing configure.ac in GH-6987. (GH-7344)
Serhiy Storchaka [Mon, 4 Jun 2018 05:20:25 +0000 (08:20 +0300)]
Regenerate configure after changing configure.ac in GH-6987. (GH-7344)

6 years agobpo-33509: Fix test_warnings for python3 -Werror (GH-7365)
Victor Stinner [Mon, 4 Jun 2018 05:14:46 +0000 (07:14 +0200)]
bpo-33509: Fix test_warnings for python3 -Werror (GH-7365)

Fix test_warnings.test_module_globals() when python3 is run with
-Werror.

6 years agotravis: Fix macOS build (GH-7250)
INADA Naoki [Mon, 4 Jun 2018 03:57:03 +0000 (12:57 +0900)]
travis: Fix macOS build (GH-7250)

Homebrew's python is now python3, but travis preinstalls old python2.
So updated Homebrew requires `brew upgrade python` now.

This commit disables auto update and use preinstalled version of Homebrew.

6 years agobpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362)
Serhiy Storchaka [Mon, 4 Jun 2018 02:55:32 +0000 (05:55 +0300)]
bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362)

It depended on a global variable set by other tests.

6 years agobpo-33760: Fix file leaks in test_io. (GH-7361)
Serhiy Storchaka [Mon, 4 Jun 2018 02:53:56 +0000 (05:53 +0300)]
bpo-33760: Fix file leaks in test_io. (GH-7361)

6 years agobpo-33764: Appveyor fixes (GH-7364)
Zachary Ware [Mon, 4 Jun 2018 01:13:31 +0000 (20:13 -0500)]
bpo-33764: Appveyor fixes (GH-7364)

* Prevent spurious message if taking a shortcut
* Fix YAML style
* Disable largefile tests

6 years agobpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)
Serhiy Storchaka [Sun, 3 Jun 2018 17:56:52 +0000 (20:56 +0300)]
bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)

6 years agobpo-33750: Reset thread-local context precision in test_round(). (#7355)
Stefan Krah [Sun, 3 Jun 2018 16:40:00 +0000 (18:40 +0200)]
bpo-33750: Reset thread-local context precision in test_round(). (#7355)

6 years agobpo-27485: Change urlparse tests to use private methods. (GH-7070)
Cheryl Sabella [Sun, 3 Jun 2018 14:31:32 +0000 (10:31 -0400)]
bpo-27485: Change urlparse tests to use private methods. (GH-7070)

6 years agobpo-33744: Fix test_uu. (GH-7350)
Serhiy Storchaka [Sun, 3 Jun 2018 14:22:42 +0000 (17:22 +0300)]
bpo-33744: Fix test_uu. (GH-7350)

Separate tests leaked files or were depended on files leaked in other tests.

6 years agobpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
Zackery Spytz [Sat, 2 Jun 2018 15:02:16 +0000 (09:02 -0600)]
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)

`writerows()` takes an iterable.

6 years agoFix typo in datamodel.rst (GH-6964)
Zach Mitchell [Sat, 2 Jun 2018 14:29:47 +0000 (10:29 -0400)]
Fix typo in datamodel.rst (GH-6964)

This is a simple grammatical fix correcting "...object whose `__self__` attributes is ..." to "...object whose `__self__` attribute is ...".

6 years agoDocs: fix some wrong words (GH-6987)
Eitan Adler [Sat, 2 Jun 2018 14:16:19 +0000 (07:16 -0700)]
Docs: fix some wrong words (GH-6987)

Fix typos in code comments: bdb.py and configure.ac.

6 years agobpo-33562: Check the global asyncio event loop policy isn't set after any tests ...
Brett Cannon [Sat, 2 Jun 2018 03:34:09 +0000 (20:34 -0700)]
bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)

6 years agobpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)
Cheryl Sabella [Sat, 2 Jun 2018 01:45:54 +0000 (21:45 -0400)]
bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)

The difference from before is that the settings are now on the
Highlights tab instead of the Extensions tab and only change one theme
at a time instead of all themes. The default for light themes is black
on light gray, as before. The default for the IDLE Dark theme is white
on dark gray, which better fits the dark theme.

When one starts IDLE from a console and loads a custom theme without
definitions for 'context', one will see a warning message on the console.
To stop the warning, go to Options => Configure IDLE => Highlights,
select the custom theme if not selected already, select 'Code Context',
and select foreground and background colors.

6 years agobpo-33615: Re-enable a subinterpreter test. (gh-7251)
Eric Snow [Sat, 2 Jun 2018 00:45:20 +0000 (18:45 -0600)]
bpo-33615: Re-enable a subinterpreter test. (gh-7251)

For bpo-32604 I added extra subinterpreter-related tests (see #6914), which caused a few buildbots to crash. This patch fixes the crash by ensuring that refcounts in channels are handled properly.

6 years agobpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
Cheryl Sabella [Fri, 1 Jun 2018 23:23:00 +0000 (19:23 -0400)]
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)

Instead of displaying a fixed number of lines, some blank, Code Context
now displays the variable number of actual context lines.  When there
are no context lines, it shows a single blank line to indicate that the
feature is turned on.

The Code Context configuration option is changed from 'numlines'
(default 3) to 'maxlines' (default 15) to avoid possible interference
between user settings for the old and new versions of Code Context.

6 years agobpo-33724: Use the right format code for int64_t in subinterpreters code. (gh-7330)
Eric Snow [Fri, 1 Jun 2018 22:26:01 +0000 (16:26 -0600)]
bpo-33724: Use the right format code for int64_t in subinterpreters code. (gh-7330)

6 years agobpo-29235: Make cProfile.Profile a context manager (GH-6808)
Scott Sanderson [Fri, 1 Jun 2018 20:36:23 +0000 (16:36 -0400)]
bpo-29235: Make cProfile.Profile a context manager (GH-6808)

6 years agobpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319)
Victor Stinner [Fri, 1 Jun 2018 14:48:34 +0000 (16:48 +0200)]
bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319)

Use also support.SOCK_MAX_SIZE, not only support.PIPE_MAX_SIZE, to
get the size for a blocking send into a multiprocessing pipe.

6 years agobpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7310)
Victor Stinner [Fri, 1 Jun 2018 12:21:34 +0000 (14:21 +0200)]
bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7310)

socketserver.ThreadingMixIn no longer tracks active threads if
block_on_close is false.

6 years agobpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146)
pkerling [Fri, 1 Jun 2018 09:47:18 +0000 (09:47 +0000)]
bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146)

6 years agobpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation...
Vinay Sajip [Fri, 1 Jun 2018 09:09:21 +0000 (10:09 +0100)]
bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297)

6 years agobpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296)
Vinay Sajip [Fri, 1 Jun 2018 09:08:33 +0000 (10:08 +0100)]
bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296)

6 years agobpo-33718: regrtest: enhance "running:" formatting (GH-7292)
Victor Stinner [Fri, 1 Jun 2018 09:04:45 +0000 (11:04 +0200)]
bpo-33718: regrtest: enhance "running:" formatting (GH-7292)

* "running:" progress: Format number of seconds as hours and minutes
* format_duration(): count also minutes as hours
* Create Lib/test/libregrtest/utils.py

6 years agobpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293)
Victor Stinner [Fri, 1 Jun 2018 09:04:29 +0000 (11:04 +0200)]
bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293)

Check which readline implementation is used based on the readline
docstring.

6 years agobpo-33606: improve logging performance when logger is disabled (GH-7285)
Timo Furrer [Fri, 1 Jun 2018 07:29:46 +0000 (09:29 +0200)]
bpo-33606: improve logging performance when logger is disabled (GH-7285)

A check has been added in Logger.isEnabledFor() to return False when the logger is disabled. This avoids unnecessary work being done when a disabled logger is used.

6 years agobpo-33718: regrtest keeps filters to re-run fails (GH-7291)
Victor Stinner [Thu, 31 May 2018 22:48:57 +0000 (00:48 +0200)]
bpo-33718: regrtest keeps filters to re-run fails (GH-7291)

* No longer clear filters, like --match, to re-run failed tests in
  verbose mode (-w option).
* Tests result: always indicate if tests have been interrupted.
* Enhance tests summary

6 years agobpo-33717: pythoninfo: add CC --version (#7290)
Victor Stinner [Thu, 31 May 2018 22:33:03 +0000 (00:33 +0200)]
bpo-33717: pythoninfo: add CC --version (#7290)

Get the version of the C compiler.

6 years agobpo-33615: Temporarily disable a test that is triggering crashes on a few buildbots...
Eric Snow [Thu, 31 May 2018 16:17:24 +0000 (10:17 -0600)]
bpo-33615: Temporarily disable a test that is triggering crashes on a few buildbots. (gh-7288)

For bpo-32604 I added some subinterpreter-related tests (see #6914) that are causing crashes on a few buildbots. I'm working on fixing the crashes (see #7251).  This change temporarily disables the triggering test.

6 years agobpo-33706: Fix pymain_parse_cmdline_impl() (GH-7283)
Victor Stinner [Thu, 31 May 2018 13:09:28 +0000 (15:09 +0200)]
bpo-33706: Fix pymain_parse_cmdline_impl() (GH-7283)

Fix a crash in Python initialization when parsing the command line
options.

Fix memcpy() size parameter: previously, we read one wchar_t after
the end of _PyOS_optarg. Moreover, don't copy the trailingg NUL
character: we write it manually anyway.

Thanks Christoph Gohlke for the bug report and the fix!

6 years agobpo-32911: Add the historical note about the magic number. (GH-7273)
Serhiy Storchaka [Thu, 31 May 2018 06:11:55 +0000 (09:11 +0300)]
bpo-32911: Add the historical note about the magic number. (GH-7273)

6 years agoFix "ditribution" typo in NEWS entry. (GH-7274)
Ned Deily [Thu, 31 May 2018 05:18:49 +0000 (01:18 -0400)]
Fix "ditribution" typo in NEWS entry. (GH-7274)

6 years agoAdds new upload script for Windows releases (GH-7268)
Steve Dower [Thu, 31 May 2018 05:13:43 +0000 (22:13 -0700)]
Adds new upload script for Windows releases (GH-7268)

6 years agobpo-33641: Convert RFC references into links. (GH-7103)
Serhiy Storchaka [Thu, 31 May 2018 04:39:00 +0000 (07:39 +0300)]
bpo-33641: Convert RFC references into links. (GH-7103)

85% of them are already links.

6 years agobpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
Serhiy Storchaka [Thu, 31 May 2018 04:34:34 +0000 (07:34 +0300)]
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)

6 years agobpo-33532: Fix multiprocessing test_ignore() (#7262)
Victor Stinner [Thu, 31 May 2018 03:08:42 +0000 (05:08 +0200)]
bpo-33532: Fix multiprocessing test_ignore() (#7262)

Fix test_ignore() of multiprocessing tests like
test_multiprocessing_forkserver: use support.PIPE_MAX_SIZE to make
sure that send_bytes() blocks.

6 years agobpo-31368: Enhance os.preadv() documentation (GH-7254)
Pablo Galindo [Wed, 30 May 2018 23:00:04 +0000 (00:00 +0100)]
bpo-31368: Enhance os.preadv() documentation (GH-7254)

6 years ago3.6 what's new: fix a reference to PEP 528 (#7113)
Dmitry Shachnev [Wed, 30 May 2018 22:52:43 +0000 (01:52 +0300)]
3.6 what's new: fix a reference to PEP 528 (#7113)

6 years agobpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
Andrés Delfino [Wed, 30 May 2018 16:08:25 +0000 (13:08 -0300)]
bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)

6 years agobpo-33691: Add _PyAST_GetDocString(). (GH-7236)
Serhiy Storchaka [Wed, 30 May 2018 07:56:16 +0000 (10:56 +0300)]
bpo-33691: Add _PyAST_GetDocString(). (GH-7236)