In article ,
Tim Golden wrote:
>On 14/11/2012 00:33, Ali Akhavan wrote:
>>
>> I am trying to open a file in 'w' mode open('file', 'wb'). open()
>> will throw with IOError with errno 13 if the file is locked by
>> another application or if user does not have permission to open/write
>> to the file
On 14/11/2012 11:51, Hans Mulder wrote:
> It would be nice if he could give specific error messages, e.g.
>
> "Can't write %s because it is locked by %s."
>
> vs.
>
> "Can't write %s because you don't have write access."
>
> I can't speak for Ali, but I'm always annoyed by error message
On 14/11/12 11:02:45, Tim Golden wrote:
> On 14/11/2012 00:33, Ali Akhavan wrote:
>> I am trying to open a file in 'w' mode open('file', 'wb'). open()
>> will throw with IOError with errno 13 if the file is locked by
>> another application or if user does not have permission to open/write
>> to the
On 14/11/2012 00:33, Ali Akhavan wrote:
> I am trying to open a file in 'w' mode open('file', 'wb'). open()
> will throw with IOError with errno 13 if the file is locked by
> another application or if user does not have permission to open/write
> to the file.
>
> How can I distinguish these two ca
On 14/11/2012 00:33, Ali Akhavan wrote:
> I am trying to open a file in 'w' mode open('file', 'wb'). open()
> will throw with IOError with errno 13 if the file is locked by
> another application or if user does not have permission to open/write
> to the file.
What version of Python are you using?
On 14/11/2012 08:55, Hans Mulder wrote:
> On 14/11/12 02:14:59, Mark Lawrence wrote:
>> On 14/11/2012 00:33, Ali Akhavan wrote:
>>> I am trying to open a file in 'w' mode open('file', 'wb'). open() will
>>> throw with IOError with errno 13 if the file is locked by another
>>> application or if user
On 14/11/12 02:14:59, Mark Lawrence wrote:
> On 14/11/2012 00:33, Ali Akhavan wrote:
>> I am trying to open a file in 'w' mode open('file', 'wb'). open() will
>> throw with IOError with errno 13 if the file is locked by another
>> application or if user does not have permission to open/write to the
On 14/11/2012 00:33, Ali Akhavan wrote:
I am trying to open a file in 'w' mode open('file', 'wb'). open() will throw
with IOError with errno 13 if the file is locked by another application or if
user does not have permission to open/write to the file.
How can I distinguish these two cases ? Na
I am trying to open a file in 'w' mode open('file', 'wb'). open() will throw
with IOError with errno 13 if the file is locked by another application or if
user does not have permission to open/write to the file.
How can I distinguish these two cases ? Namely, if some application has the
file o