summaryrefslogtreecommitdiff
path: root/using python modules/quickref.tex
diff options
context:
space:
mode:
authorAmit Sethi2010-11-08 01:56:03 +0530
committerAmit Sethi2010-11-08 01:56:03 +0530
commitbf83e16caf164cdbcb3ddd72f44833109b989b97 (patch)
treed2d14c96af50041aa9cc29d8c3595aa8bcb16d3e /using python modules/quickref.tex
parente09d107f6a3c7ddd290e4390158f682c1ca2b0b4 (diff)
parent1535316de3744cb31b7f1eaa5006f30a15d0f31c (diff)
downloadst-scripts-bf83e16caf164cdbcb3ddd72f44833109b989b97.tar.gz
st-scripts-bf83e16caf164cdbcb3ddd72f44833109b989b97.tar.bz2
st-scripts-bf83e16caf164cdbcb3ddd72f44833109b989b97.zip
Merging changes
Diffstat (limited to 'using python modules/quickref.tex')
-rw-r--r--using python modules/quickref.tex16
1 files changed, 16 insertions, 0 deletions
diff --git a/using python modules/quickref.tex b/using python modules/quickref.tex
new file mode 100644
index 0000000..cfa992a
--- /dev/null
+++ b/using python modules/quickref.tex
@@ -0,0 +1,16 @@
+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|}