summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-94286 Fix documentation of print default param (GH-94297)Nouran Ali2022-11-061-1/+1
|
* gh-91485: Doc: Using Python syntax to document builtin Python functions. ↵Julien Palard2022-10-151-65/+84
| | | | (GH-96579)
* gh-64921: Clarify wording for open()'s newline arg (#96171)Stanley2022-10-071-2/+2
|
* gh-96397: Document that attributes need not be identifiers (#96454)Jeff Allen2022-09-291-0/+8
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-96512: Update int_max_str docs to say 3.11 (#96942)Gregory P. Smith2022-09-191-1/+1
| | | | 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.
* gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499)Gregory P. Smith2022-09-021-0/+7
| | | | | | | | | | | | | | | | 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.
* gh-96197: Define the behavior of repr if sys.displayhook is lost (gh-96242)Dong-hee Na2022-08-261-0/+2
|
* gh-96197: Fix expression when :func:`sys.breakpointhook is missing (gh-96293)Dong-hee Na2022-08-261-1/+1
|
* gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost ↵Dong-hee Na2022-08-241-0/+2
| | | | (gh-96231)
* gh-86986: Drop compatibility support for Sphinx 2 (GH-93737)Adam Turner2022-06-211-1/+1
| | | | | | | | | * Revert "bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)" This reverts commit 5c1f15b4b1024cbf0acc85832f0c623d1a4605fd * Revert "bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)" This reverts commit b63a620014b67a6e63d10783149c41baaf59def8.
* gh-71223: Improve rendering of some references in the docs (GH-93041)Serhiy Storchaka2022-05-211-0/+1
| | | | For example, instead of "eval()uated" (link from "eval()") show "evaluated" (link from the whole word).
* bpo-39229: fix formatting in library/functions.rst (#17857)Rafael Fontenelle2022-05-081-2/+2
| | | Missing reference of auditing event presents error when building translated documentation
* gh-92203: Add closure support to exec(). (#92204)larryhastings2022-05-061-1/+9
| | | Add a closure keyword-only parameter to exec(). It can only be specified when exec-ing a code object that uses free variables. When specified, it must be a tuple, with exactly the number of cell variables referenced by the code object. closure has a default value of None, and it must be None if the code object doesn't refer to any free variables.
* GH-89519: Deprecate classmethod descriptor chaining (#92379)Raymond Hettinger2022-05-061-0/+5
|
* gh-81488: Add recursive wording for issubclass docs (#92087)slateny2022-05-011-1/+2
|
* gh-91603: Speed up isinstance/issubclass on union types (GH-91631)Yurii Karabas2022-04-281-1/+2
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-91156: Use `locale.getencoding()` instead of getpreferredencoding (GH-91732)Inada Naoki2022-04-221-6/+5
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-30718: Add information about text buffering (GH-32351)slateny2022-04-201-1/+5
|
* bpo-44977: Deprecate delegation of int to __trunc__ (GH-31031)Zackery Spytz2022-02-031-0/+3
| | | | | Calling int(a) when type(a) implements __trunc__ but not __int__ or __index__ now raises a DeprecationWarning.
* bpo-43698: do not use `...` as argument name in docs (GH-30502)Nikita Sobolev2022-01-261-1/+1
|
* Add Positional only arguments forward slash (/) to sorted() function in ↵Vivek Vashist2021-12-151-1/+1
| | | | | | | Built-in Functions document (GH-30113) sorted() function is missing forward slash (/) in Built-in Functions documentation page. Automerge-Triggered-By: GH:asvetlov
* bpo-19737: Improved the documentation for globals (GH-29823)1809092021-12-111-3/+3
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45250: fix docs regarding `__iter__` and iterators being inconsistently ↵Brett Cannon2021-11-201-6/+3
| | | | | required by CPython (GH-29170) It is now considered a historical accident that e.g. `for` loops and the `iter()` built-in function do not require the iterators they work with to define `__iter__`, only `__next__`.
* [doc] Link to section File input (GH-28941)Andre Delfino2021-11-021-1/+1
|
* bpo-44344: Document that pow can return a complex number for non-complex ↵Mark Dickinson2021-10-211-1/+4
| | | | | inputs. (GH-27853) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [docs] Improve the markup of powers (GH-28598)Serhiy Storchaka2021-09-281-2/+2
|
* bpo-45246: Document that sorted() only uses "<" comparisons (GH-28494)Raymond Hettinger2021-09-211-0/+9
|
* bpo-37330: open() no longer accept 'U' in file mode (GH-28118)Victor Stinner2021-09-021-18/+7
| | | | | open(), io.open(), codecs.open() and fileinput.FileInput no longer accept "U" ("universal newline") in the file mode. This flag was deprecated since Python 3.3.
* bpo-44135: [docs] Fix inline markup (GH-28095)Ken Jin2021-08-311-1/+1
|
* bpo-44135: Refine explanation of how passing tuples to issubclass() behaves ↵Zack Kneupper2021-08-311-3/+3
| | | | | (GH-26193) Co-authored-by: Zachary Kneupper <zachary.kneupper@gmail.com>
* bpo-44522: Fix inaccurate information in open() function (GH-27650)meowmeowmeowcat2021-08-091-3/+3
| | | - Use "Low surrogate code units" instead of "Unicode Private Use Area"
* Clean up comma usage in Doc/library/functions.rst (#27083)α∂мιηιχтяαтσя2021-07-191-38/+38
|
* bpo-20408: Fix memoryview() signature in docs (GH-24431)Mariusz Felisiak2021-05-251-1/+1
|
* [doc] Be more clear on super() regarding multiple base classes methods ↵Andre Delfino2021-04-291-1/+1
| | | | (GH-21789)
* Update Sphinx directive for super from function to class (GH-25489)Géry Ogam2021-04-201-1/+1
|
* bpo-43682: Make staticmethod objects callable (GH-25117)Victor Stinner2021-04-111-5/+10
| | | Static methods (@staticmethod) are now callable as regular functions.
* bpo-43682: @staticmethod inherits attributes (GH-25268)Victor Stinner2021-04-091-0/+10
| | | | | | | | | | Static methods (@staticmethod) and class methods (@classmethod) now inherit the method attributes (__module__, __name__, __qualname__, __doc__, __annotations__) and have a new __wrapped__ attribute. Changes: * Add a repr() method to staticmethod and classmethod types. * Add tests on the @classmethod decorator.
* bpo-31861: Complete the C-API docs for PyObject_GetAiter and PyAiter_Check ↵Pablo Galindo2021-03-231-0/+2
| | | | (GH-25004)
* bpo-31861: Add aiter and anext to builtins (#23847)Joshua Bronson2021-03-231-25/+50
| | | | | | Co-authored-by: jab <jab@users.noreply.github.com> Co-authored-by: Daniel Pope <mauve@mauveweb.co.uk> Co-authored-by: Justin Wang <justin39@gmail.com>
* bpo-42840: Document providing kwargs to type. (#24173)Erik Soma2021-03-011-1/+8
| | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* Improve docs of PEP 604 Union (#24301)Ken Jin2021-02-091-2/+10
|
* bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)Terry Jan Reedy2021-02-071-1/+2
| | | These 3 statements cannot be used at module scope -- nor in exec with one namespace.
* bpo-8264: Document hasattr and getattr behavior for private attributes ↵Ken Jin2021-02-021-0/+14
| | | | | | | | (GH-23513) Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com>
* bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)Julien Palard2021-01-251-1/+1
|
* bpo-40304: Correct type(name, bases, dict) doc (GH-19553)Борис Верховский2021-01-221-8/+9
| | | | | Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* [doc] Fix erroneous backslashes in signatures and names (GH-23658)Andre Delfino2020-12-171-1/+1
| | | | | The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch). The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did.
* Clarify eval() doc from library/functions. (GH-22700)Antoine2020-12-161-8/+9
|
* bpo-42180: fix plural in arguments and control (GH-23015)Rafael Fontenelle2020-10-291-1/+1
| | | https://bugs.python.org/issue42180
* Add a link to buffer protocol in bytearray() doc (GH-22675)Antoine2020-10-261-2/+2
|
* bpo-41192: Add documentation of undocumented audit events (GH-21308)Saiyang Gou2020-10-201-0/+2
|