]> granicus.if.org Git - python/log
python
7 years agouse select instead of _opcode for import test (#372)
Benjamin Peterson [Wed, 1 Mar 2017 07:14:09 +0000 (23:14 -0800)]
use select instead of _opcode for import test (#372)

7 years agoweaken test_from_import_missing_attr_has_name_and_path regular expression (#371)
Benjamin Peterson [Wed, 1 Mar 2017 06:35:00 +0000 (22:35 -0800)]
weaken test_from_import_missing_attr_has_name_and_path regular expression (#371)

Windows uses backslashes for separators.

7 years agoClarify exception handler scope in contextlib
amosonn [Wed, 1 Mar 2017 06:18:27 +0000 (07:18 +0100)]
Clarify exception handler scope in contextlib

Moved explicit raise from inside try to try...else.

7 years agoFix syntax error in .mention-bot (#361)
Berker Peksag [Wed, 1 Mar 2017 03:33:07 +0000 (06:33 +0300)]
Fix syntax error in .mention-bot (#361)

7 years agoFixed a handful of typos (GH-343)
Alex Gaynor [Wed, 1 Mar 2017 03:26:56 +0000 (22:26 -0500)]
Fixed a handful of typos (GH-343)

7 years agocorrect documentation for enum.html (#358)
Kartik Anand [Tue, 28 Feb 2017 20:07:19 +0000 (01:37 +0530)]
correct documentation for enum.html (#358)

7 years agoAdd the mention-bot configuration file (GH-352)
Donald Stufft [Tue, 28 Feb 2017 17:57:30 +0000 (12:57 -0500)]
Add the mention-bot configuration file (GH-352)

Discussed at https://github.com/python/core-workflow/issues/32.

7 years agobpo-7769: enable xmlrpc.server.SimpleXMLRPCDispatcher.register_function used as decor...
Xiang Zhang [Tue, 28 Feb 2017 09:12:52 +0000 (17:12 +0800)]
bpo-7769: enable xmlrpc.server.SimpleXMLRPCDispatcher.register_function used as decorator (GH-231)

7 years agoREADME: move TOC to top (GH-355)
INADA Naoki [Tue, 28 Feb 2017 07:26:58 +0000 (16:26 +0900)]
README: move TOC to top (GH-355)

7 years agoREADME: Use h3 headings for build sections, and add TOC (GH-64)
Evan Klitzke [Tue, 28 Feb 2017 06:32:07 +0000 (22:32 -0800)]
README: Use h3 headings for build sections, and add TOC (GH-64)

7 years agobpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331)
Xiang Zhang [Tue, 28 Feb 2017 03:06:07 +0000 (11:06 +0800)]
bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331)

7 years agobpo-24241: Add versionchanged directive to the documentation (#342)
Berker Peksag [Mon, 27 Feb 2017 16:13:41 +0000 (19:13 +0300)]
bpo-24241: Add versionchanged directive to the documentation (#342)

7 years agoUse "Contributed by ..." style in whatsnew/3.7.rst (#339)
Berker Peksag [Mon, 27 Feb 2017 14:43:27 +0000 (17:43 +0300)]
Use "Contributed by ..." style in whatsnew/3.7.rst (#339)

7 years agoAsyncio documentation: remove `self` from method signatures (GH-334)
Mariatta [Mon, 27 Feb 2017 13:44:15 +0000 (05:44 -0800)]
Asyncio documentation: remove `self` from method signatures (GH-334)

7 years agofix minor bug in pymalloc. (#335)
INADA Naoki [Mon, 27 Feb 2017 13:42:37 +0000 (22:42 +0900)]
fix minor bug in pymalloc. (#335)

reported by Alexis Lopez-Garcia.

7 years agobpo-29662: fix wrong indentation in timeit.Timer's doc (GH-332)
Xiang Zhang [Mon, 27 Feb 2017 05:42:01 +0000 (13:42 +0800)]
bpo-29662: fix wrong indentation in timeit.Timer's doc (GH-332)

7 years agobpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-236)
Xiang Zhang [Mon, 27 Feb 2017 03:01:30 +0000 (11:01 +0800)]
bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-236)

7 years agobpo-26184: import.rst: Improve versionchanged note (GH-325)
Mariatta [Sun, 26 Feb 2017 21:23:38 +0000 (13:23 -0800)]
bpo-26184: import.rst: Improve versionchanged note (GH-325)

7 years agobpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathLike...
Sayan Chowdhury [Sun, 26 Feb 2017 17:06:10 +0000 (22:36 +0530)]
bpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathLike objects (#157)

7 years agobpo-26184: import.rst: Improve versionchanged note (GH-277)
Mariatta [Sun, 26 Feb 2017 15:36:57 +0000 (07:36 -0800)]
bpo-26184: import.rst: Improve versionchanged note (GH-277)

Mention that an ImportError is raised when exec_module() is defined, but
create_module() is not.

7 years agobpo-29121: Remove outdated documentation about transactions (#313)
Berker Peksag [Sun, 26 Feb 2017 15:31:12 +0000 (18:31 +0300)]
bpo-29121: Remove outdated documentation about transactions (#313)

Patch by Aviv Palivoda.

7 years agobpo-22594: Add a link to the regex module in re documentation (GH-241)
Marco Buttu [Sun, 26 Feb 2017 15:26:23 +0000 (16:26 +0100)]
bpo-22594: Add a link to the regex module in re documentation (GH-241)

7 years agobpo-28518: Start a transaction implicitly before a DML statement (#245)
Berker Peksag [Sun, 26 Feb 2017 15:22:38 +0000 (18:22 +0300)]
bpo-28518: Start a transaction implicitly before a DML statement (#245)

Patch by Aviv Palivoda.

7 years agobpo-29648: import.rst: Add reference to create_module() (GH-290)
Marco Buttu [Sun, 26 Feb 2017 15:14:45 +0000 (16:14 +0100)]
bpo-29648: import.rst: Add reference to create_module() (GH-290)

Add a reference to create_module(), in the first versionadded of section Loaders.

7 years agobpo-29110: add test for Aifc_write. (GH-293)
INADA Naoki [Sun, 26 Feb 2017 12:11:58 +0000 (21:11 +0900)]
bpo-29110: add test for Aifc_write. (GH-293)

follow up of GH-162

7 years agobpo-28961: Address my comments from earlier code review (#305)
Berker Peksag [Sun, 26 Feb 2017 12:04:11 +0000 (15:04 +0300)]
bpo-28961: Address my comments from earlier code review (#305)

7 years agobpo-29655: Fixed possible reference leaks in `import *`. (#301)
Matthias Bussonnier [Sun, 26 Feb 2017 05:58:05 +0000 (21:58 -0800)]
bpo-29655: Fixed possible reference leaks in `import *`. (#301)

Patch by Matthias Bussonnier.

7 years agoFix small typos in introduction and datastructures of tutorial (GH-272)
Jim Fasarakis-Hilliard [Sat, 25 Feb 2017 21:13:33 +0000 (23:13 +0200)]
Fix small typos in introduction and datastructures of tutorial (GH-272)

* Fix small typos in introduction and datastructures
* Use iterable instead of L in the doc for list.extend

7 years agoREADME.rst: Change the devguide url to docs.python.org/devguide (GH-295)
Mariatta [Sat, 25 Feb 2017 19:49:38 +0000 (11:49 -0800)]
README.rst: Change the devguide url to docs.python.org/devguide (GH-295)

7 years agoREADME.rst: List out relevant links to the project (#283)
Mariatta [Sat, 25 Feb 2017 16:59:26 +0000 (08:59 -0800)]
README.rst: List out relevant links to the project (#283)

7 years agobpo-26128: Added __init__to subprocess.STARTUPINFO (#171)
Subhendu Ghosh [Sat, 25 Feb 2017 14:59:05 +0000 (20:29 +0530)]
bpo-26128: Added __init__to subprocess.STARTUPINFO (#171)

The Windows-specific subprocess.STARTUPINFO class now accepts
keyword-only arguments to its constructor to set the various
data attributes.

Patch by Subhendu Ghosh.

7 years agobpo-16285: Update urllib quoting to RFC 3986 (#173)
Ratnadeep Debnath [Sat, 25 Feb 2017 09:00:28 +0000 (14:30 +0530)]
bpo-16285: Update urllib quoting to RFC 3986 (#173)

* bpo-16285: Update urllib quoting to RFC 3986

urllib.parse.quote is now based on RFC 3986, and hence
includes `'~'` in the set of characters that is not escaped
by default.

Patch by Christian Theune and Ratnadeep Debnath.

7 years agobpo-29644: suppress subprocess output from webbrowser (#289)
Nick Coghlan [Sat, 25 Feb 2017 08:40:07 +0000 (18:40 +1000)]
bpo-29644: suppress subprocess output from webbrowser (#289)

When checking for the default X web browser, xdg-settings
may emit messages on stderr if some components (such as
kreadconfig5) are unavailable. These messages aren't of
interest to Python, so we just ignore them.

7 years agobpo-24241: Add dedicated webbrowser.register test case (#288)
Nick Coghlan [Sat, 25 Feb 2017 08:14:07 +0000 (18:14 +1000)]
bpo-24241: Add dedicated webbrowser.register test case (#288)

7 years agobpo-24241: Improve preferred webbrowser handling (#85)
David Steele [Sat, 25 Feb 2017 04:47:38 +0000 (23:47 -0500)]
bpo-24241: Improve preferred webbrowser handling (#85)

- Add 'preferred' argument to webbrowser.register
- Use xdg-settings to specify preferred X browser

The first change replaces the existing undocumented tri-state
'try_order' parameter with the documented boolean keyword-only
'preferred' parameter. Setting it to True places the browser at the
front of the list, preferring it as the return to a subsequent get() call.

The second change adds a private `_os_preferred_browser` setting
and then uses that to make the default browser reported by
`xdg-settings` first in the try list when running under X (or
another environment that sets the `DISPLAY` variable).
This avoids the problem where the first entry in the tryorder
queue otherwise defaults to xdg-open, which doesn't support
the "new window" option.

7 years agobpo-28929: Add to Misc/NEWS (GH-112)
Mariatta [Sat, 25 Feb 2017 02:09:22 +0000 (18:09 -0800)]
bpo-28929: Add to Misc/NEWS (GH-112)

mention bpo-28929 in the Documentation section of
What's New in Python 3.7.0 alpha 1

7 years agoFix small typos in expressions.rst (GH-276)
Jim Fasarakis-Hilliard [Fri, 24 Feb 2017 20:32:54 +0000 (22:32 +0200)]
Fix small typos in expressions.rst (GH-276)

7 years agobpo-25008: Deprecate smtpd and point to aiosmtpd (#274)
Barry Warsaw [Fri, 24 Feb 2017 19:05:59 +0000 (14:05 -0500)]
bpo-25008: Deprecate smtpd and point to aiosmtpd (#274)

* bpo-25008: Deprecate smtpd and point to aiosmtpd.

* Simplify the aiosmtpd URL.

7 years agobpo-28556: Fix regression that sneaked into recent typing updates (GH-270)
Ivan Levkivskyi [Fri, 24 Feb 2017 17:28:26 +0000 (18:28 +0100)]
bpo-28556: Fix regression that sneaked into recent typing updates (GH-270)

7 years agobpo-27788 : synchronise platform.py version number (#246)
Matthias Bussonnier [Fri, 24 Feb 2017 10:47:34 +0000 (02:47 -0800)]
bpo-27788 : synchronise platform.py version number (#246)

Was bumped in the docstring by b9f4feab1b9c9ffa8ea29af3d82bc536f9f3005a
but not in `__version__`

7 years agobpo-29637: clean docstring only if not None (GH-267)
Matthias Bussonnier [Fri, 24 Feb 2017 06:44:19 +0000 (22:44 -0800)]
bpo-29637: clean docstring only if not None (GH-267)

7 years agobpo-29634: Reduce deque repeat execution when maxlen exist and size is not 1 (#255...
Louie Lu [Fri, 24 Feb 2017 03:59:49 +0000 (11:59 +0800)]
bpo-29634: Reduce deque repeat execution when maxlen exist and size is not 1 (#255) (#255)

7 years agoUpdate to typing: treat subscripted generics as proxies (#265)
Ivan Levkivskyi [Fri, 24 Feb 2017 03:03:28 +0000 (04:03 +0100)]
Update to typing: treat subscripted generics as proxies (#265)

7 years agobpo-29624: Adds purge step and layout test after uploading files. (#258)
Steve Dower [Thu, 23 Feb 2017 22:11:36 +0000 (14:11 -0800)]
bpo-29624: Adds purge step and layout test after uploading files. (#258)

7 years agobpo-29622: Make AST constructor to accept less than enough number of positional argum...
INADA Naoki [Thu, 23 Feb 2017 17:48:17 +0000 (02:48 +0900)]
bpo-29622: Make AST constructor to accept less than enough number of positional arguments (GH-249)

bpo-29463 added optional "docstring" field to 4 AST types.
While it is optional, it breaks backward compatibility because AST constructor
requires number of positional argument is same to number of fields.

AST types accepts empty arguments, and incomplete keyword arguments.
But it's not big problem because field can be filled after creation, and checked when compiling.
So stop requiring complete set of fields for positional arguments too.

7 years agoDocument why functools.partial() must copy kwargs (#253)
Victor Stinner [Thu, 23 Feb 2017 17:26:43 +0000 (18:26 +0100)]
Document why functools.partial() must copy kwargs (#253)

Add a comment to prevent further attempts to avoid a copy for
optimization.

7 years agobpo-28911: Clarify the behaviour of assert_called_once_with. (#251)
Arne de Laat [Thu, 23 Feb 2017 14:57:25 +0000 (15:57 +0100)]
bpo-28911: Clarify the behaviour of assert_called_once_with. (#251)

7 years agobpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operatio...
Martijn Pieters [Thu, 23 Feb 2017 13:38:04 +0000 (13:38 +0000)]
bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations (#51)

When you use `'%s' % SubClassOfStr()`, where `SubClassOfStr.__rmod__` exists, the reverse operation is ignored as normally such string formatting operations use the `PyUnicode_Format()` fast path. This patch tests for subclasses of `str` first and picks the slow path in that case.

Patch by Martijn Pieters.

7 years agomark various test data binary (#233)
Benjamin Peterson [Thu, 23 Feb 2017 06:38:48 +0000 (22:38 -0800)]
mark various test data binary (#233)

7 years agobpo-29463: Add docstring field to some AST nodes. (#46)
INADA Naoki [Wed, 22 Feb 2017 15:31:59 +0000 (00:31 +0900)]
bpo-29463: Add docstring field to some AST nodes. (#46)

* bpo-29463: Add docstring field to some AST nodes.

ClassDef, ModuleDef, FunctionDef, and AsyncFunctionDef has docstring
field for now.  It was first statement of there body.

* fix document.  thanks travis!

* doc fixes

7 years agobpo-29546: Improve from-import error message with location (#103)
Matthias Bussonnier [Wed, 22 Feb 2017 15:06:50 +0000 (07:06 -0800)]
bpo-29546: Improve from-import error message with location (#103)

bpo-29546: Improve from-import error message with location

7 years agoAdd sockaddr_alg to sock_addr_t (#234)
Christian Heimes [Wed, 22 Feb 2017 11:12:00 +0000 (12:12 +0100)]
Add sockaddr_alg to sock_addr_t (#234)

sock_addr_t is used to define the minimum size of any socket address on
the stack. Let's make sure that an AF_ALG address always fits. Coverity
complains because in theory, AF_ALG might be larger than any of the other
structs. In practice it already fits.

Closes Coverity CID 139894813989491398950

Signed-off-by: Christian Heimes <christian@python.org>
7 years agobpo-29110: Fix file object leak in `aifc.open` when given invalid AIFF file. (GH...
Anthony Zhang [Wed, 22 Feb 2017 07:23:30 +0000 (02:23 -0500)]
bpo-29110: Fix file object leak in `aifc.open` when given invalid AIFF file. (GH-162)

7 years agobpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122)
Matthias Bussonnier [Wed, 22 Feb 2017 05:45:51 +0000 (21:45 -0800)]
bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122)

Nick Coghlan said on bpo-28814:

> inspect.getargvalues() and inspect.formatargvalues() were deprecated
> in Python 3.5 as part of implementing bpo-20438

> This is incorrect, as these are *frame* introspection related functions,
> not callable introspection ones. The documentation and implementation
> layout is confusing though, as they're interleaved with the callable
> introspection operation

This commit undeprecates these functions and adds a note to ignore
previous deprecation notices.

7 years agobpo-27660: remove unnecessary overflow checks in list_resize (GH-189)
Xiang Zhang [Wed, 22 Feb 2017 04:32:30 +0000 (12:32 +0800)]
bpo-27660: remove unnecessary overflow checks in list_resize (GH-189)

7 years agobpo-29509: skip redundant intern (GH-197)
INADA Naoki [Tue, 21 Feb 2017 14:57:25 +0000 (23:57 +0900)]
bpo-29509: skip redundant intern (GH-197)

PyObject_GetAttrString intern temporary key string.
It's completely redudant.

7 years agobpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX (#202)
Matthieu Dartiailh [Tue, 21 Feb 2017 13:25:22 +0000 (14:25 +0100)]
bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX (#202)

7 years agodoc: fix compile error on "shoddy" example extension (GH-215)
INADA Naoki [Tue, 21 Feb 2017 12:51:46 +0000 (21:51 +0900)]
doc: fix compile error on "shoddy" example extension (GH-215)

7 years ago.gitattribute -> .gitattributes (GH-213)
INADA Naoki [Tue, 21 Feb 2017 09:39:41 +0000 (18:39 +0900)]
.gitattribute -> .gitattributes (GH-213)

7 years agoReduce conflict on Misc/NEWS (GH-212)
INADA Naoki [Tue, 21 Feb 2017 09:17:06 +0000 (18:17 +0900)]
Reduce conflict on Misc/NEWS (GH-212)

use "union" merge strategy for Misc/NEWS.

7 years agobpo-29453: Remove reference to undefined dictionary ordering in Tutorial (GH-140)
Jim Fasarakis-Hilliard [Tue, 21 Feb 2017 06:20:23 +0000 (08:20 +0200)]
bpo-29453: Remove reference to undefined dictionary ordering in Tutorial (GH-140)

As of Python 3.6 **kwargs are ordered, thus, remove the paragraph stating that
ordering is undefined and change snippet to remove the unecessary sorted call.

* Add sentence mentioning guaranteed output order of kwargs

7 years agobpo-29554: Improve docs for pstat module and profile. (#88)
Matthias Bussonnier [Tue, 21 Feb 2017 05:30:00 +0000 (21:30 -0800)]
bpo-29554: Improve docs for pstat module and profile. (#88)

Clarify that methods take a string which is interpreted as a regex,
not a regex object.

Also clarify what the old `-1`, `0`, `1` and `2` options were.

7 years agobpo-29602: fix signed zero handling in complex constructor. (#203)
Mark Dickinson [Mon, 20 Feb 2017 20:28:15 +0000 (20:28 +0000)]
bpo-29602: fix signed zero handling in complex constructor. (#203)

* Fix incorrect handling of signed zeros for complex-related classes.

* Add Misc/NEWS entry.

7 years agobpo-24274: fix erroneous comment in dictobject.c (GH-196)
INADA Naoki [Mon, 20 Feb 2017 13:48:10 +0000 (22:48 +0900)]
bpo-24274: fix erroneous comment in dictobject.c (GH-196)

lookdict_unicode() and lookdict_unicode_nodummy() may raise exception
when key is not unicode.

7 years agoREADME: OS X -> macOS (GH-55)
Paul Schreiber [Mon, 20 Feb 2017 13:08:59 +0000 (08:08 -0500)]
README: OS X -> macOS (GH-55)

7 years agobpo-29532: Altering a kwarg dictionary passed to functools.partial() (#190)
Serhiy Storchaka [Mon, 20 Feb 2017 12:04:30 +0000 (14:04 +0200)]
bpo-29532: Altering a kwarg dictionary passed to functools.partial() (#190)

no longer affects a partial object after creation.

7 years agobpo-29347: Fix possibly dereferencing undefined pointers when creating weakref object...
Xiang Zhang [Mon, 20 Feb 2017 04:25:16 +0000 (12:25 +0800)]
bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128)

7 years agobpo-29520: doc: add missing dot (GH-182)
INADA Naoki [Mon, 20 Feb 2017 01:22:28 +0000 (10:22 +0900)]
bpo-29520: doc: add missing dot (GH-182)

3eea8c6 missed dot at the end of paragraph.

7 years agoFixed bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64...
Vinay Sajip [Mon, 20 Feb 2017 00:16:33 +0000 (00:16 +0000)]
Fixed bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64. (#168)

* Fixed bpo-29565: Corrected ctypes passing of large structs by value.

Added code and test to check that when a structure passed by value
is large enough to need to be passed by reference, a copy of the
original structure is passed. The callee updates the passed-in value,
and the test verifies that the caller's copy is unchanged. A similar
change was also added to the test added for bpo-20160 (that test was
passing, but the changes should guard against regressions).

* Reverted unintended whitespace changes.

7 years agobpo-29520: doc: fix deprecation warning from 'defindex' template (GH-165)
INADA Naoki [Sun, 19 Feb 2017 17:07:32 +0000 (02:07 +0900)]
bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-165)

7 years agoTweak PEP 519 documentation in stdlib (#163)
Berker Peksag [Sun, 19 Feb 2017 00:17:35 +0000 (03:17 +0300)]
Tweak PEP 519 documentation in stdlib (#163)

* Drop duplicate work 'object' in lzma docs
* Fix typo in os docs: fpr -> for

7 years agobpo-29579: Removes readme.txt from the installer. (#160)
Steve Dower [Sun, 19 Feb 2017 00:12:02 +0000 (16:12 -0800)]
bpo-29579: Removes readme.txt from the installer. (#160)

7 years agobpo-22807: Expose platform UUID generation safety information. (#138)
Barry Warsaw [Sat, 18 Feb 2017 20:45:49 +0000 (15:45 -0500)]
bpo-22807: Expose platform UUID generation safety information. (#138)

bpo-22807: Expose platform UUID generation safety information.

7 years agobpo-29571: Use correct locale encoding in test_re (#149)
Nick Coghlan [Sat, 18 Feb 2017 09:31:22 +0000 (15:01 +0530)]
bpo-29571: Use correct locale encoding in test_re (#149)

``local.getlocale(locale.LC_CTYPE)`` and
``locale.getpreferredencoding(False)`` may give different answers
in some cases (such as the ``en_IN`` locale).

``re.LOCALE`` uses the latter, so update the test case to match.

7 years agoMake devguide link in README more prominent (#145)
Nick Coghlan [Sat, 18 Feb 2017 06:31:47 +0000 (12:01 +0530)]
Make devguide link in README more prominent (#145)

7 years agoChange some mercurial/ hg.python.org references. (#8)
Senthil Kumaran [Thu, 16 Feb 2017 15:18:42 +0000 (07:18 -0800)]
Change some mercurial/ hg.python.org references. (#8)

7 years agoupdate test_socket AEAD test for kernel 4.9 and up (#133)
matejcik [Thu, 16 Feb 2017 13:41:31 +0000 (14:41 +0100)]
update test_socket AEAD test for kernel 4.9 and up (#133)

7 years agobpo-29026: Clarify documentation of time.time (#34)
Eric Appelt [Thu, 16 Feb 2017 10:00:45 +0000 (05:00 -0500)]
bpo-29026: Clarify documentation of time.time (#34)

* bpo-29026: Clarity documentation of time.time

Clarify the documentation of time.time by more
precisely defining what is meant by "seconds since
the epoch" on most platforms. Additionally explain
how gmtime and localtime may be used to extract
calendar components and convert to a more common
date format.

* bpo-29026: Minor improvements for time.time doc

* bpo-29026: Consistency fixes for time.time doc

7 years agobpo-29576: add explicit deprecation for importlib.abc.find_loader() and find_module...
Matthias Bussonnier [Thu, 16 Feb 2017 02:00:32 +0000 (18:00 -0800)]
bpo-29576: add explicit deprecation for importlib.abc.find_loader() and find_module() (GH-32)

7 years agobpo-29548: Fix some inefficient call API usage (GH-97)
INADA Naoki [Thu, 16 Feb 2017 00:26:01 +0000 (09:26 +0900)]
bpo-29548: Fix some inefficient call API usage (GH-97)

7 years agobpo-29556: Remove unused #include <langinfo.h> (#98)
Yen Chi Hsuan [Wed, 15 Feb 2017 23:34:30 +0000 (07:34 +0800)]
bpo-29556: Remove unused #include <langinfo.h> (#98)

bltinmodule.c: Added in b744ba1 and no longer necessary since d64e8a7
posixmodule.c: Added in d1cd4d4 and no longer necessary since efb00c0
pythonrun.c:   Added in 73d538b and no longer necessary since d600951
sysmodule.c:   Added in 5467d4c and no longer necessary since a2c17c5

7 years agobpo-29521 update Misc/ACKS (#106)
Mariatta [Wed, 15 Feb 2017 23:16:24 +0000 (15:16 -0800)]
bpo-29521 update Misc/ACKS (#106)

7 years agoRename Doc/README.txt to Doc/README.rst and add formatting (#104)
Roger [Wed, 15 Feb 2017 22:54:05 +0000 (17:54 -0500)]
Rename Doc/README.txt to Doc/README.rst and add formatting (#104)

* Reformat Doc/README.txt to Doc/README.rst

* Update mention of Doc/README.rst

* Update mention of README.txt to README.rst

* Make line fold

* rstlint ignore Doc/README.rst

* conf.py ignore Doc/README.rst

* Update issue tracker url in Docs/README.rst

7 years agoDoc/Makefile: set PYTHON to python3 (#124)
Victor Stinner [Wed, 15 Feb 2017 22:36:08 +0000 (23:36 +0100)]
Doc/Makefile: set PYTHON to python3 (#124)

rstlint.py run by "make check" doesn't support Python 2.

"make venv" runs "$(PYTHON) -m venv", whereas Python 2 doens't
provide the venv module: it's a module of Python 3 standard library.

7 years agoMore Travis docs build tweaks (GH-113)
Zachary Ware [Wed, 15 Feb 2017 22:18:03 +0000 (16:18 -0600)]
More Travis docs build tweaks (GH-113)

- Return to always building the docs, it's a relatively cheap operation,
  the check had a bug, and the docs build depends on other files.
- Add `make suspicious`
- Do all three checks as one `make check suspicious html` invocation for
  earliest possible exit in case of issues.

7 years agobpo-29481: add versionadded 3.6.1 to typing.Deque docs (#107)
Mariatta [Wed, 15 Feb 2017 19:37:18 +0000 (11:37 -0800)]
bpo-29481: add versionadded 3.6.1 to typing.Deque docs (#107)

7 years agoUpdate URL of Mersenne Twister Home Page (#20)
Hiroki Noda [Wed, 15 Feb 2017 09:04:43 +0000 (18:04 +0900)]
Update URL of Mersenne Twister Home Page (#20)

7 years agoOnly run Travis tests on master and X.Y branches (GH-102)
Donald Stufft [Wed, 15 Feb 2017 01:21:32 +0000 (20:21 -0500)]
Only run Travis tests on master and X.Y branches (GH-102)

If someone pushes a branch to python/cpython and then creates a PR
it will cause Travis to run tests needlessly, once for the PR and
once for the push. This will limit the branches that Travis will
run tests for to the `master` branch and branches that match the regex
`^\d\.\d$`.

This will have the effect that if someone purposely makes another branch
they won't get tests to run, but in that rare case they can adjust this
themselves.

7 years agoHave Travis consider a pull request as passing as soon as required tests complete...
Brett Cannon [Wed, 15 Feb 2017 00:37:15 +0000 (16:37 -0800)]
Have Travis consider a pull request as passing as soon as required tests complete (#101)

Without this flag, the coverage test will hold up the status of the pull request.

7 years agobpo-29546: Set 'path' on ImportError for ``from ... import ...`` (GH-91)
Matthias Bussonnier [Wed, 15 Feb 2017 00:05:25 +0000 (16:05 -0800)]
bpo-29546: Set 'path' on ImportError for ``from ... import ...`` (GH-91)

7 years agoRemove double definition of IPPROTO_IPV6 (#100)
Maximilian Hils [Tue, 14 Feb 2017 22:46:08 +0000 (23:46 +0100)]
Remove double definition of IPPROTO_IPV6 (#100)

IPPROTO_IPV6 is already defined further above in the same way.

7 years agobpo-29557: Remove ambiguous line in binhex docs (#90)
David Wilemski [Tue, 14 Feb 2017 22:37:49 +0000 (14:37 -0800)]
bpo-29557: Remove ambiguous line in binhex docs (#90)

"appears to not work in all cases" does not inspire confidence in this
module. I can find no context for what bug this was referencing so it
should be removed.

7 years agoIssue #29534: move Misc/NEWS entry to correct section; add Misc/ACS entry for Andrew...
Mark Dickinson [Tue, 14 Feb 2017 19:18:54 +0000 (19:18 +0000)]
Issue #29534: move Misc/NEWS entry to correct section; add Misc/ACS entry for Andrew Nester. (#99)

7 years agoFixed #29534 - _decimal difference with _pydecimal (#65)
Andrew Nester [Tue, 14 Feb 2017 18:22:55 +0000 (21:22 +0300)]
Fixed #29534 - _decimal difference with _pydecimal (#65)

7 years agoUse 'make check' instead of 'python3 tools/rstlint.py' (#96)
Berker Peksag [Tue, 14 Feb 2017 14:19:34 +0000 (17:19 +0300)]
Use 'make check' instead of 'python3 tools/rstlint.py' (#96)

7 years agoOnly run CI checks when appropriate files have changed (#74)
Berker Peksag [Tue, 14 Feb 2017 09:57:26 +0000 (12:57 +0300)]
Only run CI checks when appropriate files have changed (#74)

Closes python/core-workflow#14

7 years agoTweak .codedoc.yml to make it more useful (#71)
Berker Peksag [Tue, 14 Feb 2017 09:56:13 +0000 (12:56 +0300)]
Tweak .codedoc.yml to make it more useful (#71)

7 years agoVarious updates to README.rst (#21)
Zachary Ware [Tue, 14 Feb 2017 04:01:03 +0000 (22:01 -0600)]
Various updates to README.rst (#21)

These include spelling/grammar fixes, removing some outdated prose,
updating some superseded prose, and adding/cleaning up some links.

Also rewraps the entire file at 79 columns.

7 years agobpo-28556: Various updates to typing (#28)
Ivan Levkivskyi [Mon, 13 Feb 2017 21:50:14 +0000 (22:50 +0100)]
bpo-28556: Various updates to typing (#28)

 various updates from upstream python/typing repo:

- Added typing.Counter and typing.ChainMap generics
- More flexible typing.NamedTuple
- Improved generic ABC caching
- More tests
- Bugfixes
- Other updates

* Add Misc/NEWS entry

* Add issue number

7 years agoA few README tweaks (#73)
Ned Batchelder [Mon, 13 Feb 2017 17:05:47 +0000 (12:05 -0500)]
A few README tweaks (#73)

* Add a paragraph at the top for users, not builders, of Python.

* Use nicer rst url syntax to avoid borking paragraphs in the plain text.