Gmane

Marking this message as spam

Posting...

You have registered article 920 in gmane.comp.apache.mod-python.devel (shown below) as being spam. "Spam" is unsolicited commercial email; it isn't ordinary irrelevant email.
If you didn't mean to do that, click here to reverse this action.

Original article

Picon
From: Graham Dumpleton <grahamd <at> dscpl.com.au>
Subject: Re: mod_python.publisher : proposal for a few implementation changes
Newsgroups: gmane.comp.apache.mod-python.devel
Date: 2005-05-01 11:42:22 GMT

On 01/05/2005, at 9:07 PM, Nicolas Lehuen wrote:

> Graham, have you seen the standard inspect.getargspec() function ? It
> exists since Python 2.1 and may save some code and portability :
>
> http://www.python.org/doc/2.2.3/lib/inspect-classes-functions.html

Yes. I probably didn't use it out of habit. Specifically, when I wrote 
my
other Python project where I needed to interrogate arguments, I had to 
be
compatible with Python 1.5 and Python 2.0, so initially didn't exist and
then couldn't use it for compatibility reasons.

Possibly about time to start using it, although not sure it will change
much the amount of code that needs to be written as still need special
cases to drop off self parameter of class instance method. It also does
not eliminate the chain of if statements which identify the actual 
object
you need to apply the interrogation to. :-)

Graham