Skip to content

Version 8.0.1 - #350

Merged
cdgriffith merged 29 commits into
masterfrom
develop
Nov 13, 2026
Merged

cdgriffith merged 29 commits into
masterfrom
develop

Conversation

@cdgriffith

@cdgriffith cdgriffith commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Version 8.0.1

Bug fix release for 8.0.0, mostly for BoxList comments and frozen boxes. It also includes two breaking changes to Box.update() (and the | / |= operators, which use it).

⚠️ Breaking changes

Before this release update() skipped the rules that box[key] = value and the Box(...) constructor follow. It now follows them. Code that relied on the old behavior may end up with different data, or an error, after upgrading. The wiki page Major Version Breaking Changes has before/after examples.

Fixes

Merged pull requests

#349, #351, #353, #355, #357, #359, #360, #361

Thanks to @HocVoNgThai, @Mrun25, @alexbertho, @parijat1222q, @rahul05ranjan, @peterolkhov and @anishpentyala.

Closes #354, closes #356, closes #358

🤖 Generated with Claude Code

HocVoNgThai and others added 11 commits November 5, 2026 16:49
…orting (@HocVoNgThai)

Preserve BoxList comments during dotted deletion and sorting
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
update() wrote through __convert_and_store directly, skipping the
_parse_box_dots traversal that __setitem__ applies, so a key such as
'x.z' was stored as a literal key in parallel to the nested x path —
even when x already existed. merge_update already stores through
__setitem__ and nests correctly; Box + Box merges through update() and
was affected too.

update() now routes keys that box_dots would treat as paths through
__setitem__; everything else (non-dotted keys, or keys matched by
box_dots_exclude) keeps the previous behavior.

Fixes #356

Co-authored-by: rahul05ranjan <11793455+rahul05ranjan@users.noreply.github.com>
The out-of-place operators fell through to plain list, dropping the
class, the box options and the conversion of appended items:

    BoxList([{'a': 1}]) + [{'b': 2}]  -> plain list, second item a raw dict
    BoxList([{'a': 1}]) * 2          -> plain list

__add__ and __mul__ now return a BoxList with the same box options;
appended items are converted the same way append/extend convert them,
and a frozen operand produces a frozen result. The in-place variants
were already correct.

Fixes #358

Co-authored-by: rahul05ranjan <11793455+rahul05ranjan@users.noreply.github.com>
# Conflicts:
#	CHANGES.rst
# Conflicts:
#	AUTHORS.rst
#	CHANGES.rst
cdgriffith and others added 18 commits November 13, 2026 11:12
… mode

Fix update() storing dotted keys literally in box_dots mode
# Conflicts:
#	test/test_box_list.py
Make BoxList + and * return a BoxList
… reflected multiply

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…und trips

Parametrized matrix over every BoxList mutator (plain, box_dots, frozen),
box_dots accessor consistency, and copy/deepcopy/pickle round trips of
Box, BoxList, ConfigBox, SBox and DDBox with comments. Known bugs are
reproduced as strict xfails (run with --runxfail to see them fail).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ied comments

- BoxList checks frozen_box on every change; a frozen Box gets its own frozen copy of a BoxList
- deepcopy of a frozen Box keeps the nested Boxes frozen
- frozen lists (tuples) carry comments and follow box_dots list paths
- slice assignment / deletion keep the comments of the other items
- BoxList +, *, n *, *= copy item comments
- box_dots: pop() default for out of range index, no parent created by failed del,
  garbage BoxList index rejected, negative index accepted
- audit test matrix added; ruff format

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nience

test_negative_and_out_of_range_list_indexes asserted that a[-1] raises, which is
intended behaviour, not a bug.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…mment updates

Normalize BoxList in-place repetition counts before comment updates
Apply configured insertion rules in Box.update

# Conflicts:
#	CHANGES.rst
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cdgriffith
cdgriffith merged commit e6d8310 into master Nov 13, 2026
36 checks passed
@cdgriffith
cdgriffith deleted the develop branch November 13, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

8 participants