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
Raymond Hettinger
04c79d6088
bpo-38678: Improve argparse example in tutorial (GH-17207)
2019-11-17 22:06:19 -08:00
alclarks
4544e78ec4
bpo-25866: Minor cleanups to "sequence" in docs (GH-17177)
2019-11-17 14:00:43 -08: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
Brandt Bucher
143a97f641
bpo-38823: Clean up refleaks in _contextvars initialization. (GH-17198)
...
https://bugs.python.org/issue38823
2019-11-16 15:57:32 -08:00
Brandt Bucher
c3f6bdc332
bpo-38823: Clean up refleaks in _asyncio initialization. (GH-17195)
...
https://bugs.python.org/issue38823
2019-11-16 14:26:54 -08:00
Jason (Perry) Taylor
d0acdfcf34
Fix typo in Lib/socketserver.py (GH-17024)
...
changed 'This is bad class design, but save some typing'
into 'This is bad class design, but saves some typing'.
2019-11-16 19:14:45 +01: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
Victor Stinner
51edf8aaa2
bpo-38644: Cleanup ceval.h (GH-17185)
...
Move CPython API (Py_LIMITED_API macro not defined) from ceval.h
to cpython/ceval.h
2019-11-16 01:04:44 +01:00
Steve Dower
7c6130c8c3
bpo-38453: Ensure correct short path is obtained for test (GH-17184)
2019-11-15 16:04:00 -08:00
Victor Stinner
b5e170f127
bpo-38644: Add _PyEval_EvalCode() (GH-17183)
...
_PyFunction_Vectorcall() now pass tstate to function calls.
2019-11-16 01:03:22 +01:00
Jules Lasne (jlasne)
0fe0b88d6e
Updated missing periods in cmdline.rst (GH-17173)
2019-11-15 23:18:17 +01:00
HongWeipeng
84f2528d48
Fix the description of isdatadescriptor in inspect.rst ( #16645 )
2019-11-15 23:47:26 +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
Marco Paolini
b44ffc8b40
bpo-38677: Fix arraymodule error handling in module initialization. (GH-17039)
2019-11-15 10:42:51 +02:00
Brandt Bucher
57d3ab85a4
Add .pytest_cache to .gitignore (GH-16595)
2019-11-15 10:22:41 +02:00
Kyle Stanley
3f8cebd32c
bpo-38692: Add asyncio.PidfdChildWatcher to __all__ (GH-17161)
...
/cc @asvetlov @1st1
https://bugs.python.org/issue38692
Automerge-Triggered-By: @benjaminp
2019-11-14 18:47:56 -08:00
Victor Stinner
4d231bcc77
bpo-38644: Add _PyObject_Call() (GH-17089)
...
* Add pycore_call.h internal header file.
* Add _PyObject_Call(): PyObject_Call() with tstate
* Add _PyObject_CallNoArgTstate(): _PyObject_CallNoArg() with tstate
* Add _PyObject_FastCallDictTstate(): _PyObject_FastCallDict()
with tstate
* _PyObject_Call_Prepend() now takes tstate
* Replace _PyObject_FastCall() calls
with _PyObject_VectorcallTstate() calls
2019-11-14 13:36:21 +01:00
Victor Stinner
b9e681261c
bpo-38644: Add _PyEval_EvalFrame() with tstate (GH-17131)
...
Add _PyEval_EvalFrame() static inline function to get eval_frame from
tstate->interp.
2019-11-14 12:20:46 +01: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
Daniel Andersson
d89cea15ad
bpo-38781: Clear buffer in MemoryHandler flush (GH-17132)
...
This makes it easier to use a custom buffer when subclassing
MemoryHandler (by avoiding the explicity empty list literal
assignment in the flush method). For example, collection.deque
can now be used without any modifications to MemoryHandler.flush.
The same applies to BufferingHandler.
2019-11-13 09:03:45 +00: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
Shu
2d56af7a94
Fix minor typos. (GH-17095)
2019-11-12 19:12:11 -08: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
Serhiy Storchaka
138ccbb022
bpo-38738: Fix formatting of True and False. (GH-17083)
...
* "Return true/false" is replaced with "Return ``True``/``False``"
if the function actually returns a bool.
* Fixed formatting of some True and False literals (now in monospace).
* Replaced "True/False" with "true/false" if it can be not only bool.
* Replaced some 1/0 with True/False if it corresponds the code.
* "Returns <bool>" is replaced with "Return <bool>".
2019-11-12 16:57:03 +02:00
Jeroen Demeyer
9a13a388f2
bpo-36974: expand call protocol documentation (GH-13844)
...
CC @encukou
I'm also adding Petr Viktorin as contributor for vectorcall in the "what's new" section.
https://bugs.python.org/issue36974
Automerge-Triggered-By: @encukou
Automerge-Triggered-By: @encukou
2019-11-12 05:08:00 -08:00
David K
a12255d8de
bpo-38421: Update email.utils documentation (GH-16678)
...
Updates documentation around email.utils.parsedate_tz().
Currently, the documentation specifies that when a string without a is timezone passed to parsedate_tz(), the last tuple is returned as ```None```.
This is no longer true since Python 3.3
https://bugs.python.org/issue38421
2019-11-12 04:38:46 -08:00
Vinay Sajip
106271568c
bpo-16576: Add checks for bitfields passed by value to functions. (GH-17097)
2019-11-12 12:29:34 +00: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
Raymond Hettinger
733b9a308e
bpo-38385: Fix iterator/iterable terminology in statistics docs (GH-17111)
2019-11-11 23:35:06 -08:00
Manjusaka
051ff526b5
bpo-38565: add new cache_parameters method for lru_cache (GH-16916)
2019-11-11 23:30:18 -08:00
Jonathan Scholbach
98480cef9d
bpo-38771: Explict test for None in code example (GH-17108)
2019-11-11 16:49:41 -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
Raymond Hettinger
af46450bb9
Minor readability improvement for argument handling in itertools.repeat() (GH-17101)
2019-11-09 20:28:31 -08:00
Serhiy Storchaka
e27449da92
bpo-38635: Simplify decoding the ZIP64 extra field and make it tolerant to extra data. (GH-16988)
2019-11-09 13:13:36 +02:00
Shu
fc6b1bf869
Clarify amount of dots between package and subpackage (GH-17092)
2019-11-08 12:26:35 -08:00
Victor Stinner
7e43373317
bpo-38644: Add _PyObject_VectorcallTstate() (GH-17052)
...
* Add _PyObject_VectorcallTstate() function: similar to
_PyObject_Vectorcall(), but with tstate parameter
* Add tstate parameter to _PyObject_MakeTpCall()
2019-11-08 10:05:17 +01:00
Dong-hee Na
befa032d88
bpo-22367: Add tests for fcntl.lockf(). (GH-17010)
2019-11-07 22:31:41 +02:00