Comment #3 on issue 3771 by [email protected]: NameError soon after using last result (_)
http://code.google.com/p/sympy/issues/detail?id=3771

Same problem, though I didn't use _ in this session:

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)

type(k)
<class′sympy.core.symbol.Symbol′>

k.as_coefficients_dict()
{k:1}

d =k.as_coefficients_dict()
type(d[0])
<type′int′>

type(d.keys()[0])
<class′sympy.core.symbol.Symbol′>

d['k']
Exception in SymPy Live of type
<type 'exceptions.NameError'>
for reference the last 5 stack trace entries are
Traceback (most recent call last):
File "/base/data/home/apps/s~sympy-live-hrd/34.366402816395225014/shell.py", line 760, in post
    live.evaluate(statement, session, printer, stream)
File "/base/data/home/apps/s~sympy-live-hrd/34.366402816395225014/shell.py", line 364, in evaluate
    exec code in statement_module.__dict__
  File "<string>", line 1, in <module>
NameError: name 'd' is not defined
d =1
Exception in SymPy Live of type
<type 'exceptions.NameError'>
for reference the last 5 stack trace entries are
Traceback (most recent call last):
File "/base/data/home/apps/s~sympy-live-hrd/34.366402816395225014/shell.py", line 760, in post
    live.evaluate(statement, session, printer, stream)
File "/base/data/home/apps/s~sympy-live-hrd/34.366402816395225014/shell.py", line 364, in evaluate
    exec code in statement_module.__dict__
  File "<string>", line 1, in <module>
NameError: name 'd' is not defined

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to