summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* Fix syntax error in an example in the ast documentation and sync docstrings ↵Pablo Galindo2020-03-121-1/+1
| | | | (GH-18946)
* Update some www.unicode.org URLs to use HTTPS. (GH-18912)Benjamin Peterson2020-03-112-4/+4
|
* closes bpo-39926: Update Unicode to 13.0.0. (GH-18910)Benjamin Peterson2020-03-112-5/+5
|
* tracemalloc: 'pretty top' example no longer changes the filename (GH-18903)Adam Johnson2020-03-101-3/+1
| | | | | I've used this recipe a couple times and the filename editing has always been less than useful and something I've removed. This is because many modules end up losing which package they are located in, e.g. `util/date.py`.
* bpo-34822: Simplify AST for subscription. (GH-9605)Serhiy Storchaka2020-03-101-37/+31
| | | | | | | | | * Remove the slice type. * Make Slice a kind of the expr type instead of the slice type. * Replace ExtSlice(slices) with Tuple(slices, Load()). * Replace Index(value) with a value itself. All non-terminal nodes in AST for expressions are now of the expr type.
* bpo-1294959: Add sys.platlibdir attribute (GH-18381)Victor Stinner2020-03-101-0/+21
| | | | | | | | | | | | | Add --with-platlibdir option to the configure script: name of the platform-specific library directory, stored in the new sys.platlitdir attribute. It is used to build the path of platform-specific dynamic libraries and the path of the standard library. It is equal to "lib" on most platforms. On Fedora and SuSE, it is equal to "lib64" on 64-bit systems. Co-Authored-By: Jan Matějek <jmatejek@suse.com> Co-Authored-By: Matěj Cepl <mcepl@cepl.eu> Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
* bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 ↵Pete Wicken2020-03-091-1/+6
| | | | | | networks (GH-18757) The `.hosts()` method now returns the single address present in a /32 or /128 network.
* bpo-36287: Make ast.dump() not output optional fields and attributes with ↵Serhiy Storchaka2020-03-091-99/+75
| | | | | | | default values. (GH-18843) The default values for optional fields and attributes of AST nodes are now set as class attributes (e.g. Constant.kind is set to None).
* bpo-38691: importlib ignores PYTHONCASEOK if -E is used (GH-18627)idomic2020-03-091-0/+3
| | | | | The importlib module now ignores the PYTHONCASEOK environment variable when the -E or -I command line options are being used.
* bpo-39852: IDLE 'Go to line' deletes selection, updates status (GH-18801)Terry Jan Reedy2020-03-081-1/+3
| | | | | | It appears standard that moving the text insert cursor away from a selection clears the selection. Clearing prevents accidental deletion of a possibly off-screen bit of text. The update is for Ln and Col on the status bar.
* bpo-39567: Document audit for os.walk, os.fwalk, Path.glob and Path.rglob. ↵Serhiy Storchaka2020-03-082-0/+8
| | | | (GH-18499)
* bpo-36144: Update MappingProxyType with PEP 584's operators (#18814)Brandt Bucher2020-03-071-0/+5
| | | We make `|=` raise TypeError, since it would be surprising if `C.__dict__ |= {'x': 0}` silently did nothing, while `C.__dict__.update({'x': 0})` is an error.
* bpo-39199: Use 'eval' mode for the examples with expression nodes (GH-18828)Pablo Galindo2020-03-071-292/+211
| | | Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
* bpo-36144: Implement defaultdict union (GH-18729)Brandt Bucher2020-03-061-0/+4
| | | For PEP 585 (this isn't in the PEP but is an obvious follow-up).
* IDLE doc: improve Startup failure subsection. (#18771)Jules Lasne (jlasne)2020-03-061-7/+10
| | | | | | Eliminate repeat of 'Options', reported by Jules Lasne, and improve wording elsewhere. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Add a missing space after a period in 'typing.TypedDict' documentation ↵Miss Islington (bot)2020-03-051-1/+1
| | | | (GH-18784)
* bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719)Brett Cannon2020-03-041-1/+1
|
* bpo-39674: Revert "bpo-37330: open() no longer accept 'U' in file mode ↵Victor Stinner2020-03-043-11/+15
| | | | | | | (GH-16959)" (GH-18767) This reverts commit e471e72977c83664f13d041c78549140c86c92de. The mode will be removed from Python 3.10.
* bpo-35712: Make using NotImplemented in a boolean context issue a ↵MojoVampire2020-03-031-1/+6
| | | | deprecation warning (GH-13195)
* bpo-39674: Update collections ABC deprecation doc (GH-18747)Victor Stinner2020-03-031-1/+1
|
* bpo-39775: inspect: Change Signature.parameters back to OrderedDict. (GH-18684)Inada Naoki2020-03-021-7/+4
|
* Fix misleading statement about mixed-type numeric comparisons (GH-18615)Mark Dickinson2020-03-021-2/+4
|
* bpo-39199: Add descriptions of non-deprecated nodes to the AST module ↵Pablo Galindo2020-03-021-6/+1497
| | | | | | | | | documentation (GH-17812) Adapted from https://greentreesnakes.readthedocs.io Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* Mention backports (GH-18715)Stefan Krah2020-02-291-1/+1
|
* bpo-39794: Add --without-decimal-contextvar (#18702)Stefan Krah2020-02-291-3/+12
|
* bpo-39667: Sync zipp 3.0 (GH-18540)Jason R. Coombs2020-02-291-4/+14
| | | | | | | | | | | | | | * bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0 * 📜🤖 Added by blurb_it. * Update docs for new zipfile.Path.open * Rely on dict, faster than OrderedDict. * Syntax edits on docs Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-37534: Allow adding Standalone Document Declaration when generating XML ↵Henry Harutyunyan2020-02-291-3/+16
| | | | documents (GH-14912)
* bpo-39769: Fix compileall ddir for subpkgs. (GH-18676)Gregory P. Smith2020-02-291-2/+2
| | | | | | | | | | Fix compileall.compile_dir() ddir= behavior on sub-packages. Fixes compileall.compile_dir's ddir parameter and compileall command line flag `-d` to no longer write the wrong pathname to the generated pyc file for submodules beneath the root of the directory tree being compiled. This fixes a regression introduced with Python 3.5. Also marks the _new_ in 3.9 from PR #16012 parameters to compile_dir as keyword only (as that is the only way they will be used) and fixes an omission of them in one place from the docs.
* bpo-39718: add TYPE_IGNORE, COLONEQUAL to py38 changes in token (GH-18598)Shantanu2020-02-281-1/+1
|
* bpo-13790: Change 'string' to 'specification' in format doc (GH-18690)Terry Jan Reedy2020-02-281-2/+2
|
* bpo-36144: Document PEP 584 (GH-18659)Brandt Bucher2020-02-261-0/+16
|
* bpo-34788: Add support for scoped IPv6 addresses (GH-13772)opavlyuk2020-02-262-12/+34
| | | Automerge-Triggered-By: @asvetlov
* bpo-39128: Added algorithm description (GH-18624)idomic2020-02-241-0/+11
| | | | | | | | | | # [bpo-39128](https://bugs.python.org/issue39128): happy eyeballs description # [3.9] 39128 - happy eyeballs description (GH-18624) # [3.8] 39128 - happy eyeballs description (GH-18624) https://bugs.python.org/issue39128
* bpo-39654: Update pyclbr doc to reflect additional information returned ↵Hakan Çelik2020-02-241-3/+6
| | | | | | | | | (GH-18528) Full nested function and class info makes it a module browser. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39576: Clarify the word size for the 32-bit build. (#18616)Stefan Krah2020-02-231-2/+2
|
* bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments. ↵Serhiy Storchaka2020-02-231-13/+20
| | | | | | | | | | | | | | | | (GH-18604) * bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments. * Simplify fast path. * Difine lcm() without arguments returning 1. * Apply suggestions from code review Co-Authored-By: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* bpo-39576: docs: set context for decimal arbitrary precision arithmetic (#18594)Stefan Krah2020-02-211-8/+58
|
* bpo-38657: Clarify numeric padding behaviour in string formatting (GH-17036)Pete Wicken2020-02-211-2/+3
| | | | | | | | | | | Make the definition of the width more explicit that it includes any extra signs added by other options. https://bugs.python.org/issue38657 Automerge-Triggered-By: @Mariatta
* bpo-39479:Add math.lcm() function: Least Common Multiple (#18547)ananthan-1232020-02-191-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update math.rst * Update math.rst * updated whats new * Update test_math.py * Update mathmodule.c * Update mathmodule.c.h * Update ACKS * 📜🤖 Added by blurb_it. * Update 3.9.rst * Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst * Update math.rst * Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst * Update test_math.py * Update ACKS * Update mathmodule.c.h * Update mathmodule.c * Update mathmodule.c.h * Update mathmodule.c.h Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Revert "bpo-38691 Added a switch to ignore PYTHONCASEOK when -E or -I flags ↵Victor Stinner2020-02-191-3/+0
| | | | | passed (#18314)" (GH-18553) This reverts commit d83b6600b25487e4ebffd7949d0f478de9538875.
* bpo-39572: Document ’total’ flag of TypedDict (GH-18554)ananthan-1232020-02-191-2/+14
|
* bpo-39674: Revert "bpo-25988: Do not expose abstract collection classes in ↵Victor Stinner2020-02-181-1/+1
| | | | | | | | the collections module. (GH-10596)" (GH-18545) This reverts commit ef092fe9905f61ca27889092ca1248a11aa74498. Update collections __getattr__() and documentation to defer aliases removal to Python 3.10.
* bpo-38691 Added a switch to ignore PYTHONCASEOK when -E or -I flags passed ↵idomic2020-02-171-0/+3
| | | | | | | | | | | | | | | | | | | | | (#18314) * Hard reset + cherry piciking the changes. * 📜🤖 Added by blurb_it. * Added @vstinner News * Update Misc/NEWS.d/next/Library/2020-02-11-13-01-38.bpo-38691.oND8Sk.rst Co-Authored-By: Victor Stinner <vstinner@python.org> * Hard reset to master * Hard reset to master + latest changes Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-32892: Update the documentation for handling constants in AST. (GH-18514)Serhiy Storchaka2020-02-171-3/+7
|
* bpo-12915: Add pkgutil.resolve_name (GH-18310)Vinay Sajip2020-02-141-0/+41
|
* bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, ↵Saiyang Gou2020-02-137-0/+117
| | | | `resource`, `shutil`, `signal`, `syslog` (GH-18407)
* bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)Roger Hurwitz2020-02-111-6/+0
| | | | | | | | | | Reflecting changes to the code, removed weakref.ReferenceError from weakref.rst and exceptions.rst. Issue submitter provided evidence that the `weakref.ReferenceError` alias for `ReferenceError` was removed from the code in 2007. Working with @gvanrossum at PyCascades CPython sprint we looked at the code and confirmed that `weakref.ReferenceError` was no longer in `weakref.py`. Based on that analysis I removed references `weakref.ReferenceError` from the two documents where it was still being referenced: `weakref.rst` and `exceptions.rst`. https://bugs.python.org/issue38374
* bpo-39417: Fix broken link to guide to building venvs (GH-18432)Ogi Moore2020-02-101-1/+1
|
* bpo-13826: Clarify Popen constructor example (GH-18438)Tim D. Smith2020-02-101-2/+8
| | | | | | | | | | Clarifies that the use of `shlex.split` is more instructive than normative, and provides a simpler example. https://bugs.python.org/issue13826
* bpo-39594: Fix typo in os.times documentation (GH-18443)Roger Hurwitz2020-02-101-4/+2
| | | | | There was an extra space in the url markup, causing the documentation not rendered properly. https://bugs.python.org/issue39594