6.1.2 How Some Python Annoyances are Resolved in Sage

People who do research mathematics and use Python often run into a few problems:

Rather than modifying the Python interpreter (as I've heard some people have done for internal projects), we use the Python language exactly as is, and write a pre-parser for IPython so that the command line behavior of IPython is what a mathematician expects. This means any existing Python code can be used in Sage. However, one must still obey the standard Python rules when writing packages that will be imported into Sage.

Note: To install a random Python library that you find on the internet, follow the directions, but run sage -python instead of python. Very often this means typing sage -python setup.py install.

See About this document... for information on suggesting changes.