summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32236: open() emits RuntimeWarning if buffering=1 for binary mode (GH-4842)Alexey Izbyshev2018-10-201-3/+3
| | | | | | | | | If buffering=1 is specified for open() in binary mode, it is silently treated as buffering=-1 (i.e., the default buffer size). Coupled with the fact that line buffering is always supported in Python 2, such behavior caused several issues (e.g., bpo-10344, bpo-21332). Warn that line buffering is not supported if open() is called with binary mode and buffering=1.
* queue doc: Clarify that the simple FIFO queue is SimpleQueue (GH-8372)Julien Palard2018-10-191-2/+2
|
* unittest.mock doc: Fix references to recursive seal of Mocks (GH-9028)Mario Corchero2018-10-191-4/+5
| | | | | The docs in `library/unittest.mock` have been updated to remove confusing terms about submock and be explicit about the behavior expected.
* Use dict unpacking in functools.partial() docs (GH-9412)Sergey Fedoseev2018-10-191-2/+1
|
* bpo-26441: Remove documentation for deleted to_splittable and ↵Braden Groom2018-10-191-33/+0
| | | | from_splittable methods (#9865)
* Updated documentation on logging.debug(). (GH-9946)Vinay Sajip2018-10-181-2/+2
|
* Add missing comma to wsgiref doc (GH-9932)Cheryl Sabella2018-10-171-1/+1
|
* Doc: Fix is_prime (GH-9909)Julien Palard2018-10-171-0/+4
|
* In email docs, correct spelling of foregoing (#9856)Cheryl Sabella2018-10-161-1/+1
|
* In email.parser in message_from_bytes, update `strict` to `policy` (#9854)Cheryl Sabella2018-10-161-1/+1
| | | According to the versionchanged note, the `strict` argument was removed in 3.3 and `policy` was added, but the name of the argument in the paragraph wasn't updated.
* bpo-23554: Change echo server example class name from ↵Braden Groom2018-10-151-2/+2
| | | | EchoServerClientProtocol to EchoServerProtocol (GH-9859)
* fix dangling keyfunc examples in documentation of heapq and sorted (#1432)Wolfgang Maier2018-10-152-7/+7
| | | | | | * fix dangling mention of key=str.lower in heapq doc * Fix dangling mention of keyfunc example for sorted()
* bpo-34844: logging.Formatter enhancement - Ensure style and format string ↵BNMetrics2018-10-152-0/+9
| | | | matches in logging.Formatter (GH-9703)
* bpo-22872: multiprocessing.Queue's put() and get() now raise ValueError if ↵Zackery Spytz2018-10-131-0/+8
| | | | | | | the queue is closed. (GH-9010) Previously, put() and get() would raise AssertionError and OSError, respectively.
* bpo-11233: Create availability directive for documentation (GH-9692)Cheryl Sabella2018-10-1221-268/+295
| | | | | | Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <georg@python.org>
* bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)Stéphane Wirtel2018-10-125-68/+199
|
* bpo-34576 warn users on security for http.server (#9720)Felipe Rodrigues2018-10-111-0/+8
| | | | It was proposed to add an warning for http.server regarding security issues. The wording was provided at bpo-26005 by @orsenthil
* bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH ↵Elvis Pranskevichus2018-10-102-8/+16
| | | | | | | | | | | | | | | | | | | | (GH-9607) Unconditional forcing of ``CHECKED_HASH`` invalidation was introduced in 3.7.0 in bpo-29708. The change is bad, as it unconditionally overrides *invalidation_mode*, even if it was passed as an explicit argument to ``py_compile.compile()`` or ``compileall``. An environment variable should *never* override an explicit argument to a library function. That change leads to multiple test failures if the ``SOURCE_DATE_EPOCH`` environment variable is set. This changes ``py_compile.compile()`` to only look at ``SOURCE_DATE_EPOCH`` if no explicit *invalidation_mode* was specified. I also made various relevant tests run with explicit control over the value of ``SOURCE_DATE_EPOCH``. While looking at this, I noticed that ``zipimport`` does not work with hash-based .pycs _at all_, though I left the fixes for subsequent commits.
* bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777)Mayank Asthana2018-10-101-2/+7
| | | | :meth:`mimetypes.MimeTypes.guess_type` now accepts :term:`path-like object` in addition to url strings.
* bpo-34913: Document gzip command line interface (GH-9782)Stéphane Wirtel2018-10-101-0/+35
|
* bpo-34911: Added support for secure websocket cookies (GH-9734)Paul Bailey2018-10-081-4/+6
|
* Use double quote instead of backtick to clarify Ellipsis constant (GH-9754)Xtreak2018-10-081-3/+2
|
* bpo-33014: Clarify str.isidentifier docstring (GH-6088)Sanyam Khurana2018-10-081-2/+13
| | | | | | * bpo-33014: Clarify str.isidentifier docstring * bpo-33014: Add code example in isidentifier documentation
* bpo-34901: add isolated (-I) flag to sys.flags (GH-9708)Danish Prakash2018-10-071-0/+4
| | | https://bugs.python.org/issue34901
* Correct grammar mistake in re.rst. (GH-9745)Andrés Delfino2018-10-061-1/+1
|
* bpo-34158: Documentation UTC offset update (GH-8377)Christophe Nanteuil2018-10-051-20/+21
| | | | | | | | | | | | | | | | | | | | | * Documentation of UTC offset update Since changes in the UTC offset that allows sub-minute offsets, the documentation needs update: - "%z" format code documentation update Karthikeyan Singaravelan commented on bugs.python.org: Added as part of 018d353c1c8c87767d2335cd884017c2ce12e045 and a fix regarding duplicate words for that part was added at bac2d5ba30339298db7d4caa9c8cd31d807cf081. Relevant format string at https://github.com/python/cpython/pull/2896/files#diff-25e2d173c84057d069b7890450714eddR214. Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/files#diff-acc40bec51c7de832de3361db3edae52R309. Table at https://docs.python.org/3.7/library/datetime.html#strftime-and-strptime-behavior could also be updated with microseconds being optional in the second column %z | UTC offset in the form ±HHMM[SS] (empty string if the object is naive). | (empty), +0000, -0400, +1030 - isoformat documentation update According to me, needs confirmation: Relevant format string at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714eddR176 Relevant test case at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714edd * From Martin Panter: some style improvment; From @pganssle: using f for fractional part of seconds in all file.
* bpo-34825: Add more entries to os to pathlib reference table (GH-9608)Xtreak2018-10-051-20/+27
| | | | | | | | | | | | | | | | | | The added functions are as below : | os module | Pathlib | | ------------- | ------------- | | os.chmod | Path.chmod | | os.mkdir | Path.mkdir | | os.rename | Path.rename | | os.replace | Path.replace | | os.rmdir | Path.rmdir | | os.remove, os.unlink | Path.unlink | | os.path.samefile | Path.samefile | Thanks https://bugs.python.org/issue34825
* bpo-34906: Doc: Fix typos (GH-9712)Stéphane Wirtel2018-10-053-3/+3
|
* Make it clear that the msg argument to ↵Benjamin Peterson2018-10-031-3/+3
| | | | | assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680) A follow up to be4e5b89204283a62e369439025f00362d0424f6.
* Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)Benjamin Peterson2018-10-021-1/+1
|
* bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9662)Ezio Melotti2018-10-021-1/+1
|
* bpo-34476: Document that asyncio.sleep() always suspends. (#9643)Hrvoje Nikšić2018-10-011-0/+3
|
* Fix name of argument in docs for functools.reduce(). (#9634)Brendan Jurd2018-10-011-6/+6
|
* bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123)Zackery Spytz2018-09-291-5/+6
| | | Switch "list" with "iterable" to match with the implementation.
* bpo-31370: Remove references to threadless builds (#8805)Zackery Spytz2018-09-291-3/+1
| | | Support for threadless builds was removed in a6a4dc81.
* Fix astuple in dataclasses documentation (GH-9631)방성범 (Bang Seongbeom)2018-09-291-1/+1
|
* bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623)Victor Stinner2018-09-283-17/+0
| | | | | | | | | | Since ProactorEventLoop is now the default in 3.8, remove examples using it explicitly on Windows. https://bugs.python.org/issue34687
* bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)Yury Selivanov2018-09-271-2/+1
|
* bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445)Serhiy Storchaka2018-09-271-4/+11
|
* bpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595)Tal Einat2018-09-261-1/+1
|
* Clarify that Type[SomeTypeVar] is legal (#9585)Michael Lee2018-09-261-3/+6
| | | | | | Currently, the docs state that when doing `Type[X]`, X is only allowed to be a class, a union of classes, and Any. This pull request amends that sentence to clarify X may also be a typevar (or a union involving classes, Any, and TypeVars).
* bpo-31425: Expose AF_QIPCRTR in socket module (GH-3706)Bjorn Andersson2018-09-261-0/+14
| | | | | | The AF_QIPCRTR address family was introduced in Linux v4.7. Co-authored-by: Bjorn Andersson <bjorn.andersson@linaro.org>
* bpo-34334: Don't log traceback twice in QueueHandler (GH-9537)Cheryl Sabella2018-09-251-3/+3
|
* asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9579)Yury Selivanov2018-09-251-5/+5
|
* bpo-5950: Support reading zips with comments in zipimport (#9548)Zackery Spytz2018-09-251-1/+2
| | | * bpo-5950: Support reading zips with comments in zipimport
* bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. ↵Yury Selivanov2018-09-251-4/+36
| | | | (GH-9543)
* bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538)Victor Stinner2018-09-252-11/+19
|
* bpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372)Joe Pamer2018-09-251-2/+5
| | | https://bugs.python.org/issue32557
* Fix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533)Joni Kähärä2018-09-251-1/+1
|
* bpo-34659: Adds initial kwarg to itertools.accumulate() (GH-9345)Lisa Roach2018-09-241-9/+21
|