]>
granicus.if.org Git - python/log
csabella [Wed, 29 Mar 2017 21:14:06 +0000 (17:14 -0400)]
bpo-29677: DOC: clarify documentation for `round` (GH-877)
Sylvain [Wed, 29 Mar 2017 18:09:22 +0000 (20:09 +0200)]
bpo-29932: Fix small error message typos in arraymodule.c (GH-888)
Louie Lu [Wed, 29 Mar 2017 05:28:15 +0000 (13:28 +0800)]
bpo-29927: Remove duplicate BufferError init and unnecessary semicolons (GH-866)
Niklas Fiekas [Wed, 29 Mar 2017 04:58:01 +0000 (06:58 +0200)]
bpo-29936: fix typo __GNU*C*_MINOR__ (#878)
Xiang Zhang [Wed, 29 Mar 2017 03:58:54 +0000 (11:58 +0800)]
bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-693)
an exception raised at the very first of an iterable would cause pools behave abnormally
(swallow the exception or hang)
Vajrasky Kok [Tue, 28 Mar 2017 19:32:35 +0000 (02:32 +0700)]
bpo-19791: Use functions from test support to check the symlink support. (GH-822)
Garvit Khatri [Tue, 28 Mar 2017 15:43:38 +0000 (23:43 +0800)]
bpo-10379: add 'monetary' to format_string, deprecate format
Add the 'monetary' parameter to format_string so that all
uses of format can be converted to format_string. Adjust
the documentation accordingly, and add a deprecation
warning when format is used.
INADA Naoki [Tue, 28 Mar 2017 15:24:30 +0000 (00:24 +0900)]
NEWS: remove duplicated "Build" section (GH-872)
Amit Kumar [Tue, 28 Mar 2017 14:13:01 +0000 (19:43 +0530)]
bpo-16011 clarify that 'in' always returns a boolean value
Barry Warsaw [Tue, 28 Mar 2017 14:02:07 +0000 (10:02 -0400)]
Improve the documentation for template strings (#856)
bpo-19824
bpo-20314
bpo-12518
Alex Wang [Tue, 28 Mar 2017 12:50:51 +0000 (08:50 -0400)]
bpo-29643: Fix check for --enable-optimizations (GH-129)
The presence of the ``--enable-optimizations`` flag is indicated by the
value of ``$enableval``, but the configure script was checking ``$withval``,
resulting in the ``--enable-optimizations`` flag being effectively ignored.
Brett Cannon [Mon, 27 Mar 2017 23:39:54 +0000 (16:39 -0700)]
Drop the standard gcc test build on Travis (GH-853)
Instead have gcc be used for the coverage build so gcc is exercised in at least one place.
Victor Stinner [Mon, 27 Mar 2017 22:56:28 +0000 (00:56 +0200)]
Fix ref cycles in TestCase.assertRaises() (#193)
bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
reference cycle to not keep objects alive longer than expected.
Gerrit Holl [Mon, 27 Mar 2017 22:15:20 +0000 (23:15 +0100)]
bpo-29677: DOC: clarify documentation for `round` (#357)
* DOC: clarify documentation for `round`
Clarified that `round` can take a negative value for *ndigits*.
* DOC: remove trailing whitespace in previous commit
remove trailing whitespace in previous commit
Sylvain [Mon, 27 Mar 2017 21:36:08 +0000 (23:36 +0200)]
bpo-29924: Remove useless argument (#854)
Jim Fasarakis-Hilliard [Mon, 27 Mar 2017 19:35:52 +0000 (22:35 +0300)]
bpo-29912: Remove redundant tests in list_tests that are found in seq_tests (GH-847)
Victor Stinner [Mon, 27 Mar 2017 14:05:26 +0000 (16:05 +0200)]
bpo-29919: Remove unused imports found by pyflakes (#137)
Make also minor PEP8 coding style fixes on modified imports.
Serhiy Storchaka [Mon, 27 Mar 2017 10:59:07 +0000 (13:59 +0300)]
bpo-20552: Use specific asserts in bytes tests (#790)
Zachary Ware [Mon, 27 Mar 2017 05:08:31 +0000 (00:08 -0500)]
Minor test cleanup (GH-837)
* Remove unused test file
* Remove duplicated text in sndhdrdata README
Zachary Ware [Mon, 27 Mar 2017 02:31:31 +0000 (21:31 -0500)]
Treat Sphinx warnings as errors (GH-832)
Jelle Zijlstra [Mon, 27 Mar 2017 02:17:39 +0000 (19:17 -0700)]
import sys before we use it on line 9 (#828)
Michael Seifert [Mon, 27 Mar 2017 01:25:57 +0000 (03:25 +0200)]
Fixes sphinx warning in "changelog" misc/NEWS (#829)
Jim Fasarakis-Hilliard [Sun, 26 Mar 2017 20:59:08 +0000 (23:59 +0300)]
Fix small exception typos in Lib (#818)
cocoatomo [Sun, 26 Mar 2017 17:32:24 +0000 (02:32 +0900)]
bpo-29888: Fix the link referring to the "Python download page" (GH-824)
Serhiy Storchaka [Sat, 25 Mar 2017 11:42:11 +0000 (13:42 +0200)]
bpo-29900: Simplify pathlib implementation. (#814)
Since functions in the os module support path-like objects, explicit
converting Path to str no longer needed.
Serhiy Storchaka [Sat, 25 Mar 2017 11:05:23 +0000 (13:05 +0200)]
bpo-29901: Improve support of path-like objects in zipapp. (#815)
Now general path-like objects are supported, not just pathlib.Path.
Serhiy Storchaka [Sat, 25 Mar 2017 10:10:16 +0000 (12:10 +0200)]
Simplify partial.__new__. (#813)
Fast paths in partial.__new__ no longer needed since concatenating with empty
tuple was optimized.
Mandeep Bhutani [Sat, 25 Mar 2017 04:51:21 +0000 (23:51 -0500)]
bpo-29862: Fix grammar in importlib.reload() exception (GH-809)
NAKAMURA Osamu [Sat, 25 Mar 2017 02:55:08 +0000 (11:55 +0900)]
bpo-29892: Fix wrong markup on doc-lib-functions (GH-802)
Ivan Levkivskyi [Fri, 24 Mar 2017 21:05:04 +0000 (22:05 +0100)]
bpo-28810: Document remaining bytecode changes in 3.6 (GH-651)
Serhiy Storchaka [Fri, 24 Mar 2017 19:28:43 +0000 (21:28 +0200)]
bpo-29894: Deprecate returning an instance of complex subclass from __complex__. (#798)
In a future versions of Python this can be an error.
Serhiy Storchaka [Fri, 24 Mar 2017 18:51:53 +0000 (20:51 +0200)]
bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805)
when the OS gives priority to errors such as EACCES over EEXIST.
Antoine Pitrou [Fri, 24 Mar 2017 12:52:11 +0000 (13:52 +0100)]
bpo-29861: release references to multiprocessing Pool tasks (#743)
* bpo-29861: release references to multiprocessing Pool tasks
Release references to tasks, their arguments and their results as soon
as they are finished, instead of keeping them alive until another task
arrives.
* Comments in test
Serhiy Storchaka [Fri, 24 Mar 2017 11:27:42 +0000 (13:27 +0200)]
bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799)
permission bits of newly-created intermediate-level directories.
Sylvain Bellemare [Fri, 24 Mar 2017 08:26:07 +0000 (09:26 +0100)]
doc: Fix small typos in library/multiprocessing (GH-698)
Alex Dzyoba [Fri, 24 Mar 2017 08:23:43 +0000 (11:23 +0300)]
`make tags` fixes (GH-717)
* Fix `make tags` warnings
`make tags` target tries to find C sources and headers in "Grammar" and
"Mac" folders and generates these warnings:
ctags: Warning: cannot open source file "Grammar/*.[ch]" : No such file or directory
ctags: Warning: cannot open source file "Mac/*.[ch]" : No such file or directory
This commit changes $SRCDIRS variable in configure.ac to remote these
directories. This variable is used only for tags generation.
Also, "configure" was regenerated with `autoreconf`.
* Fix `make tags` fail on non-default tag names
When ctags overrides default tags filename (e.g. `-f .tags`) `make tags`
is failed because it assumes to see default `tags` filename:
sort: cannot read: tags: No such file or directory
This commit explicitly specifies "tags" filename for tags generation.
Christophe Zeitouny [Thu, 23 Mar 2017 17:14:29 +0000 (10:14 -0700)]
faulthandler: Restore the old sigaltstack during teardown (#777)
Serhiy Storchaka [Thu, 23 Mar 2017 15:53:47 +0000 (17:53 +0200)]
Use NULL rather than 0. (#778)
There was few cases of using literal 0 instead of NULL in the context of
pointers. While this was a legitimate C code, using NULL rather than 0 makes
the code clearer.
Serhiy Storchaka [Thu, 23 Mar 2017 13:48:39 +0000 (15:48 +0200)]
bpo-6532: Make the thread id an unsigned integer. (#781)
* bpo-6532: Make the thread id an unsigned integer.
From C API side the type of results of PyThread_start_new_thread() and
PyThread_get_thread_ident(), the id parameter of
PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState
changed from "long" to "unsigned long".
* Restore a check in thread_get_ident().
Nathaniel J. Smith [Thu, 23 Mar 2017 03:56:55 +0000 (20:56 -0700)]
bpo-29728: Provide socket.TCP_NOTSENT_LOWAT (#477)
* Provide socket.TCP_NOTSENT_LOWAT
* New TCP option available on recent MacOS and Linux.
* Document addition of TCP_NOTSENT_LOWAT
Ivan Levkivskyi [Thu, 23 Mar 2017 00:54:53 +0000 (01:54 +0100)]
Remove an outdated statement in execution model docs (GH-754)
INADA Naoki [Wed, 22 Mar 2017 07:56:36 +0000 (16:56 +0900)]
doc: minor fix for library/profile (GH-761)
Jelle Zijlstra [Wed, 22 Mar 2017 06:53:57 +0000 (23:53 -0700)]
fix function name in tabnanny documentation (GH-759)
Daniel Birnstiel [Tue, 21 Mar 2017 13:06:06 +0000 (14:06 +0100)]
bpo-29859: Fix error messages from return codes for pthread_* calls (GH-741)
Serhiy Storchaka [Tue, 21 Mar 2017 06:53:25 +0000 (08:53 +0200)]
bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748)
Serhiy Storchaka [Tue, 21 Mar 2017 06:52:38 +0000 (08:52 +0200)]
Don't use Py_SIZE for dict object. (#747)
Ned Deily [Tue, 21 Mar 2017 03:41:52 +0000 (23:41 -0400)]
bpo-27593: Revise git SCM build info. (#744)
Use --short form of git hash. Use output from "git describe" for tag.
Expected outputs:
1. previous hg
2. previous git
3. updated git
Release (tagged) build:
1. Python 3.7.0a0 (v3.7.0a0:
4def2a2901a5 , ...
2. Python 3.7.0a0 (v3.7.0a0^0:
05f53735c8912f8df1077e897f052571e13c3496 , ...
3. Python 3.7.0a0 (v3.7.0a0:
05f53735c8 , ...
Development build:
1. Python 3.7.0a0 (default:
41df79263a11 , ...
2. Python 3.7.0a0 (master:
05f53735c8912f8df1077e897f052571e13c3496 , ...
3. Python 3.7.0a0 (heads/master-dirty:
05f53735c8 , ...
"dirty" means the working tree has uncommitted changes.
See "git help describe" for more info.
Xiang Zhang [Tue, 21 Mar 2017 03:13:42 +0000 (11:13 +0800)]
bpo-29849: fix a memory leak in import_from (GH-712)
zertrin [Mon, 20 Mar 2017 12:24:39 +0000 (20:24 +0800)]
Fix "NotImplentedError" typo in constants documentation (#692)
`NotImplentedError` --> `NotImplementedError`
Benjamin Peterson [Mon, 20 Mar 2017 06:49:43 +0000 (23:49 -0700)]
bpo-20087: Revert "make the glibc alias table take precedence over the X11 one (#422)" (#713)
This reverts commit
02371e0ed1ee82ec73e7d363bcf2ed40cde1397a .
4kir4 [Mon, 20 Mar 2017 06:44:46 +0000 (09:44 +0300)]
bpo-28876: bool of large range raises OverflowError (#699)
Mariatta [Mon, 20 Mar 2017 03:48:04 +0000 (20:48 -0700)]
bpo-29856: Fix typo in curses documentation (GH-730)
From Shifted Dxit -> Shifted Exit in Doc/library/curses.rst
Serhiy Storchaka [Sun, 19 Mar 2017 18:20:10 +0000 (20:20 +0200)]
bpo-29845: Mark tests that use _testcapi as CPython-only (#711)
Serhiy Storchaka [Sun, 19 Mar 2017 17:47:02 +0000 (19:47 +0200)]
bpo-29116: Fix error messages for concatenating bytes and bytearray with unsupported type. (#709)
Serhiy Storchaka [Sun, 19 Mar 2017 17:38:42 +0000 (19:38 +0200)]
bpo-29116: Improve error message for concatenating str with non-str. (#710)
Serhiy Storchaka [Sun, 19 Mar 2017 17:37:40 +0000 (19:37 +0200)]
bpo-29748: Added the slice index converter in Argument Clinic. (#549)
Serhiy Storchaka [Sun, 19 Mar 2017 17:25:29 +0000 (19:25 +0200)]
bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514)
Brett Cannon [Sun, 19 Mar 2017 16:49:55 +0000 (09:49 -0700)]
Drop C++ header compatibility test (#718)
The $CXX environment variable is not exported under the 'c' language on Travis.
Serhiy Storchaka [Sun, 19 Mar 2017 06:51:07 +0000 (08:51 +0200)]
bpo-29793: Convert some builtin types constructors to Argument Clinic. (#615)
Serhiy Storchaka [Sun, 19 Mar 2017 06:47:58 +0000 (08:47 +0200)]
bpo-20186: Convert tuple object implementation to Argument Clinic. (#614)
Serhiy Storchaka [Sun, 19 Mar 2017 06:46:44 +0000 (08:46 +0200)]
bpo-20185: Convert typeobject.c to Argument Clinic. (#544)
Based on patch by Vajrasky Kok.
Serhiy Storchaka [Sun, 19 Mar 2017 06:40:32 +0000 (08:40 +0200)]
bpo-29776: Use decorator syntax for properties. (#585)
Serhiy Storchaka [Sun, 19 Mar 2017 06:15:17 +0000 (08:15 +0200)]
bpo-28749: Fixed the documentation of the mapping codec APIs. (#487)
Added the documentation for PyUnicode_Translate().
Marco Buttu [Sat, 18 Mar 2017 16:59:33 +0000 (17:59 +0100)]
bpo-27200: Fix doctests in programming.rst and datetime.rst (#401)
Brett Cannon [Fri, 17 Mar 2017 22:29:27 +0000 (15:29 -0700)]
Combine the C++ header CI build into the main C build (GH-697)
This will eliminate one of the builds in Travis, allowing for CI overall to complete faster.
Jim Fasarakis-Hilliard [Fri, 17 Mar 2017 18:16:20 +0000 (20:16 +0200)]
bpo-29836: Remove nturl2path from test_sundry and amend the module docstring (GH-694)
The module is implicitly tested through test_urllib.
Коренберг Марк [Fri, 17 Mar 2017 15:25:05 +0000 (20:25 +0500)]
bpo-29808: SysLogHandler: Do not fail if initial connect to syslog failed (#663) (#663)
Marco Buttu [Fri, 17 Mar 2017 08:50:23 +0000 (09:50 +0100)]
bpo-16355: Clarify when inspect.getcomments() returns None (#428)
Initial patch by Vajrasky Kok.
Marco Buttu [Fri, 17 Mar 2017 02:50:40 +0000 (03:50 +0100)]
bpo-29820: othergui.rst: Remove outdated information (GH-685)
Steve Dower [Thu, 16 Mar 2017 17:19:18 +0000 (10:19 -0700)]
Takes vcruntime140.dll from the correct source. (#679)
Nate [Wed, 15 Mar 2017 18:39:22 +0000 (11:39 -0700)]
bpo-29581: Make ABCMeta.__new__ pass **kwargs to type.__new__ (#527)
Many metaclasses in the standard library don't play nice with
__init_subclass__. This bug makes ABCMeta in particular with
__init_subclass__, which is an 80/20 solution for me personally.
AFAICT, a general solution to this problem requires updating all
metaclasses in the standard library to make sure they pass **kwargs to
type.__new__, whereas this PR only fixes ABCMeta. For context, see
https://bugs.python.org/issue29581.
* added a test combining ABCMeta and __init_subclass__
* Added NEWS item
Daniel Himmelstein [Wed, 15 Mar 2017 14:31:06 +0000 (10:31 -0400)]
Fix stderr bug in json.tool test (#346)
See https://github.com/python/cpython/pull/201#discussion_r103229425.
Michael Seifert [Wed, 15 Mar 2017 05:26:33 +0000 (06:26 +0100)]
bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords are not strings (#649)
Donald Stufft [Tue, 14 Mar 2017 22:20:55 +0000 (18:20 -0400)]
Use the default number of reviewers (3) for mention-bot (#667)
Victor Stinner [Tue, 14 Mar 2017 20:37:20 +0000 (21:37 +0100)]
bpo-29735: Optimize partial_call(): avoid tuple (#516)
* Add _PyObject_HasFastCall()
* partial_call() now avoids temporary tuple to pass positional
arguments if the callable supports the FASTCALL calling convention
for positional arguments.
* Fix also a performance regression in partial_call() if the callable
doesn't support FASTCALL.
Jim Fasarakis-Hilliard [Tue, 14 Mar 2017 20:16:15 +0000 (22:16 +0200)]
Add ELLIPSIS and RARROW. Add tests (#666)
Ivan Levkivskyi [Tue, 14 Mar 2017 19:42:09 +0000 (20:42 +0100)]
bpo-28810: Update lnotab_notes.txt (#665)
INADA Naoki [Tue, 14 Mar 2017 15:52:19 +0000 (00:52 +0900)]
bpo-29592: site: skip abs_paths() when it's redundant (GH-167)
Call abs_paths() only if removeduppaths() changed sys.path
INADA Naoki [Tue, 14 Mar 2017 09:00:59 +0000 (18:00 +0900)]
bpo-29548: Recommend PyObject_Call APIs over PyEval_Call APIs. (GH-75)
PyEval_Call* APIs are not documented and they doesn't respect PY_SSIZE_T_CLEAN.
So add comment block which recommends PyObject_Call* APIs to ceval.h.
This commit also changes PyEval_CallMethod and PyEval_CallFunction
implementation same to PyObject_CallMethod and PyObject_CallFunction
to reduce future maintenance cost. Optimization to avoid temporary
tuple are copied too.
PyEval_CallFunction(callable, "i", (int)i) now calls callable(i) instead of
raising TypeError. But accepting this edge case is backward compatible.
Xiang Zhang [Tue, 14 Mar 2017 07:07:15 +0000 (15:07 +0800)]
bpo-28856: Let %b format for bytes support objects that follow the buffer protocol (GH-546)
Jelle Zijlstra [Mon, 13 Mar 2017 02:51:27 +0000 (19:51 -0700)]
ftplib.FTP.retrbinary callback gets a bytes, not a str (GH-652)
Jelle Zijlstra [Mon, 13 Mar 2017 02:19:00 +0000 (19:19 -0700)]
fix the name of argument to ftplib.FTP.set_pasv and fix wording (GH-653)
Xiang Zhang [Mon, 13 Mar 2017 02:09:16 +0000 (10:09 +0800)]
bpo-29756: Improve documentation for list methods that compare items by equality (GH-572)
Oren Milman [Sun, 12 Mar 2017 22:37:05 +0000 (00:37 +0200)]
bpo-29730: replace some calls to PyNumber_Check and improve some error messages (#650)
Yury Selivanov [Sun, 12 Mar 2017 19:53:07 +0000 (15:53 -0400)]
Fix wrapping into StopIteration of return values in generators and coroutines (#644)
Nikolay Kim [Sun, 12 Mar 2017 19:23:30 +0000 (12:23 -0700)]
bpo-29742: asyncio get_extra_info() throws exception (#525)
Serhiy Storchaka [Sun, 12 Mar 2017 12:43:12 +0000 (14:43 +0200)]
bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501)
FreeBSD is the only platforms with unsigned FD_SETSIZE.
Serhiy Storchaka [Sun, 12 Mar 2017 12:15:54 +0000 (14:15 +0200)]
bpo-15695: Add PyAPI_FUNC() to _PyDict_SizeOf() declaration. (#639)
Serhiy Storchaka [Sun, 12 Mar 2017 12:08:06 +0000 (14:08 +0200)]
bpo-26121: Revert to using the own implementations of lgamma and gamma on all platforms. (#637)
Serhiy Storchaka [Sun, 12 Mar 2017 11:50:36 +0000 (13:50 +0200)]
bpo-8256: Fixed possible failing or crashing input() (#517)
if attributes "encoding" or "errors" of sys.stdin or sys.stdout
are not set or are not strings.
Serhiy Storchaka [Sun, 12 Mar 2017 11:39:22 +0000 (13:39 +0200)]
bpo-26121: Use C library implementation for math functions erf() and erfc() on Windows. (#632)
Nick Coghlan [Sun, 12 Mar 2017 11:34:32 +0000 (21:34 +1000)]
bpo-29723: Add missing NEWS entry (#638)
Serhiy Storchaka [Sun, 12 Mar 2017 11:15:01 +0000 (13:15 +0200)]
bpo-28692: Deprecate using non-integer value for selecting a plural form in gettext. (#507)
Serhiy Storchaka [Sun, 12 Mar 2017 11:08:30 +0000 (13:08 +0200)]
bpo-20185: Convert the resource moduel to Argument Clinic. (#545)
Based on patch by Vajrasky Kok.
Nick Coghlan [Sun, 12 Mar 2017 10:38:32 +0000 (20:38 +1000)]
bpo-29723: Consistently configure sys.path[0] (#575)
Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.
This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.
The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.
This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.
Nick Coghlan [Sun, 12 Mar 2017 09:37:09 +0000 (19:37 +1000)]
bpo-29798: Handle git worktree in `make patchcheck` (#629)
In git worktree directories, `.git` is a configuration
file rather than a subdirectory
Serhiy Storchaka [Sun, 12 Mar 2017 09:12:30 +0000 (11:12 +0200)]
bpo-15695: Implemented StgDict.__sizeof__(). (#509)
Serhiy Storchaka [Sun, 12 Mar 2017 08:10:47 +0000 (10:10 +0200)]
bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485)
Serhiy Storchaka [Sun, 12 Mar 2017 07:20:15 +0000 (09:20 +0200)]
bpo-20185: Convert the marshal module to Argument Clinic. (#541)
Based on patch by Vajrasky Kok.
Serhiy Storchaka [Sun, 12 Mar 2017 06:53:22 +0000 (08:53 +0200)]
bpo-29746: Update marshal docs to Python 3. (#547)