Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29036 > unrolled thread

Re: main and dependent objects

Started byandrea crotti <andrea.crotti.0@gmail.com>
First post2012-09-13 15:59 +0100
Last post2012-09-13 15:59 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: main and dependent objects andrea crotti <andrea.crotti.0@gmail.com> - 2012-09-13 15:59 +0100

#29036 — Re: main and dependent objects

Fromandrea crotti <andrea.crotti.0@gmail.com>
Date2012-09-13 15:59 +0100
SubjectRe: main and dependent objects
Message-ID<mailman.608.1347548377.27098.python-list@python.org>
2012/9/13 Jean-Michel Pichavant <jeanmichel@sequans.com>:
>
> Nothing shocking right here imo. It looks like a classic parent-child implementation.
> However it seems the relation between Obj and Dependent are 1-to-1. Since Dependent need to access all Obj attributes, are you sure that Dependent and Obj are not actually the same class ?
>
>
> JM

Yes well the main class is already big enough, and the relation is 1-1
but the dependent class can be also considered separate to split
things more nicely..

So I think it will stay like this for now and see how it goes.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web