]> granicus.if.org Git - python/log
python
7 years agobpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536)
Jim Fasarakis-Hilliard [Fri, 9 Jun 2017 20:27:20 +0000 (23:27 +0300)]
bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536)

Document that assertNotRegexpMatches is a deprecated alias for assertNotRegex.

7 years agobpo-30014: make poll-like selector's modify() method faster (#1030)
Giampaolo Rodola [Fri, 9 Jun 2017 20:20:41 +0000 (22:20 +0200)]
bpo-30014: make poll-like selector's modify() method faster (#1030)

* #30014: make selectors.DefaultSelector.modify() faster by relying on selector's modify() method instead of un/register()ing the fd

* #30014: add unit test

* speedup poll/epoll/devpoll modify() method by using internal modify() call

* update doc

* address PR comments

* update NEWS entries

* use != instead of 'is not'

7 years agoFix waiter cancellation in asyncio.Lock (#1031)
Mathieu Sornay [Fri, 9 Jun 2017 20:17:40 +0000 (22:17 +0200)]
Fix waiter cancellation in asyncio.Lock (#1031)

Avoid a deadlock when the waiter who is about to take the lock is
cancelled

Issue #27585

7 years agoFix regression in error message introduced in bpo-29951. (#2028)
Serhiy Storchaka [Fri, 9 Jun 2017 16:27:06 +0000 (19:27 +0300)]
Fix regression in error message introduced in bpo-29951. (#2028)

* Fix regression in error message introduced in bpo-29951.

* Add test.

* Make the test more strong.

7 years agobpo-30266: support "= None" pattern in AbstractContextManager (#1448)
Jelle Zijlstra [Fri, 9 Jun 2017 15:21:47 +0000 (08:21 -0700)]
bpo-30266: support "= None" pattern in AbstractContextManager (#1448)

contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958.

7 years agobpo-30524: Write unit tests for FASTCALL (#2022)
Victor Stinner [Fri, 9 Jun 2017 14:48:45 +0000 (16:48 +0200)]
bpo-30524: Write unit tests for FASTCALL (#2022)

Test C functions:

* _PyObject_FastCall()
* _PyObject_FastCallDict()
* _PyObject_FastCallKeywords()

7 years agobpo-30217: Add the operators ~ and | to the index (#1502)
Marco Buttu [Fri, 9 Jun 2017 14:28:28 +0000 (16:28 +0200)]
bpo-30217: Add the operators ~ and | to the index (#1502)

7 years agobpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366 (GH-148)
Chandan Kumar [Fri, 9 Jun 2017 09:43:58 +0000 (15:13 +0530)]
bpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366 (GH-148)

* RFC 1750 has been been obsoleted by RFC 4086.
* RFC 3280 has been obsoleted by RFC 5280.
* RFC 4366 has been obsoleted by RFC 6066.

7 years agoAdd a test for bad IDNA in ssl server_hostname (#1997)
Nathaniel J. Smith [Fri, 9 Jun 2017 09:35:16 +0000 (02:35 -0700)]
Add a test for bad IDNA in ssl server_hostname (#1997)

See discussion:
  https://github.com/python/cpython/pull/1992#issuecomment-307024778

7 years agobpo-30540: regrtest: add --matchfile option (#1909)
Victor Stinner [Fri, 9 Jun 2017 08:18:48 +0000 (10:18 +0200)]
bpo-30540: regrtest: add --matchfile option (#1909)

* Add a new option taking a filename to get a list of test names to
  filter tests.
* support.match_tests becomes a list.
* Modify run_unittest() to accept to match the whole test identifier,
  not just a part of a test identifier.

For example, the following command only runs test_default_timeout()
of the BarrierTests class of test_threading:

$ ./python -m test -v test_threading -m test.test_threading.BarrierTests.test_default_timeout

Remove also some empty lines from test_regrtest.py to make flake8
tool happy.

7 years agobpo-24755: Document asyncio.wrap_future (GH-603)
adisbladis [Fri, 9 Jun 2017 06:28:59 +0000 (14:28 +0800)]
bpo-24755: Document asyncio.wrap_future (GH-603)

7 years agobpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. (#1888)
Serhiy Storchaka [Thu, 8 Jun 2017 20:43:54 +0000 (23:43 +0300)]
bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. (#1888)

'invalid character in identifier' now is raised instead of
'f-string: empty expression not allowed' if a subexpression contains
only whitespaces and they are not accepted by Python parser.

7 years agobpo-30601: Fix a refleak in WindowsConsoleIO (#2003)
Victor Stinner [Thu, 8 Jun 2017 16:19:25 +0000 (18:19 +0200)]
bpo-30601: Fix a refleak in WindowsConsoleIO (#2003)

Fix a reference leak in _io._WindowsConsoleIO: PyUnicode_FSDecoder()
always initialize decodedname when it succeed and it doesn't clear
input decodedname object.

7 years agobpo-30418: Popen.communicate() always ignore EINVAL (#2002)
Victor Stinner [Thu, 8 Jun 2017 15:30:39 +0000 (17:30 +0200)]
bpo-30418: Popen.communicate() always ignore EINVAL (#2002)

On Windows, subprocess.Popen.communicate() now also ignore EINVAL
on stdin.write() if the child process is still running but closed the
pipe.

7 years agobpo-30486: Allow setting cell value (#1840)
Lisa Roach [Thu, 8 Jun 2017 11:43:26 +0000 (04:43 -0700)]
bpo-30486: Allow setting cell value (#1840)

The cell_contents attribute of the cell object is now writable.

7 years agobpo-30592: Fixed error messages for some builtins. (#1996)
Serhiy Storchaka [Thu, 8 Jun 2017 11:41:19 +0000 (14:41 +0300)]
bpo-30592: Fixed error messages for some builtins. (#1996)

Error messages when pass keyword arguments to some builtins that
don't support keyword arguments contained double parenthesis: "()()".
The regression was introduced by bpo-30534.

7 years agobpo-30598: _PySys_EndInit() now duplicates warnoptions (#1998)
Victor Stinner [Thu, 8 Jun 2017 11:27:47 +0000 (13:27 +0200)]
bpo-30598: _PySys_EndInit() now duplicates warnoptions (#1998)

Fix a reference in subinterpreters, like test_callbacks_leak() of
test_atexit.

warnoptions is a list used to pass options from the command line to
the sys module constructor. Before this change, the list was shared
by multiple interpreter which is not the expected behaviour. Each
interpreter should have their own independent mutable world.

This change duplicates the list in each interpreter. So each
interpreter owns its own list, so each interpreter can clear its own
list.

7 years agobpo-30547: Fix multiple reference leaks (#1995)
Stéphane Wirtel [Thu, 8 Jun 2017 11:13:20 +0000 (13:13 +0200)]
bpo-30547: Fix multiple reference leaks (#1995)

Fix regressions introduced by:

- bpo-22257: commits 1abcf6700b4da6207fe859de40c6c1bada6b4fec and 6b4be195cd8868b76eb6fbe166acc39beee8ce36

Co-Authored-By: Victor Stinner <victor.stinner@gmail.com>
Co-Authored-By: Louie Lu <git@louie.lu>
7 years agobpo-30594: Fixed refcounting in newPySSLSocket (#1992)
Nathaniel J. Smith [Thu, 8 Jun 2017 06:30:43 +0000 (23:30 -0700)]
bpo-30594: Fixed refcounting in newPySSLSocket (#1992)

If pass a server_hostname= that fails IDNA decoding to SSLContext.wrap_socket or SSLContext.wrap_bio, then the SSLContext object had a spurious Py_DECREF called on it, eventually leading to segfaults.

7 years agobpo-30537: use PyNumber in itertools.islice instead of PyLong (#1918)
Will Roberts [Thu, 8 Jun 2017 06:03:04 +0000 (08:03 +0200)]
bpo-30537: use PyNumber in itertools.islice instead of PyLong (#1918)

* bpo-30537: use PyNumber in itertools instead of PyLong

* bpo-30537: revert changes except to islice_new

* bpo-30537: test itertools.islice and add entry to Misc/NEWS

7 years agobpo-30591: Added test for textwrap backtracking. (#1988)
Jonathan Eunice [Wed, 7 Jun 2017 20:49:13 +0000 (16:49 -0400)]
bpo-30591: Added test for textwrap backtracking. (#1988)

7 years agotrivial: update config.{guess,sub} from gnu.org. (GH-1987)
Matthias Klose [Wed, 7 Jun 2017 18:20:19 +0000 (20:20 +0200)]
trivial: update config.{guess,sub} from gnu.org. (GH-1987)

* Update config.{guess,sub} from gnu.org.

7 years agobpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW (GH-1559)
Erik Bray [Wed, 7 Jun 2017 17:42:24 +0000 (18:42 +0100)]
bpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW (GH-1559)

7 years agobpo-30584: Fix test_os fails on non-English Windows (#1980)
Denis Osipov [Wed, 7 Jun 2017 17:15:26 +0000 (22:15 +0500)]
bpo-30584: Fix test_os fails on non-English Windows (#1980)

* Fix bpo-30584

* Adding a comment mentionning the bpo and explaining what is the identifier

* Add Denis Osipov to Misc/ACKS

7 years agobpo-30177: pathlib: include the full path in resolve(strict=False) (#1893)
Antoine Pietri [Wed, 7 Jun 2017 15:29:17 +0000 (17:29 +0200)]
bpo-30177: pathlib: include the full path in resolve(strict=False) (#1893)

7 years agobpo-30463: Add an empty __slots__ to abc.ABC.
Aaron Hall, MBA [Tue, 6 Jun 2017 19:34:57 +0000 (15:34 -0400)]
bpo-30463: Add an empty __slots__ to abc.ABC.

7 years agobpo-29596: Improve clinic howto documentation (GH-1710)
gfyoung [Tue, 6 Jun 2017 19:23:52 +0000 (15:23 -0400)]
bpo-29596: Improve clinic howto documentation (GH-1710)

Clarify that `two-pass` buffer can only be dumped once, and it prints out all text sent to it during all processing, even from Clinic blocks *after* the dumping point.

7 years agobpo-30583: Fix typo in datetime dateutil documentation (GH-1972)
wim glenn [Tue, 6 Jun 2017 17:54:41 +0000 (12:54 -0500)]
bpo-30583: Fix typo in datetime dateutil documentation (GH-1972)

Replace `datetuil` into `dateutil`

7 years agobpo-30557: Fix test_faulthandler (#1969)
Victor Stinner [Tue, 6 Jun 2017 17:40:41 +0000 (19:40 +0200)]
bpo-30557: Fix test_faulthandler (#1969)

On Windows 8, 8.1 and 10 at least, the exit code is the exception
code (no bit is cleared).

7 years agobpo-30534: Fixed error messages when pass keyword arguments (#1901)
Serhiy Storchaka [Tue, 6 Jun 2017 15:45:22 +0000 (18:45 +0300)]
bpo-30534: Fixed error messages when pass keyword arguments (#1901)

to functions implemented in C that don't support this.

Also unified error messages for functions that don't take positional or keyword
arguments.

7 years agobpo-25324: Move the description of tokenize tokens to token.rst. (#1911)
Serhiy Storchaka [Tue, 6 Jun 2017 15:43:35 +0000 (18:43 +0300)]
bpo-25324: Move the description of tokenize tokens to token.rst. (#1911)

7 years agobpo-30520: Implemented pickling for loggers. (#1956)
Vinay Sajip [Tue, 6 Jun 2017 15:34:29 +0000 (16:34 +0100)]
bpo-30520: Implemented pickling for loggers. (#1956)

Implemented pickling for loggers.

7 years agoSimplify X.509 extension handling code (#1855)
Alex Gaynor [Tue, 6 Jun 2017 11:53:11 +0000 (07:53 -0400)]
Simplify X.509 extension handling code (#1855)

* Simplify X.509 extension handling code

The previous implementation had grown organically over time, as OpenSSL's API evolved.

* Delete even more code

7 years agobpo-30095: Make CSS classes used by calendar.HTMLCalendar customizable (GH-1439)
Oz N Tiram [Tue, 6 Jun 2017 09:35:59 +0000 (11:35 +0200)]
bpo-30095: Make CSS classes used by calendar.HTMLCalendar customizable (GH-1439)

Several class attributes have been added to calendar.HTMLCalendar that allow customization of the CSS classes used in the resulting HTML. This can be done by subclasses HTMLCalendar and overwriting those class attributes (Patch by Oz Tiram).

7 years agoInstall dependencies in Travis OSX build (GH-1952)
Zachary Ware [Tue, 6 Jun 2017 00:11:29 +0000 (19:11 -0500)]
Install dependencies in Travis OSX build (GH-1952)

7 years agobpo-30417: Disable 'cpu' and 'tzdata' resources on Travis (GH-1928)
Zachary Ware [Mon, 5 Jun 2017 23:42:17 +0000 (18:42 -0500)]
bpo-30417: Disable 'cpu' and 'tzdata' resources on Travis (GH-1928)

Also weakens the 'should this be run?' regex to allow all builds when .travis.yml changes.

7 years agobpo-30557: faulthandler now correctly filters and displays exception codes on Windows...
Steve Dower [Mon, 5 Jun 2017 22:54:15 +0000 (15:54 -0700)]
bpo-30557: faulthandler now correctly filters and displays exception codes on Windows (#1924)

* bpo-30557: faulthandler now correctly filters and displays exception codes on Windows

* Adds test for non-fatal exceptions.

* Adds bpo number to comment.

7 years agobpo-30530: Update Descriptor How To Documentation (GH-1845)
Mariano Anaya [Mon, 5 Jun 2017 02:46:50 +0000 (04:46 +0200)]
bpo-30530: Update Descriptor How To Documentation (GH-1845)

Update the code example in Functions and Methods section
Remove objtype argument in MethodType

7 years agoOnly run AppVeyor on long-lived branches (GH-1941)
Zachary Ware [Sun, 4 Jun 2017 20:18:50 +0000 (15:18 -0500)]
Only run AppVeyor on long-lived branches (GH-1941)

Also on the short-lived `buildbot-custom` branch.

7 years agobpo-30567: Fix refleak in sys.getwindowsversion (#1940)
Segev Finer [Sun, 4 Jun 2017 17:52:27 +0000 (20:52 +0300)]
bpo-30567: Fix refleak in sys.getwindowsversion (#1940)

7 years agobpo-30538: Update count() in Functional Programming HOWTO (#1919)
csabella [Sun, 4 Jun 2017 17:39:21 +0000 (13:39 -0400)]
bpo-30538: Update count() in Functional Programming HOWTO (#1919)

* bpo-30538: Update count() in Functional HOWTO

* bpo-30538: Update enumerate() arguments in Functional HOWTO

7 years agoSimplify code in warnings modules (#1935)
Alex Gaynor [Sun, 4 Jun 2017 15:34:16 +0000 (11:34 -0400)]
Simplify code in warnings modules (#1935)

Metaprogramming a list of attributes was excessive, and made the code less readable and slower.

7 years agofix comment (#1798)
leodema [Sun, 4 Jun 2017 06:41:41 +0000 (07:41 +0100)]
fix comment (#1798)

7 years agoTurn on macOS builds for Travis (GH-1846)
Brett Cannon [Sat, 3 Jun 2017 17:24:17 +0000 (10:24 -0700)]
Turn on macOS builds for Travis (GH-1846)

Initially the macOS builds are allowed to fail until such time that they can be determined to be stable and not add an unacceptable amount of time to the overall Travis-passing process.

7 years agoFix bpo-30526: Add TextIOWrapper.reconfigure() and a TextIOWrapper.write_through...
Antoine Pitrou [Sat, 3 Jun 2017 10:32:28 +0000 (12:32 +0200)]
Fix bpo-30526: Add TextIOWrapper.reconfigure() and a TextIOWrapper.write_through attribute (#1922)

* Fix bpo-30526: Add TextIOWrapper.reconfigure()

* Apply Nick's improved wording

* Update Misc/NEWS

7 years agobpo-24899: Add comparison table for os.path -> pathlib (GH-1753)
Jamiel Almeida [Fri, 2 Jun 2017 18:36:02 +0000 (11:36 -0700)]
bpo-24899: Add comparison table for os.path -> pathlib (GH-1753)

7 years agoFix skipping test_UNC_path on AppVeyor due to a different error being raised (#1920)
Segev Finer [Fri, 2 Jun 2017 16:28:16 +0000 (19:28 +0300)]
Fix skipping test_UNC_path on AppVeyor due to a different error being raised (#1920)

We get `ERROR_BAD_NETPATH` (53) on AppVeyor which is translated to
ENOENT (2).

7 years agobpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW...
Segev Finer [Fri, 2 Jun 2017 16:26:01 +0000 (19:26 +0300)]
bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW fails (#1912)

* bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW fails

* bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW fails

7 years agobpo-30052: Always regenerate cross-references (#1339)
Nick Coghlan [Fri, 2 Jun 2017 13:30:57 +0000 (23:30 +1000)]
bpo-30052: Always regenerate cross-references (#1339)

* bpo-30052: Always regenerate cross-references

The patch for bpo-30052 changed the preferred link target
for :func:`bytes` and :func`bytearray` references to be the
respective type definitions rather than the corresponding
builtin function entries.

This patch changes the daily documentation builds to disable
the output caching in Sphinx, in order to ensure that
cross-reference changes like this one are reliably picked
up and applied automatically after merging.

7 years agobpo-30245: Fix possible overflow when organize struct.pack_into error message (#1682)
Johan Liu [Fri, 2 Jun 2017 06:33:04 +0000 (14:33 +0800)]
bpo-30245: Fix possible overflow when organize struct.pack_into error message (#1682)

7 years agobpo-29660: traceback: Document that etype is ignored in some places. (GH-344)
Matthias Bussonnier [Thu, 1 Jun 2017 21:54:01 +0000 (14:54 -0700)]
bpo-29660: traceback: Document that etype is ignored in some places. (GH-344)

7 years agobpo-25324: add missing comma in Parser/tokenizer.c (GH-1910)
Albert-Jan Nijburg [Thu, 1 Jun 2017 20:51:27 +0000 (21:51 +0100)]
bpo-25324: add missing comma in Parser/tokenizer.c (GH-1910)

7 years agoMark PyDict_GetItemWithError() as returning a borrowed reference. (#1818)
Eric Snow [Thu, 1 Jun 2017 18:29:13 +0000 (12:29 -0600)]
Mark PyDict_GetItemWithError() as returning a borrowed reference. (#1818)

7 years agobpo-30499: Remove a deprecated note about sets. (GH-1848)
Julien [Thu, 1 Jun 2017 14:02:21 +0000 (16:02 +0200)]
bpo-30499: Remove a deprecated note about sets. (GH-1848)

7 years agobpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1676)
Xiang Zhang [Thu, 1 Jun 2017 13:11:56 +0000 (21:11 +0800)]
bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1676)

7 years agobpo-30509: Clean up calling type slots. (#1883)
Serhiy Storchaka [Thu, 1 Jun 2017 05:18:25 +0000 (08:18 +0300)]
bpo-30509: Clean up calling type slots. (#1883)

Also speed up slot_sq_item.

7 years agobpo-27618: Clarify that threading.Lock is a factory function (GH-1307)
csabella [Thu, 1 Jun 2017 00:14:19 +0000 (20:14 -0400)]
bpo-27618: Clarify that threading.Lock is a factory function (GH-1307)

7 years agoFix Travis config to reinstate test build (GH-1879)
Hiro Asari [Wed, 31 May 2017 22:34:00 +0000 (18:34 -0400)]
Fix Travis config to reinstate test build (GH-1879)

7 years agobpo-25324: copy tok_name before changing it (#1608)
Albert-Jan Nijburg [Wed, 31 May 2017 14:00:21 +0000 (15:00 +0100)]
bpo-25324: copy tok_name before changing it (#1608)

* add test to check if were modifying token

* copy list so import tokenize doesnt have side effects on token

* shorten line

* add tokenize tokens to token.h to get them to show up in token

* move ERRORTOKEN back to its previous location, and fix nitpick

* copy comments from token.h automatically

* fix whitespace and make more pythonic

* change to fix comments from @haypo

* update token.rst and Misc/NEWS

* change wording

* some more wording changes

7 years agosubprocess test_empty_env typo fix. (#1877)
Gregory P. Smith [Tue, 30 May 2017 23:21:47 +0000 (16:21 -0700)]
subprocess test_empty_env typo fix. (#1877)

7 years agobpo-17188: add missing periods at the end of sentences (GH-1875)
Mariatta [Tue, 30 May 2017 22:26:42 +0000 (15:26 -0700)]
bpo-17188: add missing periods at the end of sentences (GH-1875)

7 years agobpo-12383: Refactor subprocess test_empty_env (#1874)
Gregory P. Smith [Tue, 30 May 2017 21:40:37 +0000 (14:40 -0700)]
bpo-12383: Refactor subprocess test_empty_env (#1874)

Bugfix: This test wasn't being run because it was skipping based on the
presence of Py_ENABLE_SHARED rather than its value.  It is always present
on POSIX systems but defaults to 0.

Refactoring: Move the environment variables that can be ignored into a
function.  Parse the list from the child process and filter out the ones
to exclude in the parent before checking that the rest is empty.

Feature: Adds always present environment variables to ignore when
running in a Gentoo sandbox so that the test can pass there.

7 years agoImprove grammar in The Import System documentation (GH-1862)
kms70847 [Tue, 30 May 2017 16:12:33 +0000 (12:12 -0400)]
Improve grammar in The Import System documentation (GH-1862)

Replace `an ModuleNotFoundError` with `a ModuleNotFoundError`.
Replace `an path` with `a path`.

7 years agobpo-30361: Use better example for mixed-type operands (#1701)
gfyoung [Mon, 29 May 2017 21:26:31 +0000 (17:26 -0400)]
bpo-30361: Use better example for mixed-type operands (#1701)

7 years agoChange error message for array methods to use 'array' instead of 'list'. (#1853)
Jim Fasarakis-Hilliard [Mon, 29 May 2017 17:43:39 +0000 (20:43 +0300)]
Change error message for array methods to use 'array' instead of 'list'. (#1853)

7 years agobpo-16500: Don't use string constants for os.register_at_fork() behavior (#1834)
Gregory P. Smith [Mon, 29 May 2017 17:03:41 +0000 (10:03 -0700)]
bpo-16500: Don't use string constants for os.register_at_fork() behavior (#1834)

Instead use keyword only arguments to os.register_at_fork for each of the scenarios.
Updates the documentation for clarity.

7 years agoBuild docs in parallel (#1842)
Antoine Pitrou [Mon, 29 May 2017 10:05:45 +0000 (12:05 +0200)]
Build docs in parallel (#1842)

7 years agoAdd reference to help('FORMATTING') in format() builtin (GH-166)
Amit Kumar [Mon, 29 May 2017 01:02:26 +0000 (06:32 +0530)]
Add reference to help('FORMATTING') in format() builtin (GH-166)

7 years agobpo-30248: Convert boolean arguments only once in _json. (#1423)
Serhiy Storchaka [Sun, 28 May 2017 12:31:49 +0000 (15:31 +0300)]
bpo-30248: Convert boolean arguments only once in _json. (#1423)

Rather than saving the Python object and calling PyObject_IsTrue()
every time when the boolean argument is used, call it only once and
save C boolean value.

7 years agobpo-16500: Use register_at_fork() in the threading module (#1843)
Antoine Pitrou [Sun, 28 May 2017 12:02:26 +0000 (14:02 +0200)]
bpo-16500: Use register_at_fork() in the threading module (#1843)

* bpo-16500: Use register_at_fork() in the threading module

* Update comment at top of _after_fork()

7 years agobpo-30495: IDLE: Modernize textview.py with docstrings and PEP8 names (#1839)
csabella [Sun, 28 May 2017 10:50:55 +0000 (06:50 -0400)]
bpo-30495: IDLE: Modernize textview.py with docstrings and PEP8 names (#1839)

Patch by Cheryl Sabella.

7 years agoDoc nits for bpo-16500 (#1841)
Antoine Pitrou [Sun, 28 May 2017 09:35:14 +0000 (11:35 +0200)]
Doc nits for bpo-16500 (#1841)

* Doc nits for bpo-16500

* Fix more references

7 years agoIDLE test_help_about: edit and add test. (#1838)
terryjreedy [Sun, 28 May 2017 05:10:51 +0000 (01:10 -0400)]
IDLE test_help_about: edit and add test. (#1838)

Coverage is now 100%

7 years agobpo-30492: Allow make clinic to work out of tree. (#1836)
Gregory P. Smith [Sat, 27 May 2017 23:40:45 +0000 (16:40 -0700)]
bpo-30492: Allow make clinic to work out of tree. (#1836)

* bpo-30492: Allow make clinic to work out of tree.

* Use os.curdir instead of "." as the default value.

7 years agobpo-30290: IDLE: Refactor help_about to PEP8 names (#1714)
csabella [Sat, 27 May 2017 19:49:26 +0000 (15:49 -0400)]
bpo-30290: IDLE: Refactor help_about to PEP8 names (#1714)

Patch by Cheryl Sabella.

7 years agobpo-20210: Support the *disabled* marker in Setup files (GH-132)
xdegaye [Sat, 27 May 2017 16:25:03 +0000 (18:25 +0200)]
bpo-20210: Support the *disabled* marker in Setup files (GH-132)

Extension modules listed after the *disabled* marker are not built at all,
neither by the Makefile nor by setup.py.

7 years agobpo-16500: Allow registering at-fork handlers (#1715)
Antoine Pitrou [Sat, 27 May 2017 15:50:54 +0000 (17:50 +0200)]
bpo-16500: Allow registering at-fork handlers (#1715)

* bpo-16500: Allow registering at-fork handlers

* Address Serhiy's comments

* Add doc for new C API

* Add doc for new Python-facing function

* Add NEWS entry + doc nit

7 years agobpo-30470: Deprecate invalid ctypes call protection on Windows. (GH-1810)
Mariatta [Sat, 27 May 2017 14:23:26 +0000 (07:23 -0700)]
bpo-30470: Deprecate invalid ctypes call protection on Windows. (GH-1810)

Calling Ctypes functions is deprecated in 3.6.2 and will be removed in 3.7

7 years agobpo-30310: Add a test for non-ascii font family. (#1567) (#1832)
Serhiy Storchaka [Sat, 27 May 2017 14:01:31 +0000 (17:01 +0300)]
bpo-30310: Add a test for non-ascii font family. (#1567) (#1832)

7 years agobpo-30398: Add a docstring for re.error. (#1647)
Serhiy Storchaka [Sat, 27 May 2017 13:12:48 +0000 (16:12 +0300)]
bpo-30398: Add a docstring for re.error. (#1647)

Also document that some attributes may be None.

7 years agoFix the signature of JSONDecodeError (no end parameter). (#1827)
Serhiy Storchaka [Sat, 27 May 2017 13:11:18 +0000 (16:11 +0300)]
Fix the signature of JSONDecodeError (no end parameter). (#1827)

Unlikely to the simplejson module, json.JSONDecodeError doesn't accept the end argument.

7 years agobpo-22702: Clarify documentation of str.join & bytes.join (GH-156)
Sanyam Khurana [Sat, 27 May 2017 05:44:41 +0000 (11:14 +0530)]
bpo-22702: Clarify documentation of str.join & bytes.join (GH-156)

The "iterable iterable" phrasing created confusion between the term
reference and the parameter name.

This simplifies the phrasing to just use the parameter name
without linking directly to the term definition.

7 years agobpo-30449 Terse slots (#1819)
Aaron Hall, MBA [Fri, 26 May 2017 05:33:26 +0000 (22:33 -0700)]
bpo-30449 Terse slots (#1819)

* correct __slots__ documentation with minimal changes

* add multiple inheritance info

* remove mapping from description

7 years agobpo-30420: List cwd parameter in subprocess convenience APIs (GH-1685)
Alex Gaynor [Fri, 26 May 2017 02:28:17 +0000 (22:28 -0400)]
bpo-30420: List cwd parameter in subprocess convenience APIs (GH-1685)

Partially clarify the subprocess convenience API documentation by
explicitly listing the `cwd` parameter in their abbreviated signatures.

While this has been merged as an improvement, it doesn't fully
resolve the issue, as the `cwd` should also be covered in the
"Frequently Used Arguments" section, and the fact these APIs
pass unlisted keyword arguments down to the lower level APIs
is currently still unclear.

7 years agoDrop a duplicate line. (#1809)
Eric Snow [Thu, 25 May 2017 17:05:50 +0000 (10:05 -0700)]
Drop a duplicate line. (#1809)

7 years agobpo-30414: multiprocessing.Queue._feed do not break from main loop on exc (#1683)
grzgrzgrz3 [Thu, 25 May 2017 14:22:57 +0000 (16:22 +0200)]
bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc (#1683)

* bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc

Queue background running thread was not handling exceptions correctly.
Any exception occurred inside thread (putting unpickable object) cause
feeder to finish running. After that every message put into queue is
silently ignored.

* bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc

Queue background running thread was not handling exceptions correctly.
Any exception occurred inside thread (putting unpickable object) cause
feeder to finish running. After that every message put into queue is
silently ignored.

7 years agoDelete sigcheck.c since it appears unused (#1723)
Segev Finer [Thu, 25 May 2017 11:00:18 +0000 (14:00 +0300)]
Delete sigcheck.c since it appears unused (#1723)

7 years agobpo-29104: Fixed parsing backslashes in f-strings. (#490)
Serhiy Storchaka [Thu, 25 May 2017 10:33:55 +0000 (13:33 +0300)]
bpo-29104: Fixed parsing backslashes in f-strings. (#490)

7 years agobpo-30447: Fix/skip the subinterpreters test on some platforms. (#1791)
Eric Snow [Thu, 25 May 2017 00:19:47 +0000 (17:19 -0700)]
bpo-30447: Fix/skip the subinterpreters test on some platforms. (#1791)

7 years agobpo-29851: Have importlib.reload() raise ImportError if the module's spec is not...
Garvit Khatri [Wed, 24 May 2017 22:19:50 +0000 (03:49 +0530)]
bpo-29851: Have importlib.reload() raise ImportError if the module's spec is not found (GH-972)

7 years ago bpo-30445: Allow appended output in RecursionError message
codedragon [Wed, 24 May 2017 21:23:46 +0000 (14:23 -0700)]
 bpo-30445: Allow appended output in RecursionError message

Running under coverage sometimes causes 'in comparison' to be added to the end of the RecursionError message, which is acceptable.

Patched by Maria Mckinley

7 years agobpo-28845: Clean up known issues for AIX (GH-1670)
Eric N. Vander Weele [Wed, 24 May 2017 19:27:47 +0000 (12:27 -0700)]
bpo-28845: Clean up known issues for AIX (GH-1670)

Clean up `Misc/README.AIX` for addressed known issues.

- Issues that have been marked fixed: #11184, #11185
- Issues resolved by new AIX version: #1745108
- Issues resolved, but not yet marked fixed/closed: #11188

Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
7 years agobpo-30442: Skips refcount test in test_xml_etree under coverage (#1767)
Kushal Das [Wed, 24 May 2017 18:46:43 +0000 (11:46 -0700)]
bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767)

7 years agobpo-30160: Clarify intended usage of wfile (gh-1300)
jugglinmike [Wed, 24 May 2017 18:25:50 +0000 (14:25 -0400)]
bpo-30160: Clarify intended usage of wfile (gh-1300)

The library does not enforce compliance with the HTTP protocol,
so violations are not technically disallowed. Extend the stream's
description to avoid suggesting that intentional protocol violations are
not supported.

7 years agoMove directory in .gitignore (#1787)
Steve Dower [Wed, 24 May 2017 16:24:49 +0000 (09:24 -0700)]
Move directory in .gitignore (#1787)

7 years agoAdd .idea and .iml to .gitignore (#1764)
gfyoung [Wed, 24 May 2017 15:57:37 +0000 (11:57 -0400)]
Add .idea and .iml to .gitignore (#1764)

7 years agobpo-30377: Simplify handling of COMMENT and NL in tokenize.py (#1607)
Albert-Jan Nijburg [Wed, 24 May 2017 11:31:57 +0000 (12:31 +0100)]
bpo-30377: Simplify handling of COMMENT and NL in tokenize.py (#1607)

7 years agobpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and...
Stéphane Wirtel [Wed, 24 May 2017 07:29:06 +0000 (09:29 +0200)]
bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module (#1776)

* bpo-28707: call the constructor of SimpleHTTPRequestHandler in the test with a mock object

* bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module

7 years agobpo-9146: Raise a ValueError if OpenSSL fails to init a hash func. (#1777)
Gregory P. Smith [Wed, 24 May 2017 07:04:38 +0000 (00:04 -0700)]
bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func. (#1777)

This helps people in weird FIPS mode environments where common things
like MD5 are not available in the binary as a matter of policy.

7 years agoAdded effect of re.ASCII and reworded slightly (#1782)
Brian Ward [Wed, 24 May 2017 07:03:38 +0000 (00:03 -0700)]
Added effect of re.ASCII and reworded slightly (#1782)