Re: main and dependent objects

Discussion in 'Python' started by andrea crotti, Sep 13, 2012.

  1. 2012/9/13 Jean-Michel Pichavant <>:
    >
    > 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.
    andrea crotti, Sep 13, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. puzzlecracker
    Replies:
    1
    Views:
    519
    James Kanze
    Aug 7, 2008
  2. null hypothesis
    Replies:
    1
    Views:
    289
    Eric Sosman
    Sep 6, 2010
  3. andrea crotti

    main and dependent objects

    andrea crotti, Sep 13, 2012, in forum: Python
    Replies:
    2
    Views:
    184
    alex23
    Sep 14, 2012
  4. Jean-Michel Pichavant

    Re: main and dependent objects

    Jean-Michel Pichavant, Sep 13, 2012, in forum: Python
    Replies:
    0
    Views:
    167
    Jean-Michel Pichavant
    Sep 13, 2012
  5. Jean-Michel Pichavant

    Re: main and dependent objects

    Jean-Michel Pichavant, Sep 13, 2012, in forum: Python
    Replies:
    0
    Views:
    168
    Jean-Michel Pichavant
    Sep 13, 2012
Loading...

Share This Page