From: Vivien Maisonneuve Date: Wed, 2 Jul 2014 08:25:55 +0000 (+0200) Subject: Make symbolnames return a tuple X-Git-Tag: 1.0~168 X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/commitdiff_plain/f2561050230a9c56f842acb698853f6998528aaa?ds=inline Make symbolnames return a tuple --- diff --git a/pypol/linexprs.py b/pypol/linexprs.py index b330045..10daf9d 100644 --- a/pypol/linexprs.py +++ b/pypol/linexprs.py @@ -441,7 +441,7 @@ def symbolname(symbol): def symbolnames(symbols): if isinstance(symbols, str): return symbols.replace(',', ' ').split() - return (symbolname(symbol) for symbol in symbols) + return tuple(symbolname(symbol) for symbol in symbols) class Constant(Expression):