Re: How to display name of elements in list? PROBLEM SOLVED.

2006-07-27 Thread cz
[EMAIL PROTECTED] wrote: > It looks like the PyTensor object *should* have .xx, .xy, etc > properties, but they may be accessible through a matrix, i.e. .t(i,j) Thanks to all of you for your help! The solution is easy: The tensor components have labels t11, t12,... Good guess ruibalp! -- http:

Re: How to display name of elements in list?

2006-07-12 Thread cz
> The list above is not a valid Python list. What is it that you store in that > list? > > Or is it maybe a dictionary? > > Stefan Thanks for your help. How can I find out about what this is? As I said it's generated by a insufficiently documented module. So if this is a user defined datatype, is

Re: How to display name of elements in list?

2006-07-12 Thread cz
sity it will print "2976.52". But this doesn't work for >>print elten[1].xx, why? So that's how I came to the question how to access these values. Any idea? Thanks a lot! cz -- http://mail.python.org/mailman/listinfo/python-list

How to display name of elements in list?

2006-07-12 Thread cz
Hi there, I'm sure there is a very simple solution for my question, I just didn't find it up to now. I'm using a badly documented module and therefore need to find out about how to access the elements in a list. (I need to do this in Python 1.5.3) Any help appreciated very mu