summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix wording in Functional Programming HOWTO (GH-98939)partev2022-11-011-1/+1
|
* Missing PS1 prompt in tutorial example (GH-98921)Manuel Kaufmann2022-11-011-2/+3
|
* gh-98692: Enable treating shebang lines as executables in py.exe launcher ↵Steve Dower2022-10-311-1/+7
| | | | (GH-98732)
* Fix typo in sorting HOWTO (#98888)partev2022-10-311-1/+1
|
* Doc: Fix sphinx-lint issues (GH-98911)Julien Palard2022-10-311-1/+1
| | | They were introduced right between GH-98441 and GH-98408.
* gh-98576: Fix types in dataclass.InitVar example (gh-98577)Shantanu2022-10-311-2/+2
|
* gh-98410: move getbufferproc and releasebufferproc to buffer.h (#31158)David Hewitt2022-10-311-0/+2
| | | This adds them to the Limited API.
* gh-97966: Update uname docs to clarify the special nature of the platform ↵Jason R. Coombs2022-10-301-4/+8
| | | | attribute and to indicate when it became late-bound. (#97972)
* glossary.rst: Fix typo in package definition (GH-98865)ab2022-10-291-1/+1
| | | | | | This is a tiny typo fix of package definition in glossary. According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly. Automerge-Triggered-By: GH:AlexWaygood
* Fix typo in docs (GH-98863)Yuvi Panda2022-10-291-1/+1
|
* gh-93358: Fix python-config docs for how to embed Python (#98649)Erlend E. Aasland2022-10-291-6/+6
|
* dataclasses docs: consistent indentation (4 spaces) in examples (#98855)FC Stegerman2022-10-291-16/+16
|
* gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)Mateusz2022-10-281-0/+2
|
* gh-84538: add strict argument to pathlib.PurePath.relative_to (GH-19813)domragusa2022-10-282-6/+33
| | | | | | | | | | | | | | | | | | | | | | | By default, :meth:`pathlib.PurePath.relative_to` doesn't deal with paths that are not a direct prefix of the other, raising an exception in that instance. This change adds a *walk_up* parameter that can be set to allow for using ``..`` to calculate the relative path. example: ``` >>> p = PurePosixPath('/etc/passwd') >>> p.relative_to('/etc') PurePosixPath('passwd') >>> p.relative_to('/usr') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pathlib.py", line 940, in relative_to raise ValueError(error_message.format(str(self), str(formatted))) ValueError: '/etc/passwd' does not start with '/usr' >>> p.relative_to('/usr', strict=False) PurePosixPath('../etc/passwd') ``` https://bugs.python.org/issue40358 Automerge-Triggered-By: GH:brettcannon
* Fix typo in contextvars docs (#98823)cburroughs2022-10-281-1/+1
|
* `argparse` docs: normalize constant references (#98765)Skip Montanaro2022-10-281-5/+6
|
* gh-98657: [docs] `array.typecodes` is a module-level attribute (#98729)Nikita Sobolev2022-10-281-3/+8
| | | | | * gh-98657: [docs] `array.typecodes` is a module-level attribute * Update array.rst
* gh-65002: Make note that null bytes are used to pad bytes (#98635)Stanley2022-10-281-1/+4
|
* gh-96143: Improve perf profiler docs (#96445)Erlend E. Aasland2022-10-274-38/+102
|
* GH-96793: Change `FOR_ITER` to not pop the iterator on exhaustion. (GH-96801)Mark Shannon2022-10-271-1/+12
| | | | Change FOR_ITER to have the same stack effect regardless of whether it branches or not. Performance is unchanged as FOR_ITER (and specialized forms jump over the cleanup code).
* gh-98586: Add vector call APIs to the Limited API (GH-98587)Wenzel Jakob2022-10-271-0/+3
| | | Expose the facilities for making vector calls through Python's limited API.
* Python documents state elsewhere that a comma is not an operator, so … ↵Gerardwx2022-10-271-1/+1
| | | | | (GH-98736) …calling it an operator here is confusing. See https://docs.python.org/3/reference/lexical_analysis.html#operators and https://docs.python.org/3/faq/programming.html#id22.
* gh-98608: Change _Py_NewInterpreter() to _Py_NewInterpreterFromConfig() ↵Eric Snow2022-10-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | (gh-98609) (see https://github.com/python/cpython/issues/98608) This change does the following: 1. change the argument to a new `_PyInterpreterConfig` struct 2. rename the function to `_Py_NewInterpreterFromConfig()`, inspired by `Py_InitializeFromConfig()` (takes a `_PyInterpreterConfig` instead of `isolated_subinterpreter`) 3. split up the boolean `isolated_subinterpreter` into the corresponding multiple granular settings * allow_fork * allow_subprocess * allow_threads 4. add `PyInterpreterState.feature_flags` to store those settings 5. add a function for checking if a feature is enabled on an opaque `PyInterpreterState *` 6. drop `PyConfig._isolated_interpreter` The existing default (see `Py_NewInterpeter()` and `Py_Initialize*()`) allows fork, subprocess, and threads and the optional "isolated" interpreter (see the `_xxsubinterpreters` module) disables all three. None of that changes here; the defaults are preserved. Note that the given `_PyInterpreterConfig` will not be used outside `_Py_NewInterpreterFromConfig()`, nor preserved. This contrasts with how `PyConfig` is currently preserved, used, and even modified outside `Py_InitializeFromConfig()`. I'd rather just avoid that mess from the start for `_PyInterpreterConfig`. We can preserve it later if we find an actual need. This change allows us to follow up with a number of improvements (e.g. stop disallowing subprocess and support disallowing exec instead). (Note that this PR adds "private" symbols. We'll probably make them public, and add docs, in a separate change.)
* gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (#98720)Erlend E. Aasland2022-10-261-5/+5
|
* gh-98644: point people to tomllib from configparser’s docs (#98645)Philipp A2022-10-261-4/+8
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-98348: Mention ReferenceError in weakref.proxy documentation (#98355)fancidev2022-10-261-0/+3
|
* docs: Change links to label refs (#98454)Stanley2022-10-269-9/+14
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-77753: Add example for values that compare equal in stdtypes (#98497)Stanley2022-10-261-5/+3
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-84747: Add `async for` comment for StreamReader (#98633)Stanley2022-10-261-1/+2
|
* fix a typo in whatsnew/3.11 (#98603)July Tikhonov2022-10-251-1/+1
|
* Fix typos in deprecation section of 3.11 What's New (#98628)Jacob Walls2022-10-251-3/+3
|
* gh-97937: dis docs: add adaptive=False (#97939)Jelle Zijlstra2022-10-251-13/+29
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple ↵Eclips42022-10-251-1/+1
| | | | example (#98605)
* gh-98623: Fix base classes in `typing.rst` (#98626)Nikita Sobolev2022-10-251-2/+2
|
* gh-95913: Prepare Improved Modules in 3.11 WhatsNew for final edits (#98631)C.A.M. Gerlach2022-10-251-22/+91
| | | | | | | | | * Add two line breaks and ref target labels to remaining subsections * Fix a few out of order Improved Modules * Fix a few minor textual formatting issues in sections * Fix remaining Sphinx warnings in the Improved Modules section
* gh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports ↵Nikita Sobolev2022-10-241-72/+78
| | | | subscripting" (#98508)
* GH-91635: clarify docs about closing of transport in asyncio (#98563)Kumar Aditya2022-10-241-1/+2
|
* gh-98500: Fix typing docs for `*View` classes (#98511)Nikita Sobolev2022-10-241-4/+4
|
* gh-95913: Fix grammar for SpooledTemporaryFile 3.11 whatsnew entry (#98604)Jelle Zijlstra2022-10-241-1/+1
| | | Followup from #98312.
* gh-97909: Mark up members of PyMemberDef (GH-98473)Johnny115022022-10-241-21/+21
| | | Co-authored-by: T <tnie@tuta.io>
* gh-95913: Fix, sort & expand pending removal sect in 3.11 WhatsNew (GH-98583)C.A.M. Gerlach2022-10-241-20/+43
| | | | | | | | | | | | * Fix names/references of pending removal APIs * Sort list of APIs pending removal alphabetically * Add missing modules/submodules pending removal in 3.12 * Add table of unittest deprecated aliases to 3.11 What's New Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (#98312)C.A.M. Gerlach2022-10-241-0/+13
|
* gh-95913: Edit & expand Deprecated section of 3.11 WhatsNew (#98581)C.A.M. Gerlach2022-10-241-82/+108
| | | | | | | * Refine Sphinx syntax and grammar/phrasing in Deprecated section items * Organize into lang/builtins, modules & stdlib sections * Convert PEP 594 module list into a grid to not waste as much space * Add importlib.resources deprecated functions to section
* gh-95913: Edit, expand & format Bytecode sect in 3.11 WhatsNew (GH-98559)C.A.M. Gerlach2022-10-241-39/+81
|
* gh-95913: Edit, link and sort 3.11 WhatsNew Build section (#98588)C.A.M. Gerlach2022-10-241-57/+67
|
* gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (#98585)C.A.M. Gerlach2022-10-241-30/+31
|
* gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (#98584)C.A.M. Gerlach2022-10-241-58/+61
|
* gh-95913 Add string section to Whatsnew with new Template methods (#98311)C.A.M. Gerlach2022-10-241-0/+12
|
* gh-91524: Speed up the regular expression substitution (#91525)Serhiy Storchaka2022-10-231-0/+5
| | | | | | | | | Functions re.sub() and re.subn() and corresponding re.Pattern methods are now 2-3 times faster for replacement strings containing group references. Closes #91524 Primarily authored by serhiy-storchaka Serhiy Storchaka Minor-cleanups-by: Gregory P. Smith [Google] <greg@krypto.org>
* gh-98561: Fix a typo in typing (GH-98562)Omkaar2022-10-231-1/+1
|