Julien Palard
375a3e2bdb
bpo-29986: Doc: Delete tip to raise TypeError from tp_richcompare. (GH-16095)
2019-09-13 15:07:37 +02:00
Kexuan Sun
53f78ec9e1
Doc: Improve consistency of os.path.normcase with other os.path functions (GH-14004)
2019-09-13 14:01:02 +01:00
Ashwin Ramaswami
ff2e182865
bpo-12707: deprecate info(), geturl(), getcode() methods in favor of headers, url, and status properties for HTTPResponse and addinfourl (GH-11447)
...
Co-Authored-By: epicfaace <aramaswamis@gmail.com>
2019-09-13 12:40:07 +01:00
Xtreak
d31b31516c
bpo-36889: Document Stream class and add docstrings (GH-14488)
...
* This just copies the docs from `StreamWriter` and `StreamReader`.
* Add docstring for asyncio functions.
https://bugs.python.org/issue36889
Automerge-Triggered-By: @asvetlov
2019-09-13 03:52:38 -07:00
Rémi Lapeyre
6a517c6749
bpo-8538: Add support for boolean actions to argparse (GH-11478)
...
Co-Authored-By: remilapeyre <remi.lapeyre@henki.fr>
2019-09-13 11:17:43 +01:00
Kishore Vancheeshwaran
7183064e9e
Doc: Add example snippet for str.isupper() (GH-14681)
2019-09-13 10:20:01 +01:00
Christian Heimes
7cad53e6b0
bpo-9216: Add usedforsecurity to hashlib constructors (GH-16044)
...
The usedforsecurity keyword only argument added to the hash constructors is useful for FIPS builds and similar restrictive environment with non-technical requirements that legacy algorithms be forbidden by their implementations without being explicitly annotated as not being used for any security related purposes. Linux distros with FIPS support benefit from this being standard rather than making up their own way(s) to do it.
Contributed and Signed-off-by: Christian Heimes christian@python.org
2019-09-12 19:30:00 -05:00
Patrick McLean
2b2ead7438
bpo-36046: Add user and group parameters to subprocess (GH-11950)
...
* subprocess: Add user, group and extra_groups paremeters to subprocess.Popen
This adds a `user` parameter to the Popen constructor that will call
setreuid() in the child before calling exec(). This allows processes
running as root to safely drop privileges before running the subprocess
without having to use a preexec_fn.
This also adds a `group` parameter that will call setregid() in
the child process before calling exec().
Finally an `extra_groups` parameter was added that will call
setgroups() to set the supplimental groups.
2019-09-12 18:15:44 +01:00
Matti Picus
57b7dbc46e
Emphasize the need to always call PySequence_Fast. (GH-11140)
2019-09-12 17:19:06 +01:00
Hai Shi
b1a2abdb06
bpo-37908: Add an example of ArgumentParser.exit() (GH-15455)
...
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
2019-09-12 16:34:24 +01:00
Raymond Hettinger
4210ad5ebd
bpo-38096: Complete the "structseq" and "named tuple" cleanup (GH-16010)
2019-09-12 07:56:28 -07:00
Julien Palard
a45b0efdea
Doc: Add -m reference in context of code execution (GH-16045)
2019-09-12 14:19:06 +01:00
Christian Heimes
ed4b3216e5
bpo-37363: Document internal audit events (GH-14663)
...
Three internal cpython events were not documented, yet.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37363
2019-09-12 06:13:02 -07:00
Andrew Svetlov
a488879cba
bpo-36373: Deprecate explicit loop in task and subprocess API (GH-16033)
2019-09-12 15:40:40 +03:00
Brandt Bucher
224b8aaa7e
bpo-26868: Fix example usage of PyModule_AddObject. ( #15725 )
...
* Add a note to the PyModule_AddObject docs.
* Correct example usages of PyModule_AddObject.
* Whitespace.
* Clean up wording.
* 📜 🤖 Added by blurb_it.
* First code review.
* Add < 0 in the tests with PyModule_AddObject
2019-09-12 13:11:20 +01:00
Windson yang
967b84c913
bpo-35325: Doc: imp.find_module() return value documentation discrepancy (GH-11040)
2019-09-12 14:10:50 +02:00
Emmanuel Arias
31a82e25b6
bpo-35685: Add examples of unittest.mock.patch.dict usage (GH-11456)
2019-09-12 13:29:54 +02:00
Julien Palard
2c910c1e73
bpo-36675: Remove obsolete code. (GH-16024)
...
Does no longer work since Sphinx moved the trim_doctest_flag option in
the configuration.
2019-09-12 12:23:53 +01:00
Christian Heimes
894d0f7d55
bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797)
...
Prefer client or TLSv1_2 in examples
Signed-off-by: Christian Heimes <christian@python.org>
2019-09-12 12:10:05 +01:00
Hai Shi
f545638b57
bpo-9938: Add optional keyword argument exit_on_error to argparse.ArgumentParser (GH-15362)
...
Co-Authored-by: Xuanji Li <xuanji@gmail.com>
https://bugs.python.org/issue9938
Automerge-Triggered-By: @matrixise
2019-09-12 03:56:05 -07:00
Harmandeep Singh
2d32bf1ef2
bpo-13927: time.ctime and time.asctime return string explantion (GH-11303)
...
* bpo-13927: time.ctime and time.asctime return string explantion
* Add note explaining that time.ctime and time.asctime returns a space padded date value in case it contains a single digit date
* Reformat linebreaks
2019-09-12 11:22:30 +01:00
Georgy Frolov
7544497ad3
Doc: Add example of dict() function with positional and keyword arguments (GH-15220)
2019-09-12 10:41:36 +01:00
Joannah Nanjekye
92777d5e5a
bpo-18578: Rename and document test.bytecode_helper as test.support.bytecode_helper (GH-15168)
...
Rename and document test.bytecode_helper as test.support.bytecode_helper
2019-09-12 10:02:59 +01:00
Géry Ogam
891e9e3b44
Correct typos in the codecs module documentation ( #15135 )
2019-09-12 08:41:32 +01:00
Björn Meier
9936371af2
bpo-36270: Doc: add link to traceback object reference (GH-13119)
2019-09-11 19:55:02 +02:00
Hai Shi
15f5a7527b
bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992)
...
https://bugs.python.org/issue37698
2019-09-11 10:25:55 -07:00
Marc
e24594bfe7
Doc: recursive glob ** follows symlinks to directories (GH-12918)
2019-09-11 19:17:05 +02:00
Joannah Nanjekye
8d120f75fb
bpo-28724: Add methods send_fds and recv_fds to the socket module (GH-12889)
...
The socket module now has the socket.send_fds() and socket.recv.fds() functions.
Contributed by Joannah Nanjekye, Shinya Okano (original patch)
and Victor Stinner.
Co-Authored-By: Victor Stinner <vstinner@redhat.com>
2019-09-11 19:12:21 +02:00
Hai Shi
5a56ce4a0e
bpo-37750: Add doc of PyBuffer_FromContiguous (GH-15988)
...
https://bugs.python.org/issue37750
Automerge-Triggered-By: @matrixise
2019-09-11 09:38:47 -07:00
Julien Palard
1fae844451
Doc: Fix missing negation. (GH-14640)
...
Reported by Hug Capella on docs@.
Automerge-Triggered-By: @matrixise
2019-09-11 08:55:22 -07:00
toonarmycaptain
0cc27417f2
Improve clarity of try-return-finally-return (GH-15677)
...
Clarify execution in try-return-finally-return case.
2019-09-11 17:37:13 +02:00
Lysandros Nikolaou
af636f4f91
bpo-36182: Update pathlib.Path.write_text() docs (GH-12161)
...
with the case of an existing file
2019-09-11 17:08:10 +02:00
JunWei Song
3ba51d587f
bpo-36260: Add pitfalls to zipfile module documentation ( #13378 )
...
* bpo-36260: Add pitfalls to zipfile module documentation
We saw vulnerability warning description (including zip bomb) in Doc/library/xml.rst file.
This gave us the idea of documentation improvement.
So, we moved a little bit forward :P
And the doc patch can be found (pr).
* fix trailing whitespace
* 📜 🤖 Added by blurb_it.
* Reformat text for consistency.
2019-09-11 16:04:11 +01:00
Géry Ogam
3b58a70d9c
Improve the io module documentation (GH-15099)
...
* Update io.rst
* Apply suggestions from code review
Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com>
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
2019-09-11 15:55:13 +01:00
Emily Morehouse
6357c95716
bpo-35224: Additional documentation for Assignment Expressions (GH-15935)
...
Add or update assignment expression documentation for:
- FAQ - Design
- Reference - Expressions
- Reference - Lexical Analysis
https://bugs.python.org/issue35224
Automerge-Triggered-By: @matrixise
2019-09-11 07:37:12 -07:00
Simon Willison
1abf54336f
Doc: Indicate locations of parse_qs, parse_qsl, escape (GH-14828)
...
Since they have been removed from cgi it's useful to remind people where they
can be found instead.
2019-09-11 16:25:25 +02:00
Andrew Scheller
51adfc6ed2
Update ftplib.all_errors documentation to match code ( #15026 )
...
The documentation doesn't mention the `EOFError` that https://github.com/python/cpython/blob/master/Lib/ftplib.py#L66 includes
2019-09-11 16:18:00 +02:00
Raymond Hettinger
7117074410
bpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895)
...
* bpo-38096: Clean up the "struct sequence" / "named tuple" docs
* Fix remaining occurrences of "struct sequence"
* Repair a user visible docstring
2019-09-11 15:17:32 +01:00
Xtreak
7b69069e9a
bpo-37651: Document CancelledError is now a subclass of BaseException (GH-15950)
...
https://bugs.python.org/issue37651
Automerge-Triggered-By: @1st1
2019-09-11 07:12:51 -07:00
Anjali Bansal
97b817eae3
bpo-33187: Document ElementInclude (XInclude) support in ElementTree (GH-8861)
2019-09-11 15:09:53 +01:00
Brennan D Baraban
1660a61a10
bpo-23460: Fix documentation for decimal string :g formatting (GH-11850)
2019-09-11 15:59:37 +02:00
Joannah Nanjekye
1a53c785e6
bpo-37488 : Document a warning for datetime.utcnow() and utcfromtimestamp() (GH-15773)
...
https://bugs.python.org/issue37488
Automerge-Triggered-By: @pganssle
2019-09-11 06:58:42 -07:00
hui shang
088a09af4b
bpo-31163: Added return values to pathlib.Path instance's rename and replace methods. (GH-13582)
...
* bpo-31163: Added return values to pathlib.Path instance's rename and replace methods.
2019-09-11 14:26:49 +01:00
native-api
f9b5840fb4
bpo-33944: note about the intended use of code in .pth files (GH-10131)
...
https://bugs.python.org/issue33944
2019-09-11 06:21:04 -07:00
Andre Delfino
dc26997109
bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760)
...
https://bugs.python.org/issue33459
Automerge-Triggered-By: @matrixise
2019-09-11 06:16:11 -07:00
Géry Ogam
781266ebb6
bpo-35640: Allow passing PathLike arguments to SimpleHTTPRequestHandler (GH-11398)
2019-09-11 14:03:46 +01:00
Julien Palard
e1d455f3a3
Doc: Use walrus operator in example. (GH-15934)
2019-09-11 15:01:18 +02:00
Ashwin Ramaswami
62cf698142
bpo-35649: update http client example (GH-11441)
2019-09-11 14:41:54 +02:00
Tim Hoffmann
1a13efb7e0
Minor ReST formatting fixes in subprocess docs ( #14876 )
2019-09-11 13:26:31 +02:00
Xtreak
c78dae8d2b
bpo-35603: Add a note on difflib table header interpreted as HTML (GH-11439)
2019-09-11 13:21:30 +02:00