Tag: io

  1. Updated

    Simple Parallel Tasks in Python: concurrent.futures

    Category: Python

    concurrent.futures is well suited to Embarrassingly Parallel tasks. You could write concurrent code with a simple for loop.

  2. Updated

    Read and Write Files in Django and Python

    Category: Python, Web Development

    File and ImageFile take a Python file or StringIO object, ContentFile takes a string. Examples for saving an upload to a model field included.