Repository navigation
BUG: preserve assertion errors for nested sequence length mismatches - #69015
Merged
jbrockmendel merged 2 commits intoSep 21, 2026
Merged
jbrockmendel merged 2 commits into
jbrockmendel merged 2 commits into
Conversation
| try: | ||
| r = list(set(a) ^ set(b)) | ||
| except TypeError: | ||
| # Nested sequences can contain unhashable elements. |
Member
There was a problem hiding this comment.
Can you include # GH#69014 here
jbrockmendel
approved these changes
Sep 19, 2026
Member
|
thanks @Ai-Eastern |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When object-dtype Series or DataFrame values contain nested sequences of different lengths, constructing the optional set difference can raise TypeError before the comparison reports its AssertionError. Skip that optional diagnostic when the elements cannot be hashed, while preserving it for hashable values. Add regression coverage for both comparison directions, the Series/DataFrame error details, and the hashable diagnostic.
AI disclosure: Developed with OpenAI Codex using GPT-6 Astra (
gpt-6-astra), reasoning effortultra. The same model and effort were used for reproduction, root-cause analysis, implementation, regression tests, the release note, local validation, and this PR draft. Two same-model read-only assistants checked issue/policy status and reviewed edge cases/the final diff. The agents were instructed to followAGENTS.md. No work from the previous attempted branch or workspace was read, reused, or cherry-picked.doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.Check exactly one of the following, per the automated contributions policy:
AGENTS.md, I have reviewed and understood every change, and I have described above how I used it and exactly which tool, model version, and effort setting.Local validation on Windows x64, CPython 3.12.13 and NumPy 2.5.3, using the compiled Cython extension from this checkout:
Of the 18 skips, 17 require the optional pyarrow dependency and one is the existing missing-file fixture case. The two expected failures concern the existing check_exact_index default. The full pandas suite, documentation build, and upstream CI have not been run locally.