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


Groups > comp.lang.python > #29036

Re: main and dependent objects

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <andrea.crotti.0@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.102
X-Spam-Level *
X-Spam-Evidence '*H*': 0.80; '*S*': 0.00; 'cc:addr:python-list': 0.10; 'attributes,': 0.16; 'imo.': 0.16; 'received:209.85.214.174': 0.21; 'cc:2**0': 0.23; 'dependent': 0.23; 'split': 0.23; 'seems': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; 'separate': 0.27; 'message-id:@mail.gmail.com': 0.27; 'obj': 0.29; 'class': 0.29; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'nothing': 0.38; 'sure': 0.38; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'stay': 0.61; 'between': 0.63; 'more': 0.63; 'here': 0.65; 'shocking': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=X6oqys/7YH8uuV+ChZuNQpaW8yW8qX1WwRfdTK3SF+4=; b=s7dmbIphgDsnT6L2DEv7S8hMDRX1z8myoOLLKXHglF9R2RaF6VhgUai/W9isVAQpgQ fx2Whx3cUlJ5zHEGQPmOLJS2kIuHEq4iwg9lcUckGmsIknduQgYJI/YtuS37+n02V/gI 2xV8VCbryp1likyX4BUSVPpGjxyqGWrle5vCsqN+m4395PXPJrV6JCH3Jsj3er3ZU4rO Cal9Rm/R4R6MmqdpB12FuT9e3bfh7HWPY940iEjfA/sJ1Gik0tmqsZQhdGurvrWilyvW 90YYYM+H1IKg+J9qFQK4oqMIXFaRunKR6yXxw5U/bFnLFJLXEd4zTLMyv96aQ4xObO3W U5dg==
MIME-Version 1.0
In-Reply-To <57804014.446922.1347542664064.JavaMail.root@sequans.com>
References <CAF_E5Jbcc=Vmvy20bE271XOe3xHxjxiZ-XF_snyOXJ4E4JW_Vw@mail.gmail.com> <57804014.446922.1347542664064.JavaMail.root@sequans.com>
Date Thu, 13 Sep 2012 15:59:34 +0100
Subject Re: main and dependent objects
From andrea crotti <andrea.crotti.0@gmail.com>
To Jean-Michel Pichavant <jeanmichel@sequans.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.608.1347548377.27098.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1347548377 news.xs4all.nl 6846 [2001:888:2000:d::a6]:55950
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29036

Show key headers only | View raw


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


Thread

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

csiph-web