Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #3253

Re: fileinput

Path csiph.com!usenet.pasdenom.info!.POSTED.88.191.100.17!not-for-mail
From Jo Engo <yl@icite.fr>
Newsgroups fr.comp.lang.python
Subject Re: fileinput
Date Sun, 27 Oct 2019 07:40:27 -0000 (UTC)
Organization Serveur de salon
Message-ID <qp3hlb$jfv$5@nemo.pasdenom.info> (permalink)
References <713a01f1-05ac-4e7c-9153-afc6186ae7be@googlegroups.com> <qp0te8$igo$3@nemo.pasdenom.info> <4f94ad96-c050-4404-9522-f616c3e26a59@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Sun, 27 Oct 2019 07:40:27 -0000 (UTC)
Injection-Info nemo.pasdenom.info; posting-account="yl@icite.fr"; posting-host="88.191.100.17"; logging-data="19967"; mail-complaints-to="abuse@pasdenom.info"
User-Agent Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
Xref csiph.com fr.comp.lang.python:3253

Show key headers only | View raw


Le Sat, 26 Oct 2019 08:15:34 -0700, lacsaP Patatetom a écrit :

> celui-ci fonctionne lorsque le fichier journal est passé en paramètre,
> mais pas lorsqu'il passé sur l'entrée standard...


Oui j'ai vu, mes excuse donc. Au risque de répondre encore à côté de la 
plaque, 1 question et 1 suggestion qui n'a rien à voir avec la question

Question : où dans le fichier se situe le byte erroné ? (au milieu ou à 
la fin ?) si c'est à la fin ça peut expliquer la différence de taritement

Suggestion

Comme tu semble attendre de tels problèmes pourquoi ne traites-tu pas le 
fichier en raw (en 8 bits, sans tenir compte d'*aucun* caractères utf8)

-- 
Le trop de promptitude à l'erreur nous expose.
	-+- Pierre Corneille -+-

Back to fr.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

fileinput lacsaP Patatetom <patatetom@gmail.com> - 2019-10-25 13:04 -0700
  Re: fileinput Jo Engo <yl@icite.fr> - 2019-10-26 07:43 +0000
    Re: fileinput lacsaP Patatetom <patatetom@gmail.com> - 2019-10-26 08:15 -0700
      Re: fileinput Jo Engo <yl@icite.fr> - 2019-10-27 07:40 +0000
        Re: fileinput lacsaP Patatetom <patatetom@gmail.com> - 2019-10-27 01:04 -0700
          Re: fileinput lacsaP Patatetom <patatetom@gmail.com> - 2019-10-27 01:08 -0700
            Re: fileinput lacsaP Patatetom <patatetom@gmail.com> - 2019-10-27 01:16 -0700

csiph-web