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.ensmp.fr/git/linpy.git/commitdiff_plain/f2561050230a9c56f842acb698853f6998528aaa?hp=e27fd6a18fd36b8ec81f37cd800399703bf7ef4f 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):