Hello everyone,

The following creates three variables ``a``, ``b``, and ``c``::

        sage: var('a, b, c')
        (a, b, c)

I would expect this to do the same thing::

        sage: var(('a', 'b', 'c'))
        (('a', 'b', 'c'))

It doesn't, but that's not too big a problem...

This should *definitely* work correctly, but::

        sage: var(v for v in ('a', 'b', 'c'))
        (<generator, object, <genexpr>, at, 0x56d42d0>)

Yes, that's a tuple! for some reason.  Clearly, this is a problem.
The above generator expression should return the same thing as::

        sage: tuple(var(v) for v in ('a', 'b', 'c'))
        (a, b, c)


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to