Prateek Nayak
062cfe3b11
bpo-37353: Updated parser note about source code compatibility(GH-14277)
2019-09-20 08:55:26 -05:00
Lisa Roach
8b03f943c3
bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947)
2019-09-19 21:04:18 -07:00
Kyle Stanley
9fdc64cf12
bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() (GH-15735)
2019-09-19 15:47:22 +03:00
toonarmycaptain
3171d67a6a
Doc: Clarify dict equality irrespective of ordering. (GH-16266)
2019-09-19 07:51:23 +02:00
Victor Stinner
0a963fbc9c
bpo-38203: faulthandler.dump_traceback_later() is always available (GH-16249)
...
dump_traceback_later() and cancel_dump_traceback_later() functions of
the faulthandler module are always available since Python 3.7.
2019-09-18 14:15:10 +02:00
Jörn Heissler
219fb9d65e
Doc: Fix grammar/spelling in ssl.VERIFY_CRL_CHECK_LEAF docs (GH-16221)
2019-09-17 12:42:30 +02:00
Hrvoje Nikšić
5d359cc62e
bpo-38192: Fix remaining passing of "loop" in the protocol examples (GH-16202)
...
See https://bugs.python.org/issue38192 .
https://bugs.python.org/issue38192
2019-09-17 00:16:43 -07:00
Adorilson Bezerra
63dedef48b
Doc: Add list(dict) in stdtypes library (GH-16209)
2019-09-17 06:57:14 +02:00
Ivan Levkivskyi
81528ba2e8
bpo-28556: Update the opening note in typing docs (GH-16204)
...
This PR replaces the old note mentioning that `typing` is a provisional module with a new one mentioning types are not enforced at runtime. I am not sure if there was any official announcement about making `typing` non-provisional, but _de-facto_ no new features were added during Python 3.7, and no backwards incompatible changes were made except for few small things that were considered bugs.
2019-09-16 23:04:06 +01:00
Hrvoje Nikšić
c717c73fa3
bpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159)
...
https://bugs.python.org/issue38178
2019-09-15 10:06:02 -07:00
Anthony Sottile
a26ace19bd
Doc: Fix link to window.getch in curses documentation (GH-16132)
2019-09-14 07:17:09 +01:00
Eric O. LEBIGOT (EOL)
77cd0ceab2
Doc: fcntl.lockf() is more powerful than written (GH-6750)
2019-09-13 18:32:28 +01:00
bchhabra2490
d44542f9a2
bpo-32790: Add info about alt format using # for 'g' in chart (GH-6624)
2019-09-13 18:20:21 +01:00
Windson yang
9585f46b97
bpo-26468: Doc: improve the documentation of shutil.copy2 when it can fail. (GH-13765)
2019-09-13 14:36:09 +01: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
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
Andrew Svetlov
a488879cba
bpo-36373: Deprecate explicit loop in task and subprocess API (GH-16033)
2019-09-12 15:40:40 +03: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
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
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
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
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
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