Re: How do you get rid of useless warnings?

2008-10-07 Thread Martin Geisler
specified warning category. The full class name must be given. The module field matches the (fully-qualified) module name; this match is case-sensitive. The line field matches the line num- ber, where zero matches all line numbers and is thus equivalent

Re: Tuple parameter unpacking in 3.x

2008-10-05 Thread Martin Geisler
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 04 Oct 2008 17:07:14 +0200, Martin Geisler wrote: > >> A somewhat related question: do I pay a performance penalty when I >> let a function define an inner function like this: >>

Re: Tuple parameter unpacking in 3.x

2008-10-05 Thread Martin Geisler
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 04 Oct 2008 22:57:23 +0200, Martin Geisler wrote: > > Here's another alternative. Compare: > >>>> x = (2, 3) >>>> (lambda (a,b): a*b)(x) > 6 > > with this: > >>>> (

Re: Tuple parameter unpacking in 3.x

2008-10-04 Thread Martin Geisler
g the PEP-3113 I got the impression that the author thought that this feature was unused and didn't matter. With this I wish to say that it matters to me. -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multi-Party Computation) to Pytho

Re: Tuple parameter unpacking in 3.x

2008-10-04 Thread Martin Geisler
I realize that defining bar as an inner function has the advantage of being able to see variables in the namespace of foo. -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/. pgp8h0HQCkWkD.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Tuple parameter unpacking in 3.x

2008-10-02 Thread Martin Geisler
bove, and for me this language feature is a big plus since it makes the code more readable. -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/. pgp2apNYlyOtF.pgp Description: PGP signa