How to eliminate quotes around string field written to a file.
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sat Nov 15 00:19:39 EST 2008
On Fri, 14 Nov 2008 20:39:53 -0800, len wrote:
> hi
>
> Have this code in my program;
>
> filename = 'custfile'
> codeline = filename + ' = [\n'
> output.write(codeline)
>
> record written to file look like this
>
> "custfile" = [
I cannot reproduce that behaviour. I suggest that the code you are
running is not the same as the code you say you are running.
--
Steven
More information about the Python-list
mailing list