Utilities¶ General Infrastructure¶ Default Settings Functional notation Random Number States Random Numbers with Python API The Unknown truth value Programming Utilities¶ Special Base Classes, Decorators, etc.¶ Abstract methods Bindable classes Decorators Constant functions Special Methods for Classes Metaclass for inheriting comparison functions Base Class to Support Method Decorators Multiplex calls to one object to calls to many objects Fast methods via Cython Attribute and method calling Lists and Iteration, etc.¶ Callable dictionaries Converting Dictionary Flatten nested lists Searching a sorted list Multidimensional enumeration multi_replace Threaded map function Ranges and the [1,2,..,n] notation Elements with labels. File and OS Access¶ Temporary file handling get_remote_file Message delivery Miscellaneous operating system functions Database Access¶ Relational (sqlite) Databases Module Warnings¶ Stopgaps Handling Superseded Functionality Miscellaneous Useful Functions¶ Miscellaneous functions Miscellaneous functions (Cython) Verbosity System and Logging in SageMath Laziness¶ Lazy attributes Lazy format strings Lazy imports Lazy import cache Lazy lists Lazy strings Caching¶ Cached Functions and Methods Fast and safe weak value dictionary Fast Expression Evaluation¶ Fast Expression Evaluation Fast Numerical Evaluation Code Evaluation¶ Cython support functions Fortran compiler A parser for symbolic equations and expressions Evaluating Python code without any preparsing Evaluating a String in Sage Evaluating shell scripts Formatted Output¶ Formatted Output¶ Symbols for Character Art Base Class for Character-Based Art Factory for Character-Based Art ASCII Art Unicode Art Unicode Characters Repr formatting support Sage Input Formatting Tables HTML and MathML¶ HTML Fragments MathML output support LaTeX¶ Installing and using SageTeX LaTeX printing support LaTeX macros Standalone LaTeX Document class and TikzPicture Saving and Loading Sage Objects¶ Support for persistent functions in .sage files Object persistence Function pickling A tool for inspecting Python pickles Fixing pickle for nested classes Loading and saving sessions and listing all variables Interactive Usage Support¶ Interactive Sage Sessions¶ SageMath version and banner info Interpreter reset Determination of programs for viewing web pages, etc. Pager for showing strings Format Sage documentation for viewing with IPython and the notebook Sphinx configuration shared by sage.misc.sphinxify and sage_docbuild Process docstrings with Sphinx Distribution¶ Listing Sage packages Credits¶ Dependency usage tracking for citations License Development Tools¶ Testing¶ Unit testing for Sage objects Random testing Test for nested class Parent Benchmarking and Profiling¶ Benchmarks Accurate timing information for Sage commands The timeit command Simple profiling tool C Function Profiler Using Google Perftools Miscellaneous Inspection and Development Tools¶ Dynamic documentation for instances of classes Inspect Python, Sage, and Cython objects Edit the source code of Sage interactively Class inheritance graphs Some tools for developers Function Mangling ReST index of functions Low-Level Utilities¶ Low-level memory allocation functions The C3 algorithm The C3 algorithm, under control of a total order Indices and Tables¶ Index Module Index Search Page