From: dman <ds...@ri...> - 2001-09-05 15:09:07
|
[ Does anyone know why I keep getting these messages "from" the admin without the proper headers? ] (response below, entier *body* (yes, this is the body, not the headers of the message i received) included in case it helps answer the above question) On Wed, Sep 05, 2001 at 10:56:19AM -0400, jyt...@li... wrote: | (verified OK)) by pi.glockenspiel.complete.org (Postfix) | with ESMTP id 144BF3B81B; Wed, 05 Sep 2001 09:55:01 -0500 (EST) | Received: by alexanderwohl.complete.org (Postfix, from userid 1000) | id F05997F4E; Wed, 05 Sep 2001 09:55:00 -0500 (EST) | Date: Wed, 05 Sep 2001 09:55:00 -0500 | From: John Goerzen <jgo...@co...> | Subject: Re: [Jython-users] Static methods? | In-reply-to: <3B9...@ca...> | Sender: jyt...@li... | To: jyt...@li... | Errors-to: jyt...@li... | Message-id: <87b...@co...> | MIME-version: 1.0 | Content-type: text/plain; charset=us-ascii | Precedence: bulk | User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Artificial | Intelligence) | X-BeenThere: jyt...@li... | X-Mailman-Version: 2.0.5 | X-Original-Date: Wed, 05 Sep 2001 09:55:00 -0500 | Lines: 15 | References: <DFB...@ch...> | <3B9...@ca...> <87z...@co...> | <3B9...@ca...> | List-Post: <mailto:jyt...@li...> | List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/jython-users>, | <mailto:jyt...@li...?subject=subscribe> | List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/jython-users>, | <mailto:jyt...@li...?subject=unsubscribe> | List-Archive: <https://lists.sourceforge.net/archives//jython-users/> | List-Help: <mailto:jyt...@li...?subject=help> | List-Id: <jython-users.lists.sourceforge.net> | | Kevin Butler <kb...@ca...> writes: | | >> OK, now the question is, where do I put the @sig line for Java to be | >> able to call it, and how should it look? | > | > I'm pretty sure the answer is "you don't". I don't believe either cheat is supported by jythonc. | | Hmm, so there is absolutely no way to create, with jythonc, what would | appear to java as a static function? I'd consider that to be a | serious shortcoming... Actually, I think it is a serious shortcoming of Java that it can't have functions/methods that don't operate on specific objects at the module level. Python doesn't have the so-called "static" class members because it doesn't restrict your program organization to using only classes, but rather uses classes as object templates and modules for grouping related functions that don't operate on a given class instance. What you are seeing here is the clash between Python's and Java's concept of what an object is and what a class is. -D |