Skip to content

Bug in default #5

@andresriancho

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

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