summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* gh-116535: Fix distracting "TypeError" in example code (gh-116538)Declan2024-03-091-2/+2
|
* gh-111389: expose PyHASH_INF/BITS/MODULUS/IMAG macros as public (#111418)Sergey B Kirpichev2024-03-091-1/+24
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* GH-116218 Docs: Add availability information for the 'resource' module (#116256)Kerim Kabirov2024-03-091-0/+2
| | | Add availability data to 'resource' module Docs
* gh-105535 Document potential performance trap during enum creation (GH-107119)Nicolas A. Oyarzabal2024-03-081-0/+7
| | | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-75988: Fix issues with autospec ignoring wrapped object (#115223)infohash2024-03-081-0/+120
| | | | | | | | | | | * set default return value of functional types as _mock_return_value * added test of wrapping child attributes * added backward compatibility with explicit return * added docs on the order of precedence * added test to check default return_value
* gh-116349: Deprecate `platform.java_ver` function (#116471)Nikita Sobolev2024-03-082-0/+13
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106259: Add minimal help target to Makefile (#106260)Skip Montanaro2024-03-071-26/+104
| | | | | Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-115664: Fix ordering of more versionadded and versionchanged directives ↵Serhiy Storchaka2024-03-0722-109/+80
| | | | (GH-116298)
* gh-107361: strengthen default SSL context flags (#112389)William Woodruff2024-03-062-1/+35
| | | | | | | | | | | | | This adds `VERIFY_X509_STRICT` to make the default SSL context perform stricter (per RFC 5280) validation, as well as `VERIFY_X509_PARTIAL_CHAIN` to enforce more standards-compliant path-building behavior. As part of this changeset, I had to tweak `make_ssl_certs.py` slightly to emit 5280-conforming CA certs. This changeset includes the regenerated certificates after that change. Signed-off-by: William Woodruff <william@yossarian.net> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-115957: Close coroutine if TaskGroup.create_task() raises an error (#116009)Jason Zhang2024-03-062-0/+13
|
* gh-115398: Suggest use of `hasattr` with checking for 3.13 Expat API ↵Sebastian Pipping2024-03-062-0/+15
| | | | | availability (GH-116278) Suggest use of "hasattr" with checking for 3.13 Expat API availability
* gh-107625: configparser: Raise error if a missing value is continued (GH-107651)Prince Roshan2024-03-061-0/+11
| | | | | Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* gh-115986: Fix inaccuracies in pprint docs (#116104)Kerim Kabirov2024-03-051-2/+2
| | | Amend wording after gh-116019 was merged.
* chore: fix typos (#116345)cui fliter2024-03-051-1/+1
| | | Signed-off-by: cui fliter <imcusg@gmail.com>
* Fix the PyGetSetDef documentation (GH-116056)Serhiy Storchaka2024-03-051-3/+3
| | | closure is not a function pointer, it is a user data pointer.
* gh-115777: Fix double versionadded directives (GH-116269)Serhiy Storchaka2024-03-056-24/+8
|
* gh-57141: Add dircmp shallow option (GH-109499)Tobias Rautenkranz2024-03-041-2/+7
| | | | | Co-authored-by: Steve Ward <planet36@gmail.com> Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
* Consistently spell out *predicate* instead of *pred*. (gh-116308)Raymond Hettinger2024-03-041-23/+16
|
* gh-115256: Remove refcycles from tarfile writing (GH-115257)pan3242024-03-041-0/+3
|
* GH-116271 Docs: provide clarification for object assignments in the Tutorial ↵Kerim Kabirov2024-03-041-7/+24
| | | | | | | section (#116283) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-116010: Remove link to deprecated PEP 6 in FAQ guide (#116246)Iman Tabrizian2024-03-031-3/+5
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-116281: Remove wrong '\' from '\*' in some doc signatures (#116282)HarryLHW2024-03-033-6/+6
|
* Docs: update using/configure.rst (#116274)Hugo van Kemenade2024-03-031-23/+31
|
* gh-72971: Clarify the special no-TypeError behavior for equality (#110729)Gouvernathor2024-03-031-1/+4
|
* gh-104711: Add security warning to the CGIHTTPRequestHandler document ↵AN Long2024-03-011-0/+6
| | | | (GH-115915)
* gh-116035: Document that both tzinfo and fold are ignored in comparisons if ↵Serhiy Storchaka2024-03-011-2/+8
| | | | | tzinfo is the same (GH-116187) This mostly restores information removed in c12240ed28aac6494750e00143bc550c4d6d8ad1 (GH-114749).
* gh-104219: Document that idunders can return NotImplemented (#104220)Gouvernathor2024-03-011-2/+4
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) ↵Sebastian Pipping2024-02-293-0/+71
| | | | | | | | | | | | | | | | | | | | | (GH-115623) Allow controlling Expat >=2.6.0 reparse deferral (CVE-2023-52425) by adding five new methods: - `xml.etree.ElementTree.XMLParser.flush` - `xml.etree.ElementTree.XMLPullParser.flush` - `xml.parsers.expat.xmlparser.GetReparseDeferralEnabled` - `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled` - `xml.sax.expatreader.ExpatParser.flush` Based on the "flush" idea from https://github.com/python/cpython/pull/115138#issuecomment-1932444270 . ### Notes - Please treat as a security fix related to CVE-2023-52425. Includes code suggested-by: Snild Dolkow <snild@sony.com> and by core dev Serhiy Storchaka.
* Fix rendering of null character in ast.rst (#116080)Shantanu2024-02-291-1/+1
|
* gh-73580: Docs for tunnelling TLS through TLS (GH-22539)Carl Bordum Hansen2024-02-291-0/+3
|
* Docs: mark up NotImplemented using the :data: role throughout the docs (#116135)Erlend E. Aasland2024-02-2914-37/+37
|
* gh-115811: Update documentation to add some Logger attributes. (GH-116109)Vinay Sajip2024-02-291-0/+36
|
* Make the iter_except() recipe more compact. (gh-116132)Raymond Hettinger2024-02-291-20/+1
| | | Only one example is needed
* gh-115881: Document feature_version limitations (#115980)Shantanu2024-02-291-6/+9
|
* gh-115937: Remove implementation details from inspect.signature() docs (#116086)Erlend E. Aasland2024-02-291-3/+7
| | | | | Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-115821: [Enum] better error message for calling super().__new__() (GH-116063)Ethan Furman2024-02-281-0/+3
| | | | docs now state to not call super().__new__ if super().__new__ is called, a better error message is now used
* Update an out-of-date example in the itertools recipe intro (gh-116082)Raymond Hettinger2024-02-281-1/+1
|
* Improve all_equal() recipe (gh-116081)Raymond Hettinger2024-02-281-3/+4
| | | Replace conjuction of next() calls with simpler len()/take() logic. Add key function.
* GH-115986 Reorder pprint docs and amend some references (#116019)Kerim Kabirov2024-02-281-89/+92
| | | | | | | | | Introduce a new subsubsection, 'Functions', for module level functions, and place it before the PrettyPrinter class reference. Also: - Fix pprint.pprint() references so they properly link to the module level function. - Add links to sys.stdout.
* doc: Use super() in subclassed JSONEncoder examples (GH-115565)Jan Max Meyer2024-02-281-2/+2
| | | | Replace calls to `json.JSONEncoder.default(self, obj)` by `super().default(obj)` within the examples of the documentation.
* gh-78612: Mark up eval() using param list (#115212)Erlend E. Aasland2024-02-281-5/+15
| | | Also mention that the 'expression' parameter can be a string.
* gh-105858: Improve AST node constructors (#105880)Jelle Zijlstra2024-02-282-11/+29
| | | | | | | | | | | | | | | | | Demonstration: >>> ast.FunctionDef.__annotations__ {'name': <class 'str'>, 'args': <class 'ast.arguments'>, 'body': list[ast.stmt], 'decorator_list': list[ast.expr], 'returns': ast.expr | None, 'type_comment': str | None, 'type_params': list[ast.type_param]} >>> ast.FunctionDef() <stdin>:1: DeprecationWarning: FunctionDef.__init__ missing 1 required positional argument: 'name'. This will become an error in Python 3.15. <stdin>:1: DeprecationWarning: FunctionDef.__init__ missing 1 required positional argument: 'args'. This will become an error in Python 3.15. <ast.FunctionDef object at 0x101959460> >>> node = ast.FunctionDef(name="foo", args=ast.arguments()) >>> node.decorator_list [] >>> ast.FunctionDef(whatever="you want", name="x", args=ast.arguments()) <stdin>:1: DeprecationWarning: FunctionDef.__init__ got an unexpected keyword argument 'whatever'. Support for arbitrary keyword arguments is deprecated and will be removed in Python 3.15. <ast.FunctionDef object at 0x1019581f0>
* gh-115315: Update time.rst to include microseconds field (%f) in chart (#115316)Tahoma Software2024-02-271-6/+16
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Doc: Clarify the return type of Event.wait when timeout is used (GH-104168)Phil Elson2024-02-261-10/+7
|
* gh-115091: Remove a left-over sentence that refers to Py_OptimizeFlag from ↵Antti Haapala2024-02-261-4/+0
| | | | | | | ctypes documentation (GH-115092) Remove a left-over sentence that refers to Py_OptimizeFlag Remove a left-over sentence that refers to an example that was present in Python 3.10 and was using ``Py_OptimizeFlag``.
* gh-101100: Fix Sphinx warnings in `whatsnew/2.1.rst` (#112357)Hugo van Kemenade2024-02-262-38/+37
| | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-115921: Change 'equation' to 'expression' in random.rst (#115927)Terry Jan Reedy2024-02-261-1/+2
| | | In uniform function entry.
* GH-101112: Add "pattern language" section to pathlib docs (#114030)Barney Gale2024-02-261-56/+103
| | | Explain the `full_match()` / `glob()` / `rglob()` pattern language in its own section. Move `rglob()` documentation under `glob()` and reduce duplicated text.
* gh-115532: Add kernel density estimation to the statistics module (gh-115863)Raymond Hettinger2024-02-252-40/+57
|
* gh-115799: Add missing double-quote in docs (#115884)bssyousefi2024-02-251-1/+1
|