]>
granicus.if.org Git - python/log
Marco Buttu [Fri, 3 Mar 2017 20:42:04 +0000 (21:42 +0100)]
bpo-29455: Mention coverage.py in trace module documentation (#261)
David Ellis [Fri, 3 Mar 2017 17:14:27 +0000 (17:14 +0000)]
bpo-29623: Make PathLike objects work with ConfigParser.read() (#242)
Joseph Shen [Fri, 3 Mar 2017 13:44:51 +0000 (21:44 +0800)]
Fixed a typo in the comment in Include/pyport.h (#425)
#ifdef HAVE_DECLSPEC_DLL / #endif mismatch
Stefan Krah [Fri, 3 Mar 2017 13:08:49 +0000 (14:08 +0100)]
Fix config file syntax (hopefully).
Stefan Krah [Fri, 3 Mar 2017 13:01:22 +0000 (14:01 +0100)]
Find my own reviewers for PRs.
Aviv Palivoda [Fri, 3 Mar 2017 10:58:17 +0000 (12:58 +0200)]
bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance (#359)
Anish Shah [Fri, 3 Mar 2017 08:12:03 +0000 (13:42 +0530)]
bpo-29693: Fix for DeprecationWarning in test_import (#421)
Patch by Anish Shah.
Yury Selivanov [Fri, 3 Mar 2017 04:57:33 +0000 (23:57 -0500)]
asyncio: Optimize _get_running_loop() to call getpid() only when there's a loop
Yury Selivanov [Fri, 3 Mar 2017 04:46:56 +0000 (23:46 -0500)]
bpo-28963: Fix out of bound iteration in asyncio.Future.remove_done_callback/C (#408)
Yury Selivanov [Fri, 3 Mar 2017 04:25:31 +0000 (23:25 -0500)]
asyncio: Fix trailing whitespace/code style
Seth M. Larson [Fri, 3 Mar 2017 04:21:18 +0000 (22:21 -0600)]
bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)
Yury Selivanov [Fri, 3 Mar 2017 03:20:00 +0000 (22:20 -0500)]
bpo-28893: Set __cause__ for errors in async iteration protocol (#407)
Yury Selivanov [Fri, 3 Mar 2017 03:16:33 +0000 (22:16 -0500)]
bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406)
Yury Selivanov [Fri, 3 Mar 2017 01:07:11 +0000 (20:07 -0500)]
bpo-29703: asyncio: Fix creating new event loops in child processes. (#404)
Donald Stufft [Thu, 2 Mar 2017 22:47:44 +0000 (17:47 -0500)]
Don't require the Python org to mention someone (GH-393)
Previously we configured the mention-bot to only mention people who are members of the Python organization. However, this doesn't currently work
if members don't have their membership public. Instead we will configure mention-bot to poke anyone, even non-members.
orenmn [Thu, 2 Mar 2017 17:42:40 +0000 (19:42 +0200)]
bpo-28129: fix ctypes crashes (#386)
* init commit, with initial tests for from_param and fields __set__ and __get__, and some additions to from_buffer and from_buffer_copy
* added the rest of tests and patches. probably only a first draft.
* removed trailing spaces
* replace ctype with ctypes in error messages
* change back from ctypes instance to ctype instance
Donald Stufft [Thu, 2 Mar 2017 16:45:29 +0000 (11:45 -0500)]
bpo-29697: Don't use OpenSSL <1.0.2 fallback on 1.1+ (GH-395)
Matthias Bussonnier [Thu, 2 Mar 2017 14:21:26 +0000 (06:21 -0800)]
Add Python version since deprecation in base64 methods. (#33)
Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.
orenmn [Thu, 2 Mar 2017 11:29:20 +0000 (13:29 +0200)]
fix an error message and a comment in _testcapimodule.c (GH-392)
Marco Buttu [Thu, 2 Mar 2017 11:02:43 +0000 (12:02 +0100)]
bpo-27200: fix configparser, copyreg and ctypes doctests (#240)
Brian Coleman [Thu, 2 Mar 2017 10:32:18 +0000 (10:32 +0000)]
bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is (#376)
allocated.
On PyMem_Realloc failure, _PyCode_SetExtra should free co_extra if
co_extra->ce_extras could not be allocated.
On PyMem_Realloc success, _PyCode_SetExtra should set all unused slots in
co_extra->ce_extras to NULL.
Alex Gaynor [Thu, 2 Mar 2017 10:23:19 +0000 (05:23 -0500)]
In SSL module version examples, don't use a legacy version. (#381)
Christian Heimes [Thu, 2 Mar 2017 10:09:01 +0000 (11:09 +0100)]
bpo-29176 Use tmpfile() in curses module (#235)
The curses module used mkstemp() + fopen() to create a temporary file in
/tmp. The /tmp directory does not exist on Android. The tmpfile()
function simplifies the task a lot. It creates a temporary file in a
correct directory, takes care of cleanup and returns FILE*.
tmpfile is supported on all platforms (C89, POSIX 2001, Android,
Windows).
Signed-off-by: Christian Heimes <christian@python.org>
Benjamin Peterson [Thu, 2 Mar 2017 08:03:41 +0000 (00:03 -0800)]
fix subprocess on Windows (#391)
Benjamin Peterson [Thu, 2 Mar 2017 07:34:19 +0000 (23:34 -0800)]
require uuid_generate_time_safe for all tests of it (#390)
The way mocking is written in these tests, we need to have the underlying function around.
Benjamin Peterson [Thu, 2 Mar 2017 07:04:03 +0000 (23:04 -0800)]
allow path-like objects to be cwd on windows (#389)
#157 added the test, but it's currently (correctly) broken on windows.
Benjamin Peterson [Thu, 2 Mar 2017 05:53:14 +0000 (21:53 -0800)]
correct check for _uuid_generate_time (#388)
If ctypes is not available, _uuid_generate_time will be None not its restype attribute.
Benjamin Peterson [Thu, 2 Mar 2017 05:53:00 +0000 (21:53 -0800)]
Revert "make the locale_flag fallback code work again (#375)" (#387)
This reverts commit
43f5df5bfaea5a07c913d12cb92f78f997feb371 .
Brett Cannon [Wed, 1 Mar 2017 18:30:14 +0000 (10:30 -0800)]
Don't mention Guido automatically for reviews from the mention bot (GH-385)
He's written so much code he gets mentioned **a lot**.
Lev Abalkin [Wed, 1 Mar 2017 18:16:23 +0000 (13:16 -0500)]
Fixes bpo-29680: Older gdb does not have gdb.error. (#363)
This change is required to make python-dbg.py compatible with GDB versions before 7.3.
Petr Motejlek [Wed, 1 Mar 2017 17:21:28 +0000 (18:21 +0100)]
bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (#260)
(or any other exception) to exception(s) raised in the dispatched methods.
Patch by Petr Motejlek.
Mariatta [Wed, 1 Mar 2017 14:20:16 +0000 (06:20 -0800)]
email.compat32-message.rst: Fix typo in the word `message` (GH-379)
INADA Naoki [Wed, 1 Mar 2017 11:41:03 +0000 (20:41 +0900)]
bpo-29684: Fix regression of PyEval_CallObjectWithKeywords (GH-87)
It should raise TypeError when kwargs is not a dict.
Berker Peksag [Wed, 1 Mar 2017 09:51:55 +0000 (12:51 +0300)]
Tweak subprocess.STARTUPINFO documentation (#347)
* Document STARTUPINFO constructor
* Move versionchanged directive to above of attributes
Benjamin Peterson [Wed, 1 Mar 2017 07:59:12 +0000 (23:59 -0800)]
make the locale_flag fallback code work again (#375)
Benjamin Peterson [Wed, 1 Mar 2017 07:33:56 +0000 (23:33 -0800)]
blacklist myself from mention-bot; it is annoying (#373)
Benjamin Peterson [Wed, 1 Mar 2017 07:14:09 +0000 (23:14 -0800)]
use select instead of _opcode for import test (#372)
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.
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.
Berker Peksag [Wed, 1 Mar 2017 03:33:07 +0000 (06:33 +0300)]
Fix syntax error in .mention-bot (#361)
Alex Gaynor [Wed, 1 Mar 2017 03:26:56 +0000 (22:26 -0500)]
Fixed a handful of typos (GH-343)
Kartik Anand [Tue, 28 Feb 2017 20:07:19 +0000 (01:37 +0530)]
correct documentation for enum.html (#358)
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.
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)
INADA Naoki [Tue, 28 Feb 2017 07:26:58 +0000 (16:26 +0900)]
README: move TOC to top (GH-355)
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)
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)
Berker Peksag [Mon, 27 Feb 2017 16:13:41 +0000 (19:13 +0300)]
bpo-24241: Add versionchanged directive to the documentation (#342)
Berker Peksag [Mon, 27 Feb 2017 14:43:27 +0000 (17:43 +0300)]
Use "Contributed by ..." style in whatsnew/3.7.rst (#339)
Mariatta [Mon, 27 Feb 2017 13:44:15 +0000 (05:44 -0800)]
Asyncio documentation: remove `self` from method signatures (GH-334)
INADA Naoki [Mon, 27 Feb 2017 13:42:37 +0000 (22:42 +0900)]
fix minor bug in pymalloc. (#335)
reported by Alexis Lopez-Garcia.
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)
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)
Mariatta [Sun, 26 Feb 2017 21:23:38 +0000 (13:23 -0800)]
bpo-26184: import.rst: Improve versionchanged note (GH-325)
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)
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.
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.
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)
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.
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.
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
Berker Peksag [Sun, 26 Feb 2017 12:04:11 +0000 (15:04 +0300)]
bpo-28961: Address my comments from earlier code review (#305)
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.
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
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)
Mariatta [Sat, 25 Feb 2017 16:59:26 +0000 (08:59 -0800)]
README.rst: List out relevant links to the project (#283)
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.
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.
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.
Nick Coghlan [Sat, 25 Feb 2017 08:14:07 +0000 (18:14 +1000)]
bpo-24241: Add dedicated webbrowser.register test case (#288)
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.
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
Jim Fasarakis-Hilliard [Fri, 24 Feb 2017 20:32:54 +0000 (22:32 +0200)]
Fix small typos in expressions.rst (GH-276)
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.
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)
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__`
Matthias Bussonnier [Fri, 24 Feb 2017 06:44:19 +0000 (22:44 -0800)]
bpo-29637: clean docstring only if not None (GH-267)
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)
Ivan Levkivskyi [Fri, 24 Feb 2017 03:03:28 +0000 (04:03 +0100)]
Update to typing: treat subscripted generics as proxies (#265)
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)
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.
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.
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)
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.
Benjamin Peterson [Thu, 23 Feb 2017 06:38:48 +0000 (22:38 -0800)]
mark various test data binary (#233)
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
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
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
1398948 ,
1398949 ,
1398950
Signed-off-by: Christian Heimes <christian@python.org>
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)
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.
Xiang Zhang [Wed, 22 Feb 2017 04:32:30 +0000 (12:32 +0800)]
bpo-27660: remove unnecessary overflow checks in list_resize (GH-189)
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.
Matthieu Dartiailh [Tue, 21 Feb 2017 13:25:22 +0000 (14:25 +0100)]
bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX (#202)
INADA Naoki [Tue, 21 Feb 2017 12:51:46 +0000 (21:51 +0900)]
doc: fix compile error on "shoddy" example extension (GH-215)
INADA Naoki [Tue, 21 Feb 2017 09:39:41 +0000 (18:39 +0900)]
.gitattribute -> .gitattributes (GH-213)
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.
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
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.
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.
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.