Hi there, I am fairly new to python, the problem is as follows:
newnodes = {} for i in nodes: newnodes[i.label] = i.coordinate is very slow, which is due to the dots, I know that for functions the dot lookup can be done outside the loop, can this be done for attributes in any way? (in such a way that it is fast) Coordinate is a tuple in this case, filling a dictionary of that size is no problem without dots. I use python 2.0 as shipped with abaqus, there are about 100000 nodes in the current case, and more to come, and the system can be stuck on this for 15+ minutes :-( Greetings Wout This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- http://mail.python.org/mailman/listinfo/python-list