Dear Chris,
> On Thu, Mar 26, 2009 at 11:05 AM, [email protected]
...
> We didn't touch Python or IPython directly. Instead we use an
> officially supported hook in IPython to preparse each input line
> before it is sent to the Python interpreter. When you type "type(3)",
> Python sees 'type(Integer(3))'.
>
> sage: preparse('type(3)')
> 'type(Integer(3))'
I think this preparsing really makes the work easier. But if you
really prefer, it is possible to switch the preparser off or on:
sage: preparser(False)
sage: type(3)
<type 'int'>
sage: preparser(True)
sage: type(3)
<type 'sage.rings.integer.Integer'>
Type preparser? or preparse? for more information.
Yours,
Simon
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---