Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRU.__repr__ bug #20

Closed
duerrp opened this issue Apr 11, 2015 · 0 comments
Closed

LRU.__repr__ bug #20

duerrp opened this issue Apr 11, 2015 · 0 comments

Comments

@duerrp
Copy link

duerrp commented Apr 11, 2015

Hi,

Thanks for fixing cached, now it works great. I've been playing with LRU and there's another small problem:

def __repr__(self):
        cn = self.__class__.__name__
        val_map = super(LRU, self).__repr__()
        return ('%s(max_size=%r, on_miss=%r, values=%s)'
                % (cn, self.on_miss, self.max_size, val_map))

has max_size and on_miss reversed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant