should writing Unicode files be so slow

Ben Finney ben+python at benfinney.id.au
Fri Mar 19 13:56:49 CET 2010


djc <slais-www at ucl.ac.uk> writes:

> Ben Finney wrote:
> > Could you please:
> > 
> > * simplify it further: make a minimal version that demonstrates the
> >   difference you're seeing, without any extraneous stuff that doesn't
> >   appear to affect the result.
> > 
> > * make it complete: the code you've shown doesn't do anything except
> >   define some functions.
> > 
> > In other words: please reduce it to a complete, minimal example that we
> > can run to see the same behaviour you're seeing.
>
> It is the minimal example. The only thing omited is the opt.parse code
> that calls _file_to_files(infile, outfile_prefix, column, sep):

What happens, then, when you make a smaller program that deals with only
one file?

What happens when you make a smaller program that only reads the file,
and doesn't write any? Or a different program that only writes a file,
and doesn't read any?

It's these sort of reductions that will help narrow down exactly what
the problem is. Do make sure that each example is also complete (i.e.
can be run as is by someone who uses only that code with no additions).

-- 
 \       “To have the choice between proprietary software packages, is |
  `\      being able to choose your master. Freedom means not having a |
_o__)                        master.” —Richard M. Stallman, 2007-05-16 |
Ben Finney



More information about the Python-list mailing list