> class Myname:
>     def __init__(self):
>        self.value = -1
>     def __iter__(self):
>        return self
>     def next(self):
>        self.value += 1
>        val = '%s%.2d' % ('tt',self.value)

That should be `Symbol('%s%.2d' % ('tt',self.value))`; note that
numbered_symbols('tt') will give you the same iterator.

```
>>> numbered_symbols('tt')
<generator object numbered_symbols at 0xb20039c>
>>> [_.next() for i in range(4)]
[tt0, tt1, tt2, tt3]

```
/Chris

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to