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


Groups > comp.lang.python > #32501

Re: calling one staticmethod from another

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=6437ef890=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.377
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.28; '*S*': 0.03; 'cheers,': 0.23; "haven't": 0.23; 'idea': 0.24; 'header:In-Reply-To:1': 0.25; 'url:wiki': 0.26; 'url:wikipedia': 0.29; 'classes': 0.30; '-----': 0.32; 'to:addr:python-list': 0.33; 'but': 0.36; 'url:org': 0.36; 'modules': 0.36; 'thank': 0.36; 'well.': 0.37; 'subject:: ': 0.38; 'store': 0.38; 'url:en': 0.38; 'to:addr:python.org': 0.39; 'you.': 0.61; 'received:194': 0.61; 'information': 0.63; 'more': 0.63; 'great': 0.64; 'person,': 0.65; 'disclose': 0.69; 'notice:': 0.71; 'privileged.': 0.72; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="4.80,682,1344204000"; d="scan'208";a="849403"
X-Virus-Scanned amavisd-new at zimbra.sequans.com
Date Tue, 30 Oct 2012 18:23:25 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To python-list@python.org
In-Reply-To <508FDA8F.1070702@davea.name>
Subject Re: calling one staticmethod from another
MIME-Version 1.0
X-Mailer Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC7 (Linux)/7.2.0_GA_2669)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-Mailman-Approved-At Tue, 30 Oct 2012 20:23:37 +0100
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.3099.1351625019.27098.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1351625019 news.xs4all.nl 6936 [2001:888:2000:d::a6]:34083
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32501

Show key headers only | View raw



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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: calling one staticmethod from another Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-10-30 18:23 +0100
  Re: calling one staticmethod from another Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-10-31 08:59 +0100

csiph-web