One-to-One relation classes
- by SeyZ
I want to have a class named ProjectDirectory and a class named MetaDirectory. Each project has a MetaDirectory which contains some meta data. Is it the good way to write the classes like this:
class ProjectDirectory(object):
def __init__(self, directory=None):
self.directory = directory
self.meta_directory =…