summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* Docs: normalize SQL style in sqlite3 docs (#96403)Erlend E. Aasland2022-08-291-7/+7
|
* gh-91305: Add a note about DatagramHandler and DNS latency. (GH-96380)Vinay Sajip2022-08-291-0/+7
|
* gh-90814: Correct NEWS wording re. optional C11 features (GH-96309)Petr Viktorin2022-08-291-1/+2
| | | | | | | | | | | The previous wording of this entry suggests that CPython won't work if optional compiler features are enabled. That's not the case. The change is that we require C11 rather than C89. Note that PEP 7 does say "Python 3.11 and newer versions use C11 without optional features." It is correct there: that's not a guide for users who compile Python, but for CPython devs who must avoid the features.
* gh-95432: Add doctests for the sqlite3 docs (#96225)Erlend E. Aasland2022-08-291-64/+125
| | | | | | | 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
* GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)Jonathan Oberländer2022-08-281-1/+1
|
* gh-69142: add %:z strftime format code (gh-95983)TW2022-08-281-2/+14
| | | | | | | | | | | | | | | | 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>
* Docs: Fix count of bullets in asyncio-task.rst (#96307)zhanpon2022-08-271-1/+1
|
* gh-77116: Add SMTP buffering example to logging cookbook. (GH-96324)Vinay Sajip2022-08-261-0/+82
|
* Fix documentation typo for pathlib.Path.walk (GH-96301)Ansab Gillani2022-08-261-1/+1
|
* gh-95994: Clarify escaped newlines. (#96066)Ezio Melotti2022-08-261-11/+22
| | | | | | | | | | | | | * gh-95994: clarify escaped newlines. * Rephrase ambiguous sentence. Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Use `<newline>` in escape sequences table. Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* 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
|
* Clarify API stability of PyTypeObject in relation to static types. (GH-96217)ov2k2022-08-251-3/+3
| | | | | | | Fixes: https://github.com/python/cpython/issues/95300 Related: https://github.com/python/cpython/issues/91271
* gh-76728: Coerce DictReader and DictWriter fieldnames argument to a list ↵Sam Ezeh2022-08-251-0/+4
| | | | (GH-32225)
* gh-91070: Add note about SysLogHandler on macOS 12.x (Monterey). (GH-94803)Vinay Sajip2022-08-251-0/+6
|
* GH-93503: Add thread-specific APIs to set profiling and tracing functions in ↵Pablo Galindo Salgado2022-08-243-0/+50
| | | | | | | | | | | | | | | | | 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
* GH-96179: Fix misleading example on the bisect documentation (GH-96228)prego2022-08-241-1/+1
| | | | The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960.
* gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost ↵Dong-hee Na2022-08-241-0/+2
| | | | (gh-96231)
* gh-94635: Frame sqlite3 how-to headings as such & move default adapters to ↵C.A.M. Gerlach2022-08-241-48/+48
| | | | | | reference (#96136) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* GH-96145: Add AttrDict to JSON module for use with object_hook (#96146)Raymond Hettinger2022-08-231-0/+43
|
* gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants (#96134)C.A.M. Gerlach2022-08-231-4/+14
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-95432: Add doctest for sqlite3 tutorial (#96193)Erlend E. Aasland2022-08-231-16/+47
|
* gh-96121: Merge sqlite3.Row examples into sqlite3.Row class doc (#96122)Erlend E. Aasland2022-08-222-70/+18
| | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* small grammatical change (GH-96138)sand80892022-08-211-1/+1
| | | changed a to an under An example that uses most of the list methods
* GH-95880: Clarify StringIO append/overwrite behavior. (GH-96104)Raymond Hettinger2022-08-211-2/+6
|
* Add polynomial_from_roots() to the itertools recipes (#96102)Raymond Hettinger2022-08-211-0/+19
|
* gh-96098: Clearly link concurrent.futures from threading & multiprocessing ↵Nick Coghlan2022-08-212-1/+23
| | | | | | | docs (GH-96112) Clearly link concurrent.futures from threading & multiprocessing docs Also link directly to asyncio from the beginning of the threading docs.
* gh-90536: Fix link syntax to LLVM-BOLT repository (gh-96141)Dong-hee Na2022-08-201-1/+1
|
* GH-90997: Wrap yield from/await in a virtual try/except StopIteration (GH-96010)Brandt Bucher2022-08-191-3/+18
|
* Docs: Fix markup of module name in sqlite3 docs (#96115)Erlend E. Aasland2022-08-191-3/+3
|
* Doc: Use consistent markup for example Point class in sqlite3 (#96095)C.A.M. Gerlach2022-08-191-3/+3
|
* Docs: group sqlite3.Connection attributes and methods (#96090)Erlend E. Aasland2022-08-191-39/+37
|
* gh-94635: Remove sqlite3 doc introduction heading (#96089)Erlend E. Aasland2022-08-191-3/+0
|
* gh-96039: Corrected wording error in itertools doc (GH-96105)MrSuspicious2022-08-191-1/+1
|
* GH-95822: Need _PyType_Lookup() in descriptor howto code equivalent. (GH-95967)Raymond Hettinger2022-08-191-1/+21
|
* gh-95914: Add Py_UNICODE encode APIs removed in PEP 624 to 3.11 What's New ↵C.A.M. Gerlach2022-08-181-0/+25
| | | | | | | (#96016) * 3.11 Whatsnew: Add Py_UNICODE encode functions removed in PEP 624 * Just use :func: instead of :c:func: for non-resolved funcs so ! works
* GH-93179: Document the thread safety of functools.lru_cache (GH-95970)Raymond Hettinger2022-08-181-0/+6
|
* gh-90536: Add support for the BOLT post-link binary optimizer (gh-95908)Kevin Modzelewski2022-08-182-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for the BOLT post-link binary optimizer Using [bolt](https://github.com/llvm/llvm-project/tree/main/bolt) provides a fairly large speedup without any code or functionality changes. It provides roughly a 1% speedup on pyperformance, and a 4% improvement on the Pyston web macrobenchmarks. It is gated behind an `--enable-bolt` configure arg because not all toolchains and environments are supported. It has been tested on a Linux x86_64 toolchain, using llvm-bolt built from the LLVM 14.0.6 sources (their binary distribution of this version did not include bolt). Compared to [a previous attempt](https://github.com/faster-cpython/ideas/issues/224), this commit uses bolt's preferred "instrumentation" approach, as well as adds some non-PIE flags which enable much better optimizations from bolt. The effects of this change are a bit more dependent on CPU microarchitecture than other changes, since it optimizes i-cache behavior which seems to be a bit more variable between architectures. The 1%/4% numbers were collected on an Intel Skylake CPU, and on an AMD Zen 3 CPU I got a slightly larger speedup (2%/4%), and on a c6i.xlarge EC2 instance I got a slightly lower speedup (1%/3%). The low speedup on pyperformance is not entirely unexpected, because BOLT improves i-cache behavior, and the benchmarks in the pyperformance suite are small and tend to fit in i-cache. This change uses the existing pgo profiling task (`python -m test --pgo`), though I was able to measure about a 1% macrobenchmark improvement by using the macrobenchmarks as the training task. I personally think that both the PGO and BOLT tasks should be updated to use macrobenchmarks, but for the sake of splitting up the work this PR uses the existing pgo task. * Simplify the build flags * Add a NEWS entry * Update Makefile.pre.in Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> * Update configure.ac Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> * Add myself to ACKS * Add docs * Other review comments * fix tab/space issue * Make it more clear that --enable-bolt is experimental * Add link to bolt's github page Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* GH-95861: Add support for Spearman's rank correlation coefficient (GH-95863)Raymond Hettinger2022-08-181-11/+37
|
* Docs: Escape lone stars in sqlite3 docs (#96081)Erlend E. Aasland2022-08-181-5/+5
|
* gh-95271: Rework sqlite3 tutorial (#95749)Erlend E. Aasland2022-08-181-50/+138
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-93103: Doc uses PyConfig rather than deprecated vars (#96070)Victor Stinner2022-08-184-12/+10
| | | | The C API documentation now uses the new PyConfig API, rather than deprecated global configuration variables.
* gh-95913: Add traceback module additions to what's new in 3.11 (GH-95980)Irit Katriel2022-08-181-0/+14
|
* GH-95589: Dont crash when subclassing extension classes with multiple ↵Mark Shannon2022-08-171-0/+17
| | | | | | | inheritance (GH-96028) * Treat tp_weakref and tp_dictoffset like other opaque slots for multiple inheritance. * Document Py_TPFLAGS_MANAGED_DICT and Py_TPFLAGS_MANAGED_WEAKREF in what's new.
* gh-95991: Add some infrastructure for testing Limited API in _testcapi ↵Petr Viktorin2022-08-171-0/+6
| | | | | | | | | | | | | (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.)
* gh-96005: FreeBSD has ENOTCAPABLE, too (GH-96034)Christian Heimes2022-08-171-1/+1
|
* gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006)Christian Heimes2022-08-162-1/+15
| | | | | | - 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`.
* remove repetitive credit from what's new in 3.11 rst (GH-96024)Irit Katriel2022-08-161-1/+0
|
* gh-95957: Add instructions for Tcl/Tk and OpenSSL on RHEL/CentOS 7 (#95964)Christian Heimes2022-08-161-6/+13
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* Clarify asyncio.Runner docs re: loop_factory (#95979)Kumar Aditya2022-08-141-1/+3
|