Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29036
| References | <CAF_E5Jbcc=Vmvy20bE271XOe3xHxjxiZ-XF_snyOXJ4E4JW_Vw@mail.gmail.com> <57804014.446922.1347542664064.JavaMail.root@sequans.com> |
|---|---|
| Date | 2012-09-13 15:59 +0100 |
| Subject | Re: main and dependent objects |
| From | andrea crotti <andrea.crotti.0@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.608.1347548377.27098.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: main and dependent objects andrea crotti <andrea.crotti.0@gmail.com> - 2012-09-13 15:59 +0100
csiph-web