Copying attributes

Terry Hancock hancock at anansispaceworks.com
Thu Jul 21 22:25:12 EDT 2005


On Thursday 21 July 2005 08:17 pm, Terry Hancock wrote:
> But is "faces" a list,
> dictionary, or tuple (or something more obscure)? 

Lest it be unclear why this matters:

>>> da = {'a':1, 'b':2, 'c':3}
>>> for d in da:
...     print d
...
a
c
b
>>> la = [1,2,3]
>>> for d in la:
...     print d
...
1
2
3

As you can see, looping through a dictionary
gives you its keys, not its values.  It is possible to
define even more bizarre behavior for user-defined
collection classes, and "mesh" is probably a C
extension type.

<sigh>

I've been wanting to learn the Blender API, too. But
I haven't done so yet, so I'm not really sure what "mesh"
will be.

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks  http://www.anansispaceworks.com




More information about the Python-list mailing list