On 6-4-2010 8:22, Luis M. González wrote:
The above post gave me an idea (very naive, of couse).
What if I write a simple decorator to figure out the types of every
function, and then we use it as a base for a simple method-jit
compiler for python?
example:
def typer(f):
def wrap(*args):
On Mon, 2010-04-05 at 22:45 -0700, Luis M. González wrote:
> The above post gave me an idea (very naive, of couse).
> What if I write a simple decorator to figure out the types of every
> function, and then we use it as a base for a simple method-jit
> compiler for python?
I think its what done be
On 4 abr, 00:09, Steven D'Aprano wrote:
> On Sat, 03 Apr 2010 22:58:43 +, kj wrote:
> > Suppose I have a function with the following signature:
> > def spam(x, y, z):
> > # etc.
> > Is there a way to refer, within the function, to all its arguments as a
> > single list? (I.e. I'm looking
On 4 abr, 00:09, Steven D'Aprano wrote:
> On Sat, 03 Apr 2010 22:58:43 +, kj wrote:
> > Suppose I have a function with the following signature:
>
> > def spam(x, y, z):
> > # etc.
>
> > Is there a way to refer, within the function, to all its arguments as a
> > single list? (I.e. I'm look