Skip to content

Consider reverting headers set-like views #1136

Closed

Description

@florimondmanca

Just a quick issue to track that we might want to revert #1114.

It adds set like views for headers but fails to implement the "views should reflect mutations of the mapping" part, leading to more ambiguous / buggy behavior than when we were obviously returning plain lists.

Then maybe we should just treat this "header views" idea as a "no"...?

Activity

  1. added this to the v0.14 milestone on Aug 6, 2020
  2. lovelydinosaur commented on Aug 6, 2020

    @lovelydinosaur
    Member

    I'm pretty okay with our status there. We're annotating the interface, not the behaviour.

    And yes there's a minor gotcha there, for advanced Python users who try to do something that's a bit too clever for their own good but it's an issue that's there either way around.

    Obviously we could accept PRs that switched those out to being actual live views, rather than copies, but I'd rather we had a proper Mapping-like interface, than not.

  3. florimondmanca commented on Aug 6, 2020

    @florimondmanca
    ContributorAuthor

    Sure, I'm on the fence because of this as well - overall #1114 felt like progress, even though there's now this gotcha about some part of the mapping API we weren't implementing yet anyway.

  4. removed this from the v0.14 milestone on Aug 6, 2020
  5. florimondmanca commented on Aug 6, 2020

    @florimondmanca
    ContributorAuthor

    Well, then maybe let's close this, and if/when someone hits the somewhat very niche "my header views aren't updated when I update the headers instance" use case and reports it we can track that separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorIssues and PRs related to code refactoring

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions