Why exception from os.path.exists()?
Peter J. Holzer
hjp-python at hjp.at
Wed Jun 13 16:43:16 EDT 2018
On 2018-06-11 14:23:42 +0300, Marko Rauhamaa wrote:
> "Peter J. Holzer" <hjp-python at hjp.at>:
> > On 2018-06-11 01:06:37 +0000, Steven D'Aprano wrote:
> >> Baking a limitation of some file systems into the high-level
> >> interface is simply a *bad idea*.
> >
> > We aren't talking about a high-level interface here.
>
> Call it high-level or not, we *are* talking about an interface
> ("os.path") whose whole raison d'être is abstracting OS specifics from
> basic pathname processing.
I can understand that Stephen missed the fact that we were talking about
os.stat, not os.path. But how could you miss that? It was you who
brought up os.stat and I was just replying to your message. Please try
to keep track of what you are talking about, otherwise discussions will
not be very productive.
> > You are barking up the wrong tree here.
>
> I believe the "wrong tree" would want a ValueError to be raised in this
> situation.
Nope. The wrong tree is os.path, when we are talking about os.stat.
hp
--
_ | Peter J. Holzer | we build much bigger, better disasters now
|_|_) | | because we have much more sophisticated
| | | hjp at hjp.at | management tools.
__/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20180613/d8b26f36/attachment.sig>
More information about the Python-list
mailing list