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://scm.cri.mines-paristech.fr/git/linpy.git/commitdiff_plain/f2561050230a9c56f842acb698853f6998528aaa 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):