Serhiy Storchaka
e3ef400be7
gh-74696: Pass root_dir to custom archivers which support it (GH-94251)
...
Co-authored-by: Éric <merwok@netwok.org>
2022-10-05 12:48:59 +03:00
Jia Junjie
4b83cd0b22
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs ( #97662 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-05 10:47:54 +02:00
Guido van Rossum
8079bef56f
GH-96704: Add {Task,Handle}.get_context(), use it in call_exception_handler() ( #96756 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-04 23:49:10 -07:00
Athos Ribeiro
0ceafa7fa4
Add re.VERBOSE flag documentation example ( #97678 )
...
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
2022-10-04 17:39:42 -07:00
Adam Turner
a0f5599aac
gh-93738: Documentation C syntax (Use `c:struct`) ( #97772 )
...
Use `c:struct`
2022-10-04 16:26:14 -07:00
Adam Turner
0bf6a617ed
gh-93738: Documentation C syntax (:c:type:`PyObject` -> :c:expr:`PyObject`) ( #97776 )
...
:c:type:`PyObject` -> :c:expr:`PyObject`
2022-10-04 16:13:03 -07:00
cousteau
ff28d8926d
gh-88355: Fix backslashes in AF_PIPE ( #96543 )
...
Fix backslashes in AF_PIPE (#88355 )
The correct syntax for AF_PIPE addresses is `\\.\pipe\blahblah`, not `\.\pipe{blahblah}`, but the syntax markup messed up the backslashes.
2022-10-04 15:54:03 -07:00
Ev2geny
743453a554
gh-58451: Add optional delete_on_close parameter to NamedTemporaryFile (GH-97015)
2022-10-04 23:37:33 +01:00
Daniel Giger
7acb93f0d4
gh-96448: fix documentation for _thread.lock.acquire ( #96449 )
...
* fix documentation for _thread.lock.acquire
* update formatting of _thread.lock.acquire() doc
2022-10-04 15:18:04 -07:00
Inada Naoki
87679a6e60
gh-90301: Doc: Add references to PEP 686 ( #96816 )
...
Doc: Add references to PEP 686.
2022-10-04 15:04:44 -07:00
Kumar Aditya
53503ff60e
GH-82604: fix docs about configuring selector ( #97755 )
2022-10-04 09:45:37 -07:00
Rohan Shah
d053c47bfd
Minor grammar changes to http.client docs ( #96221 )
...
Minor grammar changes
2022-10-03 16:19:39 -07:00
Géry Ogam
0c91a12511
Update http.client.rst ( #24803 )
...
* Update http.client.rst
* Apply suggestions from code review
Co-authored-by: Éric <merwok@netwok.org>
* Update http.client.rst
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Senthil Kumaran <senthil@python.org>
2022-10-03 16:18:36 -07:00
Ivan Kapeykin
d78aa4e11a
multiprocessing docs: Remove extra option ELLIPSIS from section with code ( #96625 )
2022-10-03 15:41:08 -07:00
Boris Verkhovskiy
0ea8b925d0
Document that MozillaCookieJar works for curl's cookie files ( #91852 )
...
MozillaCookieJar works for curl's cookies
2022-10-03 15:07:54 -07:00
Victor Stinner
64fe343717
gh-97681: Remove Tools/demo/ directory ( #97682 )
...
Remove the Tools/demo/ directory which contained old demo scripts. A
copy can be found in the old-demos project:
https://github.com/gvanrossum/old-demos
Remove the following old demo scripts:
* beer.py
* eiffel.py
* hanoi.py
* life.py
* markov.py
* mcast.py
* queens.py
* redemo.py
* rpython.py
* rpythond.py
* sortvisu.py
* spreadsheet.py
* vector.py
Changes:
* Remove a reference to the redemo.py script in the regex howto
documentation.
* Remove a reference to the removed Tools/demo/ directory in the
curses documentation.
* Update PC/layout/ to remove the reference to Tools/demo/ directory.
2022-10-03 17:09:02 +02:00
annonm
e6f9ec5c03
Fix typo in unittest docs ( #97742 )
2022-10-03 06:35:40 -07:00
Kumar Aditya
9151bbefea
GH-85447: Clarify docs about awaiting future multiple times ( #97738 )
2022-10-02 15:16:51 -07:00
Gregory P. Smith
8baef8ae36
gh-95588: Drop the safety claim from `ast.literal_eval` docs. ( #95919 )
...
It was never really safe and this claim conflicts directly with the big warning in the docs about it being able to crash the interpreter.
2022-10-01 17:55:40 -07:00
Will Hawkins
bd7d0e875e
Fix capitalization of Unix in documentation ( #96913 )
2022-10-01 16:41:06 -07:00
Łukasz Langa
f00645d5db
gh-90908: Document asyncio.Task.cancelling() and asyncio.Task.uncancel() ( #95253 )
...
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-10-01 10:42:36 -07:00
Gregory P. Smith
b05dd79649
gh-87597: Document TimeoutExpired.stdout & .stderr types ( #97685 )
...
This documents the behavior that has always been the case since timeout
support was introduced in Python 3.3.
2022-09-30 10:45:47 -07:00
Jeff Allen
9a11ed8e50
gh-96397: Document that attributes need not be identifiers ( #96454 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-09-29 16:02:27 -07:00
Stanley
c759944f16
gh-52597: Add position-only markers for os functions ( #94735 )
2022-09-28 18:06:50 -07:00
Kumar Aditya
575a253b5c
GH-82448: Add thread timeout for loop.shutdown_default_executor ( #97561 )
...
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2022-09-28 10:39:42 -07:00
Kumar Aditya
9a404b173e
fixup policy docs ( #97618 )
2022-09-28 10:34:49 -07:00
C.A.M. Gerlach
cc0f3a10f0
gh-96377: Update asyncio policy doc intro paras to be clear and accurate ( #97603 )
...
Also fix up some cross-references in the asyncio docs.
2022-09-27 16:47:14 -07:00
Serhiy Storchaka
dd53b79de0
gh-96959: Update more HTTP links (GH-97536)
...
Use HTTPS for documents which are available by both HTTP and HTTPS
links, but there is no redirection from HTTP to HTTPS or vice versa.
2022-09-27 14:08:11 +03:00
Kumar Aditya
d68c37c0d0
GH-65046: Fix docs about logging in `asyncio` ( #97559 )
...
Explain that logging should not use network I/O.
2022-09-26 15:27:15 -07:00
Serhiy Storchaka
db39050396
gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)
2022-09-24 14:38:53 +03:00
Steve Dower
a4ac14faa5
gh-77171: Fixes SubFormat check to compare the entire value. Add docs (GH-97509)
2022-09-23 16:08:21 +01:00
Harry
ec403536f1
include OrderedDict import in TimeBoundedLRU example (GH-96962)
2022-09-22 10:58:19 -05:00
partev
b4f5f07d07
Doc: fix link redirect (GH-96606)
...
"Hyperbolic_function" -> "Hyperbolic_functions"
2022-09-21 21:47:46 +02:00
Vinay Sajip
6ad47b41a6
gh-96727: Document restrictions on Handler.emit() with respect to locking. (GH-96948)
2022-09-20 09:40:06 +01:00
Gregory P. Smith
34de67c094
gh-96512: Update int_max_str docs to say 3.11 ( #96942 )
...
It was unknown if it'd be before 3.11.0 when creating the original
changes. It's in 3.11rc2, so 3.11 it is.
2022-09-19 16:43:11 -07:00
Shantanu
5b3a2569f4
gh-96917: link to typing.readthedocs.io from typing.rst ( #96921 )
...
See the discussion at https://github.com/python/cpython/issues/91533
2022-09-19 12:09:41 -07:00
Raymond Hettinger
bbc24b2bd5
GH-96851: Add link to FAQ entry for caching method calls. (GH-96902)
2022-09-18 16:36:20 -05:00
partev
2d1a2d902a
fix various typos in random module's documentation (GH-96912)
2022-09-18 14:35:22 -07:00
Scott Main
810ae51787
gh-94787: [doc] Add to argparse doc an example of a mutually-exclusive group nested in an argument group (GH-94807)
2022-09-18 09:05:43 +01:00
Raymond Hettinger
670007abb4
Clarify that the expression is regular math notation, not Python. ( #96903 )
2022-09-17 21:09:39 -05:00
Raymond Hettinger
78359b1d45
Simplify sieve() recipe. Add edge case tests. (GH-96892)
2022-09-17 11:31:04 -05:00
Victor Stinner
e841ffc915
gh-95778: Mention sys.set_int_max_str_digits() in error message ( #96874 )
...
When ValueError is raised if an integer is larger than the limit,
mention sys.set_int_max_str_digits() in the error message.
2022-09-16 20:04:37 +02:00
Erlend E. Aasland
16c33a9676
gh-96810: Clarify for which statements sqlite3 implicitly opens transactions ( #96832 )
2022-09-15 23:11:52 +02:00
Raymond Hettinger
8dc9b3fbc1
Itertools sieve() recipe ( #96813 )
2022-09-13 21:10:47 -05:00
Benjamin Peterson
fd1e477f53
closes gh-96734: Update to Unicode 15.0.0. (GH-96809)
2022-09-13 15:45:12 -07:00
Alex Waygood
bf5fd49252
gh-95778: Fix `sys.set_int_max_str_digits()` parameter name ( #96798 )
...
Discovered in https://github.com/python/typeshed/pull/8733
2022-09-13 08:22:50 -07:00
Erlend E. Aasland
49cceeb5c9
gh-96702: Order methods before attrs in sqlite3.Connection docs ( #96703 )
2022-09-13 10:28:57 +02:00
zhanpon
53a54b781d
gh-96706: [doc] Don't recomment deprecated use of get_event_loop() in examples ( #96707 )
2022-09-11 12:56:30 -07:00
Hendrik Makait
6281affee6
gh-94972: document that shield users need to keep a reference to their task ( #96724 )
...
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
2022-09-10 07:34:14 -07:00
finefoot
c06c001b30
gh-92734: Add indentation feature to reprlib.Repr (GH-92735)
2022-09-08 13:51:44 -05:00
Vinay Sajip
d5e07862ec
gh-88287: Add BufferingFormatter documentation. (GH-96608)
2022-09-08 08:22:33 +01:00
Irit Katriel
c4999f261f
[doc] Update example in traceback doc (GH-96600)
...
This Monty Python reference is of-its-time. It could seem inappropriate in the context of today's sensibilities around mental health.
Automerge-Triggered-By: GH:iritkatriel
2022-09-05 14:30:51 -07:00
Vinay Sajip
a9d58feccf
gh-84095: Fill documentation gap regarding user-defined objects. (GH-96574)
2022-09-05 07:47:47 +01:00
Pamela Fox
a0ad63e70e
gh-93973: Add all_errors to asyncio.create_connection ( #93974 )
...
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
2022-09-04 18:33:50 -07:00
Erlend E. Aasland
9e55685782
Docs: alphabetically order sqlite3.Cursor attrs ( #96565 )
2022-09-04 23:34:45 +02:00
Sergey B Kirpichev
8464b754c4
gh-68163: Correct conversion of Rational instances to float (GH-25619)
...
* gh-68163: Correct conversion of Rational instances to float
Also document that numerator/denominator properties are instances of Integral.
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2022-09-04 13:15:59 +01:00
Gregory P. Smith
69bb83c2bf
gh-95778: remove unneeded doc note on float.as_integer_ratio ( #96553 )
...
Per mdickinson@'s comment on the main branch PR.
2022-09-04 00:04:36 -07:00
Mehrdad Moradizadeh
af6359dd5c
doc typo: spell limitation ( #96542 )
2022-09-03 23:23:32 -07:00
Vinay Sajip
e5823bf9b5
gh-89087: Update logging.QueueHandler documentation to clarify record… (GH-96527)
2022-09-03 13:02:19 +01:00
Alexandru Mărășteanu
57b6110361
[Enum] bump version tag on HTTP status category indicators (GH-96508)
2022-09-02 13:11:18 -07:00
Cheryl Sabella
ccce9b77e1
bpo-30419: DOC: Update missing information in bdb docs ( #1687 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Martin Panter <vadmium@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-09-02 13:22:42 -04:00
siph
2a9e4e4d73
gh-95180: Add `TaskGroup` and `Runner` to AsyncIO API Index ( #95189 )
...
Also rearrange some items in the list.
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-09-02 09:36:45 -07:00
Gregory P. Smith
511ca94520
gh-95778: CVE-2020-10735: Prevent DoS by very large int() ( #96499 )
...
Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds.
This PR comes fresh from a pile of work done in our private PSRT security response team repo.
Signed-off-by: Christian Heimes [Red Hat] <christian@python.org>
Tons-of-polishing-up-by: Gregory P. Smith [Google] <greg@krypto.org>
Reviews via the private PSRT repo via many others (see the NEWS entry in the PR).
<!-- gh-issue-number: gh-95778 -->
* Issue: gh-95778
<!-- /gh-issue-number -->
I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit# ). Much of that text wound up in the Issue. Backports PRs already exist. See the issue for links.
2022-09-02 09:35:08 -07:00
Raymond Hettinger
656167db81
Allow whitespace around a slash in fraction string inputs (GH-96496)
2022-09-02 11:10:58 -05:00
Erlend E. Aasland
91f40f3f78
gh-96168: Improve sqlite3 dict_factory example ( #96457 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-09-01 23:47:59 +02:00
Irit Katriel
4c72517cad
gh-93554: Conditional jump opcodes only jump forward (GH-96318)
2022-09-01 21:36:47 +01:00
Piotr Kaznowski
615537e62f
gh-96408: Document difference between set-like view and sets. (GH-96439)
2022-08-31 16:23:52 -05:00
Vinay Sajip
29f1b0bb1f
gh-89258: Add a getChildren() method to logging.Logger. (GH-96444)
...
Co-authored-by: Éric <merwok@netwok.org>
2022-08-31 10:50:29 +01:00
Erlend E. Aasland
f7e7bf161a
gh-96414: Inline code examples in sqlite3 docs ( #96442 )
2022-08-31 07:54:54 +02:00
Erlend E. Aasland
7b01ce7953
Docs: normalise sqlite3 placeholder how-to heading ( #96413 )
2022-08-30 22:44:14 +02:00
Alexandru Mărășteanu
0ed778835d
gh-95149: Enhance `http.HTTPStatus` with properties that indicate the HTTP status category (GH-95453)
2022-08-30 11:11:44 -07:00
Adrian Garcia Badaracco
07f12b5c15
gh-95337: update TypeVarTuple example ( #95338 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-30 07:57:03 -07:00
Tim Burke
860fa35145
Docs: Improve clarity for bytes.hex() ( #95257 )
2022-08-30 13:09:56 +02:00
Erlend E. Aasland
6d403e264a
Docs: normalize SQL style in sqlite3 docs ( #96403 )
2022-08-30 00:50:42 +02:00
Vinay Sajip
6324b135ac
gh-91305: Add a note about DatagramHandler and DNS latency. (GH-96380)
2022-08-29 22:29:22 +01:00
Erlend E. Aasland
bf9259776d
gh-95432: Add doctests for the sqlite3 docs ( #96225 )
...
As a consequence of the added test, this commit also includes
fixes for broken examples.
- Add separate namespace for trace tests bco. module level callback
- Move more backup and cursor examples under separate namespaces
2022-08-29 10:52:39 +02:00
TW
023c51d9d8
gh-69142: add %:z strftime format code (gh-95983)
...
datetime.isoformat generates the tzoffset with colons, but there
was no format code to make strftime output the same format.
for simplicity and consistency the %:z formatting behaves mostly
as %z, with the exception of adding colons. this includes the
dynamic behaviour of adding seconds and microseconds only when
needed (when not 0).
this fixes the still open "generate" part of this issue:
https://github.com/python/cpython/issues/69142
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-08-28 14:27:42 -07:00
zhanpon
35e4da25d4
Docs: Fix count of bullets in asyncio-task.rst ( #96307 )
2022-08-26 20:50:48 -07:00
Ansab Gillani
b462f143ff
Fix documentation typo for pathlib.Path.walk (GH-96301)
2022-08-26 14:21:40 -07:00
Dong-hee Na
0319cd6825
gh-96197: Define the behavior of repr if sys.displayhook is lost (gh-96242)
2022-08-26 11:02:57 +09:00
Dong-hee Na
47d406ffc4
gh-96197: Fix expression when :func:`sys.breakpointhook is missing (gh-96293)
2022-08-26 10:43:02 +09:00
Sam Ezeh
cd492d43a2
gh-76728: Coerce DictReader and DictWriter fieldnames argument to a list (GH-32225)
2022-08-25 05:13:24 -05:00
Vinay Sajip
8db7693bbf
gh-91070: Add note about SysLogHandler on macOS 12.x (Monterey). (GH-94803)
2022-08-25 08:27:30 +01:00
Pablo Galindo Salgado
e34c82abeb
GH-93503: Add thread-specific APIs to set profiling and tracing functions in the C-API ( #93504 )
...
* gh-93503: Add APIs to set profiling and tracing functions in all threads in the C-API
* Use a separate API
* Fix NEWS entry
* Add locks around the loop
* Document ignoring exceptions
* Use the new APIs in the sys module
* Update docs
2022-08-24 23:21:39 +01:00
prego
4317b25a23
GH-96179: Fix misleading example on the bisect documentation (GH-96228)
...
The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960.
2022-08-24 17:47:13 +02:00
Dong-hee Na
09563a764e
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
2022-08-24 23:03:36 +09:00
C.A.M. Gerlach
6bda5b85b5
gh-94635: Frame sqlite3 how-to headings as such & move default adapters to reference ( #96136 )
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-08-24 09:14:14 +02:00
Raymond Hettinger
1f0eafa844
GH-96145: Add AttrDict to JSON module for use with object_hook ( #96146 )
2022-08-23 16:22:00 -05:00
C.A.M. Gerlach
d6259c58cb
gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants ( #96134 )
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-08-23 08:51:20 +02:00
Erlend E. Aasland
04c73e5efb
gh-95432: Add doctest for sqlite3 tutorial ( #96193 )
2022-08-23 08:48:13 +02:00
Erlend E. Aasland
18b1782192
gh-96121: Merge sqlite3.Row examples into sqlite3.Row class doc ( #96122 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-22 10:03:24 +02:00
Raymond Hettinger
511dea0a3e
GH-95880: Clarify StringIO append/overwrite behavior. (GH-96104)
2022-08-21 09:42:15 -05:00
Raymond Hettinger
0e28a3a50f
Add polynomial_from_roots() to the itertools recipes ( #96102 )
2022-08-21 09:41:29 -05:00
Nick Coghlan
bcc4cb0c7d
gh-96098: Clearly link concurrent.futures from threading & multiprocessing docs (GH-96112)
...
Clearly link concurrent.futures from threading & multiprocessing docs
Also link directly to asyncio from the beginning of the threading docs.
2022-08-21 14:09:05 +12:00
Brandt Bucher
5bfb3c372b
GH-90997: Wrap yield from/await in a virtual try/except StopIteration (GH-96010)
2022-08-19 12:33:44 -07:00
Erlend E. Aasland
ee9f22d346
Docs: Fix markup of module name in sqlite3 docs ( #96115 )
2022-08-19 10:18:08 +02:00
C.A.M. Gerlach
303ef0913e
Doc: Use consistent markup for example Point class in sqlite3 ( #96095 )
2022-08-19 09:41:16 +02:00
Erlend E. Aasland
1a140af40b
Docs: group sqlite3.Connection attributes and methods ( #96090 )
2022-08-19 09:30:41 +02:00
Erlend E. Aasland
ede771cdf9
gh-94635: Remove sqlite3 doc introduction heading ( #96089 )
2022-08-19 09:21:11 +02:00
MrSuspicious
757c383d24
gh-96039: Corrected wording error in itertools doc (GH-96105)
2022-08-19 01:20:45 -05:00
Raymond Hettinger
ba4bb7e464
GH-93179: Document the thread safety of functools.lru_cache (GH-95970)
2022-08-18 17:38:49 -05:00
Raymond Hettinger
29c8f80760
GH-95861: Add support for Spearman's rank correlation coefficient (GH-95863)
2022-08-18 13:48:27 -05:00
Erlend E. Aasland
91afe66707
Docs: Escape lone stars in sqlite3 docs ( #96081 )
2022-08-18 20:39:36 +02:00
Erlend E. Aasland
c87ea10fc9
gh-95271: Rework sqlite3 tutorial ( #95749 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-08-18 20:36:20 +02:00
Victor Stinner
cfaa79aac0
gh-93103: Doc uses PyConfig rather than deprecated vars ( #96070 )
...
The C API documentation now uses the new PyConfig API, rather than
deprecated global configuration variables.
2022-08-18 16:58:38 +02:00
Petr Viktorin
0f2b469ce1
gh-95991: Add some infrastructure for testing Limited API in _testcapi (GH-95992)
...
- Limited API needs to be enabled per source file
- Some builds don't support Limited API, so Limited API tests must be skipped on those builds
(currently this is `Py_TRACE_REFS`, but that may change.)
- `Py_LIMITED_API` must be defined before `<Python.h>` is included.
This puts the hoop-jumping in `testcapi/parts.h`, so individual
test files can be relatively simple. (Currently that's only
`vectorcall_limited.c`, imagine more.)
2022-08-17 13:48:43 +02:00
Christian Heimes
da0aa518bf
gh-96005: FreeBSD has ENOTCAPABLE, too (GH-96034)
2022-08-17 07:24:53 +02:00
Christian Heimes
48174fa0b9
gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006)
...
- On WASI `ENOTCAPABLE` is now mapped to `PermissionError`.
- The `errno` modules exposes the new error number.
- `getpath.py` now ignores `PermissionError` when it cannot open landmark
files `pybuilddir.txt` and `pyenv.cfg`.
2022-08-16 20:20:15 +02:00
Kumar Aditya
e8259e047c
Clarify asyncio.Runner docs re: loop_factory ( #95979 )
2022-08-14 08:53:34 -07:00
Howie Zhao
f235178bec
gh-94439: typing docs: Add minimum version to `__required_keys__` and `__optional_keys__` ( #95373 )
2022-08-12 21:23:33 -07:00
Hugo van Kemenade
50bf5fafcc
gh-82180: Document support for non-integer arg removed from grp.getgrgid in 3.10 (GH-95346)
2022-08-12 18:22:06 +02:00
Erlend E. Aasland
e6623e7083
gh-95273: Improve sqlite3.complete_statement docs ( #95840 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-12 01:05:12 +02:00
Terry Jan Reedy
9af4aed73a
gh-75510: Edit idlelib entry in doc ( #95869 )
...
Make section instead of subsection and revise sentence.
2022-08-10 22:44:17 -04:00
Terry Jan Reedy
70fc9641b5
gh-75500: Add idlelib section to IDLE doc ( #95832 )
...
This enables accessing IDLE as 'idlelib' in the Doc Module listing.
2022-08-09 14:34:42 -04:00
Andrzej Bartosiński
141f2517fc
gh-95767: Fix grammatical error in asyncio loop.create_task docs ( #95768 )
2022-08-09 15:59:27 +02:00
Raymond Hettinger
7c8626ab3d
Improvements to the bisect docs (GH-95807)
2022-08-09 01:31:50 -05:00
Erlend E. Aasland
41c939cb35
gh-95273: Reorganize sqlite3 doc module level funcs and vars ( #95626 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-08 21:25:35 +02:00
Andrzej Bartosiński
f83b0cabeb
Fix documentation typo for functools.cmp_to_key (GH-95766)
2022-08-08 01:49:48 -05:00
Erlend E. Aasland
56af5a200d
gh-94635: Fixup sqlite3 'Introduction' seealso note ( #95751 )
...
In gh-95269, the seealso note incorrectly ended up in
the 'Tutorial' section.
2022-08-06 23:30:26 +02:00
Oleg Iarygin
56d16e8cb4
gh-93243: Make smtpd private before porting its users (GH-93246)
...
gh-93243
This PR is required to reduce diffs of the following porting (no need to either maintain documentation and tests consistent with each porting step, or try to port everything and remove smtpd in a single PR).
Automerge-Triggered-By: GH:warsaw
2022-08-05 17:41:29 -07:00
Barney Gale
29650fea96
gh-86943: implement `pathlib.WindowsPath.is_mount()` (GH-31458)
...
Have `pathlib.WindowsPath.is_mount()` call `ntpath.ismount()`. Previously it raised `NotImplementedError` unconditionally.
https://bugs.python.org/issue42777
2022-08-05 15:37:44 -07:00
Terry Jan Reedy
834064c19a
gh-89362: Doc IDLE menu and search ( #95697 )
...
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
2022-08-05 12:21:45 -04:00
Mariatta Wijaya
a525f2ada4
GH-95685: Fix rendering of the string documentation ( #95686 )
...
There's an extra underlines that messed the rest of the documentation rendering.
Closes #95685
2022-08-05 09:41:02 +02:00
Brandt Bucher
5f3c9fda18
GH-90997: Document CACHEs (GH-95694)
2022-08-04 22:45:05 -07:00
Terry Jan Reedy
9890f86ae2
gh-65802: IDLE - explain SaveAs and extensions ( #95690 )
...
File name extensions may or may not be shown for the current name
and are added in an OS-dependent manner if not given for the new
name.
2022-08-04 21:51:14 -04:00
Barry Warsaw
e1182bc377
gh-94619: Remove long deprecated methods module_repr() and load_module() ( #94624 )
...
* gh-94619: Remove long deprecated methods module_repr() and load_module()
Closes #94619
* Update Misc/NEWS.d/next/Library/2022-07-06-14-57-33.gh-issue-94619.PRqKVX.rst
Fix typo
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Brett Cannon <brett@python.org>
2022-08-04 17:24:26 -07:00
Erlend Egeberg Aasland
44f1f63ad5
Docs: sqlite3 docs fixup ( #95681 )
...
- Disable links to the module itself
- Fix link indent
- Consistent ref markup
2022-08-05 00:06:46 +02:00
Erlend Egeberg Aasland
b24e8b28a7
gh-95271: Extract placeholders howto from sqlite3 tutorial ( #95522 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-08-04 22:41:18 +02:00
Erlend Egeberg Aasland
12d92c733c
gh-95273: Improve documented return values and exceptions raised for sqlite3 class methods ( #95530 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-04 21:58:10 +02:00
ceh
962acd4468
Docs: fix two typos in the sqlite3 docs ( #95661 )
...
- statment => statement
- transaciton => transaction
2022-08-04 20:25:53 +02:00
Łukasz Langa
0342c93a6b
gh-91323: Revert "Allow overriding a future compliance check in asyncio.Task (GH-32197)" (GH-95442)
...
This reverts commit d4bb38f82b
.
2022-08-04 15:51:38 +02:00
Serhiy Storchaka
d0d0154443
gh-91838: Resolve HTTP links which redirect to HTTPS (GH-95642)
...
It updates links which redirect to HTTPS with different authority or
path.
2022-08-04 13:30:05 +03:00
Serhiy Storchaka
f79547a429
gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS (GH-95527)
...
If an HTTP link is redirected to a same looking HTTPS link, the latter can
be used directly without changes in readability and behavior.
It protects from a men-in-the-middle attack.
This change does not affect Python examples.
2022-08-04 10:13:49 +03:00
Hugo van Kemenade
dc2757accd
gh-90817: Use .. deprecated-removed:: when removal version known ( #94960 )
2022-08-03 23:47:20 +02:00
Derek Kim
ebd660156d
gh-95423: Update winreg.DeleteKeyEx documentation and remove dynamic function load (GH-95521)
2022-08-03 21:55:03 +01:00
Erlend Egeberg Aasland
4d02572f8c
gh-95273: Align sqlite3 const doc refs with the devguide recommendations ( #95525 )
2022-08-03 22:21:15 +02:00
Erlend Egeberg Aasland
89f5229328
Docs: fix incorrect formatting in sqlite3 CLI docs ( #95581 )
2022-08-03 00:17:09 +02:00
Christian Heimes
e3b6ff19aa
gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)
...
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-02 21:00:41 +02:00
CAM Gerlach
75a6441718
gh-95516: Add param types and clarify param descriptions of LogRecord (GH-95517)
2022-08-02 08:42:35 +01:00
Alex Hedges
d965d1995e
no-issue: Fix typo of "thrid" instead of "third" in dis docs (gh-95510)
2022-08-02 00:06:43 +09:00
Erlend Egeberg Aasland
bc7c7cd18a
gh-77617: Add sqlite3 command-line interface ( #95026 )
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-08-01 12:25:16 +02:00
Erlend Egeberg Aasland
1e6b63542e
gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions ( #95523 )
2022-08-01 11:15:07 +02:00
markus-sus
d29e279de3
bpo-42037: Corrected request dependencies in CookieJar functions (GH-23112)
2022-08-01 10:42:13 +08:00
Pablo Galindo Salgado
aa37ffda29
bpo-45445: Revert "bpo-45445: Fail if an invalid X-option is provided in the command line (GH-28823)" ( #94745 )
2022-07-31 16:33:56 +01:00
Erlend Egeberg Aasland
6c439b978b
gh-94635: Add Reference, How-to, and Concepts headings to sqlite3 docs ( #94636 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-31 01:24:15 +02:00
Zachary Ware
82814624bf
Doctest cleanups (GH-95436)
...
* GHA: Don't hide doctest output
* Enable doctests in math.rst
* Squash warnings in nntplib.rst doctests
* Squash warning in turtle.rst doctest
* Squash warnings in whatsnew/3.2.rst doctests
* Treat warnings as errors in Doc/ doctests
2022-07-30 17:21:08 -05:00
Robert O'Shea
cd26595232
gh-95454: Replace truthy/falsy with true/false (GH-95456)
2022-07-30 00:42:21 -07:00
Erlend Egeberg Aasland
d92b19e1b5
gh-95273: Relocate sqlite3 enable load extension note ( #95430 )
2022-07-29 21:27:15 +02:00
Steve Dower
e3bae80e70
gh-94302: Clarify use of the 'open' operation in os.startfile (GH-95441)
2022-07-29 17:24:56 +01:00
Christian Heimes
f81a6c5fc7
gh-95415: Make availability directive consistent (GH-95416)
2022-07-29 16:42:09 +02:00
Erlend Egeberg Aasland
2fbee85931
gh-95432: Fixup sqlite3 tutorial example ( #95431 )
...
- the insert statement should have five placeholders, not four
- missing ... in the multiline row list
2022-07-29 14:31:41 +02:00
Erlend Egeberg Aasland
e003b64f40
gh-95273: Improve sqlite3 class descriptions ( #95379 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-29 11:53:23 +02:00
Erlend Egeberg Aasland
f0bf7956e6
gh-95273: Move sqlite3 executemany examples from reference to tutorial ( #95351 )
2022-07-29 09:42:22 +02:00
Erlend Egeberg Aasland
e9c8de669d
gh-95273: Condense sqlite3 executescript example ( #95383 )
2022-07-29 09:40:44 +02:00
BenjaminHelyer
6e44bf9558
Improve documentation for adding datetime and timedelta (gh-95403)
2022-07-28 20:09:51 -04:00
[object Object]
7df2f4d787
gh-86128: Add warning to ThreadPoolExecutor docs about atexit behaviour (GH-94008)
2022-07-28 23:38:56 +01:00
Erlend Egeberg Aasland
ea269b9a38
Docs: Fix refs & tweak wording in sqlite3 'Using shortcut methods'
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-28 07:38:36 +02:00
Christian Heimes
0fe645d6fd
gh-95174: Add pthread stubs for WASI (GH-95234)
...
Co-authored-by: Brett Cannon <brett@python.org>
2022-07-27 20:28:06 +02:00
Erlend Egeberg Aasland
2361908a9d
gh-95273: Normalise sqlite3 reference wording ( #95274 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-27 15:24:13 +02:00
Erlend Egeberg Aasland
2b37395612
gh-94630: Fixup sqlite3 argument spec docs for connection execute* methods ( #95319 )
2022-07-27 14:46:21 +02:00
Erlend Egeberg Aasland
2e35a13e46
gh-94635: Add sqlite3 'Introduction' and 'Tutorial' doc headings ( #95269 )
2022-07-27 07:43:24 +02:00
Nicolas Haller
b7ce4625fe
Clarifying the documentation on library/syslog (GH-92587)
2022-07-26 02:06:06 -05:00
Erlend Egeberg Aasland
5012bedc7c
gh-95235: Add explicit parameter list to some sqlite3 methods ( #95240 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-26 08:29:18 +02:00
Ethan Furman
4e704d7847
gh-95077: [Enum] add code-based deprecation warnings for member.member access (GH-95083)
...
* issue deprecation warning for member.member access
* always store member property in current class
* remove __getattr__
2022-07-25 11:05:10 -07:00
Erlend Egeberg Aasland
ac6a94c669
gh-95235: Document undocumented parameters in sqlite3 functions and methods ( #95236 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-25 18:46:55 +02:00
Hugo van Kemenade
10b12dd92a
gh-93963: Document importlib.abc deprecations ( #94546 )
2022-07-25 18:24:42 +02:00
Petr Viktorin
ccd7c7a0bd
gh-93610: Improve docs for importlib.resources ( #93611 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-07-25 18:16:17 +02:00
Christian Heimes
a566912049
gh-85454: Remove distutils documentation ( #95239 )
...
Most places now refer to setuptools or link to setuptools documentation.
Some examples like zipapp need to be updated later.
2022-07-25 15:50:46 +02:00
Adam Dangoor
df7c8b9537
gh-95233: Correct grp.getgrgid parameter name in documentation (gid -> id) (gh-95232)
2022-07-25 18:54:42 +09:00
Thomas Grainger
0c6f898005
gh-95051: ensure that timeouts scheduled with `asyncio.Timeout` that have already expired are deliverered promptly ( #95109 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-24 13:18:05 -07:00
Stanislav Zmiev
c1e929858a
gh-90385: Add `pathlib.Path.walk()` method (GH-92517)
...
Automerge-Triggered-By: GH:brettcannon
2022-07-22 16:55:46 -07:00
oda-gitso
346aabf916
Fix incorrect directive in multiprocessing module documentation (GH-93517)
2022-07-22 11:46:42 -05:00
Alexandru Mărășteanu
2a9c227ac1
Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134)
2022-07-22 11:37:22 -05:00
Erlend Egeberg Aasland
f9b3706df6
gh-81040: Improve sqlite3.Cursor.rowcount docs ( #94940 )
2022-07-22 09:34:39 +02:00
Ned Batchelder
6e2fbdab92
docs: use 'recursively' in the description of rglob, and mention globs in the os equivalences (GH-94954)
...
The r in `rglob` stands for "recursively", so use the word in the description. Also, glob and rglob can usefully be mentioned as the pathlib equivalent of os.walk.
Automerge-Triggered-By: GH:brettcannon
2022-07-20 14:47:43 -07:00
Erlend Egeberg Aasland
6dadf6ca01
gh-90016: Deprecate default sqlite3 adapters and converters ( #94276 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-20 21:37:59 +02:00
Guy Yagev
fc0dc9203d
Fix documentation to include possible Exception ( #94818 )
2022-07-18 15:31:17 -04:00
Terry Jan Reedy
a25a803c4c
Fix incorrect double indent in ast doc ( #94976 )
...
Warning directive indent was 4 rather than 3 spaces.
2022-07-18 13:24:18 -04:00
Mark Shannon
c41d4d0917
Remove out of date reference to YIELD_FROM from docs. ( #94966 )
2022-07-18 18:04:07 +01:00
Terry Jan Reedy
7b617be4ab
In ast doc, update 'below' to 'above' ( #94967 )
...
The included asdl file was moved from 'below' to 'above' in 3.9.
2022-07-18 12:38:52 -04:00
Steve Dower
044a593cbb
gh-91348: Restore frame argument to sys._getframe audit event (GH-94928)
2022-07-17 16:11:24 +01:00
Thomas Grainger
6da988a46c
gh-91181: drop support for bytes on sys.path (GH-31934)
...
Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it.
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
2022-07-16 18:07:53 -07:00
anilbey
16b6e14cc2
gh-94698: add Subscript and Attribute targets to ast.for documentation (GH-94901)
...
### Summary
Add Attribute and Subscript as possible targets for the "ast for loop documentation".
Automerge-Triggered-By: GH:isidentical
2022-07-16 04:26:43 -07:00
Chris Adams
3789c63577
Add additional pointers to pathlib's mapping to os.path functions ( #94828 )
...
* Add additional pointers to pathlib's mapping to os.path functions
os.path.splitext has a somewhat quirky signature since it mixes the path and filename components but I wanted the documentation to mention `PurePath.stem` as the natural counterpart to `PurePath.suffix` for the common use of `os.path.splitext` to turn "file.py" into "file" and "py".
Technically this could have some discussion of how to handle the parent directory hierarchy but that seems a bit out of keeping with the spirit of this table so I omitted mentioning `PurePath.parents` here.
* Update Doc/library/pathlib.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-07-16 00:09:27 +02:00
Vinay Sajip
dc54193095
[doc] Update cookbook example and add information about queue types. (GH-94854)
2022-07-15 06:03:58 +01:00
Tin Tvrtković
08f68975ab
GH-46771: docs for asyncio.timeout and task cancellation ( #94794 )
2022-07-14 19:38:38 -07:00
Ikko Ashimine
9ea72e9d8d
Docs: fix typo in sqlite3.rst ( #94798 )
...
Colum -> Column
2022-07-14 23:47:46 +02:00
Raymond Hettinger
ed06ec1ab8
GH-81620: Add random.binomialvariate() (GH-94719)
2022-07-13 09:46:04 -05:00
Max Zhenzhera
90a6e56e56
docs: typing.Self, fix typo (GH-94771)
...
* fix typo - double spelled word 'use'
* change methods names to the infinitive form
2022-07-12 18:45:52 +01:00
Simon-Martin Schröder
46fc584b00
gh-87822: Make traceback module robust to exceptions from repr() of local values (GH-94691)
2022-07-11 10:14:15 +01:00
John Belmonte
da717519ec
gh-93883: elide traceback indicators when possible ( #93994 )
...
* gh-93883: elide traceback indicators when possible
Elide traceback column indicators when the entire line of the
frame is implicated. This reduces traceback length and draws
even more attention to the remaining (very relevant) indicators.
Example:
```
Traceback (most recent call last):
File "query.py", line 99, in <module>
bar()
File "query.py", line 66, in bar
foo()
File "query.py", line 37, in foo
magic_arithmetic('foo')
File "query.py", line 18, in magic_arithmetic
return add_counts(x) / 25
^^^^^^^^^^^^^
File "query.py", line 24, in add_counts
return 25 + query_user(user1) + query_user(user2)
^^^^^^^^^^^^^^^^^
File "query.py", line 32, in query_user
return 1 + query_count(db, response['a']['b']['c']['user'], retry=True)
~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'NoneType' object is not subscriptable
```
Rather than going out of our way to provide indicator coverage
in every traceback test suite, the indicator test suite should
be responible for sufficient coverage (e.g. by adding a basic
exception group test to ensure that margin strings are covered).
2022-07-11 07:40:53 +01:00
MonadChains
e8e4b550f5
gh-94309: Deprecate typing.Hashable/Sized (GH-94626)
...
Deprecate typing.Hashable/Sized. Use the collections.abc counterparts directly instead.
To be consistent with PEP 585, deprecated aliases will not raise any DeprecationWarning.
2022-07-10 19:04:01 +01:00
Raymond Hettinger
ef61b259e3
GH-77265: Document NaN handling in statistics functions that sort or count ( #94676 )
...
* Document NaN handling in functions that sort or count
* Update Doc/library/statistics.rst
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* Update Doc/library/statistics.rst
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* Fix trailing whitespace and rewrap text
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-10 17:40:27 +10:00
CAM Gerlach
761eeb62a9
gh-94700: Rewrite the logging.Formatter API ref in structured form (GH-94701)
2022-07-09 06:03:47 +01:00
Oleg Iarygin
efb20a97c4
Use mdash-es consistently in the library docs index ( #92762 )
2022-07-08 16:44:15 +02:00
Erlend Egeberg Aasland
e5b841a403
gh-94622: Add more references to the sqlite3 types anchor ( #94623 )
2022-07-08 02:38:38 +02:00
Erlend Egeberg Aasland
fb6dccae34
gh-94321: Document sqlite3.PrepareProtocol ( #94620 )
2022-07-08 00:33:17 +02:00
finefoot
b6558d768f
gh-94343: Ease initialization of reprlib.Repr attributes (GH-94581)
2022-07-07 09:55:33 -05:00
Erlend Egeberg Aasland
3eb2b9634f
gh-94628: Add explicit parameter list to sqlite3.connect docs ( #94629 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-07 09:00:20 +02:00
Erlend Egeberg Aasland
94988603f3
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols ( #94631 )
2022-07-07 01:13:30 +02:00
Erlend Egeberg Aasland
760b8cf0c8
gh-94017: Improve clarity of sqlite3 transaction handling docs ( #94320 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-06 22:59:07 +02:00
Erik De Bonte
5f319308a8
gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-07-05 20:09:41 +02:00
Erik Montnemery
c60f125533
bpo-46755: Don't log stack info twice in QueueHandler (GH-31355)
2022-07-05 15:23:12 +01:00
Ned Batchelder
3440d197a5
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551)
...
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
2022-07-05 11:16:10 +02:00
Victor Stinner
fbcee570d1
gh-94352: shlex.split() no longer accepts None ( #94353 )
...
shlex.split(): Passing None for s argument now raises an exception,
rather than reading sys.stdin. The feature was deprecated in Python
3.9.
2022-07-04 15:29:19 +02:00
Vinay Sajip
a391b74dbe
Update logging documentation: change cross-reference and add webapp r… (GH-94540)
2022-07-04 06:06:43 +01:00
Thomas Perl
b296c7442b
gh-92869: ctypes: Add c_time_t ( #92870 )
...
Adds `ctypes.c_time_t` to represent the C `time_t` type accurately as its size varies.
Primarily-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2022-07-03 11:58:02 -07:00
Terry Jan Reedy
39c29f753e
IDLE doc: Tweek RESTART and Windows console start ( #94530 )
2022-07-03 12:56:44 -04:00
Erlend Egeberg Aasland
cc81962e69
Doc: fix sqlite3 blob reference anchor ( #94505 )
2022-07-02 08:35:48 +02:00
Sam Ezeh
80aaeabb8b
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416)
2022-07-01 18:21:27 +02:00
Mariatta Wijaya
ad55147c1d
Update code sample when importing modules in queue doc (GH-94244)
...
In the queue documentation, the code snippet shows the import to be not PEP 8 compliant.
Since people typically copy-paste from such code samples, I think it's important to show best-practices here.
2022-07-01 17:51:46 +02:00
Irit Katriel
c57aad777a
gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)
2022-07-01 15:33:35 +01:00
Mariatta Wijaya
62bb7a3b50
multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)
2022-06-30 10:23:04 -07:00
Guido van Rossum
594c369949
GH-94398: TaskGroup: Fail create_task() during shutdown (GH-94400)
...
Once the task group is shutting down, it should not be possible to create a new task.
Here "shutting down" means `self._aborting` is set, indicating that at least one task
has failed and we have cancelled all others.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-06-30 19:10:46 +02:00
Jean-Christophe Helary
639e35108b
xml.dom.minidom docs: fix typo ( #93437 )
2022-06-30 10:06:42 -07:00
Guido van Rossum
b6ec6d4041
GH-90908: Document asyncio.TaskGroup (GH-94359)
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-06-30 18:16:22 +02:00
Irit Katriel
d68f2d27bb
gh-89038: [doc] update dis.findlinestarts documentation for changes related to PEP-626 (GH-94247)
2022-06-30 15:57:35 +01:00
Irit Katriel
68fb03249f
bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409)
2022-06-29 20:24:43 +01:00
Victor Stinner
600c65c094
gh-94172: Remove ssl.PROTOCOL_SSLv2 dead code ( #94312 )
...
Remove dead code related to ssl.PROTOCOL_SSLv2. ssl.PROTOCOL_SSLv2
was already removed in Python 3.10.
In test_ssl, @requires_tls_version('SSLv2') always returned False.
Extract of the removed code: "OpenSSL has removed support for SSLv2".
2022-06-28 13:57:08 +02:00
Erik De Bonte
81ac9ac492
Add docs for decorated object and field specifier params (GH-94354)
2022-06-28 11:58:35 +02:00
Serhiy Storchaka
efdc9d68de
gh-87995: Make MappingProxyType hashable (GH-94252)
2022-06-28 11:54:58 +02:00
Victor Stinner
71d5299b73
gh-94199: Remove hashlib.pbkdf2_hmac() Python implementation (GH-94200)
...
Remove the pure Python implementation of hashlib.pbkdf2_hmac(),
deprecated in Python 3.10. Python 3.10 and newer requires OpenSSL
1.1.1 or newer (PEP 644), this OpenSSL version provides a C
implementation of pbkdf2_hmac() which is faster.
2022-06-28 11:51:13 +02:00
Julien Palard
bc7f6fcdf1
gh-86404: [doc] Fix missing space in idle documentation. (GH-94366)
...
This should have been spotted by sphinx-lint, tracked here:
https://github.com/sphinx-contrib/sphinx-lint/issues/39
2022-06-28 09:44:52 +02:00
Terry Jan Reedy
e6391e08bf
gh-82006: IDLE doc improvements ( #94349 )
...
0. Update text start and stop conditions.
1. Title-case sections but not subsections.
2. Edit Shell Window sections: title, execute, restart.
2022-06-27 18:59:26 -04:00
Mark Shannon
c0453a40fa
GH-94163: Add BINARY_SLICE and STORE_SLICE instructions. (GH-94168)
2022-06-27 12:24:23 +01:00
Paul Moore
aedb5194d5
gh-94214: Add venv context.lib_path and document the context (GH-94221)
2022-06-26 17:49:03 +01:00
Victor Stinner
cc0d5e568e
gh-94226: Remove the locale.format() function ( #94229 )
...
Remove the locale.format() function, deprecated in Python
3.7: use locale.format_string() instead.
Remove TestFormatPatternArg test case: it is irrelevant for
locale.format_string() which accepts complex formats.
2022-06-26 12:41:19 +02:00
Serhiy Storchaka
c834c02569
Revert "bpo-45162: Revert "Remove many old deprecated unittest features"" (GH-92556)
...
This reverts commit b50322d203
.
2022-06-26 10:18:06 +03:00
Jason R. Coombs
38612a05b5
gh-93259: Validate arg to ``Distribution.from_name``. (GH-94270)
...
Syncs with importlib_metadata 4.12.0.
2022-06-25 21:04:28 -04:00
Irit Katriel
9af6b75298
gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)
2022-06-25 23:44:30 +01:00
Erlend Egeberg Aasland
bd3c1c187e
gh-90016: Reword sqlite3 adapter/converter docs ( #93095 )
...
Also add adapters and converter recipes.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com
2022-06-25 22:06:06 +02:00
Victor Stinner
944c7d8a85
gh-94199: Remove ssl.match_hostname() function ( #94224 )
2022-06-25 12:54:11 +02:00
Yaron de Leeuw
50cd4b6959
bpo-26253: Add compressionlevel to tarfile stream (GH-2962)
...
`tarfile` already accepts a compressionlevel argument for creating
files. This patch adds the same for stream-based tarfile usage.
The default is 9, the value that was previously hard-coded.
2022-06-25 11:43:54 +03:00
Oleg Iarygin
a91ffcf3fa
Docs: Remove `Provides [...]` from `multiprocessing.shared_memory` description ( #92761 )
2022-06-24 10:08:45 -07:00
Victor Stinner
d3a27e4c93
gh-94196: Remove gzip.GzipFile.filename attribute ( #94197 )
...
gzip: Remove the filename attribute of gzip.GzipFile,
deprecated since Python 2.6, use the name attribute instead. In write
mode, the filename attribute added '.gz' file extension if it was not
present.
2022-06-24 11:59:32 +02:00
Victor Stinner
d435a18c53
gh-94199: Remove ssl.RAND_pseudo_bytes() function ( #94202 )
...
Remove the ssl.RAND_pseudo_bytes() function, deprecated in Python
3.6: use os.urandom() or ssl.RAND_bytes() instead.
2022-06-24 11:05:53 +02:00
Oscar R
fb1e9506c1
gh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457)
...
When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value.
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-06-22 23:20:24 -07:00
Inada Naoki
9877f4c624
gh-85308: argparse: Use filesystem encoding for arguments file (GH-93277)
2022-06-23 12:09:57 +09:00
Serhiy Storchaka
fda4b2f063
gh-74696: Do not change the current working directory in shutil.make_archive() if possible (GH-93160)
...
It is no longer changed when create a zip or tar archive.
It is still changed for custom archivers registered with shutil.register_archive_format()
if root_dir is not None.
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-06-22 10:47:25 +02:00
Irit Katriel
6575841266
bpo-30535: [doc] state that sys.meta_path is not empty by default (GH-94098)
...
Co-authored-by: Windson yang <wiwindson@outlook.com>
2022-06-21 23:03:08 +01:00
Gregory P. Smith
296e4efebb
gh-89336: Remove configparser APIs that were deprecated for 3.12 ( #92503 )
...
https://github.com/python/cpython/issue/89336 : Remove configparser 3.12 deprecations.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-06-21 14:31:25 -07:00
Ezio Melotti
f28ec34c5c
gh-82927: Update files related to HTML entities. (GH-92504)
2022-06-21 22:03:12 +02:00
luzpaz
830513754d
gh-93675: Fix typos in `Doc/` (GH-93676)
...
Closes #93675
2022-06-21 21:10:45 +02:00
Oleg Iarygin
f62ff97f31
gh-93851: Fix all broken links in Doc/ (GH-93853)
2022-06-21 20:55:18 +02:00
Steve Dower
5a08e0fda4
gh-94068: Remove HVSOCKET_CONTAINER_PASSTHRU constant because it has been removed from Windows (GH-94069)
...
Fixes #94068
Automerge-Triggered-By: GH:zware
2022-06-21 10:27:21 -07:00
Adam Turner
0efe3a1636
gh-86986: Drop compatibility support for Sphinx 2 (GH-93737)
...
* Revert "bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)"
This reverts commit 5c1f15b4b1
* Revert "bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)"
This reverts commit b63a620014
.
2022-06-21 17:04:46 +02:00
Erlend Egeberg Aasland
8e08978141
gh-61162: Clarify sqlite3 connection context manager docs (GH-93890)
...
Explicitly note that transactions are only closed if there is an open
transation at `__exit__`, and that transactions are not implicitly
opened during `__enter__`.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Automerge-Triggered-By: GH:erlend-aasland
2022-06-19 13:17:43 -07:00
Erlend Egeberg Aasland
6446592c89
gh-93925: Improve clarity of sqlite3 commit/rollback, and close docs ( #93926 )
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-06-19 21:17:28 +02:00
CAM Gerlach
71354adff0
gh-92611: Add details on replacements for cgi utility funcs (GH-92792)
...
Per @brettcannon 's [suggestions on the Discourse thread](https://discuss.python.org/t/pep-594-take-2-removing-dead-batteries-from-the-standard-library/13508/51 ), discussed in #92611 and as a followup to PR #92612 , this PR add additional specific per-function replacement information for the utility functions in the `cgi` module deprecated by PEP 594 (PEP-594).
@brettcannon , should this be backported (without the `deprecated-removed` , which I would update it accordingly and re-add in my other PR adding that to the others for 3.11+), or just go in 3.11+?
2022-06-17 14:05:21 -07:00
Erlend Egeberg Aasland
ce4d11f98b
gh-93857: Fix broken audit-event targets in sqlite3 docs ( #93859 )
...
Corrected targets for the following audit-events:
- sqlite3.enable_load_extension => sqlite3.Connection.enable_load_extension
- sqlite3.load_extension => sqlite3.Connection.load_extension
2022-06-15 16:01:27 +02:00