]> granicus.if.org Git - python/log
python
7 years agobpo-30806 netrc.__repr__() is broken for writing to file (GH-2491)
James Sexton [Sat, 30 Sep 2017 07:10:31 +0000 (02:10 -0500)]
bpo-30806 netrc.__repr__() is broken for writing to file (GH-2491)

netrc file format doesn't support quotes and escapes.

See https://linux.die.net/man/5/netrc

7 years agobpo-31574: importlib dtrace (#3749)
Christian Heimes [Fri, 29 Sep 2017 22:53:19 +0000 (00:53 +0200)]
bpo-31574: importlib dtrace (#3749)

Importlib was instrumented with two dtrace probes to profile import timing.

Signed-off-by: Christian Heimes <christian@python.org>
7 years agobpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` (#3830)
Łukasz Langa [Fri, 29 Sep 2017 21:33:34 +0000 (14:33 -0700)]
bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` (#3830)

This was possible before.  GH-1560 introduced a regression after 3.6.2 got
released where only sequences were accepted now.  This commit addresses this
problem.

7 years agobpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a bad...
Oren Milman [Fri, 29 Sep 2017 18:34:31 +0000 (21:34 +0300)]
bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a bad zlib.decompress() (GH-3784)

While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception.

Thanks to Oren Milman for the patch.

7 years agoTweak formatting of PR message template (#3828)
Brett Cannon [Fri, 29 Sep 2017 18:16:38 +0000 (11:16 -0700)]
Tweak formatting of PR message template (#3828)

7 years agobpo-31285: Remove splitlines identifier from Python/_warnings.c (#3803)
Oren Milman [Fri, 29 Sep 2017 18:16:02 +0000 (21:16 +0300)]
bpo-31285: Remove splitlines identifier from Python/_warnings.c (#3803)

(forgot to remove it in #3219)

7 years agobpo-31638: Add compression support to zipapp (GH-3819)
Zhiming Wang [Fri, 29 Sep 2017 17:31:52 +0000 (13:31 -0400)]
bpo-31638: Add compression support to zipapp (GH-3819)

Add optional argument `compressed` to `zipapp.create_archive`, and add
option `--compress` to the command line interface of `zipapp`.

7 years agoexplicitly list objects for the ar command (#3824)
Benjamin Peterson [Fri, 29 Sep 2017 16:26:48 +0000 (09:26 -0700)]
explicitly list objects for the ar command (#3824)

$^ is not portable.

closes bpo-31625

7 years agostop using ranlib (closes bpo-31625) (#3815)
Benjamin Peterson [Fri, 29 Sep 2017 15:42:41 +0000 (08:42 -0700)]
stop using ranlib (closes bpo-31625) (#3815)

Instead, simply pass 's' to ar.

7 years agobpo-25351: avoid activate failure on strict shells (GH-3804)
Sorin Sbarnea [Fri, 29 Sep 2017 11:48:11 +0000 (12:48 +0100)]
bpo-25351: avoid activate failure on strict shells (GH-3804)

7 years agoremove support for BSD/OS (closes bpo-31624) (#3812)
Benjamin Peterson [Fri, 29 Sep 2017 05:44:27 +0000 (22:44 -0700)]
remove support for BSD/OS (closes bpo-31624) (#3812)

7 years agobpo-11063, bpo-20519: avoid ctypes and improve import time for uuid (#3796)
Antoine Pitrou [Thu, 28 Sep 2017 21:03:06 +0000 (23:03 +0200)]
bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid (#3796)

bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid.

7 years agoFix typo in Simple Statements documentation (GH-3809)
kms70847 [Thu, 28 Sep 2017 19:54:48 +0000 (15:54 -0400)]
Fix typo in Simple Statements documentation (GH-3809)

Replace "restriction" with "restrictions".

7 years agobpo-31478: Fix an assertion failure in random.seed() in case a seed has a bad __abs__...
Oren Milman [Thu, 28 Sep 2017 07:50:01 +0000 (10:50 +0300)]
bpo-31478: Fix an assertion failure in random.seed() in case a seed has a bad __abs__() method. (#3596)

7 years agoTrivial readability improvement (#3791)
Barry Warsaw [Wed, 27 Sep 2017 15:12:30 +0000 (11:12 -0400)]
Trivial readability improvement (#3791)

7 years agobpo-31588: Validate return value of __prepare__() methods (GH-3764)
Oren Milman [Wed, 27 Sep 2017 14:04:37 +0000 (17:04 +0300)]
bpo-31588: Validate return value of __prepare__() methods (GH-3764)

Class execution requires that __prepare__() methods return
a proper execution namespace. Check for that immediately
after calling __prepare__(), rather than passing it through
to the code execution machinery and potentially triggering
SystemError (in debug builds) or a cryptic TypeError
(in release builds).

Patch by Oren Milman.

7 years agopoint to the module-level get_ident function rather than the one in _thread (#3782)
Benjamin Peterson [Wed, 27 Sep 2017 06:13:15 +0000 (23:13 -0700)]
point to the module-level get_ident function rather than the one in _thread (#3782)

7 years agocloses bpo-22140: Prevent double substitution of prefix in python-config.sh (#3769)
Michał Górny [Wed, 27 Sep 2017 05:45:06 +0000 (07:45 +0200)]
closes bpo-22140: Prevent double substitution of prefix in python-config.sh (#3769)

Fix the logic in python-config.sh to avoid attempting to substitute
prefix in a variable that might have already been subject to
substitution. This e.g. happened if @exec_prefix@ was defined as
"${prefix}" (which is the default of the configure script) -- in which
case the exec_prefix_build variable was initialized with
already-subtituted prefix, and then another round of substitution was
performed which might have resulted in duplicate prefix.

To avoid that, rename the variables so that the variables matching
likely configure names (prefix, exec_prefix) retain their original
values and a '_real' suffix is used for the real values of prefix.

Furthermore, replace the unnecessary prefix and exec_prefix
substitutions with direct prefix_real references since the sed
always replaced the whole string anyway by design.

7 years agobpo-31586: Use _count_element fast path for real dicts.
Oren Milman [Wed, 27 Sep 2017 03:18:21 +0000 (06:18 +0300)]
bpo-31586: Use _count_element fast path for real dicts.

7 years agobpo-30347: Stop crashes when concurrently iterate over itertools.groupby() iterators...
Serhiy Storchaka [Tue, 26 Sep 2017 18:47:56 +0000 (21:47 +0300)]
bpo-30347: Stop crashes when concurrently iterate over itertools.groupby() iterators. (#1557)

7 years agobpo-28293: Don't completely dump the regex cache when full. (#3768)
Serhiy Storchaka [Tue, 26 Sep 2017 16:47:36 +0000 (19:47 +0300)]
bpo-28293: Don't completely dump the regex cache when full. (#3768)

7 years agobpo-31579: Fixed a possible leak in enumerate() with large indices. (#3753)
Serhiy Storchaka [Tue, 26 Sep 2017 05:14:58 +0000 (08:14 +0300)]
bpo-31579: Fixed a possible leak in enumerate() with large indices. (#3753)

7 years agobpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691)
Guilherme Caminha [Mon, 25 Sep 2017 23:16:54 +0000 (20:16 -0300)]
bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691)

- Remove the second mention about the `u` prefix
- Remove the second mention about numeric literals do not include a sign

7 years agobpo-30152: Reduce the number of imports for argparse. (#1269)
Serhiy Storchaka [Mon, 25 Sep 2017 21:55:55 +0000 (00:55 +0300)]
bpo-30152: Reduce the number of imports for argparse. (#1269)

7 years agobpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-3711)
Stefan Grönke [Mon, 25 Sep 2017 16:58:10 +0000 (18:58 +0200)]
bpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-3711)

7 years agobpo-26491 Defer DECREFs until enumobject is in a consistent state (#3747)
Raymond Hettinger [Mon, 25 Sep 2017 09:15:53 +0000 (02:15 -0700)]
bpo-26491 Defer DECREFs until enumobject is in a consistent state (#3747)

7 years agobpo-31170: Write unit test for Expat 2.2.4 UTF-8 bug (#3570)
Victor Stinner [Mon, 25 Sep 2017 08:27:34 +0000 (01:27 -0700)]
bpo-31170: Write unit test for Expat 2.2.4 UTF-8 bug (#3570)

Non-regression tests for the Expat 2.2.3 UTF-8 decoder bug.

7 years agobpo-27385: Clarify docstring for groupby() (#3738)
Raymond Hettinger [Mon, 25 Sep 2017 08:21:06 +0000 (01:21 -0700)]
bpo-27385: Clarify docstring for groupby() (#3738)

7 years agobpo-31311: Fix a SystemError and a crash in ctypes._CData.__setstate__(), in case...
Oren Milman [Mon, 25 Sep 2017 08:09:11 +0000 (11:09 +0300)]
bpo-31311: Fix a SystemError and a crash in ctypes._CData.__setstate__(), in case of a bad __dict__. (#3254)

7 years agobpo-23702: Update Descriptor-HOWTO to reflect the removal of unbound methods (#3739)
Raymond Hettinger [Mon, 25 Sep 2017 08:05:49 +0000 (01:05 -0700)]
bpo-23702: Update Descriptor-HOWTO to reflect the removal of unbound methods (#3739)

7 years agobpo-18558: Clarify glossary entry for "Iterable" (#3732)
Raymond Hettinger [Mon, 25 Sep 2017 07:52:06 +0000 (00:52 -0700)]
bpo-18558: Clarify glossary entry for "Iterable" (#3732)

7 years agoremove configure check for memmove (#3716)
Benjamin Peterson [Sun, 24 Sep 2017 19:08:40 +0000 (12:08 -0700)]
remove configure check for memmove (#3716)

Python requires C implementations provide memmove, so we shouldn't need to check for it. The only place using this configure check was expat, where we can simply always define HAVE_MEMMOVE.

7 years agobpo-30085: Improve documentation for operator (#1171)
Sanket Dasgupta [Sun, 24 Sep 2017 18:29:22 +0000 (23:59 +0530)]
bpo-30085: Improve documentation for operator (#1171)

The dunderless functions are preferred; dunder are retained for back compatilibity.
Patch by Sanket Dasgupta.

7 years agobpo-31566: Fix an assertion failure in _warnings.warn() in case of a bad __name__...
Oren Milman [Sun, 24 Sep 2017 18:28:42 +0000 (21:28 +0300)]
bpo-31566: Fix an assertion failure in _warnings.warn() in case of a bad __name__ global. (#3717)

7 years agobpo-31285: Fix an assertion failure and a SystemError in warnings.warn_explicit....
Oren Milman [Sun, 24 Sep 2017 18:27:12 +0000 (21:27 +0300)]
bpo-31285: Fix an assertion failure and a SystemError in warnings.warn_explicit. (#3219)

7 years agoUpdate Email library documentation example (GH-3720)
Henk-Jaap Wagenaar [Sun, 24 Sep 2017 16:12:53 +0000 (17:12 +0100)]
Update Email library documentation example (GH-3720)

A `"` was missing from an `<a href>` tag.

7 years agobpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (#3667)
Serhiy Storchaka [Sun, 24 Sep 2017 11:34:09 +0000 (14:34 +0300)]
bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (#3667)

Defer removing old behavior to 3.8.
Document new feature of selection_set() and friends.

7 years agobpo-30346: An iterator produced by the itertools.groupby() iterator (#1569)
Serhiy Storchaka [Sun, 24 Sep 2017 10:36:11 +0000 (13:36 +0300)]
bpo-30346: An iterator produced by the itertools.groupby() iterator (#1569)

now becames exhausted after advancing the groupby iterator.

7 years agobpo-31311: Impove error reporting in case the first argument to PyCData_setstate...
Oren Milman [Sun, 24 Sep 2017 09:21:42 +0000 (12:21 +0300)]
bpo-31311: Impove error reporting in case the first argument to PyCData_setstate() isn't a dictionary. (#3255)

7 years agobpo-31505: Fix an assertion failure in json, in case _json.make_encoder() received...
Oren Milman [Sun, 24 Sep 2017 09:07:12 +0000 (12:07 +0300)]
bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() received a bad encoder() argument. (#3643)

7 years agobpo-31564: Update typing documentation (GH-3696)
topper-123 [Sun, 24 Sep 2017 02:37:48 +0000 (04:37 +0200)]
bpo-31564: Update typing documentation (GH-3696)

Mention that ``NewType`` can derive from another ``NewType``.

7 years agobpo-25359: Add missed "goto error" after setting an exception. (#3712)
Serhiy Storchaka [Sat, 23 Sep 2017 23:49:58 +0000 (02:49 +0300)]
bpo-25359: Add missed "goto error" after setting an exception. (#3712)

7 years agobpo-31459: Rename IDLE's module browser from Class Browser to Module Browser. (#3704)
Cheryl Sabella [Sat, 23 Sep 2017 20:46:01 +0000 (16:46 -0400)]
bpo-31459: Rename IDLE's module browser from Class Browser to Module Browser. (#3704)

The original module-level class and method browser became a module
browser, with the addition of module-level functions, years ago.
Nested classes and functions were added yesterday.  For back-
compatibility, the virtual event <<open-class-browser>>, which
appears on the Keys tab of the Settings dialog, is not changed.
Patch by Cheryl Sabella.

7 years agobpo-31559: Remove test order dependence in idle_test.test_browser. (#3708)
Terry Jan Reedy [Sat, 23 Sep 2017 18:19:23 +0000 (14:19 -0400)]
bpo-31559: Remove test order dependence in idle_test.test_browser. (#3708)

Order dependence caused leak-test buildbots to fail when running test_idle repeatedly.

7 years agoDocs: correct hashlib.blake2 keyed hashing example (bpo-31560)
Dmitry Chestnykh [Sat, 23 Sep 2017 17:18:40 +0000 (19:18 +0200)]
Docs: correct hashlib.blake2 keyed hashing example (bpo-31560)

7 years agosqlite: delete some bsddb cargo-culted code to work around Python 2.3/2.4 bugs
Benjamin Peterson [Sat, 23 Sep 2017 06:25:28 +0000 (23:25 -0700)]
sqlite: delete some bsddb cargo-culted code to work around Python 2.3/2.4 bugs

7 years agobpo-1612262: IDLE: Class Browser shows nested functions, classes (#2573)
Cheryl Sabella [Fri, 22 Sep 2017 20:08:44 +0000 (16:08 -0400)]
bpo-1612262: IDLE: Class Browser shows nested functions, classes (#2573)

Original patches for code and tests by Guilherme Polo and
Cheryl Sabella, respectively.

7 years agobpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. (#3372)
Neil Schemenauer [Fri, 22 Sep 2017 17:17:30 +0000 (10:17 -0700)]
bpo-17852: Maintain a list of BufferedWriter objects.  Flush them on exit. (#3372)

* Maintain a list of BufferedWriter objects.  Flush them on exit.

In Python 3, the buffer and the underlying file object are separate
and so the order in which objects are finalized matters.  This is
unlike Python 2 where the file and buffer were a single object and
finalization was done for both at the same time.  In Python 3, if
the file is finalized and closed before the buffer then the data in
the buffer is lost.

This change adds a doubly linked list of open file buffers.  An atexit
hook ensures they are flushed before proceeding with interpreter
shutdown.  This is addition does not remove the need to properly close
files as there are other reasons why buffered data could get lost during
finalization.

Initial patch by Armin Rigo.

* Use weakref.WeakSet instead of WeakKeyDictionary.

* Simplify buffered double-linked list types.

* In _flush_all_writers(), suppress errors from flush().

* Remove NEWS entry, use blurb.

* Take more care when flushing file buffers from atexit.

The previous implementation was not careful enough to avoid
causing issues in multi-threaded cases.  Check for buf->ok
and buf->finalizing before actually doing the flush.  Also,
increase the refcnt to ensure the object does not disappear.

7 years agobpo-31423: Fix building the PDF documentation (GH-3693)
François Magimel [Fri, 22 Sep 2017 17:16:57 +0000 (19:16 +0200)]
bpo-31423: Fix building the PDF documentation (GH-3693)

Use prefixed macro names for the `authoraddress` function, add T2A to the font encoding in LaTeX sources to support Cyrillic characters in the PDF documentation, and replace the deprecated `font_size` config option with `pointsize`.

7 years agobpo-31389 Add an optional `header` argument to pdb.set_trace() (#3438)
Barry Warsaw [Fri, 22 Sep 2017 16:29:42 +0000 (12:29 -0400)]
bpo-31389 Add an optional `header` argument to pdb.set_trace() (#3438)

* Give pdb.set_trace() an optional `header` argument

* What's new.

* Give pdb.set_trace() an optional `header` argument

* What's new.

7 years agobpo-31443: Update included code. (#3697)
Stefan Krah [Fri, 22 Sep 2017 16:14:13 +0000 (18:14 +0200)]
bpo-31443: Update included code. (#3697)

7 years agobpo-31443: Formulate the type slot initialization rules in terms of C99. (#3688)
Stefan Krah [Fri, 22 Sep 2017 15:44:58 +0000 (17:44 +0200)]
bpo-31443: Formulate the type slot initialization rules in terms of C99. (#3688)

7 years agobpo-31410: Optimized calling wrapper and classmethod descriptors. (#3481)
Serhiy Storchaka [Thu, 21 Sep 2017 11:25:36 +0000 (14:25 +0300)]
bpo-31410: Optimized calling wrapper and classmethod descriptors. (#3481)

7 years agobpo-27541: Reprs of subclasses of some classes now contain actual type name. (#3631)
Serhiy Storchaka [Thu, 21 Sep 2017 11:24:13 +0000 (14:24 +0300)]
bpo-27541: Reprs of subclasses of some classes now contain actual type name. (#3631)

Affected classes are bytearray, array, deque, defaultdict, count and repeat.

7 years agobpo-31351: Set return code in ensurepip when pip fails (GH-3626)
Igor Filatov [Thu, 21 Sep 2017 10:07:45 +0000 (13:07 +0300)]
bpo-31351: Set return code in ensurepip when pip fails (GH-3626)

Previously ensurepip would always report success, even if the
pip installation failed.

7 years agobpo-31500: IDLE: Scale default fonts on HiDPI displays. (#3639)
Serhiy Storchaka [Thu, 21 Sep 2017 08:20:06 +0000 (11:20 +0300)]
bpo-31500: IDLE: Scale default fonts on HiDPI displays. (#3639)

7 years agobpo-31532: Fix memory corruption due to allocator mix (#3679)
nurelin [Thu, 21 Sep 2017 06:08:20 +0000 (08:08 +0200)]
bpo-31532: Fix memory corruption due to allocator mix (#3679)

Fix a memory corruption in getpath.c due to mixed memory allocators
between Py_GetPath() and Py_SetPath().

The fix use the Raw allocator to mimic the windows version.

This patch should be used from python3.6 to the current version

for more details, see the bug report and
  https://github.com/pyinstaller/pyinstaller/issues/2812

7 years agobpo-31536: Avoid wholesale rebuild after `make regen-all` (#3678)
Antoine Pitrou [Wed, 20 Sep 2017 21:57:56 +0000 (23:57 +0200)]
bpo-31536: Avoid wholesale rebuild after `make regen-all` (#3678)

* bpo-31536: Avoid wholesale rebuild after `make regen-all`

* Add NEWS

7 years agobpo-26510: make argparse subparsers required by default (#3027)
Anthony Sottile [Wed, 20 Sep 2017 21:35:27 +0000 (14:35 -0700)]
bpo-26510: make argparse subparsers required by default (#3027)

This fixes a regression from Python 2.  To get optional subparsers,
use the new parameter ``add_subparsers(required=False)``.

Patch by Anthony Sottile.

7 years agobpo-31533: fix broken link to OpenSSL docs (#3674)
Felipe [Wed, 20 Sep 2017 18:20:18 +0000 (20:20 +0200)]
bpo-31533: fix broken link to OpenSSL docs (#3674)

7 years agocloses bpo-31525: require sqlite3_prepare_v2 (#3666)
Benjamin Peterson [Wed, 20 Sep 2017 14:36:18 +0000 (07:36 -0700)]
closes bpo-31525: require sqlite3_prepare_v2 (#3666)

This is based on
https://github.com/ghaering/pysqlite/commit/40b349cadbd87c42f70fc92e5e1aee6d02564c6d#diff-0489411409cd2934730e88bf7767790,
though we can be a bit more aggressive about deleting code.

7 years agobpo-30486: Make cell_set_contents() symbol private (#3668)
Victor Stinner [Wed, 20 Sep 2017 13:54:13 +0000 (06:54 -0700)]
bpo-30486: Make cell_set_contents() symbol private (#3668)

Don't export the cell_set_contents() symbol in the C API.

7 years agobpo-31506: Improve the error message logic for object.__new__ and object.__init__...
Serhiy Storchaka [Wed, 20 Sep 2017 03:44:32 +0000 (06:44 +0300)]
bpo-31506: Improve the error message logic for object.__new__ and object.__init__. (GH-3650)

7 years agobpo-31500: Removed fixed size of IDLE config dialog. (#3664)
Terry Jan Reedy [Tue, 19 Sep 2017 23:01:45 +0000 (19:01 -0400)]
bpo-31500: Removed fixed size of IDLE config dialog. (#3664)

This one line of Serhiy Storchacka's bpo-31500 patch for is needed for other issues.

7 years agoFix build issues in Doc/make.bat (#3658)
Steve Dower [Tue, 19 Sep 2017 19:31:28 +0000 (12:31 -0700)]
Fix build issues in Doc/make.bat (#3658)

7 years agobpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (gh-3647)
Rohit Balasubramanian [Tue, 19 Sep 2017 19:10:49 +0000 (00:40 +0530)]
bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (gh-3647)

7 years agobpo-31479: Always reset the signal alarm in tests (#3588)
Victor Stinner [Tue, 19 Sep 2017 16:36:54 +0000 (09:36 -0700)]
bpo-31479: Always reset the signal alarm in tests (#3588)

* bpo-31479: Always reset the signal alarm in tests

Use "try: ... finally: signal.signal(0)" pattern to make sure that
tests don't "leak" a pending fatal signal alarm.

* Move two more alarm() calls into the try block

Fix also typo: replace signal.signal(0) with signal.alarm(0)

* Move another signal.alarm() into the try block

7 years agopythoninfo: ignore OSError(ENOSYS) on getrandom() (#3655)
Victor Stinner [Tue, 19 Sep 2017 14:37:24 +0000 (07:37 -0700)]
pythoninfo: ignore OSError(ENOSYS) on getrandom() (#3655)

7 years agobpo-31293: Fix crashes in truediv and mul of a timedelta by a float with a bad as_int...
Oren Milman [Tue, 19 Sep 2017 12:58:11 +0000 (15:58 +0300)]
bpo-31293: Fix crashes in truediv and mul of a timedelta by a float with a bad as_integer_ratio() method. (#3227)

7 years agobpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name is not...
Oren Milman [Tue, 19 Sep 2017 11:39:47 +0000 (14:39 +0300)]
bpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name is not a string. (#3257)

7 years agobpo-31492: Fix assertion failures in case of a module with a bad __name__ attribute...
Oren Milman [Tue, 19 Sep 2017 11:23:01 +0000 (14:23 +0300)]
bpo-31492: Fix assertion failures in case of a module with a bad __name__ attribute. (#3620)

7 years agopost 3.7.0a1 development
Ned Deily [Tue, 19 Sep 2017 07:12:46 +0000 (03:12 -0400)]
post 3.7.0a1 development

7 years agoMerge tag 'v3.7.0a1'
Ned Deily [Tue, 19 Sep 2017 07:09:31 +0000 (03:09 -0400)]
Merge tag 'v3.7.0a1'

7 years agoBump to 3.6.0a1 v3.7.0a1
Ned Deily [Tue, 19 Sep 2017 05:09:03 +0000 (01:09 -0400)]
Bump to 3.6.0a1

7 years agoUpdate PyDoc topics and NEWS blurbs for 3.7.0a1
Ned Deily [Tue, 19 Sep 2017 05:01:36 +0000 (01:01 -0400)]
Update PyDoc topics and NEWS blurbs for 3.7.0a1

7 years agoUpdate Mac installer Welcome and ReadMe files for 3.7.0a1
Ned Deily [Tue, 19 Sep 2017 02:22:00 +0000 (22:22 -0400)]
Update Mac installer Welcome and ReadMe files for 3.7.0a1

7 years agoTrivial cleanups following bpo-31370 (#3649)
Antoine Pitrou [Mon, 18 Sep 2017 21:50:44 +0000 (23:50 +0200)]
Trivial cleanups following bpo-31370 (#3649)

* Trivial cleanups following bpo-31370

* Also cleanup the "importlib._bootstrap_external" module

7 years agoRestore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) (#3648)
Antoine Pitrou [Mon, 18 Sep 2017 20:04:20 +0000 (22:04 +0200)]
Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) (#3648)

7 years agoos.test_utime_current(): tolerate 50 ms delta (#3646)
Victor Stinner [Mon, 18 Sep 2017 15:49:45 +0000 (08:49 -0700)]
os.test_utime_current(): tolerate 50 ms delta (#3646)

7 years agobpo-31499, xml.etree: Fix xmlparser_gc_clear() crash (#3641)
Victor Stinner [Mon, 18 Sep 2017 12:29:37 +0000 (05:29 -0700)]
bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash (#3641)

* bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash

xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a
crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously
by the garbage collector, because the parser was part of a reference cycle.

Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-31501: Operator precedence description for arithmetic operators (#3633)
svelankar [Mon, 18 Sep 2017 00:56:16 +0000 (20:56 -0400)]
bpo-31501: Operator precedence  description  for arithmetic operators (#3633)

7 years agobpo-30928: Update idlelib/NEWS.txt to 2017 Sep 17. (#3635)
Terry Jan Reedy [Mon, 18 Sep 2017 00:14:21 +0000 (20:14 -0400)]
bpo-30928: Update idlelib/NEWS.txt to 2017 Sep 17. (#3635)

7 years agobpo-31502: IDLE Configdialog again deletes custom themes and keysets. (#3634)
Terry Jan Reedy [Mon, 18 Sep 2017 00:13:25 +0000 (20:13 -0400)]
bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (#3634)

This reverses a never-released regression resulting from bpo-31287.

7 years agobpo-31497: Add private helper _PyType_Name(). (#3630)
Serhiy Storchaka [Sun, 17 Sep 2017 18:11:04 +0000 (21:11 +0300)]
bpo-31497: Add private helper _PyType_Name(). (#3630)

This function returns the last component of tp_name after a dot.
Returns tp_name itself if it doesn't contain a dot.

7 years agobpo-31482: Missing bytes support for random.seed() version 1 (#3614)
Raymond Hettinger [Sun, 17 Sep 2017 16:04:30 +0000 (09:04 -0700)]
bpo-31482:  Missing bytes support for random.seed() version 1 (#3614)

bpo-31482: Missing bytes support for random.seed() version 1 #3614

7 years agobpo-31487: Update F-strings doc example (GH-3627)
Mariatta [Sun, 17 Sep 2017 14:43:31 +0000 (07:43 -0700)]
bpo-31487: Update F-strings doc example (GH-3627)

Shorten the comment to: "using integer format specifier"

7 years agobpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is defined...
Oren Milman [Sun, 17 Sep 2017 10:45:38 +0000 (13:45 +0300)]
bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is defined only outside _fields_. (#3615)

7 years agobpo-31493: Fix code context update and font update timers. (#3622)
Terry Jan Reedy [Sun, 17 Sep 2017 04:56:56 +0000 (00:56 -0400)]
bpo-31493: Fix code context update and font update timers. (#3622)

Canceling timers prevents a warning message when test_idle completes.
(This is the minimum fix needed before upcoming releases.)

7 years agoImprove f-strings documentation (GH-3604)
Mariatta [Sat, 16 Sep 2017 18:46:43 +0000 (11:46 -0700)]
Improve f-strings documentation (GH-3604)

Provide additional examples of using format specifiers in f-strings
Added examples for using integer and date format specifiers.

7 years agobpo-31458: Clarify that Changelog is built from Misc/NEWS.d directory (GH-3617)
Mariatta [Sat, 16 Sep 2017 17:43:30 +0000 (10:43 -0700)]
bpo-31458: Clarify that Changelog is built from Misc/NEWS.d directory (GH-3617)

7 years agobpo-31488: IDLE - update former extensions when options change. (#3612)
Terry Jan Reedy [Sat, 16 Sep 2017 05:42:28 +0000 (01:42 -0400)]
bpo-31488: IDLE - update former extensions when options change. (#3612)

When apply changes, call .reload on each class with non-key options.
Change ParenMatch so that updates affect current instances.

7 years agobpo-28411: Support other mappings in PyInterpreterState.modules. (#3593)
Eric Snow [Fri, 15 Sep 2017 22:35:20 +0000 (16:35 -0600)]
bpo-28411: Support other mappings in PyInterpreterState.modules. (#3593)

The concrete PyDict_* API is used to interact with PyInterpreterState.modules in a number of places. This isn't compatible with all dict subclasses, nor with other Mapping implementations. This patch switches the concrete API usage to the corresponding abstract API calls.

We also add a PyImport_GetModule() function (and some other helpers) to reduce a bunch of code duplication.

7 years agobpo-31431: SSLContext.check_hostname auto-sets CERT_REQUIRED (#3531)
Christian Heimes [Fri, 15 Sep 2017 18:29:57 +0000 (20:29 +0200)]
bpo-31431: SSLContext.check_hostname auto-sets CERT_REQUIRED (#3531)

Signed-off-by: Christian Heimes <christian@python.org>
7 years agobpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)
Christian Heimes [Fri, 15 Sep 2017 18:27:30 +0000 (20:27 +0200)]
bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)

Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and
PROTOCOL_TLS_SERVER.

Signed-off-by: Christian Heimes <christian@python.org>
7 years agobpo-31386: Custom wrap_bio and wrap_socket type (#3426)
Christian Heimes [Fri, 15 Sep 2017 18:26:05 +0000 (20:26 +0200)]
bpo-31386: Custom wrap_bio and wrap_socket type (#3426)

SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and
SSLSocket as return types. In the light of future deprecation of
ssl.wrap_socket() module function and direct instantiation of SSLSocket,
it is desirable to make the return type of SSLSocket.wrap_bio() and
SSLSocket.wrap_socket() customizable.

Signed-off-by: Christian Heimes <christian@python.org>
7 years ago bpo-314777: IDLE - improve rstrip entry in doc (#3602)
Terry Jan Reedy [Fri, 15 Sep 2017 17:05:28 +0000 (13:05 -0400)]
 bpo-314777: IDLE - improve rstrip entry in doc (#3602)

'Strip trailing whitespace' is not limited to spaces.  Wording caters to beginners who
do know know the meaning of 'whitespace'.  Multiline string literals are not skipped.

* News blurb.

7 years agoFix description in Python 3.7 What's New (#3603)
Paul Romano [Fri, 15 Sep 2017 17:00:57 +0000 (12:00 -0500)]
Fix description in Python 3.7 What's New (#3603)

7 years agobpo-29916: Include PyGetSetDef in C API extension documentation. (#831)
Michael Seifert [Fri, 15 Sep 2017 16:25:27 +0000 (18:25 +0200)]
bpo-29916: Include PyGetSetDef in C API extension documentation. (#831)

7 years agobpo-31234: test_multiprocessing: wait 30 seconds (#3599)
Victor Stinner [Fri, 15 Sep 2017 13:55:31 +0000 (06:55 -0700)]
bpo-31234: test_multiprocessing: wait 30 seconds (#3599)

Give 30 seconds to join_process(), instead of 5 or 10 seconds, to
wait until the process completes.

7 years agobpo-31234: Join timers in test_threading (#3598)
Victor Stinner [Fri, 15 Sep 2017 12:37:42 +0000 (05:37 -0700)]
bpo-31234: Join timers in test_threading (#3598)

Call the .join() method of threading.Timer timers to prevent the
"threading_cleanup() failed to cleanup 1 threads" warning.