Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3086
| From | Benoit Izac <use.reply.to@INVALID.ADDRESS> |
|---|---|
| Newsgroups | fr.comp.lang.python |
| Subject | Re: Correction code Python |
| Date | 2018-05-14 21:52 +0200 |
| Message-ID | <87vabq817b.fsf@izac.org> (permalink) |
| References | <jOCdnUlQcdSqpGTHnZ2dnUU7983NnZ2d@giganews.com> |
Bonjour, Le 14/05/2018 à 09:22, Hugues a écrit dans le message <jOCdnUlQcdSqpGTHnZ2dnUU7983NnZ2d@giganews.com> : > J'aimerais que vous m'aidiez à corriger ce code : > > [...] > > with open(NOMFIC_SAUVE, 'w') as ficow: > pickle.dump(self, ficow) > > [...] > with open(NOMFIC_SAUVE, 'r') as ficor: > return pickle.load(ficor) Si tu es sous Windows, je pense qu'il faut utiliser 'rb' pour ouvrir le fichier. NB : je n'ai pas regardé le reste. -- Benoit Izac
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Correction code Python Hugues21 <nospam_leon.muselli@live.fr.invalid> - 2018-05-14 02:22 -0500 Re: Correction code Python Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2018-05-14 21:52 +0200 Re: Correction code Python yves <yves@free.invalid> - 2018-05-14 20:05 +0000
csiph-web