Finished parsing_data
authorNishanth <nishanth@fossee.in>
Tue, 12 Oct 2010 10:53:33 +0530
changeset 331 e3136f576acb
parent 330 efb8ddf26aff
child 332 b702c10e5919
Finished parsing_data
parsing_data/quickref.tex
--- a/parsing_data/quickref.tex	Tue Oct 12 10:47:28 2010 +0530
+++ b/parsing_data/quickref.tex	Tue Oct 12 10:53:33 2010 +0530
@@ -1,11 +1,15 @@
-Creating a tuple:\\
-{\ex \lstinline|    t = (1, "hello", 2.5)|}
+Splitting a string on whitespace:\\
+{\ex \lstinline|    str_var.split()|}
 
-Accessing elements of tuples:\\
-{\ex \lstinline|    t[index] Ex: t[2]|}
+Splitting a string using a delimiter. Ex: ";" :\\
+{\ex \lstinline|    str_var.split(";")|}
 
-Accessing slices of tuples:\\
-{\ex \lstinline|    t[start:stop:step]|}
+Stripping the whitespace around a string:\\
+{\ex \lstinline|    str_var.strip()|}
 
-Swapping values:\\
-{\ex \lstinline|    a, b = b, a|}
+Converting a string or float to int:\\
+{\ex \lstinline|    int(var_name)|}
+
+Converting a string or int into float:\\
+{\ex \lstinline|    float(var_name)|}
+