forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

specify variable record length attribute on Python open()

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS
View previous topic :: View next topic  
Author Message
julian491v



Joined: 20 May 2013
Posts: 2
Location: United States

PostPosted: Mon Nov 09, 2015 8:38 pm    Post subject: specify variable record length attribute on Python open() Reply with quote

I vaguely remember an extension to the open() function that allowed code to specify the record type for a new file. I need to create a variable record length file rather than a stream_lf file from code like this:

f = open("x.com", "w")

Is this possible?
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 618

PostPosted: Tue Nov 10, 2015 4:50 pm    Post subject: Reply with quote

Hello,

it's not open but file which allow this.

Just do
Code:
help(file)
under Python you will have some examples.

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group