kash.eval
for long input
is much less robust, and is not recommended.
sage: a = kash(range(10000))
Note that KASH seems to not support string or integer literals with more than 1024 digits, which is why the above example uses a list unlike for the other interfaces.
Module-level Functions
x) |
) |
) |
) |
Class: Kash
Author: William Stein and David Joyner
self, [max_workspace_size=None], [maxread=100000], [script_subdirectory=None], [restart_on_ctrlc=True], [logfile=None], [server=None], [server_tmpdir=None]) |
Input:
Functions: console,
eval,
get,
help,
help_search,
set,
version
self, x, [newlines=False], [strip=True]) |
Send the code in the string s to the Kash interpreter and return the output as a string.
Input:
self, var) |
Get the value of the variable var.
self, [name=None]) |
Return help on KASH commands.
Returns help on all commands with a given name. If name is None, return the location of the installed Kash html documentation.
sage: X = kash.help('IntegerRing') # needs optional kash package
There is one entry in X for each item found in the
documentation for this function: If you type print X[0]
you will get help on about the first one, printed nicely to
the screen.
Author Log:
self, var, value) |
Set the variable var to the given value.
Special Functions: __init__,
__reduce__,
_assign_symbol,
_contains,
_continuation_prompt,
_doc,
_equality_symbol,
_eval_line,
_eval_line_using_file,
_false_symbol,
_is_true_string,
_next_var_name,
_object_class,
_quit_string,
_read_in_file_command,
_start,
_true_symbol
Class: KashDocumentation
Special Functions: __repr__
Class: KashElement
Special Functions: __len__,
__mod__
See About this document... for information on suggesting changes.