How-to create a Pascal Record using Python
Daniel
Daniel.Kinnaer at AdValvas.be
Thu Jan 4 15:54:47 EST 2001
On Thu, 4 Jan 2001 14:21:27 -0500, "Steve Holden"
<sholden at holdenweb.com> wrote:
>
> return file.read().splitlines()
>
>
>regards
> Steve
>
Thanks for your reply. Was it correct to handle Pascal-like records
the way I did, or is there a more Python-ly manner of handling this?
Suppose I have something like
TMyRecord = record
aName : string;
adate : TDateTime;
aZIP : integer;
end; //record
var MyRecs : array [1..100] of TMyRecord;
f : file of TMyRecord;
How is this handled in Python? Sorry for these questions, but I
really would like to learn about all of this.
Thanks
More information about the Python-list
mailing list