Skip to content

Bug in default #5

Description

@andresriancho

In these method, and probably others, the default parameter is not sent to the underlying dict: None is always sent.

https://github.com/deterministic-arts/DartsPyLRU/blob/master/darts/lib/utils/lru.py#L552-L584

This breaks the functionality. Example PoC:

lru = SynchronizedLRUDict()
default = lru.get('foo', default=1)
assert default==1

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions