Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32501 > unrolled thread
| Started by | Jean-Michel Pichavant <jeanmichel@sequans.com> |
|---|---|
| First post | 2012-10-30 18:23 +0100 |
| Last post | 2012-10-31 08:59 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
|---|---|
| Date | 2012-10-30 18:23 +0100 |
| Subject | Re: calling one staticmethod from another |
| Message-ID | <mailman.3099.1351625019.27098.python-list@python.org> |
----- 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.
[toc] | [next] | [standalone]
| From | Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> |
|---|---|
| Date | 2012-10-31 08:59 +0100 |
| Message-ID | <rb27m9-iln.ln1@satorlaser.homedns.org> |
| In reply to | #32501 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web