summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-27144: concurrent.futures as_complete and map iterators do not keep ↵Grzegorz Grzywacz2017-09-014-10/+91
| | | | | | | | | | reference to returned object (#1560) * bpo-27144: concurrent.futures as_complie and map iterators do not keep reference to returned object * Some nits. Improve wordings in docstrings and comments, and avoid relying on sys.getrefcount() in tests.
* bpo-31250, test_asyncio: fix dangling threads (#3252)Victor Stinner2017-09-013-2/+10
| | | | | | | * Explicitly call shutdown(wait=True) on executors to wait until all threads complete to prevent side effects between tests. * Fix test_loop_self_reading_exception(): don't mock loop.close(). Previously, the original close() method was called rather than the mock, because how set_event_loop() registered loop.close().
* bpo-31217: Fix regrtest -R for small integer (#3260)Victor Stinner2017-09-011-3/+11
| | | | | | | | Use a pool of integer objects toprevent false alarm when checking for memory block leaks. Fill the pool with values in -1000..1000 which are the most common (reference, memory block, file descriptor) differences. Co-Authored-By: Antoine Pitrou <pitrou@free.fr>
* bpo-30096: Use ABC in abc reference examples (#1220)Eric Appelt2017-08-301-24/+39
| | | Use base class rather than metaclass in examples.
* bpo-30737: Update DevGuide links to new URL (GH-3228)Lisa Hewus Fresh2017-08-3014-21/+22
| | | Update old devguide links from https://docs.python.org/devguide to https://devguide.python.org
* [Trivial] Remove now redundant assert (#3245)Antoine Pitrou2017-08-301-1/+0
|
* Fix the indentation in Extending Python code example (GH-3244)Sergey Fedoseev2017-08-301-6/+6
| | | | Code was indented with three spaces. Fixed using four spaces.
* Removed noop branch from ctypes code (#3234)Alex Gaynor2017-08-301-4/+1
|
* bpo-30581: Windows: os.cpu_count() returns wrong number of processors (#2934)Christopher Wilcox2017-08-302-3/+18
| | | | | | | | * Fixes #30581 by adding a path to use newer GetMaximumProcessorCount API on Windows calls to os.cpu_count() * Add NEWS.d entry for bpo-30581, os.cpu_count on Windows. * Tweak NEWS entry
* bpo-31051: Rearrange IDLE condigdialog GenPage into Window, Editor, and ↵Terry Jan Reedy2017-08-302-38/+46
| | | | Help sections. (#3239)
* bpo-5001: More-informative multiprocessing error messages (#3079)Allen W. Smith, Ph.D2017-08-2915-39/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make error message more informative Replace assertions in error-reporting code with more-informative version that doesn't cause confusion over where and what the error is. * Additional clarification + get travis to check * Change from SystemError to TypeError As suggested in PR comment by @pitrou, changing from SystemError; TypeError appears appropriate. * NEWS file installation; ACKS addition (will do my best to justify it by additional work) * Making current AssertionErrors in multiprocessing more informative * Blurb added re multiprocessing managers.py, queues.py cleanup * Further multiprocessing cleanup - went through pool.py * Fix two asserts in multiprocessing/util.py * Most asserts in multiprocessing more informative * Didn't save right version * Further work on multiprocessing error messages * Correct typo * Correct typo v2 * Blasted colon... serves me right for trying to work on two things at once * Simplify NEWS entry * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst OK, never mind. * Corrected (thanks to pitrou) error messages for notify * Remove extraneous backslash in docstring.
* bpo-31291: Fixed an assertion failure in zipimport.zipimporter.get_data() ↵Oren Milman2017-08-293-1/+22
| | | | | (#3226) if pathname.replace('/', '\\') returns non-string.
* bpo-31065: Add doc about Popen.poll returning None. (#3169)Ivan Chernoff2017-08-291-1/+1
|
* bpo-31286, bpo-30024: Fixed stack usage in absolute imports with (#3217)Serhiy Storchaka2017-08-292-10/+33
| | | binding a submodule to a name.
* bpo-31243: Fixed PyArg_ParseTuple failure checks. (#3171)Oren Milman2017-08-294-21/+65
|
* Fix a typo in the Programming FAQ. (#3230)Gregory P. Smith2017-08-281-1/+1
| | | subobjects, not subobjecs.
* bpo-10746: Fix ctypes PEP 3118 type codes for c_long, c_bool, c_int (#31)Pauli Virtanen2017-08-283-30/+123
| | | | | | | | | | | | | | | Ctypes currently produces wrong pep3118 type codes for several types. E.g. memoryview(ctypes.c_long()).format gives "<l" on 64-bit platforms, but it should be "<q" instead for sizeof(c_long) == 8 The problem is that the '<>' endian specification in the struct syntax also turns on the "standard size" mode, which makes type characters have a platform-independent meaning, which does not match with the codes used internally in ctypes. The struct module format syntax also does not allow specifying native-size non-native-endian items. This commit adds a converter function that maps the internal ctypes codes to appropriate struct module standard-size codes in the pep3118 format strings. The tests are modified to check for this.
* bpo-30987 - Support for ISO-TP protocol in SocketCAN (#2956)Pier-Yves Lessard2017-08-285-8/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added support for CAN_ISOTP protocol * Added unit tests for CAN ISOTP * Updated documentation for ISO-TP protocol * Removed trailing whitespace in documentation * Added blurb NEWS.d file * updated Misc/ACKS * Fixed broken unit test that was using isotp const outside of skippable section * Removed dependecy over third party project * Added implementation for getsockname + unit tests * Missing newline at end of ACKS file * Accidentally inserted a type in ACKS file * Followed tiran changes review #1 recommendations * Added spaces after comma
* bpo-26656: Improve re.compile documentation (GH-3211)Henk-Jaap Wagenaar2017-08-281-3/+4
| | | | | - Link to the regular expressions object documentation - Clarify that it can be used with more than the two methods currently stated.
* bpo-30617: IDLE: docstrings and unittest for outwin.py (#2046)Cheryl Sabella2017-08-273-62/+278
| | | Move some data and functions from the class to module level. Patch by Cheryl Sabella.
* bpo-31287: IDLE - do not alter tkinter.messagebox in configdialog tests. (#3220)Terry Jan Reedy2017-08-273-7/+16
|
* bpo-30781: IDLE - use ttk widgets in configdialog (#2654)Cheryl Sabella2017-08-263-86/+87
| | | Patch by Cheryl Sabella.
* bpo-31072: Rename the new filter argument for zipapp.create_archive. (#3049)Paul Moore2017-08-264-13/+45
| | | | | | | bpo-31072: Rename the new filter argument for zipapp.create_archive (GH-3049) * Rename the new argument to "filter" * Improve tests for the new functionality * Add a "What's New" entry.
* bpo-31271: Fix an assertion failure in io.TextIOWrapper.write. (#3201)Oren Milman2017-08-253-0/+17
|
* bpo-31279: Silence -Wstringop-overflow warning. (#3207)Stefan Krah2017-08-251-1/+1
|
* bpo-31275: Small refactoring to silence a fall-through warning. (#3206)Stefan Krah2017-08-251-8/+2
|
* bpo-30923: Silence fall-through warnings in libexpat build. (#3205)Stefan Krah2017-08-251-0/+9
|
* Skip two tests not intended to pass on Windows. (#3202)Gregory P. Smith2017-08-251-0/+2
|
* bpo-22536: Set the filename in FileNotFoundError. (#3194)Gregory P. Smith2017-08-243-6/+18
| | | | Have the subprocess module set the filename in the FileNotFoundError exception raised on POSIX systems when the executable or cwd are missing.
* bpo-29741: Update some methods in the _pyio module to also accept integer ↵Oren Milman2017-08-243-14/+68
| | | | types. Patch by Oren Milman. (#560)
* bpo-28261: fix err msgs where PyArg_ParseTuple is used to parse normal ↵Oren Milman2017-08-241-3/+20
| | | | tuples (leftovers) (#3198)
* bpo-23835: Restore legacy defaults= behavior for RawConfigParser (#3191)Łukasz Langa2017-08-243-12/+34
| | | | | | | The fix for bpo-23835 fixed ConfigParser behavior in defaults= handling. Unfortunately, it caused a backwards compatibility regression with RawConfigParser objects which allow for non-string values. This commit restores the legacy behavior for RawConfigParser only.
* bpo-31095: fix potential crash during GC (GH-2974)INADA Naoki2017-08-2414-13/+60
|
* bpo-31229: Fixed wrong error messages when too many keyword arguments are ↵Oren Milman2017-08-232-2/+29
| | | | received. (#3180)
* bpo-31161: only check for parens error for SyntaxError (#3082)Martijn Pieters2017-08-223-5/+41
| | | | Subclasses such as IndentError and TabError should not have this message applied.
* Touch up the contributing notes (#3158)Brett Cannon2017-08-221-12/+28
| | | | | | * Mention how to find out what to do * Update URL * Thanks contributors * Explain there is no timeline
* bpo-31234: test_threaded_import: fix test_side_effect_import() (#3189)Victor Stinner2017-08-221-1/+3
| | | | * Don't leak the module into sys.modules * Avoid dangling thread
* bpo-31234: test_httpservers joins the server thread (#3188)Victor Stinner2017-08-221-0/+1
|
* bpo-31249: Fix ref cycle in ThreadPoolExecutor (#3178)Victor Stinner2017-08-222-2/+6
| | | | | | | | | | | | | * bpo-31249: Fix ref cycle in ThreadPoolExecutor concurrent.futures: WorkItem.run() used by ThreadPoolExecutor now breaks a reference cycle between an exception object and the WorkItem object. ThreadPoolExecutor.shutdown() now also clears its threads set. * shutdown() now only clears threads if wait is true. * Revert changes on shutdown()
* bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (#3153)Łukasz Langa2017-08-213-9/+18
| | | | | | | | | | | | PEP 523 introduced _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on non-debug shared builds. This breaks the ability to use py-bt, py-up, and a few other Python-specific gdb integrations. This patch fixes the problem by only looking for _PyEval_EvalFrameDefault frames. test_gdb passes on both a debug and a non-debug build. Original patch by Bruno "Polaco" Penteado.
* bpo-23835: [docs] configparser converts defaults to strings (#3176)Łukasz Langa2017-08-213-1/+10
| | | Title says all.
* bpo-23835: Enforce that configparser defaults are strings (#2558)James Tocknell2017-08-212-3/+11
| | | | * Enforce that configparser defaults are strings * Update test_configparser.py
* Add test_subprocess.test_nonexisting_with_pipes() (#3133)Victor Stinner2017-08-211-4/+47
| | | | bpo-30121: Test the Popen failure when Popen was created with pipes. Create also NONEXISTING_CMD variable in test_subprocess.py.
* bpo-31238: pydoc ServerThread.stop() now joins itself (#3151)Victor Stinner2017-08-212-0/+7
| | | | | | | | | | * bpo-31238: pydoc ServerThread.stop() now joins itself ServerThread.stop() now joins itself to wait until DocServer.serve_until_quit() completes and then explicitly sets its docserver attribute to None to break a reference cycle. * Add NEWS.d entry
* bpo-31249: test_concurrent_futures checks dangling threads (#3167)Victor Stinner2017-08-211-12/+20
| | | | | Add a BaseTestCase class to test_concurrent_futures to check for dangling threads and processes on all tests, not only tests using ExecutorMixin.
* bpo-31236: Improved some error messages of min() and max().Oren Milman2017-08-211-2/+3
|
* bpo-31247: xmlrpc.server: break reference cycle (#3166)Victor Stinner2017-08-212-12/+26
| | | | xmlrpc.server now explicitly breaks reference cycles when using sys.exc_info() in code handling exceptions.
* bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. ↵Stefan Krah2017-08-2113-21/+35
| | | | (#3157)
* bpo-9566 & bpo-30747: Silence warnings from pyatomic.h macros (#3140)Segev Finer2017-08-201-4/+4
| | | | | | | | | | | | | * bpo-9566: Silence warnings from pyatomic.h macros Apparently MSVC is too stupid to understand that the alternate branch is not taken and emits a warning for it. Warnings added in https://github.com/python/cpython/pull/2383 * bpo-9566: A better fix for the pyatomic.h warning * bpo-9566: Remove a slash
* bpo-28261: Fixed err msgs where PyArg_ParseTuple is used to parse normal ↵Oren Milman2017-08-208-19/+67
| | | | tuples. (#3119)