REPOST: Re: [BEGINNER] meta-functions

Richard Philips Richard.Philips at
Wed Dec 26 12:26:31 EST 2001

Igor Mozetic wrote:

>A simple question from a newbie, sorry.
>I have functions defined normally, def fname(arg1,arg2):
>and also represented as tuples (fname, arg1, arg2),
>to use them by apply(fname, (arg1,arg2)) - no problem.
>How do I make a comparison:  fname == 'string' ?
>I found that I could use repr(fname) and parse the
>resulting string, but I consider this ugly.
>Is there a standard function to return a function name
>as a string?
>I'm restricted to Python 1.5.2.
>I'm not on the list, please reply to me.
>-Igor Mozetic

Richard Philips

========= WAS CANCELLED BY =======:
From: Richard Philips <Richard.Philips at>
Newsgroups: comp.lang.python
Subject: cmsg cancel <3C2A0847.9030605 at>
Control: cancel <3C2A0847.9030605 at>
Date: Mon, 31 Dec 2001 04:45:58 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.3C2A0847.9030605 at>
X-Trace: 1009776169 27193 (31 Dec 2001 05:22:49 GMT)
X-Complaints-To: usenet at
NNTP-Posting-Date: Mon, 31 Dec 2001 05:22:49 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.

More information about the Python-list mailing list