Re: calling one staticmethod from another

Discussion in 'Python' started by Jean-Michel Pichavant, Oct 30, 2012.

  1. ----- Original Message -----
    [snip]
    > I haven't figured out the justification for staticmethod,


    http://en.wikipedia.org/wiki/Namespace
    +
    "Namespaces are one honking great idea -- let's do more of those!"

    Someone may successfully use only modules as namespaces, but classes can be used as well. It's up to you.

    Cheers,

    JM


    -- IMPORTANT NOTICE:

    The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
     
    Jean-Michel Pichavant, Oct 30, 2012
    #1
    1. Advertisements

  2. Am 30.10.2012 18:23, schrieb Jean-Michel Pichavant:
    > ----- Original Message -----
    > [snip]
    >> I haven't figured out the justification for staticmethod,

    >
    > http://en.wikipedia.org/wiki/Namespace
    > +
    > "Namespaces are one honking great idea -- let's do more of those!"
    >
    > Someone may successfully use only modules as namespaces, but classes
    > can be used as well. It's up to you.


    Indeed, see e.g. Steven D'Aprano's approach at formalizing that:

    http://code.activestate.com/recipes/578279/


    Greetings!

    Uli
     
    Ulrich Eckhardt, Oct 31, 2012
    #2
    1. Advertisements

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. Steven K

    Calling one sub from another

    Steven K, Apr 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    406
    Kevin Spencer
    Apr 5, 2004
  2. Rizwan
    Replies:
    2
    Views:
    4,603
    Rizwan
    May 3, 2005
  3. loveNUNO
    Replies:
    2
    Views:
    1,217
    loveNUNO
    Nov 20, 2003
  4. Replies:
    1
    Views:
    416
    Patricia Shanahan
    Feb 28, 2007
  5. mobeenkhan

    J2ME, Calling one form from another

    mobeenkhan, Sep 5, 2007, in forum: Java
    Replies:
    0
    Views:
    1,662
    mobeenkhan
    Sep 5, 2007
  6. Michael Earls
    Replies:
    3
    Views:
    3,934
    MBUnit
    Mar 24, 2009
  7. Robert Cohen
    Replies:
    3
    Views:
    595
    Andrew Durstewitz
    Jul 15, 2003
  8. Ulrich Eckhardt

    calling one staticmethod from another

    Ulrich Eckhardt, Oct 30, 2012, in forum: Python
    Replies:
    5
    Views:
    251
    Mark Lawrence
    Oct 30, 2012
Loading...