Skip to content

Commit febdf8a

Browse files
committed
fix(printing): don't sympify strings in doctest
The tableform doctest relied on implicit sympification of strings into symbols. This commit calls Symbol explicitly to remove the warning from sympify.
1 parent 9c57fd0 commit febdf8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sympy/printing/tableform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(self, data, **kwarg):
9696
Examples
9797
========
9898
99-
>>> from sympy import TableForm, Matrix
99+
>>> from sympy import TableForm, Symbol
100100
>>> TableForm([[5, 7], [4, 2], [10, 3]])
101101
5 7
102102
4 2
@@ -107,7 +107,7 @@ def __init__(self, data, **kwarg):
107107
1 | .
108108
2 | . .
109109
3 | . . .
110-
>>> TableForm([['.'*(j if not i%2 else 1) for i in range(3)]
110+
>>> TableForm([[Symbol('.'*(j if not i%2 else 1)) for i in range(3)]
111111
... for j in range(4)], alignments='rcl')
112112
.
113113
. . .

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy