[Tutor] Importing data from a file.

Robert Sjoblom robert.sjoblom at gmail.com
Thu Mar 21 15:03:58 CET 2013


>> 3. Are there defined procedures for doing the required processing?
>
> If you meant conversion functions, int() and float() are examples of
> those. You of course  (most of the times) have to make use of string
> manipulation functions (strip(), rstrip(), etc) to extract the exact
> data item you might be looking for.

Let's add the pickle module though. Pickle converts (most) Python
objects into string representations, when you unpickle these string
representations you get back your object. A dictionary object becomes
a dictionary object and so on. Read more here:
http://docs.python.org/3.3/library/pickle.html#module-pickle


-- 
best regards,
Robert S.


More information about the Tutor mailing list