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

return missing from queue_wrapped.py wrapped methods #1

Open
blgo opened this issue Sep 20, 2017 · 0 comments
Open

return missing from queue_wrapped.py wrapped methods #1

blgo opened this issue Sep 20, 2017 · 0 comments

Comments

@blgo
Copy link

blgo commented Sep 20, 2017

Hello Zed,

I think this is a very good example of how to use composition in Python to wrap a class. However, the return functions are missing from "count" and "unshift".

def unshift(self):
"""Removes the head item and returns it."""
return self.list.unshift()

def count(self):
return self.list.count()

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