[Python-ideas] os.path.isparent and os.path.ischild

Oleg Broytman phd at phdru.name
Thu Jul 14 12:08:11 CEST 2011


On Thu, Jul 14, 2011 at 05:51:49AM -0400, Eric V. Smith wrote:
> Then isparent() seems like a bad name. isancestor(), maybe?
> Not that I think it needs to be added to the stdlib.

   It's already in the stdlib, called shutil.destinsrc ("destination in
source").

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.



More information about the Python-ideas mailing list