Afficher un message
Vieux 07/08/2007, 17h07   #14
Avell Diroll
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: lecture fichier : ascii ou binaire ?

Avell Diroll wrote:
> Une autre méthode (sous *nix) est de faire appel à l'utilitaire "file"
> qui vérifie les premiers "magic bits" d'un fichier censés décrire son
> contenu ... je ne sais pas si un module python reprend les
> fonctionnalités de file ...


http://packages.debian.org/unstable/python/python-magic
http://www.darwinsys.com/file/


Et même une implémentation en pur python ..?
http://www.demonseed.net/~jp/code/magic.py

....

Ju
--
I never let my schooling interfere with my education.
- Mark Twain
  Réponse avec citation
 
Page generated in 0,04356 seconds with 9 queries