[Bf-python] Blender.Group

Toni Alatalo antont at kyperjokki.fi
Tue Mar 14 14:43:07 CET 2006


On Tuesday 14 March 2006 03:29, cpbarton at iinet.net.au wrote:
> If so then its less efficient then getting the object with Get().

aha

> So can we make a custom PyObject that supports set like operation?

yes - Python uses Duck Typing, so any object that behaves like a set and looks 
like a set, is a set, and i hope that instances of BlenderGroup will be so.

> - Cam

~Toni

>
> > Toni Alatalo wrote:
> > > On Monday 13 March 2006 17:32, Stephen Swaney wrote:
> > >> Correct me if I am wrong, but Sets is a Python 2.24 feature.
> > >> At the moment, we try to maintain Py 2.3 compatibility for those
> > >
> > > they were prototyped in 2.3 in python, in the stdlib in the official
> >
> > release,
> >
> > > in the sets module .. so you can do "try set; except: from sets import
> > > Set
> >
> > as
> >
> > > set"
> > >
> > >> poor unfortunate victims of OSX and Debian-ish linux.
> > >
> > > many debianish linuxes have 2.4  by default.
> > >
> > > ~Toni
> > > ____________
> >
> > My ubuntu breezy vmware install has 2.4, so I can confirm this.
> >
> > joeedh
> > _______________________________________________
> > Bf-python mailing list
> > Bf-python at projects.blender.org
> > http://projects.blender.org/mailman/listinfo/bf-python
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list