Skip to content

return missing from queue_wrapped.py wrapped methods #1

Open
@blgo

Description

@blgo

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()

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