summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* IDLE: Fix typos in docs and comments (GH-13749)Xtreak2019-06-0311-11/+11
|
* bpo-36546: Add design notes to aid future discussions (GH-13769)Raymond Hettinger2019-06-031-0/+39
|
* bpo-33569 Preserve type information with dataclasses.InitVar (GH-8927)Augusto Hack2019-06-032-3/+16
|
* bpo-37069: tests use catch_unraisable_exception() (GH-13762)Victor Stinner2019-06-037-69/+57
| | | | | | | | | | | | | Modify test_coroutines, test_cprofile, test_generators, test_raise, test_ssl and test_yield_from to use support.catch_unraisable_exception() rather than support.captured_stderr(). test_thread: remove test_save_exception_state_on_error() which is now updated. test_unraisable_exception() checks that sys.unraisablehook() is called to handle _thread.start_new_thread() exception. test_cprofile now rely on unittest for test discovery: replace support.run_unittest() with unittest.main().
* bpo-37100: Fix test_coroutines with -Werror (GH-13756)Victor Stinner2019-06-021-4/+4
| | | | test_coroutines: test_unawaited_warning_when_module_broken() now uses support.check_warnings() to catch expected RuntimeWarning.
* Fix typos in docs and docstrings (GH-13745)Xtreak2019-06-0212-13/+13
|
* bpo-35621: Fix tests when SafeChildWatcher is expected instead of ↵Andrew Svetlov2019-06-021-0/+1
| | | | | ThreadedChildWatcher (GH-13754) https://bugs.python.org/issue35621
* bpo-36974: Make tp_call=PyVectorcall_Call work for inherited types (GH-13699)Petr Viktorin2019-06-021-5/+25
| | | | | | | | | | | | | | | | | | When inheriting a heap subclass from a vectorcall class that sets `.tp_call=PyVectorcall_Call` (as recommended in PEP 590), the subclass does not inherit `_Py_TPFLAGS_HAVE_VECTORCALL`, and thus `PyVectorcall_Call` does not work for it. This attempts to solve the issue by: * always inheriting `tp_vectorcall_offset` unless `tp_call` is overridden in the subclass * inheriting _Py_TPFLAGS_HAVE_VECTORCALL for static types, unless `tp_call` is overridden * making `PyVectorcall_Call` ignore `_Py_TPFLAGS_HAVE_VECTORCALL` This means it'll be ever more important to only call `PyVectorcall_Call` on classes that support vectorcall. In `PyVectorcall_Call`'s intended role as `tp_call` filler, that's not a problem.
* test_gdb.test_pycfunction: test more calling conventions (GH-13668)Petr Viktorin2019-06-021-21/+34
| | | | | As the code paths for various METH_* conventions are diverging due to optimizations, we should check they continue to be covered by GDB integration.
* bpo-36829: test_threading: Fix a ref cycle (GH-13752)Victor Stinner2019-06-021-1/+5
|
* bpo-37014: Update docstring and Documentation of fileinput.FileInput(). ↵Michele Angrisano2019-06-021-3/+3
| | | | | | | | | | | | (GH-13545) * bpo-37014: Update docstring and Documentation of fileinput.FileInput() * Explain the behavior of fileinput.FileInput() when reading stdin. * Update blurb. * bpo-37014: Fix typo in the docstring and documentation.
* bpo-37124: Fix reference leak in test_msilib (GH-13750)Pablo Galindo2019-06-021-0/+1
|
* bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)Cheryl Sabella2019-06-027-13/+11
| | | | Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
* bpo-35621: Support running subprocesses in asyncio when loop is executed in ↵Andrew Svetlov2019-06-023-54/+260
| | | | non-main thread (#13630)
* bpo-36027: Extend three-argument pow to negative second argument (GH-13266)Mark Dickinson2019-06-022-1/+28
|
* bpo-37128: Add math.perm(). (GH-13731)Serhiy Storchaka2019-06-021-1/+65
|
* Add more tests for preserving identity in marshal. (GH-13736)Serhiy Storchaka2019-06-021-18/+51
|
* bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). ↵Eric Snow2019-06-011-1/+1
| | | | (gh-13714)
* bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)Serhiy Storchaka2019-06-016-11/+103
|
* bpo-32411: IDLE: Remove line number sort in browser.py (#5011)Cheryl Sabella2019-06-013-17/+20
| | | Insertion in line order makes sorting keys by line order unneeded.
* bpo-28595: Allow shlex whitespace_split with punctuation_chars (GH-2071)Evan2019-06-012-11/+38
|
* bpo-35431: Refactor math.comb() implementation. (GH-13725)Serhiy Storchaka2019-06-011-7/+22
| | | | | | | * Fixed some bugs. * Added support for index-likes objects. * Improved error messages. * Cleaned up and optimized the code. * Added more tests.
* bpo-37122: Make co->co_argcount represent the total number of positonal ↵Pablo Galindo2019-06-015-23/+15
| | | | arguments in the code object (GH-13726)
* bpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113)Bar Harel2019-06-012-0/+12
| | | | | | | | Fixed QueueListener in order to avoid random deadlocks. Unable to add regression tests atm due to time constraints, will add it in a bit. Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO). https://bugs.python.org/issue36813
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-0122-242/+108
|
* bpo-35431: Implemented math.comb (GH-11414)Yash Aggarwal2019-06-011-0/+51
|
* Add option to trace to run modules (GH-5134)Mario Corchero2019-06-012-16/+37
| | | | | Adds a new option in trace that allows tracing runnable modules. It is exposed as `--module module_name` as `-m` is already in use for another argument.
* bpo-29984: Improve 'heapq' test coverage (GH-992)Rob Day2019-06-012-2/+33
|
* bpo-12202: Properly check MsiSummaryInfoGetProperty() calls in msilib (GH-13711)Zackery Spytz2019-06-011-0/+9
|
* bpo-33361: Fix bug with seeking in StreamRecoders (GH-8278)Ammar Askar2019-05-312-0/+31
|
* bpo-26826: Expose copy_file_range in the os module (GH-7255)Pablo Galindo2019-05-311-0/+83
|
* bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None ↵Zackery Spytz2019-05-312-1/+10
| | | | | (GH-13688) msilib.Directory.start_component() was passing an extra argument to CAB.gen_id().
* bpo-37115: Support annotations in positional-only arguments (GH-13698)Pablo Galindo2019-05-312-4/+55
|
* bpo-37112: Allow compile to work on AST with positional only arguments with ↵Pablo Galindo2019-05-311-0/+22
| | | | defaults (GH-13697)
* bpo-37108: Support super with methods that use positional-only arguments ↵Pablo Galindo2019-05-311-0/+14
| | | | (GH-13695)
* bpo-36379: __ipow__ must be a ternaryfunc, not a binaryfunc (GH-13546)Zackery Spytz2019-05-311-0/+7
| | | | | | | If a type's __ipow__ method was implemented in C, attempting to use the *modulo* parameter would cause crashes. https://bugs.python.org/issue36379
* bpo-34271: Add ssl debugging helpers (GH-10031)Christian Heimes2019-05-312-2/+338
| | | | | | | | | | | The ssl module now can dump key material to a keylog file and trace TLS protocol messages with a tracing callback. The default and stdlib contexts also support SSLKEYLOGFILE env var. The msg_callback and related enums are private members. The feature is designed for internal debugging and not for end users. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-26660, bpo-35144: Fix permission errors in TemporaryDirectory cleanup. ↵Serhiy Storchaka2019-05-313-14/+82
| | | | | | | (GH-10320) TemporaryDirectory.cleanup() failed when non-writeable or non-searchable files or directories were created inside a temporary directory.
* bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. ↵Serhiy Storchaka2019-05-312-4/+18
| | | | | | (GH-11859) Escape ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) in Unicode strings.
* IDLE - Capitalize search dialogs' 'Close' button label. (#13691)Terry Jan Reedy2019-05-312-2/+3
| | | | It seems to be the only widget label not capitalized.
* bpo-36548: Improve the repr of re flags. (GH-12715)Serhiy Storchaka2019-05-312-16/+44
|
* bpo-29262: Add get_origin() and get_args() introspection helpers to typing ↵Ivan Levkivskyi2019-05-302-0/+79
| | | | | | | | | | (GH-13685) This is an old feature request that appears from time to time. After a year of experimenting with various introspection capabilities in `typing_inspect` on PyPI, I propose to add these two most commonly used functions: `get_origin()` and `get_args()`. These are essentially thin public wrappers around private APIs: `__origin__` and `__args__`. As discussed in the issue and on the typing tracker, exposing some public helpers instead of `__origin__` and `__args__` directly will give us more flexibility if we will decide to update the internal representation, while still maintaining backwards compatibility. The implementation is very simple an is essentially a copy from `typing_inspect` with one exception: `ClassVar` was special-cased in `typing_inspect`, but I think this special-casing doesn't really help and only makes things more complicated.
* bpo-5028: Fix up rest of documentation for tokenize documenting line (GH-13686)Anthony Sottile2019-05-302-2/+2
| | | https://bugs.python.org/issue5028
* bpo-36953: Delay removal of ABCs from collections. (GH-13409)Matthias Bussonnier2019-05-301-2/+2
| | | | | | | Bump the removal to 3.9, indicate collections.abc available since 3.3, replace version-changed directive to deprecated-removed. https://bugs.python.org/issue36953
* bpo-36342: Fix test_multiprocessing in test_venv (GH-12513)xdegaye2019-05-301-1/+6
| | | | | | | when platform lacks a functioning sem_open implementation https://bugs.python.org/issue36342
* bpo-5028: fix doc bug for tokenize (GH-11683)Andrew Carr2019-05-302-2/+2
| | | https://bugs.python.org/issue5028
* bpo-36999: Add asyncio.Task.get_coro() (GH-13680)Alex Grönholm2019-05-302-0/+13
| | | https://bugs.python.org/issue36999
* bpo-37099: Silence DeprecationWarning in test_inspect (GH-13679)Xtreak2019-05-301-6/+9
| | | | | | Fix DeprecationWarning introduced in aee19f54f6fe45f6b3c906987941e5a8af4468e9 https://bugs.python.org/issue37099
* bpo-20602: Do not clear sys.flags and sys.float_info during shutdown (GH-8096)Zackery Spytz2019-05-301-0/+16
| | | There is no need to clear these immutable objects during shutdown.
* bpo-36974: inherit the vectorcall protocol (GH-13498)Jeroen Demeyer2019-05-301-1/+26
|