I doubt if there'd be any efficiency difference between the two
approaches. You'll see a much bigger difference by switching from 't'
to 'b'. Both the functions are native code in Python 2.6.
I withdraw my two previous suggestions. As you said, the 'name'
attribute is read-only (and documen
First of all
Thanks Dave for the reply
On Sat, 2009-03-28 at 09:51 -0500, Dave Angel wrote:
> First question is why you need os.open(), and not the open() function.
> I'll guess that you need some of the access modes (e.g. for file
> sharing) that you get from the low level functions. So assumi
First question is why you need os.open(), and not the open() function.
I'll guess that you need some of the access modes (e.g. for file
sharing) that you get from the low level functions. So assuming that:
I don't believe there's any way to use a fd ("file descriptor") to
retrieve the file n
Hi
Is there any way to get the name of the file opened from the file object
'f' which i get through the code
f = os.fdopen(os.open("trial', os.O_WRONLY|os.O_CREAT), "w")
The situation will be like i can access only the above variable 'f'.
f.name is having '' instead of filename 'trial'
Or if n