summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35079: Revise difflib.SequenceManager.get_matching_blocks doc (GH-10144)Terry Jan Reedy2018-10-271-3/+4
| | | Specify that blocks are non-overlapping. Change '!=' to '<'.
* bpo-35042: Use the :pep: role where a PEP is specified (#10036)Stéphane Wirtel2018-10-266-14/+14
|
* Fix a typo in asyncio-dev.rst. (GH-10133)Benjamin Peterson2018-10-261-1/+1
| | | "threadsafe"
* bpo-34789: make xml.sax.make_parser accept iterables of all types (GH-9576)Andrés Delfino2018-10-261-1/+4
|
* Simplify the warning for http.server. (#10116)Senthil Kumaran2018-10-261-4/+2
|
* bpo-34890: Make iscoroutinefunction, isgeneratorfunction and ↵Pablo Galindo2018-10-261-0/+12
| | | | | | | | | | | isasyncgenfunction work with functools.partial (GH-9903) inspect.isfunction() processes both inspect.isfunction(func) and inspect.isfunction(partial(func, arg)) correctly but some other functions in the inspect module (iscoroutinefunction, isgeneratorfunction and isasyncgenfunction) lack this functionality. This commits adds a new check in the mentioned functions in the inspect module so they can work correctly with arbitrarily nested partial functions.
* bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)Stéphane Wirtel2018-10-268-9/+9
|
* bpo-35054: Add more index entries for symbols. (GH-10064)Serhiy Storchaka2018-10-2617-12/+230
|
* bpo-35022: unittest.mock.MagicMock now also supports __fspath__ (GH-9960)Max Bélanger2018-10-251-0/+4
| | | | The MagicMock class supports many magic methods, but not __fspath__. To ease testing with modules such as os.path, this function is now supported by default.
* bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. ↵Stéphane Wirtel2018-10-251-3/+0
| | | | | (GH-10098) https://bugs.python.org/issue35038
* configparser doc: Properly label ConfigParser attributes (GH-9930)Ned Batchelder2018-10-241-3/+3
|
* importlib doc: Fix approximated import_module() code (GH-9945)orlnub1232018-10-241-1/+1
| | | The spec gets stored on modules with the __spec__ attribute, not spec.
* Use f-strings in asyncio-task code examples (GH-10035)Mariatta2018-10-241-6/+6
| | | Replace str.format with f-strings in the code examples of asyncio-task documentation.
* bpo-32797: improve documentation of linecache.getline (GH-9540)jdemeyer2018-10-241-4/+7
|
* bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523)Zsolt Cserna2018-10-231-1/+1
| | | | | | | | | | Fix the documentation of copy2, as it does not copy file ownership (user and group), only mode, mtime, atime and flags. The original text was confusing to developers as it suggested that this command is the same as 'cp -p', but according to cp(1), '-p' copies file ownership as well. Clarify which metadata is copied by shutil.copystat in its docstring.
* bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)Andrei Petre2018-10-231-5/+6
|
* bpo-35020: Link to sorting examples from list.sort() (GH-9931)Xtreak2018-10-201-1/+2
|
* bpo-34576 - Fix the formatting for security considerations in ↵Senthil Kumaran2018-10-201-5/+5
| | | | | | | | http.server.rst (#10005) * bpo-34576 - Fix the formatting for security considerations in http.server.rst * Address review comment.
* bpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736)Stéphane Wirtel2018-10-201-7/+11
|
* bpo-34983: Expose symtable.Symbol.is_nonlocal() in the symtable module (GH-9872)Pablo Galindo2018-10-201-0/+8
| | | | The symbol table was not exposing functionality to query the nonlocal symbols in a function or to check if a particular symbol is nonlocal.
* bpo-32798: Add restriction on the offset parameter for mmap.flush in the ↵Pablo Galindo2018-10-201-4/+5
| | | | | | | | docs (#5621) Add restriction on the offset parameter for mmap.flush. Explain that ALLOCATIONGRANULARITY is the same as PAGESIZE in Unix.
* 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.