summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* Fix and improve `asyncio.run()` docs (GH-16403)Kyle Stanley2019-10-011-4/+2
|
* bpo-38242: Revert "bpo-36889: Merge asyncio streams (GH-13251)" (#16482)Yury Selivanov2019-09-304-532/+74
| | | See https://bugs.python.org/issue38242 for more details
* bpo-38163: Child mocks detect their type as sync or async (GH-16471)Lisa Roach2019-09-301-1/+27
|
* bpo-37408: Precise that Tarfile "format" argument only concerns writing. ↵Pascal Chambon2019-09-281-2/+3
| | | | (GH-14389)
* bpo-38244: [Documentation] Fix unreliable link to sever in ftplib.rst (#16319)Prateek Nayak2019-09-261-1/+1
|
* Doc: Use the `with` statement in the first example of the ftplib doc. (GH-16271)Stéphane Wirtel2019-09-261-1/+2
|
* bpo-38112: Compileall improvements (GH-16012)Lumír 'Frenzy' Balhar2019-09-261-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Raise the limit of maximum path depth to actual recursion limit * Add posibilities to adjust a path compiled in .pyc file. Now, you can: - Strip a part of path from a beggining of path into compiled file example "-s /test /test/build/real/test.py" → "build/real/test.py" - Append some new path to a beggining of path into compiled file example "-p /boo real/test.py" → "/boo/real/test.py" You can also use both options in the same time. In that case, striping is done before appending. * Add a possibility to specify multiple optimization levels Each optimization level then leads to separated compiled file. Use `action='append'` instead of `nargs='+'` for the -o option. Instead of `-o 0 1 2`, specify `-o 0 -o 1 -o 2`. It's more to type, but much more explicit. * Add a symlinks limitation feature This feature allows us to limit byte-compilation of symbolic links if they are pointing outside specified dir (build root for example).
* bpo-38255: super() can search attributes as well as methods (GH-16368)Raymond Hettinger2019-09-251-0/+4
| | | Improvement suggested by Géry Ogam.
* bpo-38260: Add Docs on asyncio.run (GH-16337)Emmanuel Arias2019-09-251-0/+12
| | | | | | | | | | | | | Add docs about return and raise exception on asyncio.run https://bugs.python.org/issue38260 Automerge-Triggered-By: @asvetlov
* bpo-38136: Updates await_count and call_count to be different things (GH-16192)Lisa Roach2019-09-241-24/+13
|
* bpo-38237: Make pow's arguments have more descriptive names and be keyword ↵Ammar Askar2019-09-211-9/+15
| | | | | | | | | | | | passable (GH-16302) Edit: `math.pow` changes removed on Mark's request. https://bugs.python.org/issue38237 Automerge-Triggered-By: @rhettinger
* Doc: Remove provisional note for asyncio.run() (GH-16310)Kyle Stanley2019-09-201-2/+0
| | | | | Based on a comment from @asvetlov https://github.com/python/cpython/pull/15735#discussion_r323619076, this removes the provisional note for ``asyncio.run()`` in the documentation. Automerge-Triggered-By: @1st1
* bpo-37937: Mention frame.f_trace in sys.settrace docs (GH-15439)Ram Rachum2019-09-201-0/+11
| | | | | | Mention frame.f_trace in sys.settrace docs, as well as the fact you still need to call `sys.settrace` to enable the tracing machinery before setting `frame.f_trace` will have any effect.
* bpo-37353: Updated parser note about source code compatibility(GH-14277)Prateek Nayak2019-09-201-1/+2
|
* bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947)Lisa Roach2019-09-201-14/+17
|
* bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() ↵Kyle Stanley2019-09-192-2/+16
| | | | (GH-15735)
* Doc: Clarify dict equality irrespective of ordering. (GH-16266)toonarmycaptain2019-09-191-1/+1
|
* bpo-38203: faulthandler.dump_traceback_later() is always available (GH-16249)Victor Stinner2019-09-181-2/+4
| | | | dump_traceback_later() and cancel_dump_traceback_later() functions of the faulthandler module are always available since Python 3.7.
* Doc: Fix grammar/spelling in ssl.VERIFY_CRL_CHECK_LEAF docs (GH-16221)Jörn Heissler2019-09-171-2/+2
|
* bpo-38192: Fix remaining passing of "loop" in the protocol examples (GH-16202)Hrvoje Nikšić2019-09-171-5/+6
| | | | | | | See https://bugs.python.org/issue38192 . https://bugs.python.org/issue38192
* Doc: Add list(dict) in stdtypes library (GH-16209)Adorilson Bezerra2019-09-171-0/+4
|
* bpo-28556: Update the opening note in typing docs (GH-16204)Ivan Levkivskyi2019-09-161-4/+3
| | | | 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.
* bpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159)Hrvoje Nikšić2019-09-151-7/+7
| | | https://bugs.python.org/issue38178
* Doc: Fix link to window.getch in curses documentation (GH-16132)Anthony Sottile2019-09-141-1/+1
|
* Doc: fcntl.lockf() is more powerful than written (GH-6750)Eric O. LEBIGOT (EOL)2019-09-131-2/+2
|
* bpo-32790: Add info about alt format using # for 'g' in chart (GH-6624)bchhabra24902019-09-131-1/+2
|
* bpo-26468: Doc: improve the documentation of shutil.copy2 when it can fail. ↵Windson yang2019-09-131-1/+2
| | | | (GH-13765)
* Doc: Improve consistency of os.path.normcase with other os.path functions ↵Kexuan Sun2019-09-131-2/+0
| | | | (GH-14004)
* bpo-12707: deprecate info(), geturl(), getcode() methods in favor of ↵Ashwin Ramaswami2019-09-132-15/+63
| | | | | headers, url, and status properties for HTTPResponse and addinfourl (GH-11447) Co-Authored-By: epicfaace <aramaswamis@gmail.com>
* bpo-36889: Document Stream class and add docstrings (GH-14488)Xtreak2019-09-132-11/+204
| | | | | | | | | | | * This just copies the docs from `StreamWriter` and `StreamReader`. * Add docstring for asyncio functions. https://bugs.python.org/issue36889 Automerge-Triggered-By: @asvetlov
* bpo-8538: Add support for boolean actions to argparse (GH-11478)Rémi Lapeyre2019-09-131-3/+16
| | | Co-Authored-By: remilapeyre <remi.lapeyre@henki.fr>
* Doc: Add example snippet for str.isupper() (GH-14681)Kishore Vancheeshwaran2019-09-131-0/+10
|
* bpo-9216: Add usedforsecurity to hashlib constructors (GH-16044)Christian Heimes2019-09-131-4/+13
| | | | | 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
* bpo-36046: Add user and group parameters to subprocess (GH-11950)Patrick McLean2019-09-121-2/+30
| | | | | | | | | | | | | | * 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.
* bpo-37908: Add an example of ArgumentParser.exit() (GH-15455)Hai Shi2019-09-121-1/+8
| | | Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
* bpo-36373: Deprecate explicit loop in task and subprocess API (GH-16033)Andrew Svetlov2019-09-122-10/+31
|
* bpo-35325: Doc: imp.find_module() return value documentation discrepancy ↵Windson yang2019-09-121-6/+5
| | | | | | (GH-11040)
* bpo-35685: Add examples of unittest.mock.patch.dict usage (GH-11456)Emmanuel Arias2019-09-121-4/+27
|
* bpo-36675: Remove obsolete code. (GH-16024)Julien Palard2019-09-121-2/+0
| | | | Does no longer work since Sphinx moved the trim_doctest_flag option in the configuration.
* bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797)Christian Heimes2019-09-121-8/+14
| | | | | Prefer client or TLSv1_2 in examples Signed-off-by: Christian Heimes <christian@python.org>
* bpo-9938: Add optional keyword argument exit_on_error to ↵Hai Shi2019-09-121-1/+29
| | | | | | | | | | | | argparse.ArgumentParser (GH-15362) Co-Authored-by: Xuanji Li <xuanji@gmail.com> https://bugs.python.org/issue9938 Automerge-Triggered-By: @matrixise
* bpo-13927: time.ctime and time.asctime return string explantion (GH-11303)Harmandeep Singh2019-09-121-7/+15
| | | | | | | | * 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
* Doc: Add example of dict() function with positional and keyword arguments ↵Georgy Frolov2019-09-121-1/+2
| | | | (GH-15220)
* bpo-18578: Rename and document test.bytecode_helper as ↵Joannah Nanjekye2019-09-121-0/+30
| | | | | test.support.bytecode_helper (GH-15168) Rename and document test.bytecode_helper as test.support.bytecode_helper
* Correct typos in the codecs module documentation (#15135)Géry Ogam2019-09-121-60/+61
|
* bpo-36270: Doc: add link to traceback object reference (GH-13119)Björn Meier2019-09-111-1/+1
|
* Doc: recursive glob ** follows symlinks to directories (GH-12918)Marc2019-09-111-2/+3
|
* bpo-28724: Add methods send_fds and recv_fds to the socket module (GH-12889)Joannah Nanjekye2019-09-111-0/+23
| | | | | | | 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>
* Doc: Fix missing negation. (GH-14640)Julien Palard2019-09-111-2/+2
| | | | | | | Reported by Hug Capella on docs@. Automerge-Triggered-By: @matrixise
* bpo-36182: Update pathlib.Path.write_text() docs (GH-12161)Lysandros Nikolaou2019-09-111-0/+3
| | | with the case of an existing file