Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

More notes on design of OO mailroom #51

Copy link
Copy link
@PythonCHB

Description

@PythonCHB
Issue body actions

I found a few students would write a DonorCollection class, but have it be a wrapper around their previous structure, without "proper" encapsulation.

that is, the class would be a namespace for the all their previous functions that worked with the donors structure, but kept the structure itself separate.

A little more discussion / clarity on the design might help this.

and a warning against:

def __init__(self, donors):
    self.donors = donors

where donors is the original donors structure, and there is no copy made.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.