parsing_data/quickref.tex
author Nishanth <nishanth@fossee.in>
Tue, 12 Oct 2010 10:53:33 +0530
changeset 331 e3136f576acb
parent 238 c507e9c413c6
permissions -rw-r--r--
Finished parsing_data

Splitting a string on whitespace:\\
{\ex \lstinline|    str_var.split()|}

Splitting a string using a delimiter. Ex: ";" :\\
{\ex \lstinline|    str_var.split(";")|}

Stripping the whitespace around a string:\\
{\ex \lstinline|    str_var.strip()|}

Converting a string or float to int:\\
{\ex \lstinline|    int(var_name)|}

Converting a string or int into float:\\
{\ex \lstinline|    float(var_name)|}