]> granicus.if.org Git - python/log
python
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.

7 years agoAdd Travis CI and Codecov badges to README (#70)
Victor Stinner [Mon, 13 Feb 2017 15:57:30 +0000 (16:57 +0100)]
Add Travis CI and Codecov badges to README (#70)

Badges are small images which gives the status of the Travis CI and
the coverage percentage of Codecode. It helps to check the status of
the Travis CI and to get the link to Travis CI.

See also https://shields.io/

7 years agoTravis CI: run rstlint.py in the docs job (#68)
Victor Stinner [Mon, 13 Feb 2017 14:30:05 +0000 (15:30 +0100)]
Travis CI: run rstlint.py in the docs job (#68)

Currently, http://buildbot.python.org/all/buildslaves/ware-docs
buildbot is only run as post-commit. For example, bpo-29521 (PR#41)
introduced two warnings, unnotified by the Travis CI docs job.

Modify the docs job to run toosl/rstlint.py.

Fix also the two minor warnings which causes the buildbot slave to
fail.

7 years agobpo-29521 Fix two minor documentation build warnings (#41)
Jim DeLaHunt [Mon, 13 Feb 2017 13:57:13 +0000 (05:57 -0800)]
bpo-29521 Fix two minor documentation build warnings (#41)

Much of bpo-29521 was fixed in parallel with commit
e7ffb99 .  This cleans up the rest.

Apply parallel change to Doc/make.bat to read
"set SPHINXOPTS=-D latex_elements.papersize="
I don't have a Windows system on which to observe the warning,
but it should be necessary.

The warning:

.../workspace/cpython_github/Doc/faq/windows.rst:303:
    WARNING: unknown option: -t

In the Windows FAQ, `How do I keep editors from inserting tabs
into my Python source?`, contained a reference to a Python -t
option. In Python 2.x, this caused Python to issue warnings
about lines with mixed spaces and tabs, but as of Python 3.6
it does nothing.

Per discussion at http://bugs.python.org/issue29387, take
their wording. Python [3] raises an IndentationError or
TabError. Tabnanny is now a module.

7 years agoAllow up to a 0.01% drop in coverage (#30)
Zachary Ware [Mon, 13 Feb 2017 04:21:19 +0000 (22:21 -0600)]
Allow up to a 0.01% drop in coverage (#30)

7 years agobpo-29176: Fix name of the _curses.window class (#52)
Victor Stinner [Sun, 12 Feb 2017 22:42:02 +0000 (23:42 +0100)]
bpo-29176: Fix name of the _curses.window class (#52)

Set name to "_curses.window" instead of "_curses.curses window" (with
a space!?).

7 years agogetpass: update docstrings (#49)
MRMillon [Sun, 12 Feb 2017 22:10:48 +0000 (04:10 +0600)]
getpass: update docstrings (#49)

EasyDialogs was removed in 3.x. fallback_getpass will always be the answer here.
ff47a133e1eee9dab60b86fb0d56ccd1022f841a

7 years agobpo-28929: Link the documentation to its source file on GitHub (#35)
Mariatta [Sun, 12 Feb 2017 21:07:05 +0000 (13:07 -0800)]
bpo-28929: Link the documentation to its source file on GitHub (#35)

* bpo-28929: Link the documentation to its source file on GitHub

Change the documentation's `Show Source` link on the left menu
to GitHub source file.

* change version to master

7 years agobpo-29524: Add Objects/call.c file (#12)
Victor Stinner [Sun, 12 Feb 2017 18:27:05 +0000 (19:27 +0100)]
bpo-29524: Add Objects/call.c file (#12)

* Move all functions to call objects in a new Objects/call.c file.
* Rename fast_function() to _PyFunction_FastCallKeywords().
* Copy null_error() from Objects/abstract.c
* Inline type_error() in call.c to not have to copy it, it was only
  called once.
* Export _PyEval_EvalCodeWithName() since it is now called
  from call.c.

7 years agobpo-29474: Improve documentation for weakref.WeakValueDictionary (#10)
Mariatta [Sun, 12 Feb 2017 16:17:50 +0000 (08:17 -0800)]
bpo-29474: Improve documentation for weakref.WeakValueDictionary (#10)

There were some grammatical errors in weakref.WeakValueDictionary
documentation.

7 years agobpo-27122: Fix comment to point to correct issue number (#47)
Nathaniel J. Smith [Sun, 12 Feb 2017 11:37:24 +0000 (03:37 -0800)]
bpo-27122: Fix comment to point to correct issue number (#47)

It took me quite a bit to figure out what this was referring to,
since the given issue number is wrong, and the original commit
message I found through git blame lists a different, also wrong
issue number... see https://bugs.python.org/issue27122#msg279449

7 years agobpo-29438: fixed use-after-free in key sharing dict (#17)
INADA Naoki [Sun, 12 Feb 2017 04:51:30 +0000 (13:51 +0900)]
bpo-29438: fixed use-after-free in key sharing dict (#17)

7 years agoFix some sphinx warnings (#9)
Ryan Gonzalez [Sat, 11 Feb 2017 04:47:37 +0000 (22:47 -0600)]
Fix some sphinx warnings (#9)

* Fix some deprecation warnings in Doc/conf.py
* Fix an rst error in Misc/NEWS

7 years agoMake Travis docs build more lenient (#16)
Zachary Ware [Sat, 11 Feb 2017 03:02:18 +0000 (21:02 -0600)]
Make Travis docs build more lenient (#16)

7 years agoRename README to README.rst and enhance formatting (#2)
Victor Stinner [Sat, 11 Feb 2017 01:21:38 +0000 (02:21 +0100)]
Rename README to README.rst and enhance formatting (#2)

Update also the Release Schedule to Python 3.7.

7 years agoFix bpo-29528 Use a secure variable to stop spam (#13)
Donald Stufft [Sat, 11 Feb 2017 00:58:34 +0000 (19:58 -0500)]
Fix bpo-29528 Use a secure variable to stop spam (#13)

If the IRC notification is stored in plaintext, then anyone who forks
the repository and also adds it to travis will send notifications to
the IRC channel for their fork by default. Since the secure variable
is encrypted using a repository specific key, this will only work when
it is being built using the correct repository.

7 years agoDon't treat warnings as error in Travis docs job (#7)
Victor Stinner [Sat, 11 Feb 2017 00:26:07 +0000 (01:26 +0100)]
Don't treat warnings as error in Travis docs job (#7)

bpo-29527.

7 years agoSupport "bpo-" in Misc/NEWS (#1)
Brett Cannon [Fri, 10 Feb 2017 23:10:13 +0000 (15:10 -0800)]
Support "bpo-" in Misc/NEWS (#1)

7 years agoFix formatting issue with Codecov badge
Brett Cannon [Fri, 10 Feb 2017 22:34:58 +0000 (14:34 -0800)]
Fix formatting issue with Codecov badge

7 years agoAdd the Codecov badge for master
Brett Cannon [Fri, 10 Feb 2017 22:33:55 +0000 (14:33 -0800)]
Add the Codecov badge for master

7 years agoAdd a Travis badge for the master branch
Brett Cannon [Fri, 10 Feb 2017 22:31:08 +0000 (14:31 -0800)]
Add a Travis badge for the master branch

7 years agoAdd a codecov configuration file
Brett Cannon [Fri, 10 Feb 2017 22:24:16 +0000 (14:24 -0800)]
Add a codecov configuration file

7 years agoAdd a Travis configuration file
Brett Cannon [Fri, 10 Feb 2017 22:21:15 +0000 (14:21 -0800)]
Add a Travis configuration file

7 years agoDelete old pull request template
Brett Cannon [Fri, 10 Feb 2017 22:09:18 +0000 (14:09 -0800)]
Delete old pull request template

7 years agoAdd a CONTRIBUTING file
Brett Cannon [Fri, 10 Feb 2017 22:08:55 +0000 (14:08 -0800)]
Add a CONTRIBUTING file

This file will be displayed to contributors when they create a pull request in any branch (hence why it is not written in a branch-specific way).

7 years agoBacked out changeset f23fa1f7b68f
Victor Stinner [Fri, 10 Feb 2017 13:19:36 +0000 (14:19 +0100)]
Backed out changeset f23fa1f7b68f

Sorry, I didn't want to push this change before the review :-( I was pushing a
change into the 2.7 branch.

7 years agoIssue #29465: Add Objects/call.c file
Victor Stinner [Fri, 10 Feb 2017 12:32:29 +0000 (13:32 +0100)]
Issue #29465: Add Objects/call.c file

* Move all functions to call objects in a new Objects/call.c file.
* Rename fast_function() to _PyFunction_FastCallKeywords().
* Copy null_error() from Objects/abstract.c
* Inline type_error() in call.c to not have to copy it, it was only
  called once.
* Export _PyEval_EvalCodeWithName() since it is now called
  from call.c.

7 years agoMerge 3.6
Victor Stinner [Fri, 10 Feb 2017 11:38:02 +0000 (12:38 +0100)]
Merge 3.6

7 years agoFix test_datetime on Windows
Victor Stinner [Fri, 10 Feb 2017 11:37:21 +0000 (12:37 +0100)]
Fix test_datetime on Windows

Issue #29100: On Windows, datetime.datetime.fromtimestamp(min_ts) fails with an
OSError in test_timestamp_limits().

7 years agoMerge 3.6
Victor Stinner [Fri, 10 Feb 2017 10:45:28 +0000 (11:45 +0100)]
Merge 3.6

7 years agoFix test_datetime on system with 32-bit time_t
Victor Stinner [Fri, 10 Feb 2017 10:45:14 +0000 (11:45 +0100)]
Fix test_datetime on system with 32-bit time_t

Issue #29100: Catch OverflowError in the new test_timestamp_limits() test.

7 years agoMerge 3.6
Victor Stinner [Fri, 10 Feb 2017 09:34:37 +0000 (10:34 +0100)]
Merge 3.6

7 years agoFix datetime.fromtimestamp(): check bounds
Victor Stinner [Fri, 10 Feb 2017 09:34:02 +0000 (10:34 +0100)]
Fix datetime.fromtimestamp(): check bounds

Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python
3.6.0: check minimum and maximum years.

7 years agoMerge 3.6 (fix #29519)
Łukasz Langa [Fri, 10 Feb 2017 08:20:16 +0000 (00:20 -0800)]
Merge 3.6 (fix #29519)

7 years agoMerge 3.5 (fix #29519)
Łukasz Langa [Fri, 10 Feb 2017 08:16:10 +0000 (00:16 -0800)]
Merge 3.5 (fix #29519)

7 years agoFix #29519: weakref spewing exceptions during interp finalization
Łukasz Langa [Fri, 10 Feb 2017 08:14:55 +0000 (00:14 -0800)]
Fix #29519: weakref spewing exceptions during interp finalization

7 years agomerge 3.6
Benjamin Peterson [Fri, 10 Feb 2017 06:35:38 +0000 (22:35 -0800)]
merge 3.6

7 years agomassage English for -X descriptions a bit
Benjamin Peterson [Fri, 10 Feb 2017 06:31:17 +0000 (22:31 -0800)]
massage English for -X descriptions a bit

7 years agoIssue #29507: Fix _PyObject_CallFunctionVa()
Victor Stinner [Thu, 9 Feb 2017 23:41:06 +0000 (00:41 +0100)]
Issue #29507: Fix _PyObject_CallFunctionVa()

is_size_t test was reversed. Bug spotted by INADA Naoki.

7 years agoIssue #29507: Update test_exceptions
Victor Stinner [Thu, 9 Feb 2017 22:49:50 +0000 (23:49 +0100)]
Issue #29507: Update test_exceptions

test_unraisable() of test_exceptions expects that PyErr_WriteUnraisable(method)
fails on repr(method).

Before the previous change (7b8df4a5d81d), slot_tp_finalize() called
PyErr_WriteUnraisable() with a PyMethodObject. In this case, repr(method) calls
repr(self) which is BrokenRepr.__repr__() and the calls raises a new exception.

After the previous change, slot_tp_finalize() uses an unbound method: repr() is
called on a regular __del__() method which doesn't call repr(self). repr()
doesn't fail anymore.

PyErr_WriteUnraisable() doesn't call __repr__() anymore, so remove BrokenRepr
unit test.

7 years agoOptimize slots: avoid temporary PyMethodObject
Victor Stinner [Thu, 9 Feb 2017 21:53:47 +0000 (22:53 +0100)]
Optimize slots: avoid temporary PyMethodObject

Issue #29507: Optimize slots calling Python methods. For Python methods, get
the unbound Python function and prepend arguments with self, rather than
calling the descriptor which creates a temporary PyMethodObject.

Add a new _PyObject_FastCall_Prepend() function used to call the unbound Python
method with self. It avoids the creation of a temporary tuple to pass
positional arguments.

Avoiding temporary PyMethodObject and avoiding temporary tuple makes Python
slots up to 1.46x faster. Microbenchmark on a __getitem__() method implemented
in Python:

Median +- std dev: 121 ns +- 5 ns -> 82.8 ns +- 1.0 ns: 1.46x faster (-31%)

Co-Authored-by: INADA Naoki <songofacandy@gmail.com>
7 years agoNull merge
Serhiy Storchaka [Thu, 9 Feb 2017 18:07:15 +0000 (20:07 +0200)]
Null merge

7 years agoIssue #29513: Fix outdated comment and remove redundand code is os.scandir().
Serhiy Storchaka [Thu, 9 Feb 2017 18:05:51 +0000 (20:05 +0200)]
Issue #29513: Fix outdated comment and remove redundand code is os.scandir().

7 years agoIssue #29513: Fixed a reference leak in os.scandir() added in issue #29034.
Serhiy Storchaka [Thu, 9 Feb 2017 18:02:37 +0000 (20:02 +0200)]
Issue #29513: Fixed a reference leak in os.scandir() added in issue #29034.

7 years agoMerge issue #26355 fix from 3.6
Nick Coghlan [Thu, 9 Feb 2017 15:09:03 +0000 (16:09 +0100)]
Merge issue #26355 fix from 3.6

7 years agoMerge issue #26355 fix from Python 3.5
Nick Coghlan [Thu, 9 Feb 2017 15:08:17 +0000 (16:08 +0100)]
Merge issue #26355 fix from Python 3.5

7 years agoIssue #26355: Specify canonical URLs in docs pages
Nick Coghlan [Thu, 9 Feb 2017 15:03:59 +0000 (16:03 +0100)]
Issue #26355: Specify canonical URLs in docs pages

Add canonical header link on each page to corresponding major
version of the documentation.

Patch by Matthias Bussonnier.

7 years agoFix PyCFunction_Call() performance issue
Victor Stinner [Thu, 9 Feb 2017 01:01:37 +0000 (02:01 +0100)]
Fix PyCFunction_Call() performance issue

Issue #29259, #29465: PyCFunction_Call() doesn't create anymore a redundant
tuple to pass positional arguments for METH_VARARGS.

Add a new cfunction_call() subfunction.

7 years agosupport: temp_dir() and change_cwd() uses repr() in error message
Victor Stinner [Wed, 8 Feb 2017 14:49:10 +0000 (15:49 +0100)]
support: temp_dir() and change_cwd() uses repr() in error message

Serhiy Storshaka pointed me that str(path) can emit a BytesWarning: use
repr(path) instead.

7 years agoFix refleaks if Py_EnterRecursiveCall() fails
Victor Stinner [Wed, 8 Feb 2017 11:57:09 +0000 (12:57 +0100)]
Fix refleaks if Py_EnterRecursiveCall() fails

Issue #29306: Destroy argstuple and kwdict if Py_EnterRecursiveCall() fails.

7 years agoFix regrtest -j0 -R output
Victor Stinner [Wed, 8 Feb 2017 12:06:08 +0000 (13:06 +0100)]
Fix regrtest -j0 -R output

Write also dots into stderr, instead of stdout.

7 years agoUpdate test_support for my temp_dir/change_cwd changes
Victor Stinner [Wed, 8 Feb 2017 11:49:02 +0000 (12:49 +0100)]
Update test_support for my temp_dir/change_cwd changes

7 years agosupport: add more info on temp_dir() and change_cwd() failure
Victor Stinner [Wed, 8 Feb 2017 11:25:00 +0000 (12:25 +0100)]
support: add more info on temp_dir() and change_cwd() failure

Log the OSError exception message.

7 years agoIssue #29306: Fix usage of Py_EnterRecursiveCall()
Victor Stinner [Wed, 8 Feb 2017 11:06:00 +0000 (12:06 +0100)]
Issue #29306: Fix usage of Py_EnterRecursiveCall()

* *PyCFunction_*Call*() functions now call Py_EnterRecursiveCall().
* PyObject_Call() now calls directly _PyFunction_FastCallDict() and
  PyCFunction_Call() to avoid calling Py_EnterRecursiveCall() twice per
  function call

7 years agoIssue #29441: Merge from 3.6
Berker Peksag [Tue, 7 Feb 2017 08:28:19 +0000 (11:28 +0300)]
Issue #29441: Merge from 3.6

7 years agoIssue #29441: Merge from 3.5
Berker Peksag [Tue, 7 Feb 2017 08:27:48 +0000 (11:27 +0300)]
Issue #29441: Merge from 3.5

7 years agoIssue #29441: Update examples to use async and await keywords in asyncio-task.rst
Berker Peksag [Tue, 7 Feb 2017 08:27:09 +0000 (11:27 +0300)]
Issue #29441: Update examples to use async and await keywords in asyncio-task.rst

7 years agoIssue #29314: Merge with 3.6
Mariatta Wijaya [Tue, 7 Feb 2017 06:06:04 +0000 (22:06 -0800)]
Issue #29314: Merge with 3.6

7 years agoIssue #29314: Merge with 3.5
Mariatta Wijaya [Tue, 7 Feb 2017 06:05:10 +0000 (22:05 -0800)]
Issue #29314: Merge with 3.5

7 years agoIssue #29314: Set the stacklevel to two in asyncio.async() Deprecation Warning
Mariatta Wijaya [Tue, 7 Feb 2017 06:03:00 +0000 (22:03 -0800)]
Issue #29314: Set the stacklevel to two in asyncio.async() Deprecation Warning

7 years agoIssue #29371: merge with 3.6
Mariatta Wijaya [Tue, 7 Feb 2017 04:18:39 +0000 (20:18 -0800)]
Issue #29371: merge with 3.6

7 years agoIssue #29371: merge with 3.5
Mariatta Wijaya [Tue, 7 Feb 2017 04:16:58 +0000 (20:16 -0800)]
Issue #29371: merge with 3.5

7 years agoIssue #29371: Clarify bitwise OR operation in doctest option flags.
Mariatta Wijaya [Tue, 7 Feb 2017 04:15:01 +0000 (20:15 -0800)]
Issue #29371: Clarify bitwise OR operation in doctest option flags.

7 years agoIssue #28164: Improves test on Windows 7
Steve Dower [Mon, 6 Feb 2017 22:53:21 +0000 (14:53 -0800)]
Issue #28164: Improves test on Windows 7

7 years agoIssue #28164: Improves test on Windows 7
Steve Dower [Mon, 6 Feb 2017 22:50:17 +0000 (14:50 -0800)]
Issue #28164: Improves test on Windows 7

7 years agoIncludes ensurepip and venv packages in nuget package.
Steve Dower [Mon, 6 Feb 2017 22:12:57 +0000 (14:12 -0800)]
Includes ensurepip and venv packages in nuget package.

7 years agoIncludes ensurepip and venv packages in nuget package.
Steve Dower [Mon, 6 Feb 2017 22:12:19 +0000 (14:12 -0800)]
Includes ensurepip and venv packages in nuget package.

7 years agoIncludes ensurepip and venv packages in nuget package.
Steve Dower [Mon, 6 Feb 2017 22:11:34 +0000 (14:11 -0800)]
Includes ensurepip and venv packages in nuget package.

7 years agomerge
Raymond Hettinger [Mon, 6 Feb 2017 15:15:57 +0000 (07:15 -0800)]
merge

7 years agoSubstitute a more readable f-string
Raymond Hettinger [Mon, 6 Feb 2017 15:15:31 +0000 (07:15 -0800)]
Substitute a more readable f-string

7 years agoOptimize deque index, insert and rotate() methods
Victor Stinner [Mon, 6 Feb 2017 15:06:49 +0000 (16:06 +0100)]
Optimize deque index, insert and rotate() methods

Issue #29452: Use METH_FASTCALL calling convention for index(), insert() and
rotate() methods of collections.deque to avoid the creation a temporary tuple
to pass position arguments. Speedup on deque methods:

* d.rotate(): 1.10x faster
* d.rotate(1): 1.24x faster
* d.insert(): 1.18x faster
* d.index(): 1.24x faster

7 years agoProhibit implicit C function declarations
Victor Stinner [Mon, 6 Feb 2017 13:24:00 +0000 (14:24 +0100)]
Prohibit implicit C function declarations

Issue #27659: use -Werror=implicit-function-declaration when possible (GCC and
Clang, but it depends on the compiler version).

Patch written by Chi Hsuan Yen.

7 years agoregrtest: don't fail immediately if a child does crash
Victor Stinner [Mon, 6 Feb 2017 11:42:00 +0000 (12:42 +0100)]
regrtest: don't fail immediately if a child does crash

Issue #29362: Catch a crash of a worker process as a normal failure and
continue to run next tests. It allows to get the usual test summary: single
line result (OK/FAIL), total duration, etc.

7 years agoMerge from 3.6
Berker Peksag [Mon, 6 Feb 2017 10:37:45 +0000 (13:37 +0300)]
Merge from 3.6

7 years agoFix usage of data directive
Berker Peksag [Mon, 6 Feb 2017 10:37:19 +0000 (13:37 +0300)]
Fix usage of data directive

7 years agoIssue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and
Serhiy Storchaka [Mon, 6 Feb 2017 08:41:46 +0000 (10:41 +0200)]
Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and
_PyArg_NoPositional() now are macros.

7 years agoIssue #29405: Make total calculation in _guess_delimiter more accurate.
Xiang Zhang [Mon, 6 Feb 2017 02:50:09 +0000 (10:50 +0800)]
Issue #29405: Make total calculation in _guess_delimiter more accurate.

7 years agoIssue #20186: Regenerated Argument Clinic.
Serhiy Storchaka [Sun, 5 Feb 2017 20:58:46 +0000 (22:58 +0200)]
Issue #20186: Regenerated Argument Clinic.

7 years agoMerge from 3.6
Steve Dower [Sun, 5 Feb 2017 01:37:00 +0000 (17:37 -0800)]
Merge from 3.6

7 years agoAdds precheck for console filename to fix Windows 7.
Steve Dower [Sun, 5 Feb 2017 01:36:47 +0000 (17:36 -0800)]
Adds precheck for console filename to fix Windows 7.

7 years agoIssue #28489: Merge from 3.6
Berker Peksag [Sun, 5 Feb 2017 01:33:11 +0000 (04:33 +0300)]
Issue #28489: Merge from 3.6

7 years agoIssue #28489: Fix comment in tokenizer.c
Berker Peksag [Sun, 5 Feb 2017 01:32:39 +0000 (04:32 +0300)]
Issue #28489: Fix comment in tokenizer.c

Patch by Ryan Gonzalez.

7 years agoMerge from 3.6
Steve Dower [Sun, 5 Feb 2017 00:46:53 +0000 (16:46 -0800)]
Merge from 3.6

7 years agoUpdates test_winconsoleio to better show the source of its issues.
Steve Dower [Sun, 5 Feb 2017 00:46:34 +0000 (16:46 -0800)]
Updates test_winconsoleio to better show the source of its issues.

7 years agoIssue #29319: Prevent RunMainFromImporter overwriting sys.path[0].
Steve Dower [Sat, 4 Feb 2017 23:41:12 +0000 (15:41 -0800)]
Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].

7 years agoIssue #29319: Prevent RunMainFromImporter overwriting sys.path[0].
Steve Dower [Sat, 4 Feb 2017 23:39:38 +0000 (15:39 -0800)]
Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].