Comment #4 on issue 3771 by [email protected]: NameError soon after using
last result (_)
http://code.google.com/p/sympy/issues/detail?id=3771
I get the problem when the underscore is the second time in an input. The
OP sequence is now different, giving:
Python console for SymPy 0.7.3 (Python 2.7.5)
These commands were executed:
from __future__ import division
from sympy import *
x, y, z, t = symbols('x y z t')
k, m, n = symbols('k m n', integer=True)
f, g, h = symbols('f g h', cls=Function)
Documentation can be found at http://docs.sympy.org/.
x
x
x-_
0
type(_)
Exception in SymPy Live of type
<type 'exceptions.TypeError'>
for reference the last 5 stack trace entries are
Traceback (most recent call last):
File "/base/data/home/apps/s~sympy-live-hrd/39.369438448182393855/shell.py",
line 777, in post
live.evaluate(statement, session, printer, stream)
File "/base/data/home/apps/s~sympy-live-hrd/39.369438448182393855/shell.py",
line 381, in evaluate
exec code in statement_module.__dict__
File "<string>", line 1, in <module>
TypeError: unsupported operand type(s) for -: 'Symbol' and 'NoneType'
I ran into this when trying to show a student how to use SymPy Live
today...:-(
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.