Ch 15 Python

15.2 Module pickle

The pickle module can perform serialization and deserialization of data. It is actually encoded (in a particular way) objects that can be created in Python (variables, lists, dictionaries, functions, classes, etc..) To store them in a file and then recover without having to perform a step of parsing. 15.2.1 Coding of data To encode data […]

Ch 15 Python

15.1 Urllib2 module

The urllib and urllib2 modules allow to repatriate directly with Python files from the web. We deal only with simple examples, but feel free to deepen if necessary. There are subtle differences between urllib and urllib2 that we will not discuss here but are available on the official Python documentation. In this course, we chose to present urllib2 […]