[Python-ideas] PEP: Extended stat_result (First Draft)
Antoine Pitrou
solipsis at pitrou.net
Mon May 6 11:30:23 CEST 2013
Le Mon, 06 May 2013 11:18:15 +0200,
Pieter Nagel <pieter at nagel.co.za> a écrit :
>
> > If we go down the path of allowing a "null" stat object, it would
> > also make sense to add an exists() method to the method API.
>
> Actually exists() is what led me down that path, I just forgot it
> when I wrote the PEP.
>
> But for now, I'm not sure if the whole null object proposal is going
> to fly at all. I kind of like it, but I I can't call to mind any other
> prior art for such null objects in the stdlib.
I don't really understand the point of a null object here, since
os.stat() will raise when called on a non-existent patch.
Regards
Antoine.
More information about the Python-ideas
mailing list