Changes between Initial Version and Version 1 of Ticket #5282


Ignore:
Timestamp:
02/16/09 06:35:49 (13 years ago)
Author:
was
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5282

    • Property Reporter changed from was to wasI
  • Ticket #5282 – Description

    initial v1  
     1Type
     2{{{
     3%python
     4os.chdir(1,2,2)
     5}}}
     6into a notebook cell in sage <= 3.3.rc0 and you will get this
     7as output
     8{{{
     9Traceback (most recent call last):
     10  File "<stdin>", line 1, in <module>
     11  File "/Users/wstein/.sage/sage_notebook/worksheets/admin/42/code/14.py", line 6, in <module>
     12    print _support_.syseval(python, ur'''os.chdir(1,2,2)''', '/Users/wstein/.sage/sage_notebook/worksheets/admin/42/cells/35')
     13  File "/Users/wstein/build/build/sage-3.3.alpha3/local/lib/python2.5/site-packages/sage/server/support.py", line 321, in syseval
     14    return system.eval(cmd)
     15TypeError: eval() takes at least 3 arguments (2 given)
     16}}}
     17
     18That's bad since it's giving a traceback based on an error in the use of the system.eval method by the sage notebook itself in server/support.py!
     19
     20In Sage mode one gets:
     21{{{
     22os.chdir(1,2,2)
     23}}}
     24outputs
     25{{{
     26Traceback (most recent call last):
     27  File "<stdin>", line 1, in <module>
     28  File "/Users/wstein/.sage/sage_notebook/worksheets/admin/42/code/15.py", line 7, in <module>
     29    os.chdir(_sage_const_1 ,_sage_const_2 ,_sage_const_2 )
     30  File "/Users/wstein/build/build/sage-3.3.alpha3/local/lib/python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module>
     31   
     32TypeError: chdir() takes exactly 1 argument (3 given)
     33}}}
     34
     35That's much better -- at least it is the right exception.  Of course the spurious reference ot SQLAlchemy is yet another bug...