python-2.1 function attributes
Emile van Sebille
emile at fenx.com
Fri Jan 26 15:34:10 EST 2001
"Michael Hudson" <mwh21 at cam.ac.uk> wrote in message
news:m3y9vywa2p.fsf at atrus.jesus.cam.ac.uk...
> "Emile van Sebille" <emile at fenx.com> writes:
<snip>
> > > > l = (4,5,6)
> > def test(...) having (*l):
>
> Uhh, how do you propose to refer to the elements of l?
test.0?
Of course, I propose to refer to them as a, b & c. Exactly
how that should happen is an implementation detail. ;-)
(Obviously a case of insufficient ROM - Read Operators Mind
... which reminds me of WOM - Write Only Memory)
<snip>
> BTW, I've implemented my proposal at:
>
>
http://sourceforge.net/patch/?func=detailpatch&patch_id=1034
41&group_id=5470
>
> You need a *really* recent Python (i.e. CVS from later
than yesterday)
> to get this to work (Jeremy checked in the code for PEP
227, static
> nested scopes, which really beat up the compiler). But
give it a
> whirl!
>
> Cheers,
> M.
>
I did, and it looks like I missed the timing re: compile.c
and the patch didn't take. I'll have to try again later.
See you,
--
Emile van Sebille
emile at fenx.com
-------------------
More information about the Python-list
mailing list