summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36974: implement PEP 590 (GH-13185)Jeroen Demeyer2019-05-2922-233/+404
| | | | | Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be> Co-authored-by: Mark Shannon <mark@hotpy.org>
* bpo-36983: Fix typing.__all__ and add test for exported names (GH-13456)Anthony Sottile2019-05-293-0/+29
| | | https://bugs.python.org/issue36983
* bpo-36794: Document that Lock.acquire is fair. (GH-13082)Hrvoje Nikšić2019-05-291-0/+7
| | | https://bugs.python.org/issue36794
* Doc: Add an optional obsolete header. (GH-13638)Julien Palard2019-05-292-0/+19
|
* Add my to code owner for more areas (#13650)Christian Heimes2019-05-291-4/+11
|
* bpo-36842: Fix reference leak in tests by running out-of-proc (GH-13556)Steve Dower2019-05-293-230/+323
|
* bpo-33164: blake2 fix for HP-UX (GH-13633)David Carlier2019-05-292-0/+5
|
* bpo-32972: Async test case (GH-13386)Andrew Svetlov2019-05-296-6/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add explicit `asyncSetUp` and `asyncTearDown` methods. The rest is the same as for #13228 `AsyncTestCase` create a loop instance for every test for the sake of test isolation. Sometimes a loop shared between all tests can speed up tests execution time a lot but it requires control of closed resources after every test finish. Basically, it requires nested supervisors support that was discussed with @1st1 many times. Sorry, asyncio supervisors have no chance to land on Python 3.8. The PR intentionally does not provide API for changing the used event loop or getting the test loop: use `asyncio.set_event_loop_policy()` and `asyncio.get_event_loop()` instead. The PR adds four overridable methods to base `unittest.TestCase` class: ``` def _callSetUp(self): self.setUp() def _callTestMethod(self, method): method() def _callTearDown(self): self.tearDown() def _callCleanup(self, function, /, *args, **kwargs): function(*args, **kwargs) ``` It allows using asyncio facilities with minimal influence on the unittest code. The last but not least: the PR respects contextvars. The context variable installed by `asyncSetUp` is available on test, `tearDown` and a coroutine scheduled by `addCleanup`. https://bugs.python.org/issue32972
* remove unnecessary tp_dealloc (GH-13647)Inada Naoki2019-05-294-30/+4
|
* bpo-22454: Add shlex.join() (the opposite of shlex.split()) (GH-7605)Bo Bayles2019-05-295-1/+48
|
* bpo-37070: Cleanup fstring debug handling (GH-13607)Eric V. Smith2019-05-292-27/+19
| | | | * Clean up some comments, fix potential memory leaks, clarify literal and expr_text.
* bpo-37075: Fix string concatenation in assert_has_awaits error message ↵Xtreak2019-05-293-8/+11
| | | | | | | | | | (GH-13616) * Fix the implicit string concatenation in `assert_has_awaits` error message. * Use "await" instead of "call" in `assert_awaited_with` error message. https://bugs.python.org/issue37075
* bpo-35246: fix support for path-like args in asyncio subprocess (GH-13628)依云2019-05-293-5/+12
| | | | | | | | | Drop isinstance checks from create_subprocess_exec function and let subprocess module do them. https://bugs.python.org/issue35246 https://bugs.python.org/issue35246
* bpo-36739: Update controlflow.rst (GH-12983)pbhd2019-05-291-3/+5
| | | | in addition to global-statement also mention nonlocal-statement (in the paragraph describing access to variables which are non local to a function
* bpo-37076: _thread.start_new_thread() calls _PyErr_WriteUnraisableMsg() ↵Victor Stinner2019-05-294-20/+41
| | | | | | | (GH-13617) _thread.start_new_thread() now logs uncaught exception raised by the function using sys.unraisablehook(), rather than sys.excepthook(), so the hook gets access to the function which raised the exception.
* bpo-36540: Documentation for PEP570 - Python positional only arguments (#13202)Pablo Galindo2019-05-285-10/+182
| | | | | | | | | | | | | | | | | | * bpo-36540: Documentation for PEP570 - Python positional only arguments * fixup! bpo-36540: Documentation for PEP570 - Python positional only arguments * Update reference for compound statements * Apply suggestions from Carol Co-Authored-By: Carol Willing <carolcode@willingconsulting.com> * Update Doc/tutorial/controlflow.rst Co-Authored-By: Carol Willing <carolcode@willingconsulting.com> * Add extra bullet point and minor edits
* bpo-37072: Fix crash in PyAST_FromNodeObject() when flags is NULL (#13634)Guido van Rossum2019-05-282-1/+2
| | | | | I'm confident that this fixes the reported crash. flags=NULL is treated as using the latest minor version. https://bugs.python.org/issue37072
* Fix markup and minor grammar improvements in Code_of_conduct.md (GH-13640)hydrogen-mvm2019-05-281-4/+4
| | | | | | | | | The old link had a > in the url which prevented the browser from jumping down to the correct section on that page. That PSF page itself has an error: There's a duplicate "the" in that paragraph that needs to be removed: "...and conform to **the the** Python Community Code of Conduct." While I was editing this file, I also fixed some grammar and bolded the 3 important keywords so that they catch the viewer's eyes. I can revert these changes if they are unwanted. Thanks.
* bpo-37001: Makes symtable.symtable have parity with compile for input (#13483)Dino Viehland2019-05-287-79/+111
| | | | | | | * Makes symtable.symtable have parity for accepted datatypes for source code as compile() * Add NEWS blurb
* bpo-22102: Fixes zip files with disks set to 0 (GH-5985)Francisco Facioni2019-05-282-1/+3
|
* Fix comments in initconfig.h (GH-13636)MandarJKulkarni2019-05-281-3/+3
|
* bpo-31961: Fix support of path-like executables in subprocess. (GH-5914)Serhiy Storchaka2019-05-284-6/+109
|
* Fix typo in docs for socket.CAN_RAW_FD_FRAMES (GH-13635)karl ding2019-05-281-1/+1
| | | | There is an extra "one" in the text description for the constant socket.CAN_RAW_FD_FRAMES
* bpo-36933: fix what's new. (GH-13627)Matthias Bussonnier2019-05-281-3/+3
| | | | | | | | Original Pr was reformed and news not updated. https://bugs.python.org/issue36933
* bpo-22640: Add silent mode to py_compile.compile() (GH-12976)Joannah Nanjekye2019-05-285-9/+43
|
* bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980)Zackery Spytz2019-05-2814-104/+136
|
* bpo-33725: multiprocessing uses spawn by default on macOS (GH-13603)Victor Stinner2019-05-284-2/+24
| | | | On macOS, the multiprocessing module now uses the "spawn" start method by default.
* bpo-36829: sys.excepthook and sys.unraisablehook flush (GH-13620)Victor Stinner2019-05-282-0/+19
| | | | | | | sys.excepthook() and sys.unraisablehook() now explicitly flush the file (usually sys.stderr). If file.flush() fails, sys.excepthook() silently ignores the error, whereas sys.unraisablehook() logs the new exception.
* Doc: Add missing forward reference in the tutorial. (GH-13499)Julien Palard2019-05-281-3/+3
|
* bpo-26423: Fix possible overflow in wrap_lenfunc() (GH-13606)Zackery Spytz2019-05-283-1/+7
| | | | Fix possible overflow in wrap_lenfunc() when sizeof(long) < sizeof(Py_ssize_t) (e.g., 64-bit Windows).
* bpo-32299: Return patched dict when using patch.dict as a context manager ↵Mario Corchero2019-05-284-1/+20
| | | | | | (GH-11062)
* bpo-36922: implement PEP-590 Py_TPFLAGS_METHOD_DESCRIPTOR (GH-13338)Jeroen Demeyer2019-05-2810-7/+132
| | | Co-authored-by: Mark Shannon <mark@hotpy.org>
* Doc: Space breaking whole definition. (GH-13615)Julien Palard2019-05-281-1/+1
|
* bpo-35279: reduce default max_workers of ThreadPoolExecutor (GH-13618)Inada Naoki2019-05-284-5/+22
|
* Remove outdated time.monotonic reference (GH-13264)Brad2019-05-281-2/+1
| | | Per ae58649, time.monotonic is always available, making the old note outdated.
* bpo-36900: Fix compilation on HP-UX (GH-13614)Victor Stinner2019-05-281-0/+1
| | | | dynload_hpux.c: add #include "pycore_pystate.h" for _PyInterpreterState_GET_UNSAFE().
* bpo-29883: Asyncio proactor udp (GH-13440)Andrew Svetlov2019-05-288-46/+838
| | | | | | Follow-up for #1067 https://bugs.python.org/issue29883
* DOC: Unnecessary plural. (GH-13613)Julien Palard2019-05-281-1/+1
|
* bpo-37058: PEP 544: Add Protocol to typing module (GH-13585)Ivan Levkivskyi2019-05-284-119/+1053
| | | | | I tried to get rid of the `_ProtocolMeta`, but unfortunately it didn'y work. My idea to return a generic alias from `@runtime_checkable` made runtime protocols unpickleable. I am not sure what is worse (a custom metaclass or having some classes unpickleable), so I decided to stick with the status quo (since there were no complains so far). So essentially this is a copy of the implementation in `typing_extensions` with two modifications: * Rename `@runtime` to `@runtime_checkable` (plus corresponding updates). * Allow protocols that extend `collections.abc.Iterable` etc.
* bpo-36933: Remove sys.set_coroutine_wrapper (marked for removal in 3.8) ↵Matthias Bussonnier2019-05-2811-287/+7
| | | | | | | | | | (GH-13577) It has been documented as deprecated and to be removed in 3.8; From a comment on another thread – which I can't find ; leave get_coro_wrapper() for now, but always return `None`. https://bugs.python.org/issue36933
* bpo-36996: Handle async functions when mock.patch is used as a decorator ↵Xtreak2019-05-283-27/+74
| | | | | | | | | | (GH-13562) Return a coroutine while patching async functions with a decorator. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> https://bugs.python.org/issue36996
* Add @maxking to CODEOWNERS file (GH-13599)Abhilash Raj2019-05-281-1/+1
|
* bpo-36686: Improve the documentation of the std* params in ↵sbstp2019-05-274-25/+158
| | | | | loop.subprocess_exec (GH-13586) https://bugs.python.org/issue36686
* bpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() (GH-13601)Victor Stinner2019-05-272-1/+13
| | | | | Fix destructor _pyio.BytesIO and _pyio.TextIOWrapper: initialize their _buffer attribute as soon as possible (in the class body), because it's used by __del__() which calls close().
* bpo-37039: IDLE - zoomheight fixes (GH-13576)Terry Jan Reedy2019-05-273-30/+18
| | | | | Move doc entry to match menu and refactor zoom function. A followup patch will include a blurb.
* bpo-1230540: Add threading.excepthook() (GH-13515)Victor Stinner2019-05-279-67/+424
| | | | | | | | | | | | | | | | | | | Add a new threading.excepthook() function which handles uncaught Thread.run() exception. It can be overridden to control how uncaught exceptions are handled. threading.ExceptHookArgs is not documented on purpose: it should not be used directly. * threading.excepthook() and threading.ExceptHookArgs. * Add _PyErr_Display(): similar to PyErr_Display(), but accept a 'file' parameter. * Add _thread._excepthook(): C implementation of the exception hook calling _PyErr_Display(). * Add _thread._ExceptHookArgs: structseq type. * Add threading._invoke_excepthook_wrapper() which handles the gory details to ensure that everything remains alive during Python shutdown. * Add unit tests.
* bpo-36889: Merge asyncio streams (GH-13251)Andrew Svetlov2019-05-2713-383/+2055
| | | https://bugs.python.org/issue36889
* bpo-37050: Remove expr_text from FormattedValue ast node, use Constant node ↵Eric V. Smith2019-05-279-100/+87
| | | | | instead (GH-13597) When using the "=" debug functionality of f-strings, use another Constant node (or a merged constant node) instead of adding expr_text to the FormattedValue node.
* bpo-32941: Fix test_madvise failure when page size >= 8kiB (GH-13596)Antoine Pitrou2019-05-271-1/+2
| | | https://bugs.python.org/issue32941
* Fix a typo in SECURITY.md (GH-13568)Philippe Gagnon2019-05-271-1/+1
| | | There is a duplicated "in" in the Supported Versions text.