using python modules/quickref.tex
author anand
Mon, 15 Nov 2010 15:38:44 +0530
changeset 512 b378844641fd
parent 398 36295bb91766
permissions -rw-r--r--
checklist not ok; 1 short answer question and 2 long answer questions need to be added.

Import all definitions to current name-space:\\
{\ex \lstinline|    from scipy import *|}

Import few definitions to current name-space:\\
{\ex \lstinline|    from scipy import linspace, pi, sin|}

Import a module as a new name-space:\\
{\ex \lstinline|    import scipy|}

Few standard python modules:\\
{\ex \lstinline|    Math: math, random|}
{\ex \lstinline|    Internet: urllib2, smtplib|}
{\ex \lstinline|    System: sys|}
{\ex \lstinline|    OS: os|}
{\ex \lstinline|    Regular Expression: re|}
{\ex \lstinline|    Compression: gzip, zipfile, tarfile|}