Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DisableFormat: true
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## [1.4.0] - 2025-02-09

- Significantly reduced awaitable object size by dynamically allocating it.
- Reduced memory footprint by removing preallocated awaitable objects.
- Objects returned by a PyAwaitable object's `__await__` are now garbage collected (*i.e.*, they don't leak with rare circular references).
- Removed limit on number of stored callbacks or values.
- Switched some user-error messages to `RuntimeError` instead of `SystemError`.
- Added `PyAwaitable_DeferAwait` for executing code when the awaitable object is called by the event loop.
- Added `PyAwaitable_DeferAwait` for executing code without a coroutine when the awaitable object is called by the event loop.

## [1.3.0] - 2024-10-26

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup(
name="pyawaitable",
license="MIT",
version="1.4.0-dev",
version="1.4.0",
ext_modules=[
Extension(
"_pyawaitable",
Expand Down
2 changes: 1 addition & 1 deletion src/pyawaitable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from . import abi

__all__ = "PyAwaitable", "include", "abi"
__version__ = "1.3.0"
__version__ = "1.4.0"
__author__ = "Peter Bierma"

PyAwaitable: Type = _PyAwaitableType
Expand Down
3 changes: 2 additions & 1 deletion src/pyawaitable/pyawaitable.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ typedef struct _pyawaitable_abi
);
int (*defer_await)(
PyObject *aw,
defer_callback cb);
defer_callback cb
);
} PyAwaitableABI;

#ifdef PYAWAITABLE_THIS_FILE_INIT
Expand Down
Loading