[Fwd: Re: [Python-Dev] Extended Function syntax]

Michael Hudson mwh@python.net
23 Jan 2003 17:27:11 +0000


--=-xSDoeBG8mTT5bqo9cMfx
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Gah, playing with new MUAs & all.. this was meant to go to the list.

--=-xSDoeBG8mTT5bqo9cMfx
Content-Disposition: inline
Content-Description: Forwarded message - Re: [Python-Dev] Extended Function
	syntax
Content-Type: message/rfc822

Subject: Re: [Python-Dev] Extended Function syntax
From: Michael Hudson <mwh@python.net>
To: "M.-A. Lemburg" <mal@lemburg.com>
In-Reply-To: <3E301466.5070204@lemburg.com>
References: <r01050400-1023-F29912FE2EAE11D79FAB003065D5E7E4@[10.0.0.23]>
	 <2mfzrkrtmi.fsf@starship.python.net>
	 <200301231438.h0NEc6J06291@odiug.zope.com>  <3E301466.5070204@lemburg.com>
Content-Type: text/plain
Organization: 
Message-Id: <1043342086.9909.145.camel@pc150.maths.bris.ac.uk>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.1 
Date: 23 Jan 2003 17:14:46 +0000
Content-Transfer-Encoding: 7bit

On Thu, 2003-01-23 at 16:12, M.-A. Lemburg wrote:

> I suppose the following would also be possible, provided
> that types(...) returns a callable, right ?
> 
> def myfunc(x,y,z) [types(int, int, float), cacheglobals]:
>      return math.sin(x*y/z)

Of course.  The only thing you can't do is put a lambda in the filter
list and that's only because of a bug.

> .... and cacheglobals would be able to rewrite the byte
> code too. Nice :-)

If that's your nice I don't want to see your nasty :)

Cheers,
M.

--=-xSDoeBG8mTT5bqo9cMfx--