2012/6/27 Nick Coghlan ncogh...@gmail.com:
If someone wants to see the error details, they should use os.stat directly
rather than an existence check.
This is now tracked at http://bugs.python.org/issue15221
Regards,
--- Giampaolo
http://code.google.com/p/pyftpdlib/
On Wed, Jun 27, 2012 at 01:49:34AM +0200, Giampaolo Rodol? g.rod...@gmail.com
wrote:
I've just noticed a strange behavior when dealing with gvfs filesystems:
giampaolo@ubuntu:~$ python -c import os;
print(os.path.exists('/home/giampaolo/.gvfs'))
True
giampaolo@ubuntu:~$ sudo su
Am 27.06.2012 01:49, schrieb Giampaolo Rodolà:
I've just noticed a strange behavior when dealing with gvfs filesystems:
giampaolo@ubuntu:~$ python -c import os;
print(os.path.exists('/home/giampaolo/.gvfs'))
True
giampaolo@ubuntu:~$ sudo su
root@ubuntu:~# python -c import os;
On 27/06/12 02:19:03, Giampaolo Rodolà wrote:
2012/6/27 Cameron Simpson c...@zip.com.au:
So I'd be +0.5 for making the docs more clear that True is reliable and
False may merely mean could not access.
+1
+1
I was about to propose a 'strict' parameter which lets the exception
propagate in
If someone wants to see the error details, they should use os.stat directly
rather than an existence check.
--
Sent from my phone, thus the relative brevity :)
___
Python-Dev mailing list
Python-Dev@python.org
On 27Jun2012 01:49, Giampaolo Rodolà g.rod...@gmail.com wrote:
| I've just noticed a strange behavior when dealing with gvfs filesystems:
|
| giampaolo@ubuntu:~$ python -c import os;
| print(os.path.exists('/home/giampaolo/.gvfs'))
| True
| giampaolo@ubuntu:~$ sudo su
| root@ubuntu:~# python -c
2012/6/27 Cameron Simpson c...@zip.com.au:
On 27Jun2012 01:49, Giampaolo Rodolà g.rod...@gmail.com wrote:
| I've just noticed a strange behavior when dealing with gvfs filesystems:
|
| giampaolo@ubuntu:~$ python -c import os;
| print(os.path.exists('/home/giampaolo/.gvfs'))
| True
|