Re: [scripting] The Models property in Python...

Date : Thu, 10 Aug 2006 11:57:19 -0400
To : XSI(at)Softimage.COM
From : "Lars Nilsson" <chamaeleon(at)gmail.com>
Subject : Re: [scripting] The Models property in Python...
http://mail.python.org/pipermail/python-dev/2006-February/060415.html

Guido van Rossum:
"After so many attempts to come up with an alternative for lambda,
perhaps we should admit defeat. I've not had the time to follow the
most recent rounds, but I propose that we keep lambda, so as to stop
wasting everybody's talent and time on an impossible quest."

I didn't see anything that indicates that anything has changed since
February, so I guess lambda at least stays (not sure about map,
reduce, filter, etc).

Lars Nilsson

On 8/10/06, Bernard Lebel <3dbernard(at)gmail.com> wrote:
Last time I have read about that, both map() and lambda would be out
of Python 3.0.
There is no replacement, named function is said to be the way to go. I
have to say that this led to apocalyptic-scale debates on the python
mailing list.


Bernard



On 8/10/06, Nick <nick.petit(at)gmail.com> wrote:
> I hope not! what would be the point of getting rid of anonymous functions?
> What is there meant to be as a replacement?
>
>
> On 8/10/06, Bernard Lebel < 3dbernard(at)gmail.com> wrote:
> >
> Aren't lambdas on the Python 3.0 deprecation road map?
>
>
> Bernard
>
>
>
> On 8/10/06, Aloys Baillet <aloys.baillet(at)gmail.com> wrote:
> > Because Python is great:
> >     models = filter(lambda x: x.Parent.Name == myX3D.Name, myX3D.Models)
> > Because COM is less great:
> >    anyone with a faster idea is still welcome!
> >
> >  Aloys
> >
> >
> > On 8/10/06, Aloys Baillet < aloys.baillet(at)gmail.com> wrote:
> > >
> > > Hello there,
> > >
> > > A really basic question... maybe?
> > >
> > > I need to get the list of models under any given X3DObject, but NOT the
> > recursive list: just the direct children.
> > >
> > > The X3DObject.Models property accepts a Recursive argument (thanks Bill
> > for this great feature: properties with arguments...).
> > >
> > > In JScript, it's quite easy:
> > > var models = myX3D.Models(false)
> > > will return the good list.
> > >
> > > Unfortunately in Python,
> > > models = myX3D.Models(False)
> > > returns the first item of the recursive list (False being evaluated as
> 0,
> > and the recursive list being always returned)!
> > >
> > > Any great, simple and clean idea anyone?
> > >
> > > Cheers,
> > >
> > > Aloys
> > >
> > >
> > >
> > > --
> > > Aloys Baillet - XSI Technical Director
> > > Character Dpt - Animal Logic
> > > --
>  >
> >
> >
> > --
> > Aloys Baillet - XSI Technical Director
> > Character Dpt - Animal Logic
> > --
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.