Jul 03, 2024

Wiki

Python

Aide

edit SideBar

Search

Marshal


Ecriture d'un objet dans un fichier

  >>> from marshal import dump
  >>> dd=open('toto.txt','wb')
  >>> dump(list(self.getMatrice().flat),dd)
  >>> dd.close()

Lecture d'un objet

  >>> from marshal import load
  >>> dd=open('toto.txt','rb')
  >>> mm=load(dd)

Page Actions

Recent Changes

Group & Page

Back Links