Skip to content

Improve error message when comparing two types.SimpleNamespace objects #136193

Closed

Description

@sobolevn

Feature or enhancement

Following #136109 (comment)

Old error message:

In [1]: from types import SimpleNamespace
In [2]: a = SimpleNamespace(a=1, b=2)
In [3]: b = SimpleNamespace(a=1, b=3)
In [4]: a < b
TypeError: '<' not supported between instances of 'dict' and 'dict'

New error message:

Image

Linked PRs

Activity

  1. self-assigned this
    on Jul 2, 2025
  2. added 4 commits that reference this issue on Jul 2, 2025
  3. added a commit that references this issue on Jul 11, 2025
  4. added a commit that references this issue on Jul 12, 2025
  5. added a commit that references this issue on Jul 13, 2025
  6. added a commit that references this issue on Aug 4, 2025
  7. added a commit that references this issue on Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions