From c8c274e9ac1f696c1489c373c59f04ec0f148353 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Tue, 6 Aug 2024 13:57:50 +0200 Subject: [PATCH] docs: minor changelog fixes --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85c1dbe5..97f7ee7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,9 +32,9 @@ See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#chan [#1265](https://github.com/python-attrs/attrs/issues/1265) - All packaging metadata except from `__version__` and `__version_info__` has been removed from the `attr` and `attrs` modules (for example, `attrs.__url__`). - Please use [`importlib.metadata`](https://docs.python.org/3/library/importlib.metadata.html) or [*importlib_metadata*](https://pypi.org/project/importlib-metadata/) instead. + Please use [`importlib.metadata`](https://docs.python.org/3/library/importlib.metadata.html) or [*importlib-metadata*](https://pypi.org/project/importlib-metadata/) instead. [#1268](https://github.com/python-attrs/attrs/issues/1268) -- Speed up the generated `__eq__` methods significantly by generating a chain of attribute comparisons instead of constructing and comparing tuples. +- The generated `__eq__` methods have been sped up significantly by generating a chain of attribute comparisons instead of constructing and comparing tuples. This change arguably makes the behavior more correct, but changes it if an attribute compares equal by identity but not value, like `float('nan')`. [#1310](https://github.com/python-attrs/attrs/issues/1310)