def __init__(self, data=None):
        """ creating an in memory file (zip archive) """
        self.inMemory = io.BytesIO()
        if data:
            self.setData(data)
 creating an in memory file (zip archive) 
recipes/Python/578667_InMemoryZip_class/recipe-578667.py