Home / Function/ __eq__() — requests Function Reference

__eq__() — requests Function Reference

Architecture documentation for the __eq__() function in structures.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  ad837ca9_2104_7038_f2ad_7c800a5fc37e["__eq__()"]
  1d1b9a9a_928e_82bc_295f_cc28d17d2e85["CaseInsensitiveDict"]
  ad837ca9_2104_7038_f2ad_7c800a5fc37e -->|defined in| 1d1b9a9a_928e_82bc_295f_cc28d17d2e85
  3423d00d_57c6_a65a_f5e3_2d61ccf6df5b["lower_items()"]
  ad837ca9_2104_7038_f2ad_7c800a5fc37e -->|calls| 3423d00d_57c6_a65a_f5e3_2d61ccf6df5b
  style ad837ca9_2104_7038_f2ad_7c800a5fc37e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/requests/structures.py lines 67–73

    def __eq__(self, other):
        if isinstance(other, Mapping):
            other = CaseInsensitiveDict(other)
        else:
            return NotImplemented
        # Compare insensitively
        return dict(self.lower_items()) == dict(other.lower_items())

Domain

Subdomains

Frequently Asked Questions

What does __eq__() do?
__eq__() is a function in the requests codebase, defined in src/requests/structures.py.
Where is __eq__() defined?
__eq__() is defined in src/requests/structures.py at line 67.
What does __eq__() call?
__eq__() calls 1 function(s): lower_items.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free