Victor Stinner
04394df74b
bpo-38631: Avoid Py_FatalError() in float.__getformat__() (GH-17232)
...
Replace Py_FatalError() with a regular RuntimeError exception in
float.__getformat__().
2019-11-18 17:39:48 +01:00
Victor Stinner
59c80889ff
Revert "bpo-38811: Check for presence of os.link method in pathlib. (GH-17170)" ( #17219 )
...
This reverts commit 111772fc27
.
2019-11-18 12:26:37 +01:00
Zackery Spytz
2bc343417a
bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766)
...
Return None instead of 1.
2019-11-17 19:10:13 +02:00
Toke Høiland-Jørgensen
111772fc27
bpo-38811: Check for presence of os.link method in pathlib. (GH-17170)
...
Fix also the Path.symplink() method implementation for the case when
symlinks are not supported.
2019-11-17 19:06:38 +02:00
Andrey Doroschenko
645005e947
bpo-38724: Implement subprocess.Popen.__repr__ (GH-17151)
2019-11-17 16:08:31 +02:00
Serhiy Storchaka
a0652328a2
bpo-28286: Deprecate opening GzipFile for writing implicitly. (GH-16417)
...
Always specify the mode argument for writing.
2019-11-16 18:56:57 +02:00
Serhiy Storchaka
bd44a7ead9
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
...
Make it a constant and referring to a constant string.
2019-11-16 18:55:29 +02:00
Serhiy Storchaka
5fd5cb8d85
bpo-38639: Optimize floor(), ceil() and trunc() for floats. (GH-16991)
2019-11-16 18:00:57 +02:00
Eric Snow
73cdb0c6b2
bpo-38816: Add notes in the C-API docs about fork in subinterpreters. (GH-17176)
...
The C-API docs are a bit sparse on the interplay between C `fork()` and the CPython runtime. This change adds some more information on the subject.
https://bugs.python.org/issue38816
2019-11-15 13:28:54 -08:00
Steve Dower
abde52cd8e
bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967)
...
Ensure isabs() is always True for \\?\ prefixed paths
Avoid unnecessary usage of readlink() to avoid resolving broken links incorrectly
Ensure shutil tests run in test directory
2019-11-15 09:49:21 -08:00
Phil Connell
b22030073b
bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123)
...
Small docs update for [bpo-34651](https://bugs.python.org/issue34651 ).
Other references to fork (e.g. the PyOS.*Fork functions or discussions of fork() when embedding Python) point back to os.fork, so I don't think any other updates are needed.
https://bugs.python.org/issue38778
Automerge-Triggered-By: @ericsnowcurrently
2019-11-15 08:56:03 -08:00
Andrey Doroschenko
e8acc865a3
bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162)
2019-11-15 11:03:46 +02:00
Benjamin Peterson
3ccdd9b180
closes bpo-38692: Add a pidfd child process watcher to asyncio. (GH-17069)
2019-11-13 19:08:50 -08:00
Andrew Svetlov
dad6be5ffe
bpo-38785: Prevent asyncio from crashing (GH-17144)
...
if parent `__init__` is not called from a constructor of object derived from `asyncio.Future`
https://bugs.python.org/issue38785
2019-11-13 13:36:46 -08:00
Kirill
61289d4366
bpo-38786: Add parsing of https links to pydoc (GH-17143)
2019-11-13 18:13:52 +02:00
Zackery Spytz
9c2844927d
bpo-4630: Add cursor no-blink option for IDLE (GH-16960)
...
This immediately toggles shell, editor, and output windows, but does not affect other input widgets.
2019-11-13 02:13:33 -05:00
Ilya Kulakov
d6d6e2aa02
Add Ilya Kulakov to Misc/ACKS. (GH-17130)
...
Contributions on bpo-26467 and bpo-29302.
2019-11-12 18:33:04 -08:00
Benjamin Peterson
74fa9f723f
closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. (GH-17112)
...
This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode.
2019-11-12 14:51:34 -08:00
jsnklln
d593881505
bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)
...
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
2019-11-12 14:42:47 -08:00
Zackery Spytz
c8b53dc3d8
bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103)
2019-11-12 05:54:10 -05:00
Manjusaka
051ff526b5
bpo-38565: add new cache_parameters method for lru_cache (GH-16916)
2019-11-11 23:30:18 -08:00
Brandt Bucher
a0ed99bca8
bpo-38438: Simplify argparse "star nargs" usage. (GH-17106)
2019-11-11 12:47:48 -08:00
Raymond Hettinger
84ac437658
bpo-38761: Register WeakSet as a MutableSet (GH-17104)
2019-11-10 20:12:04 -08:00
Inada Naoki
6cbc84fb99
bpo-38613: Optimize set operations of dict keys. (GH-16961)
2019-11-08 00:59:04 +09:00
l0rb
519cb8772a
bpo-38716: stop rotating handlers from setting inherited namer and rotator to None (GH-17072)
2019-11-06 21:21:40 +00:00
Benjamin Peterson
5c0c325453
closes bpo-38713: Expose P_PIDFD in os if it's defined. (GH-17071)
...
https://bugs.python.org/issue38713
2019-11-05 21:58:31 -08:00
Benjamin Peterson
6c4c45efae
bpo-38692: Add os.pidfd_open. (GH-17063)
2019-11-05 19:21:29 -08:00
Jeroen Demeyer
bf17d41826
bpo-37645: add new function _PyObject_FunctionStr() (GH-14890)
...
Additional note: the `method_check_args` function in `Objects/descrobject.c` is written in such a way that it applies to all kinds of descriptors. In particular, a future re-implementation of `wrapper_descriptor` could use that code.
CC @vstinner @encukou
https://bugs.python.org/issue37645
Automerge-Triggered-By: @encukou
2019-11-05 07:48:04 -08:00
Eddie Elizondo
b3966639d2
bpo-35381 Remove all static state from posixmodule (GH-15892)
...
After #9665 , this moves the remaining types in posixmodule to be heap-allocated to make it compatible with PEP384 as well as modifying all the type accessors to fully make the type opaque.
The original PR that got messed up a rebase: https://github.com/python/cpython/pull/10854 . All the issues in that commit have now been addressed since https://github.com/python/cpython/pull/11661 got committed.
This change also removes any state from the data segment and onto the module state itself.
https://bugs.python.org/issue35381
Automerge-Triggered-By: @encukou
2019-11-05 07:16:14 -08:00
Benjamin Peterson
62161ce989
closes bpo-37633: Reëxport some function compatibility wrappers for macros in ``pythonrun.h``. (GH-17056)
2019-11-04 21:34:14 -08:00
Victor Stinner
f4b1e3d7c6
bpo-38644: Add Py_EnterRecursiveCall() to the limited API (GH-17046)
...
Provide Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() as
regular functions for the limited API. Previously, there were defined
as macros, but these macros didn't work with the limited API which
cannot access PyThreadState.recursion_depth field.
Remove _Py_CheckRecursionLimit from the stable ABI.
Add Include/cpython/ceval.h header file.
2019-11-04 19:48:34 +01:00
Alexandru Ardelean
6552563b3d
bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL ( #17043 )
2019-11-04 15:55:56 +01:00
Ram Rachum
8d4fef4ee2
bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679)
...
Whenever I use `path.suffix` I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking.
https://bugs.python.org/issue38422
Automerge-Triggered-By: @pitrou
2019-11-02 09:46:24 -07:00
Anthony Sottile
b32cb97bce
bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. (GH-16938)
2019-10-31 11:13:48 +02:00
Lucas Cimon
b15100fe7d
bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)
2019-10-31 08:06:25 +00:00
Victor Stinner
a4ed6ed9f3
bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)
...
Fix test_communicate() of test_asyncio.test_subprocess: use
support.LONG_TIMEOUT (5 minutes), instead of 1 minute.
2019-10-30 16:00:44 +01:00
Pablo Galindo
6c3e66a34b
bpo-38640: Allow break and continue in always false while loops (GH-16992)
2019-10-30 11:53:26 +00:00
Victor Stinner
24c6258269
bpo-38614: Add timeout constants to test.support (GH-16964)
...
Add timeout constants to test.support:
* LOOPBACK_TIMEOUT
* INTERNET_TIMEOUT
* SHORT_TIMEOUT
* LONG_TIMEOUT
2019-10-30 12:41:43 +01:00
Serhiy Storchaka
865c3b257f
bpo-28029: Make "".replace("", s, n) returning s for any n != 0. (GH-16981)
2019-10-30 12:03:53 +02:00
Daniel Hillier
da6ce58dd5
bpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. (GH-14656)
2019-10-29 09:24:18 +02:00
Steve Dower
0ac6137dd3
bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C drive (GH-16968)
2019-10-28 14:34:25 -07:00
Zackery Spytz
edb172a872
bpo-38519: Internal include files missing on Windows (GH-16921)
2019-10-28 10:03:27 -07:00
Victor Stinner
e471e72977
bpo-37330: open() no longer accept 'U' in file mode (GH-16959)
...
open(), io.open(), codecs.open() and fileinput.FileInput no longer
accept "U" ("universal newline") in the file mode. This flag was
deprecated since Python 3.3.
2019-10-28 15:40:08 +01:00
Dong-hee Na
3bfc8e0fcc
bpo-38602: Add fcntl.F_OFD_XXXX for fcntlmodule (GH-16956)
2019-10-28 09:31:15 +02:00
Marco Rougeth
85c6f8c65c
bpo-38592 Add pt-br switcher to Python Docs website (GH-16924)
...
* 📜 🤖 Added by blurb_it.
2019-10-27 09:30:12 +01:00
Serhiy Storchaka
5c32af7522
bpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937)
...
Test by Daniel Hillier.
2019-10-27 10:22:14 +02:00
Terry Jan Reedy
e3f90b217a
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
2019-10-26 21:15:10 -04:00
Serhiy Storchaka
26ae9f6d3d
bpo-38535: Fix positions for AST nodes for calls without arguments in decorators. (GH-16861)
2019-10-26 16:46:05 +03:00
Zsolt Dollenstein
96b06aefe2
bpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)
...
These are valid even in python 2.7
https://bugs.python.org/issue33348
Automerge-Triggered-By: @gpshead
2019-10-23 23:19:07 -07:00
Girts
a01ba333af
bpo-30618: add readlink to pathlib.Path (GH-8285)
...
This adds a "readlink" method to pathlib.Path objects that calls through
to os.readlink.
https://bugs.python.org/issue30618
Automerge-Triggered-By: @gpshead
2019-10-23 14:18:40 -07:00