using_python_modules/quickref.tex
changeset 522 d33698326409
equal deleted inserted replaced
521:88a01948450d 522:d33698326409
       
     1 Import all definitions to current name-space:\\
       
     2 {\ex \lstinline|    from scipy import *|}
       
     3 
       
     4 Import few definitions to current name-space:\\
       
     5 {\ex \lstinline|    from scipy import linspace, pi, sin|}
       
     6 
       
     7 Import a module as a new name-space:\\
       
     8 {\ex \lstinline|    import scipy|}
       
     9 
       
    10 Few standard python modules:\\
       
    11 {\ex \lstinline|    Math: math, random|}
       
    12 {\ex \lstinline|    Internet: urllib2, smtplib|}
       
    13 {\ex \lstinline|    System: sys|}
       
    14 {\ex \lstinline|    OS: os|}
       
    15 {\ex \lstinline|    Regular Expression: re|}
       
    16 {\ex \lstinline|    Compression: gzip, zipfile, tarfile|}