On Wednesday 17 June 2009, Lie Ryan wrote:
> Wolfgang Rohdewald wrote:
> > On Wednesday, 17. June 2009, Steven D'Aprano wrote:
> >> while text:
> >> for c in text:
> >> if c not in printable: return False
> >
> > that is one loop per character.
>
> unless print
Wolfgang Rohdewald wrote:
> On Wednesday, 17. June 2009, Steven D'Aprano wrote:
>> while text:
>> for c in text:
>> if c not in printable: return False
>
> that is one loop per character.
unless printable is a set
> wouldn't it be faster to apply a regex to te
Scott David Daniels wrote:
> norseman wrote:
>> Scott David Daniels wrote:
>>> Dave Angel wrote:
Jorge wrote: ...
> I'm making a application that reads 3 party generated ASCII files,
> but some times the files are corrupted totally or partiality and I
> need to know if it's a ASCI
On Wednesday, 17. June 2009, Steven D'Aprano wrote:
> while text:
> for c in text:
> if c not in printable: return False
that is one loop per character.
wouldn't it be faster to apply a regex to text?
something like
while text:
if re.search(r'\W',text)
On Tue, 16 Jun 2009 10:42:58 -0700, Scott David Daniels wrote:
> Dave Angel wrote:
>> Jorge wrote:
>>> Hi there,
>>> I'm making a application that reads 3 party generated ASCII files,
>>> but some
>>> times
>>> the files are corrupted totally or partiality and I need to know if
>>> it's a
>>> ASC
Scott David Daniels wrote:
norseman wrote:
Scott David Daniels wrote:
Dave Angel wrote:
Jorge wrote: ...
I'm making a application that reads 3 party generated ASCII files,
but some times the files are corrupted totally or partiality and I
need to know if it's a ASCII file with *nix line ter
norseman wrote:
Scott David Daniels wrote:
Dave Angel wrote:
Jorge wrote: ...
I'm making a application that reads 3 party generated ASCII files,
but some times the files are corrupted totally or partiality and
I need to know if it's a ASCII file with *nix line terminators.
In linux I can ru
norseman wrote:
Scott David Daniels wrote:
Dave Angel wrote:
Jorge wrote:
Hi there,
I'm making a application that reads 3 party generated ASCII files,
but some
times
the files are corrupted totally or partiality and I need to know if
it's a
ASCII file with *nix line terminators.
In linux
Scott David Daniels wrote:
Dave Angel wrote:
Jorge wrote:
Hi there,
I'm making a application that reads 3 party generated ASCII files,
but some
times
the files are corrupted totally or partiality and I need to know if
it's a
ASCII file with *nix line terminators.
In linux I can run the fil
Dave Angel wrote:
Jorge wrote:
Hi there,
I'm making a application that reads 3 party generated ASCII files,
but some
times
the files are corrupted totally or partiality and I need to know if
it's a
ASCII file with *nix line terminators.
In linux I can run the file command but the applicatio
On Jun 16, 2:17 pm, Dave Angel wrote:
> Jorge wrote:
> > Hi there,
> > I'm making a application that reads 3 party generated ASCII files, but some
> > times
> > the files are corrupted totally or partiality and I need to know if it's a
> > ASCII file with *nix line terminators.
> > In linux I can
Jorge wrote:
Hi there,
I'm making a application that reads 3 party generated ASCII files, but some
times
the files are corrupted totally or partiality and I need to know if it's a
ASCII file with *nix line terminators.
In linux I can run the file command but the applications should run in
window
Hi there,
I'm making a application that reads 3 party generated ASCII files, but some
times
the files are corrupted totally or partiality and I need to know if it's a
ASCII file with *nix line terminators.
In linux I can run the file command but the applications should run in
windows.
Any help wi
13 matches
Mail list logo