diff options
| author | Adam Johnson <me@adamj.eu> | 2025-05-11 23:07:47 +0200 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-05-13 21:42:19 -0300 |
| commit | 4647e2b8663cbd22a07af70bf0f8540946763851 (patch) | |
| tree | 13f94549c5f70b31ebdb3e031242941ca2338e63 /docs | |
| parent | 0f94ecd49d1af92d47bfa690ca39d4d71b5091cb (diff) | |
Refs #36383 -- Extended DeconstructibleSerializer to support non-identifier keyword arguments.
In Python, keyword arguments must normally be valid identifiers (i.e.,
variable names that follow Python's naming rules). However, Python dicts
can have keys that aren't valid identifiers, like "foo-bar" or "123foo".
This commit ensures that keyword arguments that are nt valid
identifiers, are properly handled when deconstructing an object.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/6.0.txt | 3 | ||||
| -rw-r--r-- | docs/spelling_wordlist | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt index 341da6fd68..611530bb0a 100644 --- a/docs/releases/6.0.txt +++ b/docs/releases/6.0.txt @@ -181,6 +181,9 @@ Migrations * Migrations now support serialization of :class:`zoneinfo.ZoneInfo` instances. +* Serialization of deconstructible objects now supports keyword arguments with + names that are not valid Python identifiers. + Models ~~~~~~ diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index e9441c62d9..6028f103e4 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -113,6 +113,7 @@ databrowse datafile datetimes declaratively +deconstructible deduplicates deduplication deepcopy |
