Ask Your Question

# Revision history [back]

It seems for now you'll have to do an ugly workaround like:

sage: var(L[0] if (isinstance(L, list) and len(L) == 1) else L)


I have opened a ticket with a proposed fix to the bug: https://trac.sagemath.org/ticket/28353

It seems for now you'll have to do an ugly workaround like:

sage: var(L[0] if (isinstance(L, list) and len(L) == 1) 1 else L)


I have opened a ticket with a proposed fix to the bug: https://trac.sagemath.org/ticket/28353