[Tutor] write list to columns
questions anon
questions.anon at gmail.com
Fri Apr 13 09:47:35 CEST 2012
thanks all!
On Fri, Apr 13, 2012 at 2:02 AM, Alan Gauld <alan.gauld at btinternet.com>wrote:
> On 12/04/12 15:32, Mark Lawrence wrote:
>
> That's going to be quite awkward to do. Files like to be written one
>>> complete line at a time. The normal approach would be to build up the
>>> table structure in memory and then write the entire table out in one go.
>>>
>>
>
>> Built-in zip? Or have I missed something?
>>
>
> The OP specifically said he wanted to write out one *column* at a time to
> the file. Then go back and write the next column etc. zip would be one way
> to build the structure in memory prior to printing, as I suggested.
>
>
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
>
> ______________________________**_________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120413/87a9b3d1/attachment.html>
More information about the Tutor
mailing list