Skip to content

Commit

Permalink
XXX + _parse_symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Apr 3, 2023
1 parent 2b91b04 commit 5f71b06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diofant/polys/rings.py
Expand Up @@ -63,7 +63,7 @@ def _parse_symbols(symbols):
return symbols,
if is_sequence(symbols):
if all(isinstance(s, str) for s in symbols):
return tuple(_symbols(symbols))
return _symbols(symbols)
if all(isinstance(s, Expr) for s in symbols):
return tuple(symbols)

Expand Down
2 changes: 1 addition & 1 deletion diofant/tests/polys/test_groebnertools.py
Expand Up @@ -168,7 +168,7 @@ def test_benchmark_coloring():
(4, 11), (4, 9), (5, 6), (6, 7), (7, 8), (8, 9), (9, 10), (10, 11),
(11, 12), (5, 12), (5, 9), (6, 10), (7, 11), (8, 12), (3, 4)]

R, *V = ring([f'x{v}' for v in V], QQ, lex)
R, *V = ring(tuple(f'x{v}' for v in V), QQ, lex)
E = [(V[i - 1], V[j - 1]) for i, j in E]

x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12 = V
Expand Down

0 comments on commit 5f71b06

Please sign in to comment.