summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-114364: Fix awkward wording about mmap.mmap.seekable (#114374)technillogue2024-02-011-2/+2
| | | | | | --------- Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-70303: Make `pathlib.Path.glob('**')` return both files and directories ↵Barney Gale2024-01-301-0/+10
| | | | | | | | | | | | (#114684) Return files and directories from `pathlib.Path.glob()` if the pattern ends with `**`. This is more compatible with `PurePath.full_match()` and with other glob implementations such as bash and `glob.glob()`. Users can add a trailing slash to match only directories. In my previous patch I added a `FutureWarning` with the intention of fixing this in Python 3.15. Upon further reflection I think this was an unnecessarily cautious remedy to a clear bug.
* gh-109975: Copyedit "What's New in Python 3.13" (#114401)Hugo van Kemenade2024-01-301-110/+108
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-113732: Fix support of QUOTE_NOTNULL and QUOTE_STRINGS in csv.reader ↵Serhiy Storchaka2024-01-301-1/+1
| | | | (GH-113738)
* Fix more references to datetime and time classes (GH-114717)Serhiy Storchaka2024-01-291-2/+2
| | | They could be confused with references to datetime and time modules.
* gh-101100: Fix Sphinx warnings in `whatsnew/2.2.rst` (#112366)Hugo van Kemenade2024-01-291-70/+70
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-100734: Add 'Notable change in 3.11.x' to `whatsnew/3.11.rst` (#114657)Hugo van Kemenade2024-01-281-0/+26
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-101100: Fix Sphinx warnings in `whatsnew/3.11.rst` and related (#114531)Hugo van Kemenade2024-01-273-51/+51
|
* gh-88569: add `ntpath.isreserved()` (#95486)Barney Gale2024-01-261-0/+15
| | | | | | | | | | | Add `ntpath.isreserved()`, which identifies reserved pathnames such as "NUL", "AUX" and "CON". Deprecate `pathlib.PurePath.is_reserved()`. --------- Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* GH-73435: Add `pathlib.PurePath.full_match()` (#114350)Barney Gale2024-01-261-1/+2
| | | | | | | | | | | | | | | | In 49f90ba we added support for the recursive wildcard `**` in `pathlib.PurePath.match()`. This should allow arbitrary prefix and suffix matching, like `p.match('foo/**')` or `p.match('**/foo')`, but there's a problem: for relative patterns only, `match()` implicitly inserts a `**` token on the left hand side, causing all patterns to match from the right. As a result, it's impossible to match relative patterns from the left: `PurePath('foo/bar').match('bar/**')` is true! This commit reverts the changes to `match()`, and instead adds a new `full_match()` method that: - Allows empty patterns - Supports the recursive wildcard `**` - Matches the *entire* path when given a relative pattern
* gh-111301: Advertise importlib methods removal in What's new in Python 3.12 ↵Karolina Surma2024-01-171-0/+12
| | | | (GH-111630)
* gh-113626: Add allow_code parameter in marshal functions (GH-113648)Serhiy Storchaka2024-01-161-0/+8
| | | | | Passing allow_code=False prevents serialization and de-serialization of code objects which is incompatible between Python versions.
* gh-78502: Add a trackfd parameter to mmap.mmap() (GH-25425)Zackery Spytz2024-01-161-0/+3
| | | | | | | | If *trackfd* is False, the file descriptor specified by *fileno* will not be duplicated. Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths ↵Barney Gale2024-01-131-0/+7
| | | | | | | | | | | | | (#113829) On Windows, `os.path.isabs()` now returns `False` when given a path that starts with exactly one (back)slash. This is more compatible with other functions in `os.path`, and with Microsoft's own documentation. Also adjust `pathlib.PureWindowsPath.is_absolute()` to call `ntpath.isabs()`, which corrects its handling of partial UNC/device paths like `//foo`. Co-authored-by: Jon Foster <jon@jon-foster.co.uk>
* gh-113664: Improve style of Big O notation (GH-113695)Serhiy Storchaka2024-01-103-4/+4
| | | | Use cursive to make it looking like mathematic formulas.
* gh-101100: Fix Sphinx warnings for 2.6 port-specific deprecations (#113752)Hugo van Kemenade2024-01-092-81/+75
|
* gh-73965: New environment variable PYTHON_HISTORY (#13208)Zackery Spytz2024-01-071-0/+5
| | | | | | | | It can be used to set the location of a .python_history file --------- Co-authored-by: Levi Sabah <0xl3vi@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Fix Sphinx warnings in `library/pyclbr.rst` (#113739)Hugo van Kemenade2024-01-051-2/+2
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101100: Fix Sphinx warnings for 2.6 deprecations and removals (#113725)Hugo van Kemenade2024-01-057-55/+55
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Document the `co_lines` method on code objects (#113682)Alex Waygood2024-01-032-3/+6
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Fix Sphinx warnings for removed dead batteries (#113669)Hugo van Kemenade2024-01-0312-43/+43
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101100: Fix Sphinx warnings from removed `~!` references (#113629)Hugo van Kemenade2024-01-026-15/+15
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* # gh-111700: Fix syntax highlighting for C code in the "What's New In Python ↵Parth Doshi2024-01-011-1/+3
| | | | | 3.12" documentation (#113609) Fix PEP 684 syntax highlighting in what's new Python 3.12
* gh-101100: Fix Sphinx warnings in `library/configparser.rst` (#113598)Hugo van Kemenade2023-12-315-11/+11
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-73427: deprecate `_enablelegacywindowsfsencoding` (#107729)Inada Naoki2023-12-281-0/+4
|
* gh-64020: Deprecate pydoc.ispackage() (GH-20908)Zackery Spytz2023-12-271-0/+3
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-21360: mailbox.Maildir now ignores files with a leading dot (GH-11833)Zackery Spytz2023-12-251-0/+3
| | | | | | The maildir format specification states that files with a leading dot should be ignored. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-113191: Add support of os.fchmod() on Windows (GH-113192)Serhiy Storchaka2023-12-241-0/+4
| | | | Also support a file descriptor in os.chmod().
* gh-113174: Sync with importlib_metadata 7.0 (#113175)Jason R. Coombs2023-12-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | * Sync with importlib_metadata 7.0.0 * Add blurb * Update docs to reflect changes. * Link datamodel docs for object.__getitem__ Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Add what's new for removed __getattr__ * Link datamodel docs for object.__getitem__ Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Add exclamation point, as that seems to be used for other classes. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True (#113118)Jakub Kulík2023-12-171-0/+26
| | | | | | | | Add support for `os.POSIX_SPAWN_CLOSEFROM` and `posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use them when available. This means `posix_spawn` can now be used in the default `close_fds=True` situation on many platforms. Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* gh-113119 fix environment handling in subprocess.Popen when posix_spawn is ↵Jakub Kulík2023-12-171-0/+4
| | | | | | | used (#113120) * Allow posix_spawn to inherit environment form parent environ variable. With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
* gh-67790: Support basic formatting for Fraction (#111320)Mark Dickinson2023-12-161-0/+8
| | | | | | | | | | | PR #100161 added fancy float-style formatting for the Fraction type, but left us in a state where basic formatting for fractions (alignment, fill, minimum width, thousands separators) still wasn't supported. This PR adds that support. --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() ↵Victor Stinner2023-12-151-0/+13
| | | | | | | | | | (#111116) Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). Add an optional 'strict' parameter to getaddresses() and parseaddr() functions. Patch by Thomas Dwyer. Co-Authored-By: Thomas Dwyer <github@tomd.tel>
* gh-101100: Fix Sphinx warnings in `whatsnew/2.3.rst` (#112373)Hugo van Kemenade2023-12-141-138/+138
|
* gh-112730: Update docs for colour env vars (#112837)Hugo van Kemenade2023-12-141-1/+2
|
* gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows ↵Serhiy Storchaka2023-12-141-0/+6
| | | | (GH-113049)
* Docs: Fix external link to devguide.python.org (GH-112899)Miro Hrončok2023-12-131-1/+1
|
* gh-101100: Improve docs on exception attributes (GH-113057)Alex Waygood2023-12-131-5/+6
| | | | | | | | | | | * Improve docs on exception attributes * thanks sphinx-lint * fix doctests * argh, okay, give up on doctests * Various improvements
* gh-101100: Fix Sphinx warning in references with asterisks (#113029)Hugo van Kemenade2023-12-135-6/+6
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-83162: Rename re.error for better clarity. (#101677)achhina2023-12-111-0/+5
| | | | | | | | | Renamed re.error for clarity, and kept re.error for backward compatibility. Updated idlelib files at TJR's request. --------- Co-authored-by: Matthias Bussonnier <mbussonnier@ucmerced.edu> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-101100: Improve documentation on function attributes (#112933)Alex Waygood2023-12-116-14/+18
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Improve documentation of `TracebackType` attributes (#112884)Alex Waygood2023-12-092-3/+4
|
* gh-101100: Improve documentation for attributes on instance methods (#112832)Alex Waygood2023-12-082-4/+5
|
* gh-101100: Silence Sphinx warnings when `ntpath` or `posixpath` are ↵Alex Waygood2023-12-071-3/+3
| | | | referenced (#112833)
* gh-112826: Add a "What's New" Entry About _thread._is_main_interpreter ↵Eric Snow2023-12-072-0/+19
| | | | | | | (gh-112853) As of gh-112661, the threading module expects the _thread module to have a _is_main_interpreter(), which is used in the internal threading._shutdown(). This change causes a problem for anyone that replaces the _thread module with a custom one (only if they don't provide _is_main_interpreter()). They need to be sure to add it for 3.13+, thus this PR is adding a note in "What's New". This also forward-ports the "What's New" entry from 3.12 (gh-112850). Note that we do not also forward-port the fix in that PR. The fix is there only due to a regression from 3.12.0. There is no regression in 3.13+.
* gh-112730: Use color to highlight error locations (gh-112732)Pablo Galindo Salgado2023-12-061-0/+6
| | | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-101100: Improve documentation of code object attributes (#112781)Alex Waygood2023-12-065-9/+13
|
* gh-111545: Add Py_HashPointer() function (#112096)Victor Stinner2023-12-061-0/+3
| | | | | * Implement _Py_HashPointerRaw() as a static inline function. * Add Py_HashPointer() tests to test_capi.test_hash. * Keep _Py_HashPointer() function as an alias to Py_HashPointer().
* gh-101100: Properly document frame object attributes (#112735)Alex Waygood2023-12-055-9/+11
|
* gh-103363: Add follow_symlinks argument to `pathlib.Path.owner()` and ↵Kamil Turek2023-12-041-3/+5
| | | | `group()` (#107962)