From ce96a1c7f4b209c52778b6b0f968623db7c26dc7 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 7 Oct 2025 14:14:15 -0500 Subject: [PATCH 1/2] PYTHON-5609 Prepare for 4.15.3 Release --- doc/changelog.rst | 18 ++++++++++++++++++ pymongo/_version.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 9ca1d47e98..1a7189ae0f 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1,6 +1,24 @@ Changelog ========= +Changes in Version 4.15.3 (2025/10/07) +-------------------------------------- + +Version 4.15.3 is a bug fix release. + +- Fixed a memory leak when raising :class:`bson.errors.InvalidDocument` with C extensions. +- Fixed the return type of the :meth:`~pymongo.asynchronous.collection.AsyncCollection.distinct`, + :meth:`~pymongo.synchronous.collection.Collection.distinct`, :meth:`pymongo.synchronous.cursor.Cursor.distinct` and + :meth:`pymongo.asynchronous.cursor.AsyncCursor.distinct` methods. + +Issues Resolved +............... + +See the `PyMongo 4.15.3 release notes in JIRA`_ for the list of resolved issues +in this release. + +.. _PyMongo 4.15.3 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=47293 + Changes in Version 4.15.2 (2025/10/01) -------------------------------------- diff --git a/pymongo/_version.py b/pymongo/_version.py index b5c177930c..e517f56770 100644 --- a/pymongo/_version.py +++ b/pymongo/_version.py @@ -18,7 +18,7 @@ import re from typing import List, Tuple, Union -__version__ = "4.15.3.dev0" +__version__ = "4.15.3" def get_version_tuple(version: str) -> Tuple[Union[int, str], ...]: From 21e41684da26eb0ed74999b9f877fe185d7758c0 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 7 Oct 2025 15:10:34 -0500 Subject: [PATCH 2/2] address review --- doc/changelog.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 1a7189ae0f..bde6125c44 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -8,8 +8,8 @@ Version 4.15.3 is a bug fix release. - Fixed a memory leak when raising :class:`bson.errors.InvalidDocument` with C extensions. - Fixed the return type of the :meth:`~pymongo.asynchronous.collection.AsyncCollection.distinct`, - :meth:`~pymongo.synchronous.collection.Collection.distinct`, :meth:`pymongo.synchronous.cursor.Cursor.distinct` and - :meth:`pymongo.asynchronous.cursor.AsyncCursor.distinct` methods. + :meth:`~pymongo.synchronous.collection.Collection.distinct`, :meth:`pymongo.asynchronous.cursor.AsyncCursor.distinct`, + and :meth:`pymongo.asynchronous.cursor.AsyncCursor.distinct` methods. Issues Resolved ...............