| 1 | Type |
| 2 | {{{ |
| 3 | %python |
| 4 | os.chdir(1,2,2) |
| 5 | }}} |
| 6 | into a notebook cell in sage <= 3.3.rc0 and you will get this |
| 7 | as output |
| 8 | {{{ |
| 9 | Traceback (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) |
| 15 | TypeError: eval() takes at least 3 arguments (2 given) |
| 16 | }}} |
| 17 | |
| 18 | That'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 | |
| 20 | In Sage mode one gets: |
| 21 | {{{ |
| 22 | os.chdir(1,2,2) |
| 23 | }}} |
| 24 | outputs |
| 25 | {{{ |
| 26 | Traceback (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 | |
| 32 | TypeError: chdir() takes exactly 1 argument (3 given) |
| 33 | }}} |
| 34 | |
| 35 | That's much better -- at least it is the right exception. Of course the spurious reference ot SQLAlchemy is yet another bug... |