Fixed format input
Erik de Castro Lopo
erikd at zip.com.au
Mon Jul 31 03:14:04 EDT 2000
Na Li wrote:
>
> Hi, I am new to python but has been programming with Perl for a while. Is
> there a way to read fixed field length format input files in python? Like
> what can be done with Perl unpack() function?
Look at the struct module which is part of the standard Python
module library.
Erik
--
+-------------------------------------------------+
Erik de Castro Lopo erikd at zip.com.au
+-------------------------------------------------+
Everything that I've learned about computers I have boiled
down into three principles:
Unix: You think it won't work, but if you find the right
guru, you can make it work.
Macintosh: You think it will work, but it won't.
PC/Windows: You think it won't work, and it won't.
More information about the Python-list
mailing list