Skip to content

HashTableNT: support adding and removing elements from the namedtuple? #31

Open

Description

@ThomasWaldmann

Think about whether we want such functionality in HashTableNT or if such stuff rather belongs elsewhere (like in the HashTableNT users code):

  • dropping an element and loading an old ht that still has it is relatively straightforward
  • adding an element and loading an old ht that does not yet have it is more difficult: would need a default value for the new element.

Activity

  1. added this to the 0.1.0 milestone on Nov 12, 2024
  2. ThomasWaldmann commented on Nov 12, 2024

    @ThomasWaldmann
    MemberAuthor

    https://docs.python.org/3/library/collections.html#collections.namedtuple

    • we could require giving a default for all (or new) elements in the namedtuple defaults list
    • _field_defaults is the namedtuple attribute that stores the defaults
  3. modified the milestones: 0.1.0, 0.2.0 on Nov 18, 2024
  4. modified the milestones: 0.2.0, 0.3.0 on Aug 11, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions